/* =========================================================
   YunZen 基础样式 v3.1（导航气质升级版）
========================================================= */

/* ========== 1. 设计变量 ========== */
:root {
  /* 品牌色 */
  --brand-blue: #1769ff;
  --brand-blue-dark: #1255d9;
  --brand-blue-light: #e8f1ff;
  --brand-gold: #f0b429;
  --brand-gold-dark: #d9a01f;
  --brand-gold-light: #fff8e6;

  /* 中性色 */
  --ink: #0f172a;
  --ink-strong: #020617; /* 新增，更深标题色 */
  --ink-light: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --muted: #f7f9fb;
  --line: #e8edf3;
  --white: #ffffff;

  /* 功能色 */
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --yellow: #f59e0b;
  --yellow-light: #fef3c7;

  /* 尺寸 */
  --container-w: 1200px;
  --header-h: 56px;
  --logo-h: 40px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* 字体 */
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;
  --fs-4xl: 36px;
  --fs-5xl: 48px;

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* 过渡 */
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}


/* ========== 2. 大屏适配 (>1400px) ========== */
@media (min-width: 1400px) {
  :root {
    --container-w: 1320px;
    --header-h: 60px;
    --logo-h: 44px;
    --fs-base: 17px;
    --fs-lg: 19px;
    --fs-xl: 22px;
    --fs-2xl: 26px;
    --fs-3xl: 34px;
    --fs-4xl: 42px;
    --fs-5xl: 56px;
  }
}

/* ========== 3. 超大屏适配 (>1800px) ========== */
@media (min-width: 1800px) {
  :root {
    --container-w: 1520px;
    --header-h: 64px;
    --logo-h: 48px;
    --fs-base: 18px;
    --fs-lg: 20px;
    --fs-xl: 24px;
    --fs-2xl: 28px;
    --fs-3xl: 38px;
    --fs-4xl: 48px;
    --fs-5xl: 64px;
  }
}

/* ========== 4. 重置样式 ========== */
*, *::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: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-top: var(--header-h);
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.1);
}

/* ========== 5. 容器 ========== */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* 宽松容器（用于大屏内容区） */
.container-fluid {
  width: min(94vw, 1600px);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ========== 6. 工具类 ========== */
.hidden { display: none !important; }
.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0, 0, 0, 0); 
  border: 0; 
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-blue { color: var(--brand-blue); }
.text-gold { color: var(--brand-gold); }
.text-gray { color: var(--gray); }
.text-muted { color: var(--gray-light); }

.bg-white { background: var(--white); }
.bg-muted { background: var(--muted); }
.bg-blue-light { background: var(--brand-blue-light); }

/* Flex 工具 */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Grid 工具 */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
