/* ============================================================
   南红艾 官网样式
   设计基调：南红之赤 · 蕲艾之青 · 宣纸之素
   ============================================================ */

:root {
  --red: #a8232b;
  --red-deep: #7c1519;
  --red-soft: #c8555b;
  --gold: #b08d57;
  --gold-light: #dfc79a;
  --cream: #f8f4ec;
  --paper: #fffdf8;
  --ink: #2a2420;
  --ink-2: #55493f;
  --muted: #8b8078;
  --line: #e6dcca;
  --shadow: 0 18px 44px -24px rgba(42, 36, 32, 0.35);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--ink { background: #241f1b; color: #d8cfc3; }
.section--ink h2, .section--ink h3 { color: #f4ece0; }

/* ---------- 通用标题 ---------- */
.sec-head { text-align: center; margin-bottom: 54px; }
.sec-head .en {
  font-family: var(--serif);
  letter-spacing: 6px;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
}
.sec-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 4px;
  margin-top: 14px;
}
.sec-head .sub { margin-top: 16px; color: var(--muted); font-size: 15px; }
.sec-head .rule {
  width: 46px; height: 1px; background: var(--gold);
  margin: 22px auto 0; position: relative;
}
.sec-head .rule::after {
  content: ""; position: absolute; left: 50%; top: -3px;
  width: 7px; height: 7px; background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(230, 220, 202, 0.9);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .seal {
  width: 42px; height: 42px; flex: 0 0 42px;
  background: var(--red); color: #fff;
  font-family: var(--serif); font-size: 23px; font-weight: 700;
  display: grid; place-items: center; border-radius: 6px;
  box-shadow: 0 6px 16px -8px rgba(168, 35, 43, 0.9);
  letter-spacing: 0;
}
.brand .name { display: block; font-family: var(--serif); font-size: 21px; letter-spacing: 5px; color: var(--ink); font-weight: 700; line-height: 1.25; }
.brand .slogan { display: block; font-size: 10px; letter-spacing: 3px; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 15px; font-size: 15px;
  color: var(--ink-2); transition: color 0.25s;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 1px; background: var(--red);
  transform: translateX(-50%); transition: width 0.3s;
}
.nav a:hover { color: var(--red); }
.nav a:hover::after, .nav a.active::after { width: 22px; }
.nav a.active { color: var(--red); }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--red); color: var(--red);
  padding: 9px 20px; font-size: 14px; border-radius: 2px;
  transition: 0.28s;
}
.header-cta:hover { background: var(--red); color: #fff; }

.nav-toggle { display: none; }

/* ---------- 首页主视觉 ---------- */
.hero {
  position: relative; min-height: 640px;
  display: flex; align-items: center;
  overflow: hidden; color: #f7f0e4;
  background: #211b18;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(20, 14, 12, 0.35), transparent 60%),
    linear-gradient(105deg, rgba(24, 18, 15, 0.94) 8%, rgba(24, 18, 15, 0.72) 46%, rgba(24, 18, 15, 0.25) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 92px 0; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 12px; letter-spacing: 5px;
  color: var(--gold-light);
}
.hero .eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.hero h1 {
  color: #fff; font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.28; letter-spacing: 6px; margin: 22px 0 0;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lead {
  margin-top: 22px; max-width: 520px;
  color: rgba(247, 240, 228, 0.82); font-size: 16px; line-height: 2;
}
.hero__actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: 15px; letter-spacing: 2px;
  border: 1px solid transparent; border-radius: 2px; transition: 0.3s;
}
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #f7f0e4; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #f7f0e4; }
.btn--line { border-color: var(--red); color: var(--red); }
.btn--line:hover { background: var(--red); color: #fff; }

.hero__meta {
  position: absolute; right: 0; bottom: 46px; z-index: 2;
  display: flex; gap: 40px;
}
.hero__meta div { text-align: right; }
.hero__meta strong {
  display: block; font-family: var(--serif); font-size: 30px;
  color: var(--gold-light); line-height: 1.2;
}
.hero__meta span { font-size: 12px; letter-spacing: 2px; color: rgba(247, 240, 228, 0.7); }

/* ---------- 理念条 ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.pillars .item {
  padding: 34px 30px; border-right: 1px solid var(--line);
}
.pillars .item:last-child { border-right: 0; }
.pillars .idx {
  font-family: var(--serif); font-size: 12px; color: var(--gold); letter-spacing: 2px;
}
.pillars h3 { font-size: 18px; letter-spacing: 2px; margin: 10px 0 8px; }
.pillars p { font-size: 14px; color: var(--muted); line-height: 1.9; }

/* ---------- 品牌故事 ---------- */
.story { display: grid; grid-template-columns: 1.02fr 1fr; gap: 68px; align-items: center; }
.story__media { position: relative; }
.story__media img { width: 100%; height: 520px; object-fit: cover; border-radius: 2px; }
.story__media .frame {
  position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold-light); z-index: -1;
}
.story .tag {
  font-family: var(--serif); letter-spacing: 5px; font-size: 12px; color: var(--gold);
}
.story h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: 3px; margin: 14px 0 22px; line-height: 1.5; }
.story p { color: var(--ink-2); margin-bottom: 16px; line-height: 1.95; }
.story .stats { display: flex; gap: 44px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.story .stats strong { font-family: var(--serif); font-size: 30px; color: var(--red); display: block; }
.story .stats span { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }

/* ---------- 产品 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
  background: var(--paper); border: 1px solid var(--line);
  overflow: hidden; transition: 0.35s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.card__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 17px; letter-spacing: 1px; line-height: 1.5; }
.card__body p { margin-top: 9px; font-size: 13.5px; color: var(--muted); line-height: 1.85; flex: 1; }
.card__body .meta { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--serif); color: var(--red); font-size: 19px; }
.price small { font-size: 12px; margin-right: 2px; }
.card__body .link { font-size: 13px; color: var(--gold); letter-spacing: 1px; }

/* ---------- 资讯 ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: 0.35s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-card .cat { font-size: 11.5px; letter-spacing: 2px; color: var(--red); }
.news-card h3 { font-size: 18px; line-height: 1.6; margin: 10px 0 10px; letter-spacing: 1px; }
.news-card p { font-size: 13.5px; color: var(--muted); line-height: 1.9; flex: 1; }
.news-card .date { margin-top: 18px; font-size: 12px; color: var(--muted); letter-spacing: 1px; }

/* ---------- 服务流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 10px; }
.step { padding: 30px 26px; border-left: 1px solid rgba(223, 199, 154, 0.28); }
.step:first-child { border-left: 0; }
.step .no { font-family: var(--serif); font-size: 34px; color: var(--gold); line-height: 1; }
.step h3 { color: #f4ece0; font-size: 18px; margin: 14px 0 10px; letter-spacing: 2px; }
.step p { font-size: 13.5px; color: rgba(216, 207, 195, 0.75); line-height: 1.9; }

/* ---------- 内页头图 ---------- */
.page-hero {
  position: relative; padding: 108px 0 88px; color: #f7f0e4;
  background: #241f1b; overflow: hidden; text-align: center;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 18, 15, 0.7), rgba(24, 18, 15, 0.88));
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .crumb { font-size: 13px; color: rgba(247, 240, 228, 0.65); letter-spacing: 1px; }
.page-hero .crumb a:hover { color: var(--gold-light); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 44px); letter-spacing: 6px; margin: 16px 0 0; }
.page-hero .en { font-size: 12px; letter-spacing: 5px; color: var(--gold); margin-top: 14px; }

/* ---------- 分栏内容 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { width: 100%; height: 440px; object-fit: cover; }
.split h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: 3px; margin-bottom: 20px; line-height: 1.5; }
.split p { color: var(--ink-2); line-height: 1.95; margin-bottom: 14px; }

/* ---------- 价值观 ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value {
  background: var(--paper); border: 1px solid var(--line);
  padding: 34px 30px; transition: 0.35s;
}
.value:hover { border-color: var(--gold-light); box-shadow: var(--shadow); }
.value .mark {
  width: 46px; height: 46px; border: 1px solid var(--gold-light);
  display: grid; place-items: center; color: var(--red);
  font-family: var(--serif); font-size: 20px;
  transform: rotate(45deg);
}
.value .mark span { transform: rotate(-45deg); }
.value h3 { margin: 24px 0 10px; font-size: 18px; letter-spacing: 2px; }
.value p { font-size: 14px; color: var(--muted); line-height: 1.95; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; margin-top: 10px; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(var(--gold-light), transparent);
}
.timeline li { position: relative; padding: 0 0 38px 0; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 9px;
  width: 9px; height: 9px; background: var(--red); transform: rotate(45deg);
}
.timeline .year { font-family: var(--serif); font-size: 20px; color: var(--red); letter-spacing: 2px; }
.timeline h3 { font-size: 17px; margin: 6px 0 8px; letter-spacing: 1px; }
.timeline p { font-size: 14px; color: var(--muted); line-height: 1.9; }

/* ---------- 数据条 ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metrics div { padding: 26px 10px; }
.metrics strong { font-family: var(--serif); font-size: 40px; color: var(--gold-light); display: block; line-height: 1.1; }
.metrics span { font-size: 13px; letter-spacing: 2px; color: rgba(216, 207, 195, 0.72); }

/* ---------- 产品分类 ---------- */
.cat-title { display: flex; align-items: baseline; gap: 16px; margin: 0 0 26px; }
.cat-title h2 { font-size: 24px; letter-spacing: 3px; }
.cat-title span { font-size: 12px; color: var(--gold); letter-spacing: 3px; }
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cat-block + .cat-block { margin-top: 74px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.contact-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { width: 78px; flex: 0 0 78px; font-size: 13px; color: var(--gold); letter-spacing: 2px; padding-top: 3px; }
.contact-list .v { font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.contact-list .v strong { color: var(--ink); font-family: var(--serif); font-size: 18px; letter-spacing: 1px; }

.form { background: var(--paper); border: 1px solid var(--line); padding: 40px; }
.form h2 { font-size: 22px; letter-spacing: 2px; }
.form .hint { font-size: 13px; color: var(--muted); margin: 8px 0 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; letter-spacing: 1px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: #fff;
  padding: 12px 14px; font-size: 14px; font-family: var(--sans);
  color: var(--ink); border-radius: 2px; outline: none; transition: 0.25s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--red-soft); box-shadow: 0 0 0 3px rgba(168, 35, 43, 0.08);
}
.form .note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.8; }

/* ---------- 富文本页 ---------- */
.doc { max-width: 860px; margin: 0 auto; }
.doc h2 { font-size: 22px; letter-spacing: 2px; margin: 46px 0 16px; padding-left: 14px; border-left: 3px solid var(--red); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 26px 0 10px; }
.doc p { margin-bottom: 14px; line-height: 2; color: var(--ink-2); }
.doc ul li { position: relative; padding-left: 18px; margin-bottom: 10px; color: var(--ink-2); line-height: 1.95; }
.doc ul li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg);
}
.doc .updated { font-size: 13px; color: var(--muted); margin-bottom: 34px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

/* ---------- CTA ---------- */
.cta {
  position: relative; padding: 84px 0; text-align: center; color: #f7f0e4;
  background: #241f1b; overflow: hidden;
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(168, 35, 43, 0.35), transparent 70%);
}
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { color: #fff; font-size: clamp(24px, 3.6vw, 34px); letter-spacing: 4px; }
.cta p { color: rgba(247, 240, 228, 0.8); margin-top: 14px; font-size: 15px; }
.cta .btn { margin-top: 30px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #1c1815; color: #a99f94; font-size: 14px; }
.site-footer .top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px; padding: 64px 0 48px;
}
.site-footer .brand .name { color: #f4ece0; }
.site-footer .brand .slogan { color: #8d8378; }
.footer-desc { margin-top: 20px; line-height: 1.95; font-size: 13.5px; color: #8d8378; max-width: 300px; }
.site-footer h4 {
  color: #e9e0d2; font-size: 15px; letter-spacing: 2px;
  margin-bottom: 20px; font-family: var(--serif);
}
.site-footer li { margin-bottom: 12px; }
.site-footer li a:hover { color: var(--gold-light); }
.footer-contact li { line-height: 1.8; }
.footer-contact .k { color: #7f7569; font-size: 12.5px; display: block; letter-spacing: 1px; }
.site-footer .bottom {
  border-top: 1px solid rgba(230, 220, 202, 0.12);
  padding: 22px 0 30px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  font-size: 13px; color: #7f7569;
}
.site-footer .bottom .sep { opacity: 0.4; }
.site-footer .bottom a { color: #9c9184; }
.site-footer .bottom a:hover { color: var(--gold-light); }
.filing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.filing img { height: 16px; width: auto; opacity: 0.85; }
.filing a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 滚动动效 ---------- */
/* 默认可见，JS 可用时才启用淡入，避免脚本异常导致内容不可见 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .news-list { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars .item:nth-child(2) { border-right: 0; }
  .pillars .item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .story, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .story__media img, .split img { height: 400px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .hero__meta { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .site-header .bar { height: 64px; }
  .brand .seal { width: 36px; height: 36px; flex: 0 0 36px; font-size: 20px; }
  .brand .name { font-size: 18px; letter-spacing: 3px; }
  .brand .slogan { display: none; }
  .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-items: center; gap: 5px;
    width: 42px; height: 42px; border: 1px solid var(--line);
    background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: 0.3s; }
  .nav-toggle.on span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.on span:nth-child(2) { opacity: 0; }
  .nav-toggle.on span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px;
    display: none; box-shadow: 0 20px 30px -24px rgba(0, 0, 0, 0.4);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(230, 220, 202, 0.6); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .hero { min-height: 560px; }
  .hero h1 { letter-spacing: 3px; }
  .hero__inner { padding: 70px 0; }
  .grid-4, .grid-3, .news-list, .grid-2, .values, .steps, .metrics { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillars .item { border-right: 0; border-bottom: 1px solid var(--line); }
  .story__media img, .split img { height: 300px; }
  .site-footer .top { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 34px; }
  .site-footer .bottom { flex-direction: column; align-items: flex-start; }
  .form { padding: 26px 22px; }
  .doc h2 { font-size: 19px; }
  .step { border-left: 0; padding: 22px 0; border-bottom: 1px solid rgba(223, 199, 154, 0.22); }
}
