/*
Theme Name: 陈正庆室内设计
Theme URI: https://www.cqczqzs.com
Author: 陈正庆（重庆）室内设计有限公司
Author URI: https://www.cqczqzs.com
Description: 陈正庆室内设计官方主题，专注住宅、别墅与商业空间全案设计。支持自定义器编辑内容、案例展示、装修知识与SEO/GEO优化。
Version: 1.0
License: GPL v2 or later
Text Domain: czq-design
*/

/* ============================================
   基础样式
   ============================================ */
:root {
  --dark: #1a1917;
  --darker: #11100f;
  --accent: #b9955f;
  --accent-light: #d8bc89;
  --cream: #f7f5f0;
  --white: #ffffff;
  --text: #3a3835;
  --muted: #7a766f;
  --line: #e8e4dc;
  /* SEO/GEO 修正：改用系统中文字体栈，移除 Google Fonts 境外请求依赖 */
  --serif: 'Songti SC', 'STSong', 'SimSun', 'Noto Serif CJK SC', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Hiragino Sans GB', sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: var(--sans); color: var(--text); background: var(--white);
  line-height: 1.8; font-size: 15px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 120px 0; }
.accent { color: var(--accent-light); }
.accent-text { color: var(--accent); }

/* 标题 */
.section-heading { margin-bottom: 60px; }
.section-heading.center { text-align: center; }
.section-heading.left { text-align: left; }
.section-heading .subtitle { display: block; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1.35; color: var(--dark); letter-spacing: .02em; }
.section-heading p { color: var(--muted); margin-top: 16px; font-size: 15px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 32px; font-size: 14px; font-weight: 500; letter-spacing: .05em; border: 1px solid transparent; cursor: pointer; transition: .35s ease; white-space: nowrap; }
.btn-gold { background: var(--accent); color: #1a1712; }
.btn-gold:hover { background: var(--accent-light); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(185,149,95,.3); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; padding: 10px 24px; }
.btn-outline:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn .arrow { transition: transform .35s; }
.btn:hover .arrow { transform: translateX(5px); }

/* WordPress 管理栏 */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ============================================
   头部导航
   ============================================ */
.site-header { position: fixed; top: 0; left: 0; right: 0; height: 86px; z-index: 1000; display: flex; align-items: center; background: linear-gradient(180deg, rgba(12,11,10,.55), rgba(12,11,10,0)); transition: background .4s, box-shadow .4s, height .4s; }
.site-header.scrolled { height: 72px; background: rgba(18,17,16,.97); box-shadow: 0 4px 30px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; line-height: 1; position: relative; }
.logo-mark::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(185,149,95,.35); }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.logo-text strong span { font-size: 15px; font-weight: 400; margin-left: 4px; }
.logo-text small { font-size: 8px; letter-spacing: .12em; color: rgba(255,255,255,.6); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-link { color: rgba(255,255,255,.82); font-size: 14px; position: relative; padding: 8px 0; transition: color .3s; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width .35s; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-cta { margin-left: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; background: transparent; border: 1px solid rgba(255,255,255,.35); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: #fff; transition: .35s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('assets/images/hero.jpg') center/cover no-repeat; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,9,.88) 0%, rgba(12,12,11,.62) 45%, rgba(12,12,11,.2) 100%), linear-gradient(0deg, rgba(10,10,9,.55) 0%, transparent 40%); }
.hero-content { position: relative; z-index: 2; padding-top: 80px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-text { max-width: 760px; }
.hero-eyebrow { font-size: 12px; letter-spacing: .28em; color: var(--accent-light); text-transform: uppercase; margin-bottom: 26px; font-weight: 500; }
/* SEO/GEO 修正：H1 承载核心业务词，字号适当缩小以适应文案；原抒情标语降级为 hero-slogan */
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 62px); line-height: 1.3; font-weight: 600; letter-spacing: .02em; margin-bottom: 14px; }
.hero-slogan { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 34px); line-height: 1.4; color: rgba(255,255,255,.9); letter-spacing: .12em; margin-bottom: 24px; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,.78); line-height: 2; margin-bottom: 44px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-foot { position: absolute; bottom: 46px; left: 24px; display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.55); }
.hero-foot-line { width: 50px; height: 1px; background: var(--accent); position: relative; }

