/*
Theme Name: PP Terrazzo 水磨石
Theme URI: https://example.com/pp-terrazzo
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-terrazzo
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --stone: #f5f1ea;
  --stone-2: #ece6dc;
  --card: #fdfbf7;
  --clay: #b8624a;
  --clay-lit: #d98b6b;
  --moss: #7fa88a;
  --wheat: #e0c98a;
  --ink: #3c3830;
  --gray: #7a7468;
  --line: #ded6c9;
  --radius: 20px;
  --container: 1140px;
  --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.88;
  color: var(--ink);
  background: var(--stone);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { max-width: 100%; height: auto; }
.chips { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.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;
}

.btn {
  display: inline-block; padding: 12px 28px; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--ink); border-radius: 30px; background: transparent;
  color: var(--ink); cursor: pointer; transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--ink); color: var(--stone); }
.btn-main { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn-main:hover { background: var(--ink); border-color: var(--ink); color: var(--stone); }

/* ===== Header ===== */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 15px 0; }
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--clay); color: #fff; font-weight: 800; font-size: 16px;
}
.site-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.site-desc { font-size: 11px; color: var(--gray); letter-spacing: .12em; }
.site-nav .menu { display: flex; gap: 8px; list-style: none; }
.site-nav a { font-size: 15px; padding: 7px 16px; border-radius: 20px; }
.site-nav a:hover, .site-nav .current-menu-item > a { background: var(--stone-2); color: var(--clay); }
.nav-toggle-input, .nav-toggle-label { display: none; }

/* ===== Hero ===== */
.hero { padding: 66px 0 58px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero-chip {
  display: inline-block; font-size: 13px; color: var(--clay);
  background: var(--card); border-radius: 20px; padding: 5px 16px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.22; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero-sub { margin-top: 20px; font-size: 16px; color: var(--gray); max-width: 27em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.hero-slab {
  position: relative; background: var(--card); border-radius: var(--radius);
  padding: 34px 28px; overflow: hidden; box-shadow: 0 10px 30px rgba(60,56,48,.07);
}
.slab-chips { position: absolute; inset: 0; opacity: .8; }
.slab-fig { position: relative; }

/* ===== Sections ===== */
.section { padding: 62px 0; }
.section-tint { background: var(--stone-2); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 32px; }
.sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.sec-note { font-size: 13px; color: var(--gray); }

/* ===== Products ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod {
  background: var(--card); border-radius: var(--radius); padding: 16px 22px 24px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 20px rgba(60,56,48,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.prod:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(60,56,48,.11); }
.prod-fig { position: relative; background: var(--stone-2); border-radius: 14px; padding: 12px 10px 4px; overflow: hidden; }
.prod-chips { position: absolute; inset: 0; opacity: .7; }
.prod-fig svg:last-child { position: relative; }
.prod h3 { font-size: 18px; font-weight: 700; }
.prod h3 a:hover { color: var(--clay); }
.prod p { font-size: 14px; color: var(--gray); flex: 1; line-height: 1.8; }
.prod-link { font-size: 14px; font-weight: 600; color: var(--clay); }

/* ===== Three ===== */
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.three { background: var(--card); border-radius: var(--radius); padding: 30px 26px; }
.three-dot { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--c, var(--clay)); margin-bottom: 14px; }
.three h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.three p { font-size: 14px; color: var(--gray); line-height: 1.95; }

/* ===== Samples ===== */
.sample-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sample {
  background: var(--card); border-radius: var(--radius); padding: 0 0 22px;
  overflow: hidden; border-bottom: 4px solid var(--c, var(--clay));
}
.sample-swatch { position: relative; display: block; height: 84px; background: var(--stone-2); }
.sample b { display: block; font-size: 20px; font-weight: 800; padding: 16px 22px 0; }
.sample-meta { display: block; font-family: var(--mono); font-size: 12px; color: var(--gray); padding: 0 22px; }
.sample p { font-size: 13.5px; color: var(--gray); padding: 8px 22px 0; line-height: 1.8; }

/* ===== Notes ===== */
.note-list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.note-row {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 14px;
  padding: 15px 24px; border-bottom: 1px solid var(--line); transition: background .16s ease;
}
.note-row:last-child { border-bottom: 0; }
.note-row:hover { background: var(--stone-2); }
.note-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--moss); }
.note-row h3 { font-size: 16px; font-weight: 500; }
.note-row:hover h3 { color: var(--clay); }
.note-row time { font-family: var(--mono); font-size: 12px; color: var(--gray); }

/* ===== CTA ===== */
.cta-slab {
  position: relative; margin: 58px 0; background: var(--card); border-radius: 26px;
  padding: 38px 36px; overflow: hidden; box-shadow: 0 10px 30px rgba(60,56,48,.07);
}
.cta-chips { position: absolute; inset: 0; opacity: .5; }
.cta-body { position: relative; }
.cta-slab h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.cta-slab p { font-size: 14px; color: var(--gray); margin-top: 8px; max-width: 42em; }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 20px; }
.cta-phone { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--clay); }

/* ===== Page hero / inner ===== */
.page-hero { background: var(--card); border-bottom: 1px solid var(--line); padding: 38px 0; }
.page-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.breadcrumbs { margin-top: 6px; font-size: 13px; color: var(--gray); }
.breadcrumbs a:hover { color: var(--clay); }

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

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 94px; }
.sidebar-cta { background: var(--clay); color: #fff; border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.sidebar-cta h3 { font-size: 17px; font-weight: 700; }
.sidebar-cta p { font-size: 13px; color: #f2ded6; margin: 8px 0 12px; }
.sidebar-cta strong { display: block; font-family: var(--mono); font-size: 21px; margin-bottom: 14px; }
.sidebar-cta .btn { width: 100%; background: #fff; color: var(--clay); border-color: #fff; }
.widget { background: var(--card); border-radius: var(--radius); padding: 22px; }
.widget-title { font-size: 16px; font-weight: 800; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--line); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.widget li a { font-size: 14px; color: #57524a; }
.widget li a:hover { color: var(--clay); }

.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; min-width: 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--stone); font-family: inherit; font-size: 14px; }
.search-field:focus { outline: none; border-color: var(--clay); }
.search-submit { padding: 10px 20px; border: 1px solid var(--clay); border-radius: 22px; background: var(--clay); color: #fff; font-weight: 600; cursor: pointer; }

/* ===== Comments ===== */
.comments-area { margin-top: 26px; background: var(--card); border-radius: var(--radius); 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; }
.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 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--stone); font-family: inherit; font-size: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--clay); }
.comment-form .submit { padding: 12px 30px; border: 0; border-radius: 24px; background: var(--clay); color: #fff; font-weight: 700; cursor: pointer; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 84px 0; }
.error-code { font-family: var(--mono); font-size: 88px; font-weight: 800; color: var(--clay); 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(--card); 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: 46px 0 34px; }
.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(--clay); 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: #57524a; }
.footer-col a:hover { color: var(--clay); }
.footer-contact li { font-size: 14px; display: flex; gap: 8px; color: var(--gray); }
.footer-contact b { color: var(--ink); font-weight: 600; min-width: 34px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 15px 0; font-size: 13px; 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: 34px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .three-grid { grid-template-columns: 1fr; }
  .sample-grid { grid-template-columns: repeat(2, 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: 50%; cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2px; background: var(--ink); }
  .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 16px; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
  .prod-grid, .sample-grid { grid-template-columns: 1fr; }
  .note-row { grid-template-columns: 14px 1fr; }
  .note-row time { display: none; }
  .cta-slab { padding: 30px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
}
