/*
Theme Name: PP Concrete 清水混凝土
Theme URI: https://example.com/pp-concrete
Author: PP Theme Studio
Author URI: https://example.com
Description: 面向 PP 酸洗槽厂家的建筑感 WordPress 主题。清水混凝土灰配暖木色,大块面留白、粗横线分区、对拉螺栓圆孔细节与编号式栏目,以"先算受力再定结构"的建造逻辑组织内容,适合强调工程能力与耐久品质的制造企业。
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: pp-concrete
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --con: #e8e6e2;
  --con-2: #dedbd5;
  --paper: #f4f3f0;
  --slab: #5f5c57;
  --slab-deep: #3b3936;
  --wood: #a8703c;
  --wood-lit: #c08a52;
  --ink: #2f2d2a;
  --gray: #7d7970;
  --line: #cdc9c2;
  --container: 1160px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

/* ===== 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.9;
  color: var(--ink);
  background: var(--con);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { max-width: 100%; height: auto; }
.container { width: min(100% - 44px, 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;
}

.btn {
  display: inline-block; padding: 13px 30px; font-size: 15px; font-weight: 600;
  letter-spacing: .04em; border: 1px solid var(--slab); background: transparent;
  color: var(--slab-deep); cursor: pointer; transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--slab); color: var(--paper); }
.btn-main { background: var(--slab-deep); border-color: var(--slab-deep); color: var(--paper); }
.btn-main:hover { background: var(--wood); border-color: var(--wood); color: #fff; }

/* ===== Header ===== */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 18px 0; }
.site-branding { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--slab-deep); color: var(--paper); font-weight: 700; font-size: 16px; letter-spacing: .04em;
}
.site-title { font-size: 20px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.site-desc { font-size: 11px; color: var(--gray); letter-spacing: .16em; }
.site-nav .menu { display: flex; gap: 30px; list-style: none; }
.site-nav a { font-size: 15px; font-weight: 500; letter-spacing: .03em; padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a { border-bottom-color: var(--wood); color: var(--wood); }
.nav-toggle-input, .nav-toggle-label { display: none; }

/* ===== Hero ===== */
.hero { padding: 86px 0 74px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--gray); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.16; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--wood); }
.hero-sub { margin-top: 22px; font-size: 16px; color: var(--gray); max-width: 27em; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-slab { background: var(--con-2); padding: 30px 26px; }

/* ===== Mass bar ===== */
.massbar { background: var(--slab-deep); color: var(--paper); }
.mass-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mass { padding: 30px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.mass:last-child { border-right: 0; }
.mass b { display: block; font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.mass b i { font-style: normal; font-size: 15px; color: var(--wood-lit); margin-left: 3px; }
.mass span { font-size: 13px; color: #b6b1a8; }

/* ===== Sections ===== */
.section { padding: 78px 0; }
.section-dark { background: var(--slab-deep); color: #d6d2cb; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; padding-bottom: 16px; border-bottom: 3px solid var(--slab-deep); }
.sec-idx { font-family: var(--mono); font-size: 13px; color: var(--wood); letter-spacing: .1em; }
.sec-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.sec-head-light { border-bottom-color: rgba(255,255,255,.24); }
.sec-head-light h2 { color: var(--paper); }
.sec-head-light .sec-idx { color: var(--wood-lit); }

/* ===== Products ===== */
.prod-list { display: flex; flex-direction: column; }
.prod {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background .18s ease, padding-left .18s ease;
}
.prod:hover { background: var(--paper); padding-left: 18px; }
.prod-idx { font-family: var(--mono); font-size: 15px; color: var(--wood); }
.prod-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
.prod-body h3 a:hover { color: var(--wood); }
.prod-body p { font-size: 14px; color: var(--gray); max-width: 52em; }
.prod-more { font-size: 14px; font-weight: 600; color: var(--slab-deep); border-bottom: 1px solid var(--wood); padding-bottom: 2px; white-space: nowrap; }

/* ===== Rules ===== */
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
.rule { border-top: 2px solid rgba(255,255,255,.24); padding-top: 20px; }
.rule h3 { font-size: 19px; font-weight: 700; color: var(--paper); margin-bottom: 10px; letter-spacing: -.01em; }
.rule p { font-size: 15px; color: #b3aea6; line-height: 2; }

/* ===== Build list ===== */
.build-list { list-style: none; counter-reset: bl; border-top: 1px solid var(--line); }
.build-list li {
  counter-increment: bl; display: grid; grid-template-columns: 60px 130px 1fr; gap: 20px;
  align-items: baseline; padding: 20px 8px; border-bottom: 1px solid var(--line);
}
.build-list li::before {
  content: counter(bl, decimal-leading-zero);
  font-family: var(--mono); font-size: 14px; color: var(--wood);
}
.build-list b { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.build-list span { font-size: 15px; color: var(--gray); }

/* ===== Records ===== */
.rec-list { border-top: 1px solid var(--line); }
.rec-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: baseline;
  padding: 20px 8px; border-bottom: 1px solid var(--line); transition: padding-left .18s ease;
}
.rec-row:hover { padding-left: 16px; background: var(--paper); }
.rec-row time { font-family: var(--mono); font-size: 13px; color: var(--gray); letter-spacing: .04em; }
.rec-row h3 { font-size: 17px; font-weight: 500; }
.rec-row:hover h3 { color: var(--wood); }

/* ===== CTA ===== */
.cta-slab {
  position: relative; margin: 70px 0; padding: 44px 42px; background: var(--slab-deep); color: var(--paper);
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between;
}
.slab-holes { position: absolute; top: 16px; left: 20px; display: flex; gap: 16px; }
.slab-holes span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.cta-slab h2 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.cta-slab p { font-size: 14px; color: #b3aea6; 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: 700; color: var(--wood-lit); }

/* ===== Page hero / inner ===== */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 52px 0 32px; }
.page-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.breadcrumbs { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--gray); letter-spacing: .06em; }
.breadcrumbs a:hover { color: var(--wood); }

.layout { display: grid; grid-template-columns: 1fr 280px; gap: 46px; padding: 52px 0 76px; align-items: start; }
.layout-full { padding: 52px 0 76px; }
.entry-card { padding: 26px 0; border-bottom: 1px solid var(--line); }
.entry-card h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.entry-card h2 a:hover { color: var(--wood); }
.entry-meta { display: flex; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.entry-meta a { color: var(--wood); }
.entry-excerpt { margin-top: 10px; font-size: 15px; color: #565249; }
.entry-thumb { margin-bottom: 18px; }
.single-header { padding-bottom: 18px; margin-bottom: 26px; border-bottom: 3px solid var(--slab-deep); }
.single-header h1 { font-size: 29px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.entry-content { font-size: 16px; line-height: 2.05; }
.entry-content > * + * { margin-top: 18px; }
.entry-content h2 { font-size: 22px; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--line); letter-spacing: -.01em; }
.entry-content h3 { font-size: 19px; font-weight: 700; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content blockquote { border-left: 4px solid var(--wood); padding-left: 20px; color: var(--gray); }
.entry-content code { font-family: var(--mono); background: var(--con-2); padding: 2px 6px; }
.entry-content a { color: var(--wood); border-bottom: 1px solid var(--line); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.post-nav a:hover { color: var(--wood); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
  border: 1px solid var(--line); background: var(--paper); font-family: var(--mono); font-size: 14px;
}
.pagination .current, .pagination .page-numbers:hover { background: var(--slab-deep); color: var(--paper); border-color: var(--slab-deep); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 30px; position: sticky; top: 100px; }
.sidebar-cta { background: var(--slab-deep); color: var(--paper); padding: 26px 22px; }
.sidebar-cta h3 { font-size: 18px; font-weight: 700; }
.sidebar-cta p { font-size: 13px; color: #b3aea6; margin: 10px 0 14px; }
.sidebar-cta strong { display: block; font-family: var(--mono); font-size: 21px; color: var(--wood-lit); margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; text-align: center; background: var(--wood); border-color: var(--wood); color: #fff; }
.widget-title { font-size: 15px; font-weight: 700; letter-spacing: .04em; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--slab-deep); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.widget li a { font-size: 14px; color: #565249; }
.widget li a:hover { color: var(--wood); }

.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); background: var(--paper); font-family: inherit; font-size: 14px; }
.search-field:focus { outline: none; border-color: var(--slab); }
.search-submit { padding: 11px 18px; border: 1px solid var(--slab-deep); background: var(--slab-deep); color: var(--paper); font-weight: 600; cursor: pointer; }
.search-submit:hover { background: var(--wood); border-color: var(--wood); }

/* ===== Comments ===== */
.comments-area { margin-top: 44px; padding-top: 28px; border-top: 3px solid var(--slab-deep); }
.comments-area h2, .comment-reply-title { font-size: 19px; font-weight: 700; margin-bottom: 16px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.comment-list .comment-body { border-left: 2px solid var(--line); padding-left: 18px; font-size: 15px; }
.comment-notes { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: var(--paper); font-family: inherit; font-size: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--slab); }
.comment-form .submit { padding: 13px 30px; border: 1px solid var(--slab-deep); background: var(--slab-deep); color: var(--paper); font-weight: 600; cursor: pointer; }

/* ===== 404 ===== */
.error-page { padding: 100px 0; max-width: 560px; }
.error-code { font-family: var(--mono); font-size: 96px; font-weight: 800; color: var(--wood); line-height: 1; }
.error-page h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 10px; }
.error-page p { color: var(--gray); margin-bottom: 22px; }
.error-page .search-form { margin-bottom: 22px; }

/* ===== Footer ===== */
.site-footer { background: var(--paper); border-top: 3px solid var(--slab-deep); margin-top: 30px; }
.footer-main { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding: 54px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand strong { font-size: 18px; font-weight: 700; }
.footer-col p { font-size: 14px; color: var(--gray); line-height: 1.95; }
.footer-col h3 { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--gray); margin-bottom: 16px; }
.footer-col ul, .footer-menu { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: #565249; }
.footer-col a:hover { color: var(--wood); }
.footer-contact li { font-size: 14px; display: flex; gap: 10px; color: var(--gray); }
.footer-contact b { color: var(--ink); font-weight: 600; min-width: 34px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; font-family: var(--mono); font-size: 12px; color: var(--gray); letter-spacing: .04em; }
.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: 36px; }
  .mass-grid { grid-template-columns: repeat(2, 1fr); }
  .mass:nth-child(2) { border-right: 0; }
  .rule-grid { grid-template-columns: 1fr; gap: 30px; }
  .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: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--slab); cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2px; background: var(--slab-deep); }
  .site-nav { display: none; order: 10; width: 100%; padding-top: 14px; margin-top: 14px; 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; }
  .hero { padding: 54px 0 46px; }
  .prod { grid-template-columns: 44px 1fr; gap: 14px; }
  .prod-more { display: none; }
  .build-list li { grid-template-columns: 40px 1fr; }
  .build-list b { grid-column: 2; }
  .build-list span { grid-column: 2; }
  .rec-row { grid-template-columns: 1fr; gap: 4px; }
  .cta-slab { padding: 32px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
}
