/* ===== Guía del Norte 全局样式 ===== */
:root {
  --navy: #123A63;
  --navy-light: #1a5490;
  --white: #ffffff;
  --red: #AA151B;
  --yellow: #F1BF00;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e2e4e8;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --text: #1f2937;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.7;
}

/* ===== 导航栏 ===== */
.nav {
  background: var(--navy);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  color: var(--white); font-size: 1.2rem; font-weight: 700;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.nav-brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--yellow); }

/* ===== 语言切换按钮 ===== */
.lang-toggle {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.25);
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ===== 语言显示控制 ===== */
[data-lang] { display: none; }
html[lang="zh"] [data-lang="zh"] { display: revert; }
html[lang="es"] [data-lang="es"] { display: revert; }

/* 允许 inline 元素正常显示 */
html[lang="zh"] span[data-lang="zh"],
html[lang="es"] span[data-lang="es"] { display: inline; }
html[lang="zh"] a[data-lang="zh"],
html[lang="es"] a[data-lang="es"] { display: inline; }

/* ===== 容器 ===== */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 80px 0 60px; text-align: center;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 16px; font-weight: 800; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
}
.hero-badge.red { background: var(--red); }
.hero-badge.yellow { background: var(--yellow); color: var(--navy); margin-left: 8px; }

/* ===== 卡片 ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

/* ===== 功能格子（App 功能介绍） ===== */
.section { padding: 60px 0; }
.section-title {
  text-align: center; font-size: 1.8rem; font-weight: 800;
  color: var(--navy); margin-bottom: 40px;
}
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy); }
.feature-card p { color: var(--gray-600); font-size: 0.9rem; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 12px 32px; border-radius: 8px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #e0ac00; }

/* ===== 页脚 ===== */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 40px 0; text-align: center; font-size: 0.85rem;
}
.footer a { color: var(--yellow); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid {
  display: flex; justify-content: center; gap: 40px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.footer-col h4 {
  color: var(--white); margin-bottom: 12px; font-size: 0.9rem;
}
.footer-col a { display: block; margin-bottom: 6px; }

/* ===== 内容页面 ===== */
.content-section { padding: 40px 0 60px; }
.content-section h2 { color: var(--navy); font-size: 1.6rem; margin: 32px 0 16px; }
.content-section h3 { color: var(--navy); font-size: 1.2rem; margin: 24px 0 12px; }
.content-section p { margin-bottom: 16px; color: var(--gray-800); }
.content-section ul { padding-left: 24px; margin-bottom: 16px; }
.content-section li { margin-bottom: 8px; }
.content-section a { color: var(--navy-light); }

/* ===== CTA ===== */
.cta-section {
  background: var(--navy); color: var(--white);
  padding: 60px 0; text-align: center;
}
.cta-section h2 { font-size: 1.8rem; margin-bottom: 16px; }
.cta-section p { opacity: 0.85; margin-bottom: 32px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 50px 0 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; }
  .nav-brand { font-size: 1rem; }
  .section { padding: 40px 0; }
  .lang-toggle { padding: 4px 10px; font-size: 0.78rem; }
}
