/* ============================================================
   深圳书谷投资有限公司 - 产品介绍 / 价格开通 / 协议页面共用样式
   与主站蓝灰商务风格保持一致，移动端优先
   ============================================================ */

:root {
  --primary: #1f4e79;
  --primary-dark: #163a5c;
  --primary-light: #2f6ba0;
  --accent: #3d7ab5;
  --bg: #f4f7fa;
  --card: #ffffff;
  --text: #2c3e50;
  --text-2: #5a6b7c;
  --text-3: #8a99a8;
  --border: #dde5ec;
  --success: #2e7d5b;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(31, 78, 121, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-2);
}

.site-nav a {
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

/* ---------------- 首屏 ---------------- */
.hero {
  background: linear-gradient(135deg, #163a5c 0%, #1f4e79 55%, #3d7ab5 100%);
  color: #ffffff;
  padding: 52px 0 46px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 1px;
  margin: 14px 0 10px;
}

.hero p {
  font-size: 15px;
  color: #d9e6f2;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, opacity 0.2s;
}

.btn-light {
  background: #ffffff;
  color: var(--primary);
}

.btn-light:hover {
  background: #eaf2fa;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------------- 通用区块 ---------------- */
.section {
  padding: 46px 0;
}

.section.alt {
  background: #eef3f8;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 24px;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

.section-head p {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
}

/* ---------------- 功能介绍 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.feature .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eaf1f8;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 6px;
}

.feature p {
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------------- 套餐卡片 ---------------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.plan.featured {
  border: 2px solid var(--primary);
}

.plan .ribbon {
  position: absolute;
  top: 0;
  right: 18px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
}

.plan h3 {
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan .tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--primary);
  background: #eaf1f8;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 12px 0 4px;
}

.price .cny {
  font-size: 16px;
  font-weight: 600;
}

.price .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price .per {
  font-size: 13px;
  color: var(--text-2);
}

.plan .extra {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.plan ul {
  list-style: none;
  margin-bottom: 18px;
  flex: 1;
}

.plan li {
  position: relative;
  font-size: 13.5px;
  color: var(--text-2);
  padding: 5px 0 5px 20px;
}

.plan li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--accent);
  font-weight: 700;
}

.plan-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  line-height: 1.4;
  border: none;
  border-radius: 9px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.plan-btn:hover {
  background: var(--primary-dark);
}

.plan-btn:disabled {
  background: #b9c6d3;
  cursor: not-allowed;
}

/* ---------------- 说明 / 购买须知 ---------------- */
.notice {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 22px;
  box-shadow: var(--shadow);
}

.notice li {
  position: relative;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
  padding: 11px 0 11px 22px;
  border-bottom: 1px dashed #edf1f5;
}

.notice li:last-child {
  border-bottom: none;
}

.notice li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.notice strong {
  color: var(--text);
}

/* ---------------- 流程 ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 4px;
}

.step p {
  font-size: 13px;
  color: var(--text-2);
}

/* ---------------- 客服信息 ---------------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.support-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.support-item .label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.support-item .value {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}

/* ---------------- 常见问题 ---------------- */
.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq details {
  border-bottom: 1px solid #edf1f5;
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 20px 16px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------------- 价格页：移动端优先 ---------------- */
.price-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}

.price-hero {
  background: linear-gradient(150deg, #163a5c 0%, #1f4e79 58%, #3d7ab5 100%);
  color: #ffffff;
  padding: 32px 0 30px;
}

.price-hero .inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

.price-hero h1 {
  font-size: 26px;
  margin: 12px 0 8px;
  letter-spacing: 0.5px;
}

.price-hero p {
  font-size: 14px;
  color: #d9e6f2;
}

.price-hero .from {
  margin-top: 14px;
  font-size: 13px;
  color: #cfe0f0;
}

.price-hero .from b {
  color: #ffffff;
  font-size: 20px;
}

.price-page .plan-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.price-page .feature-grid {
  grid-template-columns: 1fr;
}

.price-page .section-head {
  text-align: left;
  margin-bottom: 18px;
}

.price-page .section-head h2 {
  font-size: 20px;
}

.price-page .section {
  padding: 26px 0;
}

.price-page .notice {
  padding: 4px 18px;
}

/* 待支付订单提示 */
.pending-order {
  display: none;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 16px;
  font-size: 13px;
  color: #874d00;
}

.pending-order.show {
  display: block;
}

.pending-order .po-title {
  font-weight: 600;
  color: #ad6800;
  margin-bottom: 2px;
}

.pending-order .po-tip {
  font-size: 12px;
  color: #b07d2a;
  margin-top: 4px;
}

.plan.highlight {
  border: 2px solid var(--primary);
  box-shadow: 0 6px 22px rgba(31, 78, 121, 0.2);
}

.plan .current-badge {
  display: none;
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
}

.plan.highlight .current-badge {
  display: inline-block;
}

/* ---------------- 协议页面 ---------------- */
.legal-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 38px 20px 56px;
}

.legal-wrap h1 {
  font-size: 26px;
  color: var(--primary-dark);
}

.legal-meta {
  font-size: 13px;
  color: var(--text-3);
  margin: 8px 0 26px;
}

.legal-wrap h2 {
  font-size: 18px;
  color: var(--primary);
  margin: 28px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}

.legal-wrap p,
.legal-wrap li {
  font-size: 14.5px;
  color: #3d4b59;
  line-height: 1.9;
}

.legal-wrap p {
  margin: 8px 0;
}

.legal-wrap ul {
  padding-left: 22px;
  margin: 8px 0;
}

.legal-wrap li {
  margin: 4px 0;
}

.legal-wrap strong {
  color: var(--text);
}

.legal-tip {
  background: #eef3f8;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--primary-dark);
  color: #c6d4e1;
  padding: 34px 0 30px;
  font-size: 13px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 14px;
  font-size: 13px;
}

.footer-links a {
  color: #dbe7f2;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  line-height: 2;
  color: #b6c6d6;
}

.footer-meta a {
  color: #b6c6d6;
}

.footer-meta a:hover {
  text-decoration: underline;
}

.footer-note {
  max-width: 900px;
  margin: 14px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #9fb2c4;
  text-align: justify;
  line-height: 1.8;
}

/* ---------------- 轻提示 ---------------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(16px);
  max-width: 82%;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(22, 35, 48, 0.9);
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   产品中心 / 统一支付中心
   ============================================================ */

/* ---------------- 产品中心：产品卡片 ---------------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.app-card.primary {
  grid-column: 1 / -1;
  border: 1px solid #c9dcec;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8fc 100%);
}

.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.app-card h3 {
  font-size: 18px;
  color: var(--primary);
  line-height: 1.4;
}

.app-card p {
  font-size: 13.5px;
  color: var(--text-2);
}

.app-badge {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--primary);
  background: #eaf1f8;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.app-badge.muted {
  color: var(--text-3);
  background: #f1f4f7;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px;
}

.app-tags span {
  font-size: 11.5px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 8px;
  background: #fafcfd;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-2);
  background: #ffffff;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--primary);
}

/* ---------------- 计费周期切换 ---------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 14px 0 22px;
}

.billing-toggle button {
  padding: 7px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.billing-toggle button.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.save-hint {
  color: var(--success);
  font-size: 12px;
  margin-left: 4px;
}

/* ---------------- 套餐对比表 ---------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cmp-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
}

.cmp-table th,
.cmp-table td {
  padding: 11px 14px;
  text-align: center;
  border-bottom: 1px solid #edf1f5;
  color: var(--text-2);
}

.cmp-table th:first-child,
.cmp-table td:first-child {
  text-align: left;
  color: var(--text);
}

.cmp-table thead th {
  background: #f6f9fc;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.cmp-table tr.group td {
  background: #eef4f9;
  color: var(--primary);
  font-weight: 600;
  text-align: left;
}

.cmp-table .yes {
  color: var(--success);
  font-weight: 700;
}

.cmp-table .no {
  color: #c2ccd6;
}

/* ---------------- 价格明细卡 ---------------- */
.price-lines {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 20px;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed #edf1f5;
  font-size: 14px;
}

.price-line:last-child {
  border-bottom: none;
}

.price-line .k {
  color: var(--text-2);
}

.price-line .v {
  color: var(--text);
  font-weight: 600;
}

.price-line .v em {
  font-style: normal;
  font-size: 18px;
  color: var(--primary);
  font-weight: 800;
}

.price-line .v small {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 2px;
}

/* ---------------- 收银台 ---------------- */
.checkout {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 44px;
}

.checkout-hero {
  background: linear-gradient(150deg, #163a5c 0%, #1f4e79 58%, #3d7ab5 100%);
  color: #ffffff;
  padding: 26px 0 24px;
}

.checkout-hero .inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

.checkout-hero h1 {
  font-size: 22px;
  margin-bottom: 6px;
}

.checkout-hero p {
  font-size: 13px;
  color: #d3e2f0;
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  padding: 16px 2px 14px;
}

.checkout-steps span {
  white-space: nowrap;
}

.checkout-steps i {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 12px;
}

.checkout-steps .on {
  color: var(--primary);
  font-weight: 600;
}

.check-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}

.check-card h2 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.order-product {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #edf1f5;
}

.order-product .logo-mark {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.order-product .meta {
  min-width: 0;
}

.order-product .meta .app {
  font-size: 12px;
  color: var(--text-3);
}

.order-product .meta .name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.order-product .meta .note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.order-rows {
  padding-top: 6px;
}

.order-rows .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  padding: 8px 0;
}

.order-rows .row .k {
  color: var(--text-2);
  flex-shrink: 0;
}

.order-rows .row .v {
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

.order-rows .row .v.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
}

.order-total .k {
  font-size: 14px;
  color: var(--text-2);
}

.order-total .amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.order-total .amount small {
  font-size: 14px;
  font-weight: 600;
  margin-right: 2px;
}

/* 支付方式 */
.pay-methods {
  display: grid;
  gap: 10px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pay-method.active {
  border-color: var(--primary);
  background: #f5f9fd;
}

.pay-method input {
  accent-color: var(--primary);
}

.pay-method .m-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pay-method .m-desc {
  font-size: 12px;
  color: var(--text-3);
}

.pay-method .m-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f5ec;
  color: #2e7d5b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.pay-submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 0;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.pay-submit:hover {
  background: var(--primary-dark);
}

.pay-submit:disabled {
  background: #b9c6d3;
  cursor: not-allowed;
}

.checkout-note {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.8;
  margin-top: 12px;
}

.checkout-note a {
  color: var(--accent);
}

/* 状态提示 */
.state-box {
  text-align: center;
  padding: 26px 18px;
}

.state-box .state-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.state-box.ok .state-icon {
  background: #e8f5ec;
  color: var(--success);
}

.state-box.wait .state-icon {
  background: #fff5e0;
  color: #b07d2a;
}

.state-box.err .state-icon {
  background: #fdeceb;
  color: #c0392b;
}

.state-box h2 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}

.state-box p {
  font-size: 13.5px;
  color: var(--text-2);
}

.state-box .state-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* 空态 / 引导 */
.guide {
  background: #fffdf6;
  border: 1px solid #f0e2bd;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: #7a6420;
  margin-bottom: 14px;
}

.guide strong {
  color: #5c4b16;
}

.guide a {
  color: var(--primary);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 26px 18px;
  color: var(--text-2);
  font-size: 14px;
}

.empty-state .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* ---------------- 退款流程 ---------------- */
.flow {
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.flow-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.flow-item::before {
  counter-increment: flow;
  content: counter(flow);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf1f8;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-item h3 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 4px;
}

.flow-item p {
  font-size: 12.5px;
  color: var(--text-2);
}

/* ---------------- 表单（退款申请） ---------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  color: var(--text-2);
}

.field label b {
  color: #c0392b;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.copy-tip {
  font-size: 12px;
  color: var(--text-3);
}

/* ---------------- 响应式补充 ---------------- */
@media (max-width: 860px) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .app-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .app-card.primary {
    grid-column: auto;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .check-card {
    padding: 16px;
  }

  .order-total .amount {
    font-size: 24px;
  }

  .checkout-steps {
    font-size: 11px;
  }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .feature-grid,
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header .inner {
    height: 56px;
    padding: 0 16px;
  }

  .brand {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .site-nav .optional {
    display: none;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .section {
    padding: 32px 0;
  }

  .section-head h2 {
    font-size: 21px;
  }

  .feature-grid,
  .plan-grid,
  .support-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .legal-wrap {
    padding: 28px 16px 44px;
  }

  .legal-wrap h1 {
    font-size: 22px;
  }

  .container {
    padding: 0 16px;
  }
}
