
/* ============================================
   不准 PC 端门户 — 东方美学主题
   采用深色底 + 金色点缀的高端设计语言
   ============================================ */

/* --- 设计令牌 --- */
:root {
  /* 品牌主色：金色系 */
  --gold-50: #FFF9E6;
  --gold-100: #FDECC8;
  --gold-200: #F5D78E;
  --gold-300: #E8C162;
  --gold-400: #D4A844;
  --gold-500: #C49232;
  --gold-600: #8C5E35;
  --gold-700: #6B4726;
  --gold-800: #4A3118;
  --gold-900: #2E1F0E;

  /* 墨色背景系 */
  --ink-50: #F8F6F3;
  --ink-100: #E8E4DF;
  --ink-200: #C4BEB6;
  --ink-300: #9E968B;
  --ink-400: #6E6459;
  --ink-500: #3D352C;
  --ink-600: #2A241E;
  --ink-700: #1E1A15;
  --ink-800: #14110E;
  --ink-900: #0C0A08;

  /* 辅助色 */
  --jade: #5B8C6E;
  --cinnabar: #C15B4A;
  --porcelain: #E8E2D8;
  --parchment: #F5F0E8;

  /* 间距 */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;
}

/* --- 全局重置 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Serif SC', 'STSongti-SC', 'Songti SC', 'Source Han Serif CN', serif;
  background-color: var(--ink-800);
  color: var(--ink-100);
  line-height: 1.8;
  min-height: 100vh;
}

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--gold-300);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- 排版 --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold-100);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.06em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.04em;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: 0.03em;
}

p {
  font-size: 1rem;
  color: var(--ink-200);
  max-width: 72ch;
}

/* --- 布局容器 --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--wide {
  max-width: 1400px;
}

/* --- 顶部导航 --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 17, 14, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(212, 168, 68, 0.12);
  padding: var(--space-sm) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.08em;
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  font-size: 0.95rem;
  color: var(--ink-200);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__link:hover {
  color: var(--gold-300);
  background: rgba(212, 168, 68, 0.08);
}

.nav__link--active {
  color: var(--gold-400);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 1px;
}

/* 移动端导航按钮 */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink-200);
  cursor: pointer;
  padding: var(--space-xs);
  font-size: 1.5rem;
}

/* --- 英雄区 --- */
.hero {
  position: relative;
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(140, 94, 53, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-lg);
  background: rgba(212, 168, 68, 0.1);
  border: 1px solid rgba(212, 168, 68, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--gold-400);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-style: normal;
  color: var(--gold-400);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--ink-300);
  margin: 0 auto var(--space-2xl);
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--ink-900);
  box-shadow: 0 4px 20px rgba(196, 146, 50, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 146, 50, 0.35);
  color: var(--ink-900);
}

.btn--ghost {
  background: transparent;
  color: var(--gold-400);
  border: 1px solid rgba(212, 168, 68, 0.3);
}

.btn--ghost:hover {
  background: rgba(212, 168, 68, 0.08);
  border-color: var(--gold-400);
  color: var(--gold-300);
}

/* --- 功能卡片网格 --- */
.features {
  padding: var(--space-4xl) 0;
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.features__header p {
  margin: var(--space-md) auto 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.card {
  position: relative;
  background: rgba(42, 36, 30, 0.6);
  border: 1px solid rgba(212, 168, 68, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 68, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(212, 168, 68, 0.1);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.card__title {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--gold-200);
}

.card__desc {
  font-size: 0.92rem;
  color: var(--ink-300);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--gold-400);
  font-weight: 500;
}

.card__link::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-out);
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

/* --- 内容区 --- */
.content-section {
  padding: var(--space-4xl) 0;
}

.content-section:nth-child(even) {
  background: rgba(42, 36, 30, 0.3);
}

.content-section__header {
  margin-bottom: var(--space-2xl);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 68, 0.2), transparent);
}

.section-divider h2 {
  white-space: nowrap;
}

