/* ===== Variables ===== */
:root {
  --primary: #0a2540;
  --primary-light: #1a3a5c;
  --accent: #c9a227;
  --accent-light: #e8c547;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --text-light: #8a919c;
  --bg: #ffffff;
  --bg-warm: #faf8f4;
  --bg-hero: linear-gradient(135deg, #f7f4ed 0%, #eef3f8 50%, #f5f0e6 100%);
  --border: #e8eaed;
  --shadow: 0 8px 32px rgba(10, 37, 64, 0.08);
  --radius: 12px;
  --header-h: 64px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -2px;
  color: var(--border);
  pointer-events: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 37, 64, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-desc {
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}

.hero-desc p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.85;
}

.hero-desc p:last-child {
  margin-bottom: 0;
}

/* ===== Intro Section ===== */
.section-intro {
  padding: 100px 0;
  background: var(--bg);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 48px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Contact Section ===== */
.section-contact {
  padding: 80px 0 40px;
  background: var(--bg);
}

.contact-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-box h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-info {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 2;
}

.contact-info a {
  color: var(--primary);
}

.contact-info a:hover {
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
}

.footer a:hover {
  color: var(--accent-light);
}

.footer-divider {
  margin: 0 8px;
  opacity: 0.4;
}

/* ===== Mobile Nav ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-link:not(:last-child)::after {
    display: none;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .mobile-toggle {
    display: flex;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero {
    padding-bottom: 60px;
  }

  .section-intro {
    padding: 72px 0;
  }
}
