/* ============================================================
   大星网络 主题 - 基础样式
   主题色由每个页面的 body class 控制，参见 components.css
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --fg: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;

  /* 默认主题色（首页：蓝白） */
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-fog: #dbeafe;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* 头部导航 */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding-right: 90px;   /* 给 TRP 语言切换器腾出空间 */
  position: relative;
}

.logo {
  font-weight: 700; font-size: 18px;
  letter-spacing: 0.5px; color: var(--fg);
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 14px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 13px; opacity: 0.7; letter-spacing: -0.2px;
  transition: color .2s, opacity .2s;
  color: var(--fg); white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent); opacity: 1; font-weight: 600;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--gradient); color: #fff;
  font-size: 13px; font-weight: 500;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); }

/* Hero 区 */
.sub-hero {
  position: relative; overflow: hidden;
  padding: 110px 0 90px;
  text-align: center;
  background: linear-gradient(160deg, var(--accent-soft) 0%, var(--accent-fog) 50%, #ffffff 100%);
}
.sub-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}
.sub-hero::after {
  content: ''; position: absolute; bottom: -150px; left: -100px;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-fog) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.sub-hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(0,0,0,0.04);
  color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.sub-hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.15;
  letter-spacing: -1px; margin-bottom: 20px;
}
.sub-hero h1 .accent { color: var(--accent); }
.sub-hero .lead {
  font-size: 17px; color: var(--muted); line-height: 1.8;
  max-width: 720px; margin: 0 auto 32px;
}

/* 按钮 */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px;
  background: var(--gradient); color: #fff;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px;
  background: #fff; color: var(--accent);
  border: 1.5px solid var(--accent);
  font-size: 14px; font-weight: 600;
  transition: all .2s; cursor: pointer;
}
.btn-secondary:hover { background: var(--accent); color: #fff; }

/* 区块 */
.block { padding: 90px 0; }
.block.alt { background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 100%); }

.section-title {
  font-size: 40px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.5px; margin: 14px 0 12px;
}
.section-subtitle {
  font-size: 16px; color: var(--muted); line-height: 1.7;
  max-width: 720px; margin-bottom: 56px;
}

/* Footer */
footer {
  padding: 32px 0; text-align: center; font-size: 13px;
}
footer .container { color: var(--muted); }
footer a { color: var(--accent); margin: 0 6px; }
footer a:hover { text-decoration: underline; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .sub-hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .block { padding: 60px 0; }
}