/* ICP验收演示站 - 共享样式 */
:root {
  --primary: #2563eb;
  --primary-dark: #185fa5;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-secondary: #f6f8fb;
  --radius: 10px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

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

/* ===== 顶部导航 ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text-secondary);
  font-size: 15px;
}
.main-nav a.active, .main-nav a:hover { color: var(--primary); text-decoration: none; }
.header-actions { display: flex; gap: 10px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-lg { padding: 12px 32px; font-size: 16px; }

/* ===== 首屏横幅 ===== */
.hero {
  background: var(--bg-secondary);
  text-align: center;
  padding: 72px 20px;
}
.hero h1 { font-size: 34px; font-weight: 600; margin-bottom: 12px; }
.hero p { font-size: 16px; color: var(--text-secondary); margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; }

/* ===== 通用区块 ===== */
.section { padding: 56px 0; }
.section-title { text-align: center; font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text-secondary); margin-bottom: 36px; }

/* ===== 服务卡片 ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.service-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.service-card p { font-size: 14px; color: var(--text-secondary); }

/* ===== 套餐 ===== */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  position: relative;
  background: var(--bg);
}
.plan-card.featured { border: 2px solid var(--primary); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 12px; padding: 2px 14px; border-radius: 999px;
}
.plan-name { font-size: 15px; color: var(--text-secondary); margin-bottom: 6px; }
.plan-price { font-size: 32px; font-weight: 600; }
.plan-price small { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.plan-features { list-style: none; margin: 16px 0 20px; text-align: left; }
.plan-features li { font-size: 14px; color: var(--text-secondary); padding: 4px 0 4px 22px; position: relative; }
.plan-features li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* ===== 支付页 ===== */
.pay-layout { max-width: 760px; margin: 40px auto; }
.step-title { font-size: 16px; font-weight: 600; margin: 26px 0 12px; }
.step-title:first-child { margin-top: 0; }
.step-title .step-no {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 13px;
  text-align: center; line-height: 22px; margin-right: 8px;
}
.plan-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-option {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; cursor: pointer;
  background: var(--bg);
}
.plan-option.selected { border: 2px solid var(--primary); background: #eef4fe; }
.plan-option .name { font-size: 14px; color: var(--text-secondary); }
.plan-option .price { font-size: 20px; font-weight: 600; margin-top: 4px; }
.order-box {
  background: var(--bg-secondary); border-radius: var(--radius); padding: 20px 24px;
}
.order-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.order-row .label { color: var(--text-secondary); }
.order-row.total .value { font-weight: 600; color: #e24b4a; font-size: 17px; }
.pay-methods { display: flex; gap: 12px; }
.pay-method {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 22px; display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; background: var(--bg);
}
.pay-method.selected { border: 2px solid var(--primary); background: #eef4fe; }
.radio-dot {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--border);
}
.pay-method.selected .radio-dot { border: 5px solid var(--primary); }
.agreement-check { display: flex; gap: 8px; align-items: flex-start; margin: 24px 0 16px; font-size: 14px; color: var(--text-secondary); }
.agreement-check input { margin-top: 4px; }
.btn-pay { width: 100%; font-size: 16px; padding: 14px; }

/* ===== 内容页（协议/关于）===== */
.doc-page { max-width: 800px; margin: 40px auto; }
.doc-page h1 { font-size: 24px; font-weight: 600; text-align: center; margin-bottom: 6px; }
.doc-page .doc-meta { text-align: center; color: var(--text-secondary); font-size: 13px; margin-bottom: 32px; }
.doc-page h2 { font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.doc-page p, .doc-page li { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.doc-page ul { padding-left: 22px; }

/* ===== 页脚 ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  margin-top: 60px;
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.site-footer .footer-links { margin-bottom: 8px; }
.site-footer .footer-links a { color: var(--text-secondary); margin: 0 8px; }
.site-footer .beian a { color: var(--text-secondary); }
.site-footer .beian a:hover { color: var(--primary); }

/* ===== 弹窗 ===== */
.modal-mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--bg); border-radius: 14px;
  width: 340px; padding: 30px 26px; text-align: center;
}
.modal .qr-box {
  width: 190px; height: 190px; margin: 16px auto;
  border: 1px dashed var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary, #9ca3af); font-size: 13px;
  background: var(--bg-secondary);
}
.modal h3 { font-size: 16px; font-weight: 600; }

@media (max-width: 760px) {
  .service-grid, .plan-grid, .plan-select { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
