/* ==========================================================================
   内页样式（rental / pricing / subscription / hosting / network / faq / partner）
   只依赖 themes.css 的变量，全主题可用
   ========================================================================== */

/* ---------- 页头 ---------- */
.page-head {
  padding: clamp(48px, 7vw, 92px) 0 clamp(30px, 4vw, 44px);
}

.page-title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  margin: 10px 0 0;
}

.page-lead {
  margin-top: 16px;
  max-width: 620px;
  font-size: var(--fs-md);
  line-height: 1.68;
  color: var(--text-muted);
}

/* ---------- 特性卡片 ---------- */
.card-feature {
  display: flex;
  flex-direction: column;
}

.card-feature > .btn {
  margin-top: auto;
}

.card-top { margin-bottom: 16px; }

.card-feature h3 {
  font-size: var(--fs-lg);
  margin-bottom: 6px;
}

.card-muted {
  background: var(--surface);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
}

.price-num {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.price-unit {
  font-size: var(--fs-sm);
  color: var(--text-subtle);
}

.card-desc {
  font-size: var(--fs-sm);
  line-height: 1.62;
  margin-bottom: 18px;
}

/* ---------- 规格清单 ---------- */
.spec-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.spec-list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-muted);
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .52em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.spec-list-muted li::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--line);
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--page);
  min-width: 620px;
}

.price-table th,
.price-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.price-table thead th {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: var(--surface);
  white-space: nowrap;
}

.price-table tbody tr:last-child td { border-bottom: none; }

.price-table tbody tr:hover { background: var(--surface); }

.price-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
}

.price-table strong { font-weight: 600; }

/* ---------- 提示条 ---------- */
.notice {
  margin-top: 22px;
  padding: 15px 18px;
  border-radius: var(--radius-card);
  background: var(--accent-tint);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--accent-text);
}

.notice strong { color: var(--accent-text); }

/* ---------- 编号步骤 ---------- */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: steplist;
}

.step-list li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step-list li:last-child { border-bottom: none; }

.step-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--accent-tint);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--accent-tint);
}

.step-list h3 {
  font-size: var(--fs-base);
  margin-bottom: 6px;
  font-weight: 600;
}

.step-list p {
  font-size: var(--fs-sm);
  line-height: 1.66;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- CTA 条 ---------- */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cta-strip h2 {
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  margin-bottom: 8px;
}

.cta-strip p {
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0;
}

.cta-strip > .btn { flex: none; }

/* ==========================================================================
   FAQ 手风琴
   ========================================================================== */
.faq-group { margin-bottom: 40px; }

.faq-group > h2 {
  font-size: var(--fs-lg);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 34px 17px 0;
  position: relative;
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}

.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > summary:hover { color: var(--accent-text); }

.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--text-subtle);
  border-bottom: 1.6px solid var(--text-subtle);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.faq-item[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--accent);
}

.faq-answer {
  padding: 0 34px 20px 0;
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--text-muted);
}

.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--accent-text); border-bottom: 1px solid var(--accent-tint); }

/* ==========================================================================
   代理页
   ========================================================================== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tier {
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--page);
  box-shadow: 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
}

.tier h3 {
  font-size: var(--fs-md);
  margin-bottom: 6px;
}

.tier .rate {
  font-size: 1.6rem;
  font-weight: 650;
  color: var(--accent-text);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 4px;
}

.tier .rate-label {
  font-size: var(--fs-2xs);
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.tier ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

.tier li {
  padding-left: 16px;
  position: relative;
}

.tier li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 购买页 ---------- */
.buy-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}

.buy-summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 26px;
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.buy-summary h3 {
  font-size: var(--fs-md);
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-sm);
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.summary-row:last-of-type { border-bottom: none; }
.summary-row .k { color: var(--text-muted); }
.summary-row .v { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.summary-total .v {
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--accent-text);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* 机型选择卡片（radio） */
.buy-section-title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.buy-section-title:not(:first-child) { margin-top: 34px; }

.pick-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.pick {
  position: relative;
  display: block;
  cursor: pointer;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--page);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.pick:hover { box-shadow: 0 0 0 1px var(--line-strong); }

.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pick-name { font-weight: 600; font-size: var(--fs-base); }

.pick-price {
  font-weight: 650;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pick-desc {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  line-height: 1.6;
}

.pick input:checked ~ .pick-head .pick-name::before {
  content: "✓ ";
  color: var(--accent);
}

.pick:has(input:checked) {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.pick input:focus-visible ~ .pick-head .pick-name {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .tier-grid { grid-template-columns: 1fr; }
  .buy-layout { grid-template-columns: 1fr; }
  .buy-summary { position: static; }
}

@media (max-width: 640px) {
  .page-head { padding-top: 40px; }
  .step-list li { gap: 14px; padding: 18px 0; }
  .step-num { width: 28px; height: 28px; font-size: var(--fs-2xs); }
  .cta-strip { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-strip > .btn { width: 100%; }
  .price-table th, .price-table td { padding: 12px 14px; }
}


/* ==========================================================================
   法律页面（隐私政策 / 服务条款）
   ========================================================================== */
.legal {
  max-width: 760px;
  font-size: var(--fs-base);
  line-height: 1.78;
  color: var(--text-muted);
}

.legal h2 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
  margin: 38px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -.01em;
}

.legal h2:first-child { margin-top: 0; }

.legal p { margin: 0 0 15px; }

.legal ul {
  margin: 0 0 18px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legal li { line-height: 1.7; }

.legal strong { color: var(--ink); font-weight: 600; }

.legal a {
  color: var(--accent-text);
  border-bottom: 1px solid var(--accent-tint);
}

.legal a:hover { border-color: var(--accent); }
