/*
Theme Name: PPV Spiral 螺旋风管
Theme URI: https://example.com/ppv-spiral
Author: PP Theme Studio
Author URI: https://example.com
Description: 面向 PP 螺旋风管卷制厂的深色金属风 WordPress 主题。炭黑底衬镀锌银与咬口铜金,页头页脚贯穿螺旋咬口斜纹带,内联 SVG 呈现连续咬口管身、分节弯头与辊压成型工序,规格壁厚表一目了然,适合以卷制工艺见长的通风管道厂商。
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ppv-spiral
Tags: dark, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --bg: #14171b;
  --bg-2: #1a1e24;
  --card: #20252b;
  --card-2: #272d34;
  --gold: #d8a24a;
  --gold-deep: #b8842f;
  --zinc: #c8d2db;
  --ink: #eef2f6;
  --gray: #8c99a5;
  --line: #2f363e;
  --radius: 6px;
  --container: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  /* 螺旋咬口斜纹 */
  --seam: repeating-linear-gradient(115deg, #d8a24a 0 3px, transparent 3px 16px);
}

/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { max-width: 100%; height: auto; }
.part { width: 120px; height: 90px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.seam-strip { height: 6px; background: var(--seam); background-color: #101316; opacity: .85; }

.btn {
  display: inline-block; padding: 12px 26px; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: transparent;
  color: var(--ink); cursor: pointer; transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-main { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.btn-main:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #1a1206; }

.brand-mark {
  display: block; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--zinc);
  background: var(--seam); background-color: #101316;
}

/* ===== Header ===== */
.site-header { background: var(--bg-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 13px 0; }
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.site-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.site-desc { font-family: var(--mono); font-size: 11px; color: var(--gray); letter-spacing: .06em; }
.site-nav .menu { display: flex; gap: 24px; list-style: none; }
.site-nav a { font-size: 15px; color: #c3ccd5; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle-input, .nav-toggle-label { display: none; }

/* ===== Hero ===== */
.hero { padding: 56px 0 44px; background: radial-gradient(1000px 420px at 74% 12%, rgba(216,162,74,.14), transparent 62%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-badge {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .05em;
  color: var(--gold); border: 1px solid rgba(216,162,74,.45); border-radius: 100px; padding: 4px 14px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.22; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { margin-top: 16px; font-size: 16px; color: var(--gray); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-fig {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  box-shadow: 0 20px 48px rgba(0,0,0,.42);
}

.spec-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.spec { padding: 20px 22px; border-right: 1px solid var(--line); }
.spec:last-child { border-right: 0; }
.spec b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 800; color: var(--gold); line-height: 1.3; }
.spec span { font-size: 13.5px; color: var(--gray); }

/* ===== Sections ===== */
.section { padding: 60px 0; }
.section-tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: 32px; padding-left: 16px; border-left: 4px solid var(--gold); }
.sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.015em; }
.sec-head p { font-size: 15px; color: var(--gray); margin-top: 4px; }

/* ===== Parts ===== */
.part-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.part-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px 24px;
  transition: border-color .16s ease, transform .16s ease;
}
.part-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.part-fig {
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; margin-bottom: 14px;
}
.part-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.part-card h3 a:hover { color: var(--gold); }
.part-card p { font-size: 14px; color: var(--gray); line-height: 1.85; }

/* ===== Process ===== */
.process-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.process-fig {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px;
  position: sticky; top: 92px;
}
.step-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px;
}
.step:hover { border-color: var(--gold); }
.step-no {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold); font-family: var(--mono); font-size: 15px; font-weight: 800;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--gray); line-height: 1.85; }

/* ===== Spec table ===== */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.spec-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.spec-table th {
  text-align: left; padding: 13px 20px; background: var(--card-2); color: var(--zinc);
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
}
.spec-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); color: #d3dbe3; }
.spec-table td:first-child { font-family: var(--mono); color: var(--gold); font-weight: 700; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover { background: rgba(216,162,74,.06); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.why { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 22px; }
.why h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.why p { font-size: 14px; color: var(--gray); line-height: 1.85; }

/* ===== Notes ===== */
.note-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.note-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px;
  transition: border-color .16s ease, transform .16s ease;
}
.note-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.note-card time { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.note-card h3 { font-size: 18px; font-weight: 700; margin: 6px 0 8px; }
.note-card p { font-size: 14px; color: var(--gray); }

/* ===== CTA ===== */
.cta-coil {
  margin: 56px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px 34px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  background-image: var(--seam); background-repeat: no-repeat; background-size: 100% 6px; background-position: top left;
}
.cta-label { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--gold); margin-bottom: 8px; }
.cta-coil h2 { font-size: 25px; font-weight: 800; letter-spacing: -.015em; }
.cta-coil p { font-size: 14.5px; color: var(--gray); margin-top: 8px; max-width: 42em; }
.cta-side { display: flex; align-items: center; gap: 20px; }
.cta-phone { font-family: var(--mono); font-size: 23px; font-weight: 800; color: var(--gold); }

/* ===== Page hero / inner ===== */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 34px 0; }
.page-hero h1 { font-size: 27px; font-weight: 800; letter-spacing: -.015em; }
.breadcrumbs { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.breadcrumbs a:hover { color: var(--gold); }

.layout { display: grid; grid-template-columns: 1fr 290px; gap: 30px; padding: 42px 0 62px; align-items: start; }
.layout-full { padding: 42px 0 62px; }
.entry-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; margin-bottom: 16px; }
.entry-card:hover { border-color: var(--gold); }
.entry-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.entry-card h2 a:hover { color: var(--gold); }
.entry-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.entry-meta a { color: var(--gold); }
.entry-excerpt { margin-top: 10px; font-size: 15px; color: #b9c3cd; }
.entry-thumb { margin-bottom: 16px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.single-header { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.single-header h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.entry-content { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px; font-size: 16px; color: #d3dbe3; }
.entry-content > * + * { margin-top: 16px; }
.entry-content h2 { font-size: 21px; font-weight: 800; color: var(--gold); }
.entry-content h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content blockquote { border-left: 4px solid var(--gold); background: var(--bg); padding: 14px 18px; color: var(--gray); }
.entry-content code { font-family: var(--mono); background: var(--bg); padding: 2px 6px; border-radius: 4px; }
.entry-content a { color: var(--gold); text-decoration: underline; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: 14px; color: var(--gray); }
.post-nav a:hover { color: var(--gold); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); font-family: var(--mono); font-weight: 700; color: var(--zinc);
}
.pagination .current, .pagination .page-numbers:hover { background: var(--gold); color: #1a1206; border-color: var(--gold); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.sidebar-cta {
  background: var(--card); border: 1px solid var(--gold); border-radius: 10px; padding: 24px 20px; text-align: center;
  background-image: var(--seam); background-repeat: no-repeat; background-size: 100% 5px; background-position: top left;
}
.sidebar-cta h3 { font-size: 17px; font-weight: 700; }
.sidebar-cta p { font-size: 13px; color: var(--gray); margin: 8px 0 12px; }
.sidebar-cta strong { display: block; font-family: var(--mono); font-size: 21px; color: var(--gold); margin-bottom: 14px; }
.sidebar-cta .btn { width: 100%; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.widget-title { font-size: 16px; font-weight: 800; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.widget li a { font-size: 14px; color: #b9c3cd; }
.widget li a:hover { color: var(--gold); }

.search-form { display: flex; gap: 8px; }
.search-field {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 14px;
}
.search-field:focus { outline: none; border-color: var(--gold); }
.search-submit {
  padding: 10px 18px; border: 1px solid var(--gold); border-radius: var(--radius);
  background: var(--gold); color: #1a1206; font-weight: 700; cursor: pointer;
}
.search-submit:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

/* ===== Comments ===== */
.comments-area { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.comments-area h2, .comment-reply-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.comment-list .comment-body { border-left: 3px solid var(--line); padding-left: 16px; font-size: 15px; color: #c6cfd8; }
.comment-notes { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font-family: inherit; font-size: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--gold); }
.comment-form .submit {
  padding: 12px 28px; border: 0; border-radius: var(--radius); background: var(--gold);
  color: #1a1206; font-weight: 700; cursor: pointer;
}

/* ===== 404 ===== */
.error-page { text-align: center; padding: 80px 0; }
.error-code { font-family: var(--mono); font-size: 88px; font-weight: 800; color: var(--gold); line-height: 1; }
.error-page h1 { font-size: 25px; font-weight: 800; margin: 12px 0 8px; }
.error-page p { color: var(--gray); margin-bottom: 20px; }
.error-page .search-form { max-width: 420px; margin: 0 auto 20px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding: 44px 0 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand strong { font-size: 17px; font-weight: 800; }
.footer-col p { font-size: 14px; color: var(--gray); }
.footer-col h3 { font-size: 15px; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.footer-col ul, .footer-menu { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: #b9c3cd; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { font-size: 14px; display: flex; gap: 8px; color: var(--gray); }
.footer-contact b { color: var(--zinc); font-weight: 600; min-width: 34px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 15px 0; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .part-grid { grid-template-columns: repeat(2, 1fr); }
  .process-wrap { grid-template-columns: 1fr; }
  .process-fig { position: static; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 780px) {
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2.5px; background: var(--zinc); }
  .site-nav { display: none; order: 10; width: 100%; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .site-nav .menu { flex-direction: column; gap: 2px; }
  .site-nav a { display: block; padding: 10px 0; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .part-grid, .note-grid { grid-template-columns: 1fr; }
  .cta-coil { padding: 26px 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
}
