/* ── 方向基地 · 全站共享样式 ── */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --accent: #0EA5E9;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --success: #10B981;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

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

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

/* ── 导航栏 ── */
.navbar {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--primary);
}

.nav-logo {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 14px;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text);
  transition: all 0.15s;
}

.nav-links > li > a:hover { background: var(--primary-light); color: var(--primary); }

/* 下拉菜单 */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.dropdown-item:hover { background: var(--primary-light); }

.dropdown-item-icon {
  width: 36px; height: 36px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

.dropdown-item-text strong { display: block; font-size: 14px; color: var(--text); }
.dropdown-item-text span { font-size: 12px; color: var(--muted); }

.nav-cta {
  background: var(--primary); color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 600;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: var(--white) !important; }

/* ── 通用按钮 ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.35); }

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

.btn-lg { padding: 14px 36px; font-size: 16px; }

/* ── 通用布局 ── */
.section { padding: 80px 5%; }
.section-sm { padding: 48px 5%; }
.container { max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  padding: 4px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800; line-height: 1.3;
  margin-bottom: 16px; color: var(--text);
}

.section-desc {
  font-size: 16px; color: var(--muted);
  max-width: 560px; margin: 0 auto 48px;
}

/* ── 页脚 ── */
footer {
  background: #0F172A; color: #94A3B8;
  padding: 48px 5% 32px;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1E293B;
}

.footer-brand-name { color: white; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer-brand-desc { font-size: 13px; line-height: 1.7; }

.footer-col h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: #94A3B8; transition: color 0.15s; }
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  max-width: 1100px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}

/* ── 响应式 ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
