/* ==========================================================================
   湖南金腕商贸有限公司 — 官网样式
   设计方向：沉稳商务 · 金色点缀 · 编辑感排版
   ========================================================================== */

/* ---------- 设计 Token ---------- */
:root {
  /* 金色 */
  --gold: #C9A24B;
  --gold-light: #E3C27E;
  --gold-deep: #9C7A34;

  /* 深色背景（三档层次） */
  --bg-0: #0F151C;
  --bg-1: #141B24;
  --bg-2: #1A222C;

  /* 文字 */
  --text-0: #F3EDE0;
  --text-1: #B8C0CA;

  /* 功能色 */
  --green: #6FA37B;
  --red: #C8554D;

  /* 字体（系统字体栈，零外部请求） */
  --font-serif: 'Songti SC', 'STSong', 'SimSun', 'Noto Serif CJK SC', serif;
  --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Segoe UI', sans-serif;

  /* 动效 */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* 间距 */
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(84px, 11vw, 140px);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-1);
  background-color: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text-0); font-weight: 600; line-height: 1.2; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 无障碍 ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--bg-0);
  font-weight: 700;
  border-radius: 4px;
  transition: top 0.2s var(--ease-expo);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: var(--bg-0); }

/* ---------- 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  margin-top: 18px;
  font-size: clamp(32px, 4.5vw, 46px);
  letter-spacing: 0.02em;
}

.section-sub {
  margin-top: 14px;
  max-width: 560px;
  color: var(--text-1);
}

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease-expo), background-color 0.4s var(--ease-expo), color 0.4s var(--ease-expo), border-color 0.4s var(--ease-expo);
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: #12100a;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-0);
  border-color: rgba(243, 237, 224, 0.28);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.text-link span { transition: transform 0.4s var(--ease-expo); }
.text-link:hover span { transform: translateX(6px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease-expo), border-color 0.4s var(--ease-expo), backdrop-filter 0.4s var(--ease-expo);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15, 21, 28, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(201, 162, 75, 0.16);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--bg-0);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-serif); font-size: 17px; color: var(--text-0); font-weight: 600; letter-spacing: 0.04em; }
.brand-text em { font-style: normal; font-size: 10px; letter-spacing: 0.28em; color: var(--gold); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > a:not(.btn) {
  position: relative;
  font-size: 15px;
  color: var(--text-1);
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease-expo);
}
.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-expo);
}
.main-nav > a:not(.btn):hover { color: var(--text-0); }
.main-nav > a:not(.btn):hover::after { width: 100%; }
.nav-cta { padding: 11px 24px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-0);
  transition: transform 0.35s var(--ease-expo), opacity 0.35s var(--ease-expo);
}
.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;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 140px 0 96px;
  background: var(--bg-0);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 70% at 84% 22%, rgba(201, 162, 75, 0.20), transparent 60%),
    radial-gradient(45% 55% at 8% 82%, rgba(201, 162, 75, 0.10), transparent 55%),
    repeating-linear-gradient(90deg, rgba(201, 162, 75, 0.05) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(201, 162, 75, 0.05) 0 1px, transparent 1px 96px);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 21, 28, 0.96) 0%, rgba(15, 21, 28, 0.72) 46%, rgba(15, 21, 28, 0.4) 100%),
    linear-gradient(180deg, rgba(15, 21, 28, 0.55) 0%, rgba(15, 21, 28, 0.2) 40%, rgba(15, 21, 28, 0.96) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(56px, 11vw, 116px);
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: var(--text-0);
}

.hero-slogan {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 30px);
  color: var(--gold-light);
  letter-spacing: 0.22em;
}

.hero-desc {
  margin-top: 24px;
  max-width: 540px;
  font-size: 16px;
  color: var(--text-1);
}

.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-1);
}
.scroll-hint-text { font-size: 10px; letter-spacing: 0.4em; }
.scroll-hint-line {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgba(243, 237, 224, 0.24);
  overflow: hidden;
}
.scroll-hint-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: scrollDrop 2.2s var(--ease-expo) infinite;
}
@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- 板块通用 ---------- */
.section { padding: var(--section-pad) 0; }
.section:nth-of-type(odd) { background: var(--bg-1); }
.section:nth-of-type(even) { background: var(--bg-2); }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about-lead {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text-0);
  line-height: 1.5;
}
.about-body { margin-top: 20px; max-width: 520px; }
.about-copy .text-link { margin-top: 28px; }

.about-principles {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(201, 162, 75, 0.22);
}
.principle {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(201, 162, 75, 0.16);
}
.principle-num {
  flex: none;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.principle h3 { font-size: 19px; margin-bottom: 6px; }
.principle p { font-size: 14.5px; line-height: 1.7; }

/* ---------- 业务范围 ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201, 162, 75, 0.14);
  border: 1px solid rgba(201, 162, 75, 0.14);
}
.biz-item {
  padding: clamp(28px, 3.4vw, 44px) clamp(22px, 2.6vw, 36px);
  background: var(--bg-1);
  transition: background-color 0.4s var(--ease-expo);
}
.biz-item:hover { background: var(--bg-2); }
.biz-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: 2px;
  color: var(--gold);
  margin-bottom: 22px;
  transition: background-color 0.4s var(--ease-expo), color 0.4s var(--ease-expo);
}
.biz-icon svg { width: 24px; height: 24px; }
.biz-item:hover .biz-icon { background: var(--gold); color: var(--bg-0); }
.biz-item h3 { font-size: 21px; margin-bottom: 10px; }
.biz-item p { font-size: 14.5px; line-height: 1.7; }

/* ---------- 核心优势 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 56px);
  counter-reset: adv;
}
.adv-item { position: relative; padding-top: 26px; border-top: 1px solid rgba(201, 162, 75, 0.22); }
.adv-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  margin-bottom: 18px;
}
.adv-item h3 { font-size: 20px; margin-bottom: 10px; }
.adv-item p { font-size: 14.5px; line-height: 1.7; }

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: stretch;
}
.contact-list { display: flex; flex-direction: column; gap: 0; }
.contact-list > li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid rgba(201, 162, 75, 0.16);
}
.contact-list > li:first-child { padding-top: 0; }
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 75, 0.32);
  border-radius: 2px;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list h3 { font-size: 17px; margin-bottom: 6px; }
.contact-list p { font-size: 14.5px; }
.contact-list a { color: var(--text-1); transition: color 0.3s var(--ease-expo); }
.contact-list a:hover { color: var(--gold); }

.contact-panel {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  background: var(--bg-0);
  border: 1px solid rgba(201, 162, 75, 0.22);
  border-radius: 4px;
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 100% 0%, rgba(201, 162, 75, 0.14), transparent 55%);
  pointer-events: none;
}
.panel-kicker { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.contact-panel h3 { margin-top: 14px; font-size: clamp(24px, 2.6vw, 30px); }
.panel-desc { margin: 16px 0 30px; color: var(--text-1); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid rgba(201, 162, 75, 0.18);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { color: var(--text-0); font-family: var(--font-serif); font-size: 17px; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer-meta p { font-size: 13px; color: var(--text-1); }
.footer-meta a { transition: color 0.3s var(--ease-expo); }
.footer-meta a:hover { color: var(--gold); }

/* ---------- 入场动效（JS 渐进增强） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease-expo),
    transform 0.9s var(--ease-expo);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: rgba(15, 21, 28, 0.98);
    border-bottom: 1px solid rgba(201, 162, 75, 0.18);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-expo), opacity 0.4s var(--ease-expo);
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(243, 237, 224, 0.08); }
  .main-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .biz-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-bg { transform: none; }
}
