/* ============================================================
   和风家居设计 · Wafu Home
   日式和风 / 配色：米白 #f5efe6 · 木色 #b99a6b · 靛蓝 #2b4a72
   ============================================================ */
:root {
  --rice: #f5efe6;
  --wood: #b99a6b;
  --indigo: #2b4a72;
  --ink: #3a3128;
  --line: rgba(43, 74, 114, .25);
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Microsoft YaHei", "PingFang SC", sans-serif;
  --serif: Georgia, "Songti SC", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(rgba(185,154,107,.18) 1px, transparent 1.2px) 0 0/22px 22px,
    var(--rice);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 障子格栅背景 ---------- */
.shoji-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 68px, rgba(185,154,107,.5) 68px 74px, transparent 74px 150px);
}
.shoji-bg::after {
  content: ""; position: fixed; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(245,239,230,.32) 0 10px, rgba(245,239,230,0) 10px 74px),
              repeating-linear-gradient(0deg, rgba(185,154,107,.12) 0 4px, transparent 4px 44px);
  opacity: .5;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 13px 38px; font-size: 15px; letter-spacing: 4px;
  cursor: pointer; transition: .35s; border: 1px solid transparent;
}
.btn-indigo { background: var(--indigo); color: var(--rice); border-color: var(--indigo); }
.btn-indigo:hover { background: transparent; color: var(--indigo); }
.btn-ghost { background: transparent; color: var(--rice); border-color: rgba(245,239,230,.6); }
.btn-ghost:hover { background: rgba(245,239,230,.15); }
.btn-paper { background: var(--rice); color: var(--indigo); border-color: var(--rice); }
.btn-paper:hover { background: transparent; color: var(--rice); }
.btn-block { width: 100%; }

/* ---------- 导航 ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245, 239, 230, .9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav.scrolled { box-shadow: 0 6px 20px rgba(43,74,114,.12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; color: inherit; }
.logo-mark {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--rice); background: var(--indigo); border-radius: 50%;
}
.logo-text { font-size: 20px; letter-spacing: 6px; color: var(--indigo); font-weight: 500; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { position: relative; font-size: 15px; letter-spacing: 3px; color: var(--ink); padding: 6px 0; }
.nav-links a::before {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scaleX(0);
  width: 100%; height: 2px; background: var(--wood); transition: .3s; transform-origin: center;
}
.nav-links a:hover, .nav-links a.active { color: var(--indigo); }
.nav-links a:hover::before, .nav-links a.active::before { transform: translateX(-50%) scaleX(1); }
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--indigo); margin: 5px 0; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero 圆窗 ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 100px 0 60px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(43,74,114,.88), rgba(43,74,114,.72)),
    url('../images/hero.jpg') center/cover;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; color: var(--rice); }
.zen-kicker { letter-spacing: 8px; font-size: 14px; color: var(--wood); }
.hero-title {
  font-size: clamp(40px, 6vw, 72px); font-weight: 300; line-height: 1.25;
  letter-spacing: 10px; margin: 18px 0; color: var(--rice);
}
.hero-sub { max-width: 460px; color: rgba(245,239,230,.85); margin-bottom: 34px; letter-spacing: 1px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* 圆形窗棂 */
.round-window {
  position: relative; width: 300px; height: 300px; border-radius: 50%; overflow: hidden;
  border: 12px solid var(--wood); box-shadow: 0 0 0 4px rgba(185,154,107,.4), 0 20px 40px rgba(0,0,0,.35);
  margin: 0 auto;
}
.round-window.large { width: 360px; height: 360px; }
.round-window.small { width: 220px; height: 220px; }
.window-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.window-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(43,74,114,.35) 0 4px, transparent 4px 46px),
    linear-gradient(0deg, rgba(43,74,114,.25) 0 3px, transparent 3px 46px);
}
.window-caption { text-align: center; color: var(--wood); letter-spacing: 6px; margin-top: 16px; font-size: 13px; }

