/* ============================================================
   千机创屿 — 全局样式
   设计系统：暖炭灰底 + 玫瑰金高光 + 奶油白 + 磨砂玻璃
   字体：思源宋体(标题) + 思源黑体(正文)
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 背景色阶（暖炭灰系） */
  --bg-deep: #0e0c0a;
  --bg-primary: #15120f;
  --bg-secondary: #1c1814;
  --bg-tertiary: #252019;
  --bg-elevated: rgba(28, 24, 20, 0.6);

  /* 主色：玫瑰金 */
  --rose-gold: #d4a86a;
  --rose-gold-light: #e8c993;
  --rose-gold-deep: #b8894a;
  --gold-glow: rgba(212, 168, 106, 0.25);

  /* 辅色：冷雾青（极少量点缀） */
  --mist-teal: #7ba5a0;

  /* 文字色阶（暖色中性） */
  --text-primary: #f0ebe3;
  --text-secondary: #c8c0b4;
  --text-muted: #8a8278;
  --text-dim: #5a534a;

  /* 边框（发丝级） */
  --border-hairline: rgba(240, 235, 227, 0.08);
  --border-subtle: rgba(240, 235, 227, 0.12);
  --border-light: rgba(240, 235, 227, 0.2);

  /* 渐变 */
  --gradient-gold: linear-gradient(135deg, #e8c993 0%, #d4a86a 50%, #b8894a 100%);
  --gradient-gold-soft: linear-gradient(135deg, rgba(232, 201, 147, 0.1) 0%, rgba(184, 137, 74, 0.05) 100%);
  --gradient-text: linear-gradient(135deg, #f0ebe3 0%, #e8c993 100%);

  /* 玻璃 */
  --glass-bg: rgba(21, 18, 15, 0.55);
  --glass-border: rgba(240, 235, 227, 0.1);
  --glass-blur: blur(24px) saturate(140%);

  /* 阴影（柔和、暖调） */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 40px rgba(212, 168, 106, 0.15);

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", "Monaco", monospace;

  /* 尺寸 */
  --container-max: 1200px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* 动效（克制、优雅） */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.25s;
  --duration-base: 0.5s;
  --duration-slow: 1s;
}

/* ---------- Reset ---------- */
*, *::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: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-deep);
  overflow-x: hidden;
  min-height: 100vh;
  font-weight: 300;
  letter-spacing: 0.01em;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- 标题系统 ---------- */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 400;
}

.section-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--rose-gold);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.section-title em {
  font-style: italic;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.9;
  font-weight: 300;
}

.section-header {
  margin-bottom: 72px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin: 0 auto;
}

.section-header.center .section-eyebrow {
  justify-content: center;
}

/* ---------- 分隔线 ---------- */
.divider-gold {
  width: 60px;
  height: 1px;
  background: var(--gradient-gold);
  margin: 32px auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  border-radius: 0;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-family: var(--font-serif);
}

.btn-primary {
  background: var(--gradient-gold);
  color: #1a1208;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
  filter: brightness(1.08);
}

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--rose-gold);
  color: var(--rose-gold);
  background: rgba(212, 168, 106, 0.05);
}

.btn-ghost {
  color: var(--text-muted);
  padding: 12px 20px;
  font-size: 13px;
}

.btn-ghost:hover {
  color: var(--rose-gold);
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 0;
  transition: all var(--duration-base) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(14, 12, 10, 0.8);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-hairline);
  padding: 16px 0;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.15em;
}

.nav-logo span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--rose-gold);
  letter-spacing: 0.3em;
  margin-left: 10px;
  vertical-align: middle;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--duration-fast) var(--ease-out);
  letter-spacing: 0.08em;
  font-weight: 300;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rose-gold);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 8px;
  padding: 8px 22px;
  font-size: 11px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--text-primary);
  transition: all var(--duration-base) var(--ease-out);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-hairline);
  padding: 80px 0 32px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: var(--gradient-gold);
  opacity: 0.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-top: 20px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: 0.15em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col li,
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
  font-weight: 300;
}

.footer-col a:hover {
  color: var(--rose-gold);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-base) var(--ease-out);
}

.social-icon:hover {
  border-color: var(--rose-gold);
  color: var(--rose-gold);
  transform: translateY(-1px);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 28px;
}

.footer-bottom-links a {
  color: var(--text-dim);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-bottom-links a:hover {
  color: var(--rose-gold);
}

/* ---------- 页面通用 Hero ---------- */
.page-hero {
  position: relative;
  padding: 200px 0 100px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, transparent 30%, transparent 70%, var(--bg-deep) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
  font-weight: 300;
}

.page-hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-subtle);
}

/* ---------- 通用间距 ---------- */
section { padding: 120px 0; position: relative; }

/* ---------- 动画 ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .container, .nav-inner { padding: 0 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  section { padding: 100px 0; }
}

@media (max-width: 768px) {
  .container, .nav-inner { padding: 0 20px; }
  section { padding: 80px 0; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(14, 12, 10, 0.95);
    backdrop-filter: blur(16px);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-hairline);
  }

  .nav-links.mobile-open .nav-link {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-hairline);
  }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection {
  background: rgba(212, 168, 106, 0.3);
  color: var(--text-primary);
}