/* --- 面包屑导航 --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-lg) 0;
  font-size: 0.88rem;
  color: var(--ink-400);
  list-style: none;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-xs);
  color: var(--ink-500);
}

.breadcrumb a {
  color: var(--ink-300);
}

.breadcrumb a:hover {
  color: var(--gold-400);
}

/* --- 详情信息列表 --- */
.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.info-item {
  padding: var(--space-lg);
  background: rgba(42, 36, 30, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 168, 68, 0.06);
}

.info-item__title {
  font-size: 1.05rem;
  color: var(--gold-300);
  margin-bottom: var(--space-sm);
}

.info-item__text {
  font-size: 0.92rem;
  color: var(--ink-300);
  line-height: 1.7;
}

/* --- 标签 --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 168, 68, 0.08);
  border: 1px solid rgba(212, 168, 68, 0.15);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--gold-400);
  transition: all var(--duration-fast) var(--ease-out);
}

.tag:hover {
  background: rgba(212, 168, 68, 0.15);
  border-color: var(--gold-400);
}

/* --- 表格 --- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 168, 68, 0.1);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: rgba(212, 168, 68, 0.08);
  color: var(--gold-300);
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(212, 168, 68, 0.1);
}

.table td {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  color: var(--ink-200);
  border-bottom: 1px solid rgba(42, 36, 30, 0.8);
}

.table tr:hover td {
  background: rgba(212, 168, 68, 0.04);
}

/* --- 底部 --- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid rgba(212, 168, 68, 0.08);
  background: var(--ink-900);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: var(--ink-400);
  margin-top: var(--space-sm);
}

.footer__col h4 {
  font-size: 0.95rem;
  color: var(--gold-300);
  margin-bottom: var(--space-md);
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: var(--space-xs);
}

.footer__col a {
  font-size: 0.88rem;
  color: var(--ink-400);
}

.footer__col a:hover {
  color: var(--gold-400);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(212, 168, 68, 0.06);
  font-size: 0.82rem;
  color: var(--ink-500);
}

/* --- 内容文章（子页面正文区） --- */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.article h1 {
  margin-bottom: var(--space-lg);
}

.article h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(212, 168, 68, 0.1);
}

.article h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article p {
  margin-bottom: var(--space-md);
}

.article ul, .article ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  color: var(--ink-200);
}

.article li {
  margin-bottom: var(--space-xs);
  line-height: 1.8;
}

.article blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--gold-500);
  background: rgba(212, 168, 68, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-200);
  font-style: italic;
}

/* --- CTA 横幅 --- */
.cta-banner {
  text-align: center;
  padding: var(--space-3xl);
  background: linear-gradient(135deg, rgba(140, 94, 53, 0.15), rgba(212, 168, 68, 0.08));
  border: 1px solid rgba(212, 168, 68, 0.12);
  border-radius: var(--radius-xl);
  margin: var(--space-2xl) 0;
}

.cta-banner h2 {
  margin-bottom: var(--space-md);
}

.cta-banner p {
  margin: 0 auto var(--space-xl);
}

/* --- 统计数字 --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
  text-align: center;
  padding: var(--space-2xl) 0;
}

.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1.2;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--ink-400);
  margin-top: var(--space-xs);
}

/* --- 分类网格 --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.category-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(42, 36, 30, 0.5);
  border: 1px solid rgba(212, 168, 68, 0.06);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.category-card:hover {
  border-color: rgba(212, 168, 68, 0.2);
  background: rgba(42, 36, 30, 0.8);
  transform: translateY(-2px);
  color: var(--gold-300);
}

.category-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.category-card__name {
  font-size: 1rem;
  color: var(--gold-200);
  font-weight: 500;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(20, 17, 14, 0.95);
    padding: var(--space-md);
    border-bottom: 1px solid rgba(212, 168, 68, 0.1);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

/* --- 动画 --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
  opacity: 0;
}

.animate-in:nth-child(2) { animation-delay: 100ms; }
.animate-in:nth-child(3) { animation-delay: 200ms; }
.animate-in:nth-child(4) { animation-delay: 300ms; }
.animate-in:nth-child(5) { animation-delay: 400ms; }
.animate-in:nth-child(6) { animation-delay: 500ms; }