/* ---------- 章节 ---------- */
.section { padding: 96px 0; }
.section-alt { background: rgba(185,154,107,.1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.head-kicker { display: block; color: var(--wood); letter-spacing: 8px; font-size: 14px; margin-bottom: 10px; }
.section-head h2 {
  font-size: 36px; font-weight: 300; color: var(--indigo); letter-spacing: 8px;
  display: inline-block; padding: 0 20px;
  background: repeating-linear-gradient(90deg, var(--wood) 0 2px, transparent 2px 8px) 0 100%/100% 3px no-repeat;
  padding-bottom: 14px;
}
.section-head p { margin-top: 16px; color: #7a6a52; font-size: 15px; }

/* ---------- 和风之道 ---------- */
.way-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.way-card {
  background: rgba(245,239,230,.6); border: 1px solid var(--line); padding: 34px 24px; text-align: center;
  position: relative; transition: .35s;
}
.way-card::after {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(185,154,107,.4); pointer-events: none;
}
.way-card:hover { transform: translateY(-8px); box-shadow: 0 16px 30px rgba(43,74,114,.14); }
.way-char { font-size: 44px; color: rgba(43,74,114,.18); display: block; line-height: 1; margin-bottom: 10px; }
.way-card h3 { font-size: 18px; color: var(--indigo); letter-spacing: 4px; font-weight: 500; margin-bottom: 8px; }
.way-card p { font-size: 14px; color: #7a6a52; }

/* ---------- 服务 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--rice); border: 1px solid var(--line); padding: 30px 24px;
  position: relative; transition: .35s; display: block; color: inherit;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--wood); box-shadow: 0 16px 30px rgba(43,74,114,.12); }
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(185,154,107,.5) 0 3px, transparent 3px 9px) 0 0/100% 100% no-repeat;
  background-size: 100% 6px; background-position: bottom; opacity: .6;
}
.sv-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.sv-num { color: var(--wood); font-size: 20px; }
.service-card h3 { font-size: 18px; color: var(--indigo); letter-spacing: 3px; font-weight: 500; }
.service-card p { font-size: 14px; color: #7a6a52; margin-bottom: 12px; }
.sv-more { font-size: 13px; color: var(--wood); letter-spacing: 2px; }

/* ---------- 作品 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.work-card {
  position: relative; background: var(--rice); padding: 10px;
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, rgba(185,154,107,.5) 0 3px, transparent 3px 9px),
                    repeating-linear-gradient(90deg, rgba(185,154,107,.5) 0 3px, transparent 3px 9px);
  background-size: 100% 3px, 100% 3px;
  background-position: top, bottom;
  background-repeat: no-repeat;
}
.work-card::before, .work-card::after {
  content: ""; position: absolute; width: 3px; top: 0; bottom: 0;
  background: repeating-linear-gradient(90deg, rgba(185,154,107,.5) 0 3px, transparent 3px 9px);
}
.work-card::before { left: 0; }
.work-card::after { right: 0; }
.work-img { height: 300px; background-size: cover; background-position: center; filter: saturate(.85); }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-card figcaption { text-align: center; padding: 16px 10px 10px; }
.work-card h3 { font-size: 19px; color: var(--indigo); font-weight: 500; letter-spacing: 3px; }
.work-card p { font-size: 13px; color: #9b8a6b; letter-spacing: 2px; margin-top: 4px; }
.more-wrap { text-align: center; margin-top: 50px; }

/* ---------- 联系 CTA ---------- */
.contact-cta { background: var(--indigo); }
.cta-inner { text-align: center; color: var(--rice); position: relative; padding: 30px 0; }
.cta-seal {
  display: inline-block; width: 78px; height: 78px; line-height: 78px; text-align: center;
  border: 2px solid var(--rice); border-radius: 50%; color: var(--rice);
  font-size: 18px; letter-spacing: 4px; margin-bottom: 20px; background: rgba(245,239,230,.08);
}
.cta-inner h2 { font-size: 34px; font-weight: 300; letter-spacing: 8px; margin-bottom: 12px; }
.cta-inner p { color: rgba(245,239,230,.8); margin-bottom: 28px; letter-spacing: 1px; }

/* ---------- 页面横幅 ---------- */
.page-banner {
  position: relative; min-height: 46vh; display: flex; align-items: center; justify-content: center;
  padding-top: 72px; text-align: center; color: var(--rice);
  background-position: center; background-size: cover;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,74,114,.82), rgba(43,74,114,.6));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 44px; font-weight: 300; letter-spacing: 12px; }
.page-banner p { color: var(--wood); letter-spacing: 8px; margin-top: 10px; font-size: 14px; }

/* ---------- 关于 ---------- */
.idea-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.idea-text .head-kicker { text-align: left; }
.idea-text h2 { font-size: 32px; font-weight: 300; color: var(--indigo); letter-spacing: 6px; margin-bottom: 18px; }
.idea-text p { color: #7a6a52; margin-bottom: 14px; }
.idea-text blockquote {
  border-left: 3px solid var(--wood); padding: 10px 18px; margin-top: 18px;
  color: var(--indigo); letter-spacing: 2px; font-style: italic;
  background: rgba(185,154,107,.12);
}

/* ---------- 数据 ---------- */
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.counter { padding: 26px 10px; border-top: 3px double var(--wood); border-bottom: 3px double var(--wood); }
.counter strong { font-size: 52px; font-weight: 300; color: var(--indigo); }
.counter span { display: block; color: var(--wood); letter-spacing: 4px; font-size: 14px; margin-top: 6px; }

/* ---------- 团队 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { background: var(--rice); border: 1px solid var(--line); text-align: center; padding: 0 0 20px; overflow: hidden; transition: .35s; }
.team-card:hover { transform: translateY(-8px); box-shadow: 0 16px 30px rgba(43,74,114,.12); }
.team-photo { height: 240px; background-size: cover; background-position: center; filter: saturate(.85); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 19px; color: var(--indigo); margin-top: 16px; letter-spacing: 3px; font-weight: 500; }
.team-card p { font-size: 13px; color: var(--wood); margin: 4px 0 6px; }
.team-card span { font-size: 13px; color: #7a6a52; padding: 0 18px; display: block; }

/* ---------- 历程 ---------- */
.timeline-list { position: relative; max-width: 760px; margin: 0 auto; }
.timeline-list::before {
  content: ""; position: absolute; left: 140px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, var(--wood) 0 6px, transparent 6px 12px);
}
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; position: relative; padding: 16px 0; }
.tl-item::before {
  content: "○"; position: absolute; left: 131px; top: 20px; color: var(--wood);
  background: var(--rice); border-radius: 50%;
}
.tl-year { text-align: right; color: var(--wood); letter-spacing: 2px; font-size: 16px; }
.tl-item p { color: #7a6a52; }

/* ---------- 荣誉资质 ---------- */
.honors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.honor-card {
  background: var(--rice); border: 1px solid var(--line); padding: 30px 24px; text-align: center;
  position: relative; transition: .35s; display: block; color: inherit;
}
.honor-card:hover { transform: translateY(-8px); box-shadow: 0 16px 30px rgba(43,74,114,.12); }
.honor-card img { width: 100%; height: 150px; object-fit: cover; margin-bottom: 16px; }
.honor-card h3 { font-size: 17px; color: var(--indigo); font-weight: 500; letter-spacing: 2px; margin-bottom: 8px; }
.honor-card p { font-size: 14px; color: #7a6a52; margin-bottom: 6px; }
.honor-card time { font-size: 12px; color: var(--wood); letter-spacing: 2px; }

/* ---------- 产品页 ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.product-card {
  background: var(--rice); border: 1px solid var(--line); overflow: hidden; transition: .35s;
  background-image:
    repeating-linear-gradient(90deg, rgba(185,154,107,.5) 0 3px, transparent 3px 9px);
  background-size: 100% 4px;
  background-position: bottom;
  background-repeat: no-repeat;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 18px 34px rgba(43,74,114,.14); }
.product-img { height: 230px; background-size: cover; background-position: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 22px; position: relative; }
.tag { display: inline-block; font-size: 12px; color: var(--wood); letter-spacing: 3px; border: 1px solid var(--wood); padding: 2px 10px; }
.product-body h3 { font-size: 20px; color: var(--indigo); font-weight: 500; letter-spacing: 3px; margin: 12px 0 8px; }
.product-body h3 a { color: inherit; text-decoration: none; }
.product-body h3 a:hover { color: var(--wood); }
.product-body p { font-size: 14px; color: #7a6a52; }
.price { margin-top: 10px; color: var(--indigo) !important; font-weight: 600; letter-spacing: 1px; }

/* ---------- 流程 ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.p-step { text-align: center; background: var(--rice); border: 1px solid var(--line); padding: 26px 14px; position: relative; }
.p-step span { font-size: 30px; color: rgba(185,154,107,.6); }
.p-step h3 { font-size: 17px; color: var(--indigo); font-weight: 500; letter-spacing: 4px; margin: 8px 0 6px; }
.p-step p { font-size: 13px; color: #7a6a52; }
.p-step::after { content: "›"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); color: var(--wood); font-size: 22px; }
.p-step:last-child::after { display: none; }

/* ---------- 新闻页 ---------- */
.news-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.news-filter button {
  background: transparent; border: 1px solid var(--indigo); color: var(--indigo);
  padding: 8px 24px; font-size: 14px; letter-spacing: 3px; cursor: pointer; transition: .3s;
}
.news-filter button.active, .news-filter button:hover { background: var(--indigo); color: var(--rice); }
.news-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.news-item {
  display: grid; grid-template-columns: 300px 1fr; background: var(--rice);
  border: 1px solid var(--line); transition: .35s; overflow: hidden;
}
.news-item:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(43,74,114,.12); }
.news-img { min-height: 200px; background-size: cover; background-position: center; }
.news-img img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.news-body { padding: 24px; position: relative; }
.news-body time { font-size: 13px; color: var(--wood); letter-spacing: 2px; }
.cat { float: right; font-size: 12px; color: var(--rice); background: var(--indigo); padding: 2px 10px; letter-spacing: 2px; }
.news-item h3 { font-size: 19px; color: var(--indigo); font-weight: 500; line-height: 1.6; margin: 10px 0 8px; }
.news-item h3 a { color: inherit; text-decoration: none; }
.news-item h3 a:hover { color: var(--wood); }
.news-item p { font-size: 14px; color: #7a6a52; }
.news-item a { display: inline-block; margin-top: 12px; color: var(--wood); letter-spacing: 2px; font-size: 14px; }
.news-item a:hover { color: var(--indigo); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-info .head-kicker { text-align: left; }
.contact-info h2 { font-size: 32px; font-weight: 300; color: var(--indigo); letter-spacing: 6px; margin-bottom: 14px; }
.contact-info > p { color: #7a6a52; margin-bottom: 22px; }
.contact-list li { padding: 12px 0; border-bottom: 1px dotted var(--line); font-size: 15px; }
.contact-list b { display: inline-block; min-width: 84px; color: var(--indigo); letter-spacing: 2px; font-weight: 500; }
.contact-zen { margin-top: 22px; text-align: center; }
.contact-zen p { color: var(--wood); letter-spacing: 3px; margin-top: 10px; font-size: 13px; }
.contact-form-wrap {
  background: var(--rice); border: 1px solid var(--line); padding: 40px 36px;
  box-shadow: 0 18px 40px rgba(43,74,114,.1);
  background-image: repeating-linear-gradient(90deg, rgba(185,154,107,.35) 0 2px, transparent 2px 8px);
  background-size: 100% 4px;
  background-position: top;
  background-repeat: no-repeat;
}
.contact-form-wrap h3 { font-size: 24px; font-weight: 300; color: var(--indigo); letter-spacing: 6px; margin-bottom: 6px; }
.contact-form-wrap > p { color: #7a6a52; font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--indigo); margin-bottom: 6px; letter-spacing: 2px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 15px;
  border: 1px solid var(--line); background: rgba(245,239,230,.5); color: var(--ink); transition: .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--wood); background: #fff; }
.err { display: none; color: #a52a2a; font-size: 12px; margin-top: 4px; }
.field.invalid input, .field.invalid textarea { border-color: #a52a2a; }
.field.invalid .err { display: block; }
.form-tip { text-align: center; margin-top: 14px; font-weight: 600; letter-spacing: 2px; }
.form-success { display: none; background: #e8f7ee; border: 1px solid #a5e0bd; color: #1e7a44; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: .9rem; }
.form-success.show { display: block; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--indigo); color: rgba(245,239,230,.85); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { width: 46px; height: 46px; font-size: 24px; background: var(--rice); color: var(--indigo); }
.footer-brand h3 { font-size: 20px; letter-spacing: 4px; color: var(--rice); font-weight: 500; }
.footer-brand p { color: rgba(245,239,230,.55); font-size: 13px; letter-spacing: 2px; margin-top: 4px; }
.footer-links, .footer-info { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4, .footer-info h4 { color: var(--wood); letter-spacing: 4px; font-weight: 500; margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: rgba(245,239,230,.85); }
.footer-links a:hover { color: var(--wood); }
.footer-info p { font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(245,239,230,.15); text-align: center; padding: 18px; font-size: 13px; color: rgba(245,239,230,.5); }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--wood);
  background: var(--indigo); color: var(--rice); font-size: 18px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: .35s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 滚动动画 ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- 分类筛选 ---------- */
.cat-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.cat-tab {
  background: transparent; border: 1px solid var(--indigo); color: var(--indigo);
  padding: 8px 24px; font-size: 14px; letter-spacing: 3px; cursor: pointer; transition: .3s;
  font-family: inherit;
}
.cat-tab.active, .cat-tab:hover { background: var(--indigo); color: var(--rice); }

/* ---------- CMS 适配 ---------- */
.cms-section { padding: 80px 24px; }
.cms-detail { max-width: 900px; margin: 0 auto; }
.cms-detail > img { margin: 0 auto 12px; max-width: 100%; }
.cms-detail h1 { font-size: 2rem; margin: 18px 0; color: var(--indigo); }
.cms-detail .lead { color: #7a6a52; margin-bottom: 20px; font-size: 1.05rem; }
.cms-detail .news-date-label { display: inline-block; background: var(--indigo); color: var(--wood); font-size: .82rem; font-weight: 800; padding: 4px 14px; letter-spacing: 2px; }
.cms-content h2 { font-size: 1.5rem; margin: 24px 0 12px; color: var(--indigo); }
.cms-content h3 { font-size: 1.25rem; margin: 20px 0 10px; color: var(--indigo); }
.cms-content p, .cms-content ul, .cms-content li { color: #7a6a52; margin-bottom: 15px; line-height: 1.9; }
.cms-content ul { padding-left: 18px; list-style: disc; }
.cms-content img { max-width: 100%; }
.cms-back { display: inline-block; color: var(--wood); font-size: .9rem; font-weight: 700; margin-bottom: 20px; }
.cms-back:hover { color: var(--indigo); }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { color: #7a6a52; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.spec-list li b { color: var(--indigo); }
.cms-pager { padding: 30px 0; text-align: center; }
.cms-pager .pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.cms-pager .page-link { padding: 10px 16px; border: 1px solid var(--line); background: var(--rice); color: var(--indigo); font-size: 14px; transition: .3s; display: inline-block; }
.cms-pager .page-link:hover { border-color: var(--wood); color: var(--wood); }
.cms-pager .page-item.active .page-link { background: var(--indigo); border-color: var(--indigo); color: var(--rice); }
.cms-pager .page-item.disabled .page-link { opacity: .5; pointer-events: none; }
.cms-grid { display: grid; gap: 24px; }
.cms-card { background: var(--rice); border: 1px solid var(--line); padding: 24px; display: block; transition: .3s; }
.cms-card:hover { border-color: var(--wood); transform: translateY(-4px); }
.cms-card h3 { color: var(--indigo); font-size: 1.05rem; margin-bottom: 8px; }
.cms-card p { color: #7a6a52; font-size: .9rem; }
.form-alert-err { background: #fdecea; border: 1px solid #f3c6c0; color: #b23b35; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; }
.form-alert-err li { color: #b23b35; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .way-grid, .services-grid, .team-grid, .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid, .products-grid, .news-list-grid, .idea-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto 30px; }
  .hero-actions { justify-content: center; }
  .idea-text .head-kicker { text-align: center; }
  .honors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: var(--rice);
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 16px 24px; border-bottom: 1px dotted var(--line); }
  .section { padding: 64px 0; }
  .round-window { width: 240px; height: 240px; }
  .round-window.large { width: 280px; height: 280px; }
  .timeline-list::before { left: 20px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 44px; }
  .tl-year { text-align: left; }
  .tl-item::before { left: 12px; }
  .news-item { grid-template-columns: 1fr; }
  .news-img { height: 200px; min-height: 0; }
}
@media (max-width: 520px) {
  .way-grid, .services-grid, .team-grid, .counters-grid, .process-grid, .honors-grid { grid-template-columns: 1fr; }
  .p-step::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===== CMS global link-color reset (fixes default blue/underline) ===== */
a:has(h1), a:has(h2), a:has(h3), a:has(h4), a:has(img),
a.logo, a.logo *, .logo, .logo *,
a.news-thumb, a.news-thumb *, a.prod-thumb, a.prod-thumb *,
a.img-wrap, a.img-wrap *, a.thumb, a.thumb *, a.cover, a.cover *,
a[style*='background-image'], a[style*='background'],
a.card, a.card *, a.work-card, a.work-card *, a.product-card, a.product-card *,
a.news-card, a.news-card *, a.news-item, a.news-item *, a.case-card, a.case-card *,
a.service-card, a.service-card *, a.svc-card, a.svc-card *, a.item-card, a.item-card * {
  color: inherit !important;
  text-decoration: none !important;
}
a:has(h1):hover, a:has(h2):hover, a:has(h3):hover, a:has(h4):hover,
a.logo:hover, .logo:hover, a.card:hover, a.card *:hover,
a.news-thumb:hover, a.prod-thumb:hover, a.work-card:hover, a.product-card:hover,
a.news-card:hover, a.news-item:hover, a.case-card:hover, a.service-card:hover { color: inherit !important; }
a.prod-img-link, a.prod-img-link *,
a.img-link, a.img-link *, a.thumb-link, a.thumb-link *,
a.cover-link, a.cover-link *, a.media-link, a.media-link *,
a[class*='-thumb'], a[class*='-img'], a[class*='-cover'],
a[class*='thumb-'], a[class*='img-'],
a.img-side, a.img-side *, a.pic, a.pic *, a.pic-link, a.pic-link * {
  color: inherit !important;
  text-decoration: none !important;
}
/* ===== CMS heading-link reset (anchor inside heading) ===== */
h1 a, h2 a, h3 a, h4 a, h5 a {
  color: inherit !important;
  text-decoration: none !important;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover { color: inherit !important; }
