/* 基础与主题变量 */
:root {
  --bg: #0d1b2a;
  --bg-soft: #11243b;
  --panel: #13263f;
  --panel-soft: #182f4a;
  --text: #f3f7ff;
  --muted: #9cb3c9;
  --primary: #f45a2a;
  --primary-2: #ff7b3d;
  --accent: #6ec1e4;
  --border: #1f3a56;
  --green: #61ce70;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(820px 420px at 85% 10%, rgba(110,193,228,.18), transparent 65%),
    radial-gradient(720px 380px at 15% -20%, rgba(244,90,42,.14), transparent 70%),
    linear-gradient(180deg, #0d1b2a 0%, #10263d 55%, #08101d 100%);
  font-family: "DM Sans", "Roboto", ui-sans-serif, system-ui, -apple-system, Segoe UI, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--primary-2); }
.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 64px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, rgba(24,47,74,.7), rgba(13,27,42,0)); }
.section-title { font-size: 28px; margin: 0 0 24px; letter-spacing: .2px; color: #ffffff; }

/* 头部 */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(130%) blur(10px); background: rgba(13,27,42,.92); border-bottom: 1px solid rgba(12,34,54,.8); box-shadow: 0 12px 24px rgba(2,12,24,.45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; }
.brand img { height: 28px; width: auto; display: block; }
.nav a { margin-left: 18px; color: rgba(240,247,255,.76); font-weight: 500; }
.nav a:hover { color: var(--primary); }

/* 英雄区 */
.hero { padding: 72px 0; position: relative; overflow: hidden; border-bottom: 1px solid rgba(12,34,54,.9); background: linear-gradient(135deg, rgba(17,37,59,.92) 0%, rgba(8,16,27,.8) 45%, rgba(24,47,74,.85) 100%); }
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  z-index: 0;
}
.hero::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(110,193,228,.22) 0%, rgba(17,37,59,0) 70%);
  top: -180px;
  right: -120px;
}
.hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(244,90,42,.16) 0%, rgba(8,16,27,0) 75%);
  bottom: -160px;
  left: -80px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { font-size: 38px; margin: 0 0 16px; line-height: 1.2; color: #ffffff; }
.hero-text p { color: var(--muted); margin: 0 0 20px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); color: var(--text); background: rgba(255,255,255,.04); font-weight: 600; letter-spacing: .3px; transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(7,12,20,.35); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: none; box-shadow: 0 20px 30px rgba(244,90,42,.35); }
.btn.primary:hover { box-shadow: 0 24px 40px rgba(244,90,42,.45); }
.btn.ghost { background: rgba(110,193,228,.14); color: var(--accent); border-color: rgba(110,193,228,.4); }
.btn.ghost:hover { background: rgba(110,193,228,.2); color: #ffffff; }
.hero-media { border: 1px solid rgba(255,255,255,.08); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.04); box-shadow: 0 28px 50px rgba(2,12,24,.5); }
.hero-media img { aspect-ratio: 16/9; object-fit: cover; opacity: 1; }

/* 卡片与栅格 */
.card { border: 1px solid rgba(255,255,255,.04); background: var(--panel); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px rgba(3,10,20,.35); backdrop-filter: blur(6px); }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(19,38,63,.6); }
.card-body { padding: 18px 20px; color: var(--muted); }
.card img { width: 100%; height: auto; }
.tag { font-size: 12px; color: var(--accent); background: rgba(110,193,228,.12); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(110,193,228,.35); text-transform: uppercase; letter-spacing: .08em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.key-points { margin-top: 20px; }
.key-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.key-list li { position: relative; padding-left: 22px; color: var(--muted); }
.key-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(97,206,112,.45); }

/* 标签与图集 */
.tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.tab { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); color: rgba(241,247,255,.86); cursor: pointer; font-weight: 500; letter-spacing: .02em; transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease; }
.tab:hover { color: #fff; background: rgba(255,255,255,.12); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(3,12,22,.3); }
.tab.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 16px 26px rgba(244,90,42,.45); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; background: rgba(16,38,61,.88); cursor: zoom-in; box-shadow: 0 18px 34px rgba(2,10,18,.38); transition: transform .35s ease, box-shadow .35s ease; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(2,10,18,.45); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; opacity: 1; filter: contrast(1.05) saturate(1.06); transition: transform .35s ease, opacity .35s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption { padding: 12px 14px; font-size: 13px; color: rgba(228,237,247,.92); border-top: 1px solid rgba(255,255,255,.08); background: rgba(12,28,46,.9); }
.note { margin-top: 12px; color: rgba(204,218,233,.78); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(4,10,18,.82); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: min(92vw, 1200px); max-height: 78vh; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(9,20,33,.92); box-shadow: 0 24px 60px rgba(1,7,14,.65); }
.lightbox-caption { max-width: min(92vw, 1200px); color: rgba(209,224,244,.8); margin-top: 14px; text-align: center; }
.lightbox-close { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(19,40,63,.92); color: #ffffff; font-size: 22px; cursor: pointer; transition: all .3s ease; }
.lightbox-close:hover { background: rgba(244,90,42,.9); color: #fff; border-color: transparent; }

/* 动效与可视化细节 */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s ease; will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* 页脚 */
.footer { border-top: 1px solid rgba(12,34,54,.85); padding: 24px 0; color: rgba(210,223,240,.66); background: rgba(10,20,35,.85); text-align: center; letter-spacing: .08em; text-transform: uppercase; }

/* Markdown 容器基础样式 */
.markdown-content { padding: 18px 20px; background: rgba(16,38,61,.55); border: 1px solid rgba(255,255,255,.05); border-radius: 16px; box-shadow: 0 18px 36px rgba(2,9,18,.28); }
.markdown-content h1, .markdown-content h2, .markdown-content h3 { margin: 8px 0; color: #ffffff; }
.markdown-content p { margin: 8px 0; color: rgba(199,213,229,.8); }
.markdown-content ul { margin: 8px 0; padding-left: 20px; color: rgba(199,213,229,.76); }
.markdown-content pre { background: rgba(11,28,48,.8); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; padding: 12px; overflow: auto; color: rgba(226,237,249,.85); }
.loading { color: rgba(172,196,216,.7); }

/* 响应式 */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0; }
  .hero-text h1 { font-size: 34px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero-text h1 { font-size: 30px; }
  .brand img { height: 24px; }
}

/* 导航下拉分区样式 */
.nav { display: flex; align-items: center; gap: 8px; }
.nav-group { position: relative; margin-left: 10px; }
.nav-parent { appearance: none; background: rgba(255,255,255,.06); color: rgba(241,247,255,.86); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; letter-spacing: .02em; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.nav-parent:hover { background: rgba(255,255,255,.12); color: #fff; box-shadow: 0 8px 16px rgba(2,10,18,.3); }
.nav-menu { position: absolute; top: calc(100% + 12px); left: 0; display: none; padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(13,27,42,.98); box-shadow: 0 24px 48px rgba(1,7,14,.6); min-width: 640px; backdrop-filter: blur(10px) saturate(120%); }
.nav-group.open .nav-menu { display: grid; }
.nav-menu { grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 16px; }
.nav-subgroup { padding: 8px 10px; }
.nav-subtitle { display: inline-block; font-size: 12px; color: rgba(199,213,229,.85); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.nav-menu a { display: block; padding: 8px 10px; border-radius: 10px; color: rgba(240,247,255,.9); border: 1px solid transparent; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.nav-menu a:hover { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.12); }