/* ===== 设计令牌（编辑风 / Editorial） ===== */
:root {
  --paper: #f5f4ef;        /* 暖白纸感 */
  --paper-2: #ecebe3;
  --card: #fbfaf6;
  --ink: #1a1c20;
  --ink-soft: #565a63;
  --ink-faint: #8b8f98;
  --line: #d8d6cc;
  --accent: #b45309;       /* 暖琥珀 / 蝉鸣 */
  --accent-deep: #8a3f07;
  --accent-soft: rgba(180, 83, 9, 0.10);
  --radius: 14px;
  --shadow: 0 14px 40px rgba(26, 28, 32, 0.07);
  --maxw: 1140px;
  --nav-h: 70px;

  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Noto Serif SC", "Newsreader", "Songti SC", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ===== 固定导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(245, 244, 239, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 1000; transition: box-shadow .25s ease, background .25s ease;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 18px; font-family: var(--font-serif);
}
.brand-text { font-size: 18px; letter-spacing: .3px; display: flex; align-items: baseline; gap: 6px; }
.brand-text small { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-soft); transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-link.active { color: var(--accent); }

/* 右上角悬浮「联系我们」按钮（始终可见） */
.btn-contact {
  margin-left: 6px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 700; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.32);
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease; white-space: nowrap;
}
.btn-contact:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(180, 83, 9, 0.42); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: 4px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 70px;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(180, 83, 9, 0.08), transparent 60%),
    var(--paper);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(44px, 8vw, 92px); line-height: 1.04; letter-spacing: -1px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-title .hl { color: var(--ink); position: relative; }