/* 数据条 */
.stats { background: var(--cream); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; position: relative; padding: 8px 0; }
.stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 12%; height: 76%; width: 1px; background: #ddd8ce; }
.stat-num { font-family: var(--serif); font-size: 48px; font-weight: 600; color: var(--dark); line-height: 1.2; }
.stat-num em { font-style: normal; font-size: 20px; color: var(--accent); margin-left: 3px; }
.stat p { color: var(--muted); font-size: 13px; letter-spacing: .1em; margin-top: 6px; }

/* 关于我们 */
.about { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-images { position: relative; padding: 0 40px 40px 0; }
.about-img-main { height: 560px; overflow: hidden; box-shadow: var(--shadow); }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.about-images:hover .about-img-main img { transform: scale(1.05); }
.about-img-sub { position: absolute; bottom: 0; right: 0; width: 46%; height: 260px; border: 8px solid #fff; box-shadow: var(--shadow); overflow: hidden; }
.about-img-sub img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; top: 30px; left: -6px; width: 108px; height: 108px; border-radius: 50%; background: var(--accent); color: #1a1712; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(185,149,95,.35); }
.about-badge strong { font-family: var(--serif); font-size: 32px; line-height: 1; }
.about-badge span { font-size: 10px; text-align: center; line-height: 1.4; margin-top: 4px; }
.about-content .section-heading { margin-bottom: 28px; }
.about-content .lead { font-size: 16px; color: var(--dark); font-weight: 500; margin-bottom: 18px; line-height: 1.9; }
.about-content > p:not(.lead) { color: var(--muted); margin-bottom: 28px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-bottom: 32px; }
.feature { display: flex; gap: 12px; }
.feature-icon { color: var(--accent); font-size: 18px; line-height: 1.5; }
.feature h4 { font-size: 15px; color: var(--dark); font-weight: 600; margin-bottom: 2px; }
.feature p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.link-arrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .05em; }
.link-arrow span { display: inline-block; margin-left: 8px; transition: transform .3s; }
.link-arrow:hover span { transform: translateX(6px); }

/* 服务项目 */
.services { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { background: #fff; padding: 40px 30px 36px; position: relative; border: 1px solid transparent; transition: .4s ease; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: #eee8dc; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; margin-bottom: 26px; color: var(--accent); }
.service-icon svg { width: 100%; height: 100%; }
.service-no { position: absolute; top: 30px; right: 28px; font-family: var(--serif); font-size: 30px; color: #efe9dd; }
.service-card h3 { font-family: var(--serif); font-size: 19px; color: var(--dark); margin-bottom: 14px; font-weight: 600; }
.service-card p { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.service-card ul li { font-size: 12px; color: var(--muted); padding-left: 14px; position: relative; line-height: 2.2; }
.service-card ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

/* 案例展示 */
.filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 42px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--line); padding: 9px 24px; font-size: 13px; color: var(--muted); cursor: pointer; transition: .3s; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #1a1712; font-weight: 600; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-item { position: relative; height: 420px; overflow: hidden; cursor: pointer; transition: opacity .4s, transform .4s; }
.portfolio-item.hide { display: none; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,9,.88) 0%, rgba(10,10,9,.15) 50%, transparent 100%); opacity: .9; transition: opacity .4s; }
.portfolio-item figcaption { position: absolute; left: 30px; right: 30px; bottom: 30px; z-index: 2; color: #fff; transform: translateY(8px); transition: transform .4s; }
.portfolio-item:hover figcaption { transform: translateY(0); }
.portfolio-item figcaption span { font-size: 11px; letter-spacing: .15em; color: var(--accent-light); }
.portfolio-item figcaption h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 8px 0 4px; }
.portfolio-item figcaption p { font-size: 12px; color: rgba(255,255,255,.65); }

/* 设计流程 */
.process { background: var(--darker); color: #fff; position: relative; overflow: hidden; }
.process .section-heading h2 { color: #fff; }
.process .section-heading .subtitle { color: var(--accent); }
.process .section-heading p { color: rgba(255,255,255,.5); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 30px; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, transparent, rgba(185,149,95,.45), transparent); }
.step { text-align: center; position: relative; }
.step-num { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 24px; border: 1px solid var(--accent); border-radius: 50%; font-family: var(--serif); font-size: 20px; color: var(--accent); background: var(--darker); position: relative; z-index: 2; transition: .4s; }
.step:hover .step-num { background: var(--accent); color: #1a1712; }
.step h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.9; }

/* 客户评价 */
.testimonials { background: var(--cream); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: #fff; padding: 42px 34px 34px; position: relative; transition: .4s; border: 1px solid transparent; }
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #eee8dc; }
.quote-mark { font-family: var(--serif); font-size: 68px; color: #e9dfcc; line-height: .6; height: 36px; }
.testimonial > p { color: var(--muted); font-size: 14px; line-height: 2; margin: 20px 0 28px; }
.client { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #1a1712; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.client h4 { font-size: 14px; color: var(--dark); font-weight: 600; }
.client small { font-size: 11px; color: var(--muted); }
.stars { margin-left: auto; color: var(--accent); font-size: 12px; letter-spacing: 2px; }

/* FAQ */
.faq { background: var(--cream); }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 12px; border: 1px solid transparent; transition: .3s; }
.faq-item:hover { border-color: #eee8dc; }
.faq-item summary { padding: 22px 28px; cursor: pointer; list-style: none; font-size: 15px; color: var(--dark); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--accent); font-size: 22px; line-height: 1; transition: transform .3s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 28px 24px; color: var(--muted); font-size: 14px; line-height: 2; }

/* 装修知识 */
.knowledge { background: #fff; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.knowledge-card { background: var(--cream); transition: .4s; border: 1px solid transparent; }
.knowledge-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: #eee8dc; }
.knowledge-img { height: 220px; overflow: hidden; }
.knowledge-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.knowledge-card:hover .knowledge-img img { transform: scale(1.06); }
.knowledge-body { padding: 26px 26px 30px; }
.knowledge-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.knowledge-cat { font-size: 11px; color: var(--accent); letter-spacing: .08em; border: 1px solid var(--accent); padding: 3px 10px; }
.knowledge-meta time { font-size: 11px; color: var(--muted); }
.knowledge-body h3 { font-family: var(--serif); font-size: 19px; color: var(--dark); line-height: 1.5; margin-bottom: 12px; font-weight: 600; }
.knowledge-summary { font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 16px; }
.knowledge-more a, .knowledge-more summary { color: var(--accent); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.knowledge-more a:hover { color: var(--dark); }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.contact-info .section-heading { margin-bottom: 26px; }
.contact-info > p { color: var(--muted); margin-bottom: 36px; }
.contact-list { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { color: var(--accent); font-size: 18px; line-height: 1.6; }
.contact-item small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.contact-item strong { font-size: 15px; color: var(--dark); font-weight: 500; }
.contact-item strong a { color: inherit; text-decoration: none; transition: color .3s; }
.contact-item strong a:hover { color: var(--accent); }
.contact-form-area { background: var(--cream); padding: 46px 44px; }
.contact-form-area h3 { font-family: var(--serif); font-size: 24px; color: var(--dark); font-weight: 600; margin-bottom: 6px; }
.form-intro { font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; color: var(--dark); margin-bottom: 8px; font-weight: 500; }
.form-group label em { color: #c0504d; font-style: normal; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; background: #fff; border: 1px solid #e4dfd5; color: var(--text); outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #b4afa6; font-size: 13px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185,149,95,.12); }
.form-submit { width: 100%; margin-top: 4px; border: none; }
.form-note { font-size: 13px; margin-top: 14px; min-height: 20px; text-align: center; }
.form-note.success { color: #4a8c5f; }
.form-note.error { color: #c0504d; }

/* 页脚 */
.footer { background: var(--darker); color: rgba(255,255,255,.6); padding: 80px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer-brand p { font-size: 13px; line-height: 2; margin-top: 22px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; letter-spacing: .08em; }
.footer-links a { font-size: 13px; transition: color .3s, padding-left .3s; }
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-contact p { font-size: 13px; line-height: 1.9; }
.footer-contact a { color: inherit; text-decoration: none; }
/* ============================================
   友情链接（底部 footer）
   ============================================ */
.footer-friends { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.footer-friends-label { color: var(--accent); font-weight: 600; flex-shrink: 0; }
.footer-friends-label::after { content: '：'; }
.footer-friends-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-friends-links a { color: rgba(255,255,255,.55); transition: color .3s; }
.footer-friends-links a:hover { color: var(--accent-light); }
@media (max-width: 640px) { .footer-friends { gap: 10px; } .footer-friends-links { gap: 8px 14px; } }

/* ============================================
   E-E-A-T 作者可信度区块（文章页）
   ============================================ */
.article-eeat { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 24px; background: var(--cream); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.eeat-avatar { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--darker); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.eeat-body { flex: 1; min-width: 0; }
.eeat-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--dark); }
.eeat-body p { margin: 0 0 8px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.eeat-meta { font-size: 12px !important; color: var(--accent) !important; }
@media (max-width: 640px) { .article-eeat { padding: 18px; gap: 12px; } .eeat-avatar { width: 42px; height: 42px; font-size: 20px; } }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.4); }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* 悬浮按钮 */
.floating-cta { position: fixed; right: 26px; bottom: 110px; z-index: 500; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #1a1712; display: grid; place-items: center; text-align: center; font-size: 12px; line-height: 1.35; font-weight: 600; box-shadow: 0 10px 30px rgba(185,149,95,.4); transition: transform .3s, background .3s; }
.floating-cta:hover { transform: scale(1.08) translateY(-3px); background: var(--accent-light); }
.back-top { position: fixed; right: 26px; bottom: 32px; z-index: 500; width: 46px; height: 46px; border-radius: 50%; background: #23211e; color: var(--accent); border: 1px solid rgba(185,149,95,.4); font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .35s; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent); color: #1a1712; }

/* 滚动动画 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.services-grid .reveal:nth-child(2), .portfolio-grid .reveal:nth-child(2), .testimonial-grid .reveal:nth-child(2), .knowledge-grid .reveal:nth-child(2) { transition-delay: .1s; }
.services-grid .reveal:nth-child(3), .portfolio-grid .reveal:nth-child(3), .testimonial-grid .reveal:nth-child(3), .knowledge-grid .reveal:nth-child(3) { transition-delay: .2s; }
.services-grid .reveal:nth-child(4), .portfolio-grid .reveal:nth-child(4) { transition-delay: .3s; }

/* 案例详情引导段 */
.case-lead { font-size: 17px; line-height: 2; color: var(--dark); font-weight: 500; padding-left: 20px; border-left: 3px solid var(--accent); margin-bottom: 30px; }

/* 通用内页详情样式（服务/流程页） */
.page-hero p { max-width: 760px; }
.process-step-detail .step-num { font-family: var(--serif); }
.service-detail .service-icon { color: var(--accent); }
@media (max-width: 640px) {
  .service-detail, .process-step-detail { grid-template-columns: 1fr !important; gap: 16px !important; }
  .process-step-detail .step-num { width: 72px !important; height: 72px !important; font-size: 22px !important; }
}

/* 装修知识列表页 */
.knowledge-hero { padding: 40px 0 72px; }
.knowledge-list-section { padding: 70px 0 100px; background: #faf9f6; }
.knowledge-filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }
.knowledge-filters .filter-btn { display: inline-block; }
.knowledge-pagination { margin-top: 50px; display: flex; justify-content: center; }
.knowledge-pagination .page-numbers { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.knowledge-pagination .page-numbers li a, .knowledge-pagination .page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; font-size: 13px;
  background: #fff; border: 1px solid var(--line); color: var(--muted); text-decoration: none;
}
.knowledge-pagination .page-numbers li a:hover { border-color: var(--accent); color: var(--accent); }
.knowledge-pagination .page-numbers li .current { background: var(--accent); border-color: var(--accent); color: #1a1712; font-weight: 600; }

/* 文章页增强 */
.article-header-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.article-header-meta .knowledge-cat { margin: 0; }
.related-section { background: #faf9f6; padding: 70px 0; }
.related-section .section-heading { margin-bottom: 36px; }
.related-section .section-heading h2 { font-size: 30px; }
.article-share { margin-top: 30px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }

/* ============ 内页顶部统一深色系（导航+面包屑+标题区连成一体） ============ */
/* 内页导航：始终深色实底，白色文字清晰（首页仍用透明渐变叠深色大图） */
body.czq-inner .site-header,
body.czq-inner .site-header.scrolled {
  background: #151412;
  box-shadow: 0 4px 30px rgba(0,0,0,.16);
}

/* 面包屑：并入深色区块，文字浅色，与下方 page-hero 无缝衔接 */
.breadcrumb { background: #151412; border-bottom: 1px solid rgba(255,255,255,.06); padding: 104px 0 4px; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .3s; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .sep { color: rgba(255,255,255,.3); }
.breadcrumb .current { color: var(--accent-light); font-weight: 500; }

/* 文章页/内容页标题区：与面包屑同为深色，形成完整深色头部 */
.page-hero { background: #151412; color: #fff; padding: 40px 0 72px; }
.page-hero h1 { font-family: var(--serif); font-size: 44px; font-weight: 600; }
.page-hero p { color: rgba(255,255,255,.6); margin-top: 10px; }
.article-wrap { max-width: 860px; margin: 0 auto; padding: 80px 24px; }
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.article-content { font-size: 16px; line-height: 2.1; color: var(--text); }
.article-content h2 { font-family: var(--serif); font-size: 26px; margin: 40px 0 16px; color: var(--dark); }
.article-content h3 { font-family: var(--serif); font-size: 20px; margin: 30px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content img { margin: 24px 0; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-back { display: inline-block; margin-top: 40px; color: var(--accent); font-weight: 600; }

/* 响应式 */
@media (max-width: 1100px) {
  .nav { gap: 20px; } .nav-link { font-size: 13px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { gap: 60px; }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-grid::before { display: none; }
}
@media (max-width: 900px) {
  .site-header, .site-header.scrolled { height: 72px; }
  .menu-toggle { display: flex; }
  .nav { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(20,19,17,.98); backdrop-filter: blur(12px); padding: 10px 24px 24px; transform: translateY(-150%); opacity: 0; visibility: hidden; transition: transform .4s ease, opacity .4s ease, visibility .4s; margin: 0; box-shadow: 0 20px 40px rgba(0,0,0,.3); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
  .nav-link::after { display: none; }
  .header-cta { display: none; }
  body.nav-open { overflow: hidden; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-images { max-width: 560px; margin: 0 auto; width: 100%; }
  .portfolio-grid, .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .container { width: min(100% - 36px, 1200px); }
  .hero h1 { font-size: 46px; }
  .hero-desc { font-size: 14px; }
  .hero-foot { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .stat:nth-child(2)::after { display: none; }
  .about-img-main { height: 400px; }
  .about-img-sub { height: 180px; }
  .about-badge { width: 88px; height: 88px; }
  .about-badge strong { font-size: 26px; }
  .about-features { grid-template-columns: 1fr; }
  .services-grid, .portfolio-grid, .knowledge-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .portfolio-item { height: 360px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form-area { padding: 30px 22px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .floating-cta { right: 16px; bottom: 90px; width: 50px; height: 50px; }
  .back-top { right: 16px; bottom: 24px; }
  .page-hero h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
