/* ==========================================================================
   京瞻咨询 - 全局样式
   设计理念：简约大气 · 中国红 + 古铜金
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --color-primary: #B71C1C;       /* 中国红 - 主色 */
  --color-primary-dark: #8B0000;  /* 深红 - hover */
  --color-primary-light: #D32F2F; /* 亮红 */
  --color-gold: #C9A56D;          /* 古铜金 */
  --color-gold-dark: #A88450;     /* 深金 */
  --color-gold-light: #E5C896;    /* 浅金 */

  /* 中性色 */
  --color-bg: #FFFFFF;
  --color-bg-soft: #FAF8F5;       /* 米白 */
  --color-bg-dark: #1A1A1A;       /* 深色 */
  --color-text: #1A1A1A;
  --color-text-soft: #555555;
  --color-text-mute: #999999;
  --color-border: #E8E5E0;
  --color-divider: #F0EDE7;

  /* 字体 */
  --font-cn-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-cn-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* 容器 */
  --container-max: 1280px;
  --container-pad: 32px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 0.4s var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-cn-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cn-serif);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ---------- 通用布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: var(--space-xl) 0; }
.section-lg { padding: var(--space-2xl) 0; }

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-primary { color: var(--color-primary); }
.text-mute { color: var(--color-text-mute); }

.divider {
  width: 60px; height: 3px;
  background: var(--color-gold);
  margin: 0 auto;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--color-divider);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo .logo-cn {
  font-family: var(--font-cn-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
  letter-spacing: 0.05em;
}
.nav-logo .logo-en {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--color-text-soft);
  text-transform: uppercase;
}
.nav-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-menu a {
  position: relative;
  font-size: 15px;
  color: var(--color-text);
  padding: 6px 0;
  letter-spacing: 0.05em;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: all var(--transition);
  transform: translateX(-50%);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(183, 28, 28, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-outline:hover {
  background: var(--color-text);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-primary);
  border-radius: 0;
}
.btn-ghost:hover { gap: 14px; }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(183, 28, 28, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(201, 165, 109, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #FAF8F5 0%, #FFFFFF 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%; right: -10%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(183, 28, 28, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 760px;
  z-index: 1;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 32px;
  font-family: var(--font-en);
}
.hero-tagline::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--color-gold);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.15;
  margin-bottom: 32px;
  color: var(--color-text);
  font-weight: 700;
}
.hero h1 .highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}
.hero h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, rgba(201, 165, 109, 0.3), rgba(201, 165, 109, 0.1));
  z-index: -1;
}
.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text-soft);
  margin-bottom: 48px;
  max-width: 620px;
}
.hero-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--color-divider);
}
.stat-item .stat-num {
  display: block;
  font-family: var(--font-cn-serif);
  font-size: 48px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .stat-num::after {
  content: attr(data-suffix);
  font-size: 24px;
  margin-left: 4px;
  color: var(--color-gold);
}
.stat-item .stat-label {
  font-size: 14px;
  color: var(--color-text-soft);
  letter-spacing: 0.05em;
}

/* ---------- Section header ---------- */
.section-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--color-text);
}
.section-desc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--color-text-soft);
  line-height: 1.8;
}
.divider-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  margin: 32px auto 0;
}

/* ---------- 卡片通用 ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  padding: 48px 36px;
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}
.card-icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  border-radius: 2px;
  margin-bottom: 28px;
  font-family: var(--font-cn-serif);
  font-size: 28px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: #ccc;
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold), var(--color-primary));
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.footer-brand .footer-logo .logo-cn {
  font-family: var(--font-cn-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.footer-brand .footer-logo .logo-en {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-gold);
}
.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #aaa;
  margin-bottom: 24px;
}
.footer-col h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: var(--color-gold);
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col a {
  color: #aaa;
  font-size: 14px;
  transition: all var(--transition);
}
.footer-col a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #aaa;
  align-items: flex-start;
}
.footer-contact-item .icon {
  color: var(--color-gold);
  font-size: 16px;
  margin-top: 3px;
}
.footer-bottom {
  padding-top: 32px;
  text-align: center;
  font-size: 13px;
  color: #888;
}
.footer-bottom a { color: var(--color-gold); }

/* ---------- 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
    --space-xl: 64px;
    --space-2xl: 80px;
  }
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 32px 20px;
    gap: 0;
    border-bottom: 1px solid var(--color-divider);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  }
  .nav { height: 64px; }
  .nav-logo img { height: 36px; }
  .nav-logo .logo-cn { font-size: 15px; }
  .nav-logo .logo-en { font-size: 10px; }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-divider);
    text-align: center;
  }
  .nav-menu a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }

  .hero { min-height: 80vh; padding-top: 80px; }
  .hero h1 { font-size: 36px; }
  .hero-desc { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; padding-top: 32px; }
  .stat-item .stat-num { font-size: 36px; }
  .stat-item .stat-num::after { font-size: 18px; }

  .section { padding: 56px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .site-footer { padding: 56px 0 24px; }
}

/* ---------- 页面通用 ---------- */
.page-hero {
  position: relative;
  padding: 180px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(183, 28, 28, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #FAF8F5 0%, #FFFFFF 100%);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, #fff);
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.3;
  margin-bottom: 24px;
}
.page-hero p {
  font-size: 18px;
  color: var(--color-text-soft);
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- 表单 ---------- */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: all var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}
.form-control:disabled { background: var(--color-bg-soft); cursor: not-allowed; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ---------- selection ---------- */
::selection {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- utility ---------- */
.no-scroll { overflow: hidden; }
