:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-soft: #eff4ff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f7f8fa;
  --white: #ffffff;
  --danger: #dc2626;
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 顶部导航 */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  font-size: 15px;
}

.nav a.active,
.nav a:hover {
  color: var(--primary);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.btn-block {
  display: block;
  width: 100%;
}

/* 首页 */
.hero {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: var(--white);
  padding: 80px 0;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 640px;
  margin-bottom: 32px;
}

.hero .btn {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  margin-right: 12px;
}

.hero .btn-ghost {
  background: transparent;
  color: var(--white);
}

.section {
  padding: 56px 0;
}

.section-title {
  font-size: 26px;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.step-no {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 600;
  margin-bottom: 12px;
}

.about {
  background: var(--white);
}

.about-body {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

.about-body p + p {
  margin-top: 12px;
}

/* 商品页 */
.page-head {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.page-head h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.page-head p {
  color: var(--muted);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan.hot {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(29, 78, 216, 0.12);
}

.plan-tag {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
}

.plan-price {
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0 4px;
}

.plan-credit {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.plan .btn {
  margin-top: auto;
}

.plan p {
  margin-bottom: 20px;
}

.notice {
  margin-top: 32px;
}

.notice h3 {
  margin-bottom: 12px;
}

.notice ol {
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.notice li + li {
  margin-top: 6px;
}

/* 支付页 */
.pay-wrap {
  max-width: 640px;
  margin: 40px auto;
}

.pay-wrap .card + .card {
  margin-top: 16px;
}

.pay-wrap h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}

.row:last-child {
  border-bottom: none;
}

.row span:first-child {
  color: var(--muted);
}

.row.total span:last-child {
  font-size: 24px;
  font-weight: 700;
  color: var(--danger);
}

.field label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
}

.field-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary-soft);
  cursor: pointer;
}

.pay-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1677ff;
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.pay-method input {
  margin-left: auto;
  accent-color: var(--primary);
}

.pay-result {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 14px;
}

.empty {
  text-align: center;
  padding: 48px 24px;
}

.empty p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* 页脚 */
#site-footer {
  background: #111827;
  color: #9ca3af;
  font-size: 13px;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-company {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 6px;
}

.footer-legal {
  text-align: right;
}

.footer-legal a {
  color: #9ca3af;
}

.footer-legal a:hover {
  color: var(--white);
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .btn {
    margin-bottom: 12px;
  }

  .footer-legal {
    text-align: left;
  }
}
