/* portal 骨架樣式 — 品牌中性, 細化於發布波 */
:root {
  --accent: #45D5DB;
  --ink: #1c2528;
  --muted: #5d6b70;
  --bg: #f7fafa;
  --card: #ffffff;
  --danger: #c62828;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Noto Sans TC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }

.site-header {
  display: flex; align-items: center;
  padding: 16px 24px;
  background: var(--card);
  border-bottom: 2px solid var(--accent);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; }
.brand-mark-lg { width: 72px; height: 72px; }
.brand-name { font-size: 1.25rem; font-weight: 700; }

main { max-width: 860px; margin: 0 auto; padding: 32px 20px 64px; }
.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 { font-size: 1.8rem; margin-bottom: 12px; }
.hero p { color: var(--muted); }

.tiers { padding-top: 24px; }
.tiers h2, .support-section h2 { margin-bottom: 8px; }
.tiers-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tier-card {
  background: var(--card); border-radius: 12px; padding: 24px;
  border: 1px solid #e0e8e9; text-align: center;
}
.tier-featured { border: 2px solid var(--accent); }
.tier-price { font-size: 1.6rem; font-weight: 700; margin: 8px 0; }

.support-section { margin-bottom: 32px; }
.support-section p { color: var(--muted); }
.feature-list { list-style: none; }
.feature-list li {
  background: var(--card); border-radius: 10px; padding: 14px 18px;
  margin-bottom: 10px; border: 1px solid #e0e8e9;
}
.feature-list b { display: block; margin-bottom: 2px; }

.ticket-form { background: var(--card); border-radius: 12px; padding: 24px; border: 1px solid #e0e8e9; }
.ticket-form label { display: block; font-weight: 700; margin: 14px 0 6px; }
.ticket-form select, .ticket-form textarea, .ticket-form input {
  width: 100%; padding: 10px; border: 1px solid #ccd6d8; border-radius: 8px;
  font: inherit; background: #fff;
}
.ticket-form textarea { min-height: 140px; resize: vertical; }
button.primary {
  margin-top: 18px; padding: 12px 28px; border: none; border-radius: 10px;
  background: var(--accent); color: #073032; font-weight: 700; font-size: 1rem;
  cursor: pointer;
}
button.primary:disabled { opacity: 0.5; cursor: default; }
.form-status { margin-top: 12px; font-size: 0.95rem; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: #1b5e20; }
.signin-hint { color: var(--muted); margin-bottom: 12px; }

.site-footer {
  text-align: center; padding: 24px; color: var(--muted);
  font-size: 0.9rem; border-top: 1px solid #e0e8e9;
}
.footer-sep { margin: 0 8px; }

/* 儲值頁 (topup.html) */
.topup-section h2 { margin-bottom: 12px; }
.topup-card {
  background: var(--card); border-radius: 12px; padding: 24px;
  border: 1px solid #e0e8e9; margin-bottom: 16px;
}
.sandbox-banner {
  background: #fff8e1; border: 1px solid #f0d060; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 16px; font-size: 0.9rem; color: #7a5c00;
}
.balance-line { margin-bottom: 16px; }
.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 8px;
}
.plan-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--bg); border: 2px solid #e0e8e9; border-radius: 10px;
  padding: 16px 12px; cursor: pointer; font: inherit; color: inherit;
}
.plan-btn:hover, .plan-btn.selected { border-color: var(--accent); background: #eefafa; }
.plan-amount { font-size: 1.3rem; font-weight: 700; }
.plan-points { color: #0b7d84; font-weight: 700; }
.plan-note { font-size: 0.8rem; color: var(--muted); }
.pay-btn { width: 100%; }
.result-card { text-align: center; }
.result-detail { color: var(--muted); margin: 12px 0; }

/* 主頁階梯卡 (js/plans.js 動態值) */
.tier-points { color: #0b7d84; font-weight: 700; }
.tier-note { font-size: 0.85rem; color: var(--muted); }
a.tier-card { display: block; }
a.tier-card:hover { border-color: var(--accent); }
