/* ===== 基础 ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --warning-bg: #fffbeb;
  --warning-border: #f59e0b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --shadow-hover: 0 12px 32px rgba(37, 99, 235, .14);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

code {
  background: #eef2ff;
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .92em;
}

/* ===== 导航 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px rgba(0,0,0,.04); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo-mark { font-size: 1.3rem; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 18px; border-radius: 999px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--primary-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero {
  padding: 160px 0 90px;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(37, 99, 235, .08), transparent),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(99, 102, 241, .07), transparent),
    var(--bg);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: #eef2ff; color: var(--primary-dark);
  font-size: .85rem; font-weight: 600;
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 { font-size: 2.6rem; line-height: 1.3; letter-spacing: .5px; margin-bottom: 20px; }
.hero-sub { color: var(--text-light); font-size: 1.08rem; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 1rem; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(37, 99, 235, .35); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.hero-stats { display: flex; justify-content: center; gap: 64px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; color: var(--primary); }
.stat span { font-size: .88rem; color: var(--text-light); }

/* ===== 通用 Section ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head h2 { font-size: 2rem; margin-bottom: 14px; }
.section-head p { color: var(--text-light); }

/* ===== 服务卡片 ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(37, 99, 235, .3); }
.card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  background: #eef2ff; border-radius: 14px;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: .95rem; margin-bottom: 16px; }
.card ul { list-style: none; }
.card li { font-size: .9rem; color: var(--text-light); padding: 5px 0 5px 20px; position: relative; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ===== 域名服务 ===== */
.domain-box {
  max-width: 760px; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 44px;
  text-align: center;
}
.domain-examples { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.domain-example {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 1.5rem;
  word-break: break-all;
}
.domain-your { color: var(--primary); font-weight: 700; }
.domain-suffix { color: var(--text-light); }
.domain-features { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.feature { font-size: .92rem; color: var(--text); }
.domain-note {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: .9rem;
  color: #92400e;
  text-align: left;
}

/* ===== 关于 ===== */
.about-inner { display: flex; justify-content: center; }
.about-text { max-width: 720px; }
.about-text h2 { font-size: 2rem; margin: 12px 0 18px; }
.about-text p { color: var(--text-light); margin-bottom: 14px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.value {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.value strong { color: var(--primary); font-size: 1.05rem; }
.value span { font-size: .85rem; color: var(--text-light); }

/* ===== 免责声明 ===== */
.section-disclaimer { background: var(--bg-alt); }
.disclaimer-card {
  max-width: 820px; margin: 0 auto;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-left-width: 6px;
  border-radius: var(--radius);
  padding: 40px 44px;
}
.disclaimer-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.disclaimer-icon { font-size: 1.8rem; }
.disclaimer-head h2 { font-size: 1.6rem; color: #92400e; }
.disclaimer-body p { font-size: .95rem; color: #78350f; margin-bottom: 14px; }
.disclaimer-body p:last-child { margin-bottom: 0; }
.disclaimer-body code { background: rgba(245, 158, 11, .18); color: #92400e; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; }
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: var(--text);
  transition: transform .25s, box-shadow .25s;
  display: block;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--text); }
.contact-icon { font-size: 1.9rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-card p { color: var(--text-light); font-size: .92rem; word-break: break-all; }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand p { color: var(--text-light); font-size: .88rem; margin-top: 4px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-light); font-size: .9rem; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { text-align: right; color: var(--text-light); font-size: .85rem; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .card-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero-stats { gap: 36px; }
  .desktop-br { display: none; }
  .domain-box, .disclaimer-card { padding: 32px 24px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
}