.hero-foot {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end;
  margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line);
}
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.btn-primary {
  background: var(--ink); color: var(--paper); border: none; cursor: pointer;
  font-size: 16px; font-weight: 700; padding: 14px 30px; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(26, 28, 32, 0.22);
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent); box-shadow: 0 16px 34px rgba(180, 83, 9, 0.3); }
.btn-ghost {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  color: var(--ink); font-size: 15px; font-weight: 600; padding: 12px 24px; border-radius: 999px;
  background: transparent; transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.hero-stats { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.stat strong {
  display: block; font-family: var(--font-serif); font-size: 40px; font-weight: 900;
  color: var(--ink); line-height: 1;
}
.stat span { font-size: 14px; color: var(--ink-faint); letter-spacing: .5px; }

/* ===== 通用 section + 编辑风序号标题 ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--paper-2); }
.sec-head { max-width: 820px; margin: 0 0 60px; }
.sec-no {
  display: inline-block; font-family: var(--font-serif); font-style: italic;
  font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 1px; margin-bottom: 16px;
}
.sec-title {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -.5px;
}
.sec-title em { font-style: italic; color: var(--accent); }
.sec-lead { margin-top: 20px; font-size: 17px; color: var(--ink-soft); max-width: 640px; }

/* ===== 公司介绍 卡片 ===== */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s ease, border-color .25s; position: relative;
}
.about-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.ac-no {
  font-family: var(--font-serif); font-size: 34px; font-weight: 900; color: var(--accent-soft);
  display: block; margin-bottom: 10px; line-height: 1;
}
.about-card h3 { font-size: 20px; margin-bottom: 12px; font-weight: 800; }
.about-card p { color: var(--ink-soft); font-size: 15.5px; }

/* ===== 左右分栏对比（双峰式） ===== */
.split { margin-top: 70px; }
.split-head { max-width: 720px; margin-bottom: 34px; }
.split-head h3 { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.3; }
.split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.peak { padding: 38px 36px; }
.peak-left { background: var(--ink); color: var(--paper); }
.peak-right { background: var(--card); }
.peak-tag { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px; opacity: .85; }
.peak-left .peak-tag { color: var(--accent); }
.peak-right .peak-tag { color: var(--accent); }
.peak ul { list-style: none; display: grid; gap: 0; }
.peak li {
  display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 15.5px;
}
.peak-right li { border-top: 1px solid var(--line); }
.peak li:first-child { border-top: none; }
.peak li b { min-width: 56px; font-weight: 700; opacity: .8; }
.peak-left li b { color: var(--paper); }
.peak-right li b { color: var(--accent); }

/* ===== 产品与服务 ===== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; transition: transform .25s ease, border-color .25s; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.svc-no {
  position: absolute; top: 18px; right: 24px; font-family: var(--font-serif);
  font-size: 52px; font-weight: 900; color: var(--accent-soft); line-height: 1;
}
.service-card h3 { font-size: 22px; margin-bottom: 10px; font-weight: 800; padding-right: 60px; }
.service-card p { color: var(--ink-soft); font-size: 15.5px; }
.svc-list { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.svc-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink); }
.svc-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ===== 案例展示 ===== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s ease, border-color .25s; position: relative;
}
.case-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.case-tag {
  font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  padding: 4px 11px; border-radius: 999px; display: inline-block; margin-bottom: 16px;
}
.case-card h3 { font-size: 18px; margin-bottom: 12px; font-weight: 800; }
.case-card p { color: var(--ink-soft); font-size: 15px; }
.case-metric { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.case-metric strong { display: block; font-family: var(--font-serif); font-size: 30px; font-weight: 900; color: var(--accent); }
.case-metric span { font-size: 13px; color: var(--ink-faint); }

/* ===== 关于我们 / 创始人 ===== */
.founder-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.founder-photo { display: grid; place-items: center; gap: 18px; text-align: center; }
.avatar {
  width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 86px; font-weight: 900; color: var(--paper);
  background: var(--ink); box-shadow: var(--shadow);
}
.avatar-cap { font-size: 14px; color: var(--ink-soft); font-weight: 600; letter-spacing: .5px; }
.founder-text .sec-title { margin: 8px 0 18px; }
.founder-text p { color: var(--ink-soft); margin-bottom: 14px; }
.founder-quote {
  font-family: var(--font-serif); font-size: 21px; font-weight: 700; font-style: italic;
  color: var(--ink); border-left: 4px solid var(--accent); padding-left: 18px; margin: 20px 0;
}
.founder-text .btn-primary { margin-top: 12px; }

/* ===== 页脚 ===== */
.footer { background: var(--ink); color: #c9cbd2; padding: 0; }
.footer-cta {
  max-width: var(--maxw); margin: 0 auto; padding: 90px 28px 70px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-cta h2 { font-family: var(--font-serif); font-weight: 900; font-size: clamp(30px, 5vw, 56px); color: #fff; line-height: 1.1; }
.footer-cta p { font-style: italic; color: var(--accent); margin: 14px 0 28px; font-family: var(--font-serif); }
.btn-light { background: var(--accent); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); box-shadow: 0 16px 34px rgba(0,0,0,.3); }

.footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 28px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 40px;
}
.footer .brand-text { color: #fff; }
.footer-desc { margin-top: 16px; font-size: 14.5px; color: #9a9ea8; max-width: 320px; }
.footer-contact h3, .footer-links h3 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px; margin-bottom: 18px; text-transform: uppercase; }
.contact-list { list-style: none; display: grid; gap: 13px; }
.contact-list li { display: flex; gap: 12px; font-size: 14.5px; align-items: baseline; }
.c-label { min-width: 42px; font-weight: 700; color: var(--accent); }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: 14.5px; color: #9a9ea8; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: #767a84; }
.footer-sign { font-style: italic; font-family: var(--font-serif); color: var(--accent); }

/* ===== 模态弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 16, 20, 0.6); backdrop-filter: blur(3px); animation: fade .25s ease; }
.modal-dialog {
  position: relative; width: min(440px, 92vw); margin: 12vh auto 0;
  background: var(--card); border-radius: 20px; padding: 42px 36px 34px;
  box-shadow: 0 30px 70px rgba(0,0,0,.4); animation: pop .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96) } to { opacity: 1; transform: none } }
.modal-close {
  position: absolute; top: 16px; right: 18px; width: 36px; height: 36px;
  border: none; background: var(--paper-2); color: var(--ink-soft); border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-no { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--accent); letter-spacing: 1px; }
.modal-title { font-family: var(--font-serif); font-size: 30px; font-weight: 900; margin-top: 4px; }
.modal-sub { color: var(--ink-soft); font-size: 14.5px; margin: 8px 0 26px; }
.modal-contact { list-style: none; display: grid; gap: 16px; }
.modal-contact li { display: flex; align-items: center; gap: 14px; }
.mc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--accent-soft); }
.mc-label { display: block; font-size: 12px; color: var(--ink-faint); }
.modal-contact a, .modal-contact span:not(.mc-label) { font-size: 16px; font-weight: 600; color: var(--ink); }
.modal-contact a:hover { color: var(--accent); }
.modal-cta {
  display: block; text-align: center; margin-top: 28px;
  background: var(--accent); color: #fff; font-weight: 700; padding: 14px; border-radius: 999px;
  transition: transform .18s, background .2s;
}
.modal-cta:hover { transform: translateY(-2px); background: var(--accent-deep); }

/* ===== 滚动揭示动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 920px) {
  .about-grid, .cases-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-foot { grid-template-columns: 1fr; gap: 26px; }
  .founder-wrap { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .avatar { margin: 0 auto; }
  .founder-quote { display: inline-block; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 18px 16px;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 14px 8px; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .btn-contact { margin-left: auto; padding: 9px 14px; font-size: 14px; }
  .section { padding: 72px 0; }
  .split-cols { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
