/* KingsFinder 网站页面（首页、兑换、账户、管理、条款）共用的样式 */
:root { --bg: #0b0e13; --card: #141922; --card2: #1b2230; --line: #252d3b; --text: #e8ebf1; --muted: #8b95a8; --gold: #e3b341; --bull: #2ebd85; --bear: #f6465d; --neutral-rgb: 176, 184, 198; --neutral: rgb(var(--neutral-rgb)); }
* { box-sizing: border-box; }
html, body { max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif; overflow-x: clip; }
a { color: var(--gold); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.3; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.2rem; }
.narrow { max-width: 30rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .num { font-variant-numeric: tabular-nums; } .center { text-align: center; }
.bull { color: var(--bull); } .bear { color: var(--bear); } .neutral { color: var(--neutral); } .goldc { color: var(--gold); }
header.nav { position: sticky; top: 0; z-index: 5; background: rgba(11, 14, 19, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; gap: 1.2rem; height: 3.6rem; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.links { display: flex; gap: 1.2rem; } .links a { color: var(--muted); } .links a:hover { color: var(--text); text-decoration: none; }
.spacer { flex: 1; }
.btn { display: inline-block; border-radius: .6rem; padding: .55rem 1.1rem; font: inherit; font-weight: 650; cursor: pointer; border: 1px solid var(--line); background: var(--card2); color: var(--text); }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--gold); color: #0b0e13; border-color: var(--gold); }
.btn.big { padding: .8rem 1.5rem; font-size: 1.05rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .9rem; padding: 1.3rem 1.4rem; }
section { padding: 3.5rem 0; }
section h2 { font-size: 1.7rem; margin-bottom: .5rem; }
.grid { display: grid; gap: 1rem; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero { padding: 4rem 0 3rem; } .hero h1 { font-size: 2.6rem; } .hero p { font-size: 1.15rem; color: var(--muted); margin: 1rem 0 1.6rem; }
.hero .grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 2.5rem; }
.tag { display: inline-block; border: 1px solid var(--line); background: var(--card2); border-radius: 999px; padding: .1rem .7rem; font-size: .8rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; } th, td { padding: .6rem .7rem; border-top: 1px solid var(--line); text-align: left; } th { color: var(--muted); font-weight: 500; font-size: .85rem; border-top: 0; }
td.c, th.c { text-align: center; }
.price { font-size: 2.2rem; font-weight: 800; } .plan.featured { border-color: var(--gold); }
.plan ul { padding-left: 1.1rem; margin: .8rem 0 1.2rem; color: var(--muted); }
details { border-top: 1px solid var(--line); padding: .9rem 0; } details summary { cursor: pointer; font-weight: 650; } details p { color: var(--muted); margin: .6rem 0 0; }
input, select { width: 100%; font: inherit; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: .6rem; padding: .75rem .9rem; }
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.msg { border-radius: .6rem; padding: .7rem .9rem; margin: .8rem 0; } .msg.err { background: #2a1519; color: #ff9aa7; } .msg.ok { background: #12281f; color: #7fe0b5; }
.kv { display: grid; grid-template-columns: 8rem 1fr; gap: .5rem 1rem; }
footer.site { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .85rem; }
.prose h2 { font-size: 1.2rem; margin: 1.6rem 0 .4rem; } .prose p, .prose li { color: #c5cbd6; }
code { background: var(--card2); border-radius: .3rem; padding: .05rem .35rem; }
@media (max-width: 820px) {
  .hero h1 { font-size: 1.9rem; } .hero .grid, .g2, .g3, .g4 { grid-template-columns: 1fr; } .links { display: none; }
  section { padding: 2.4rem 0; } .hero { padding: 2.2rem 0 1.5rem; }
  .wrap { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  header.nav .wrap { height: auto; min-height: 3.4rem; padding-block: .45rem; padding-top: calc(.45rem + env(safe-area-inset-top, 0px)); }
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  footer.site { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.55rem; } .hero p { font-size: 1rem; } .price { font-size: 1.8rem; }
  .btn.big { width: 100%; text-align: center; }
}

/* Membership tier matrix (account + marketing) */
.plan-badge { display:inline-block; font-weight:750; letter-spacing:.02em; padding:.25rem .7rem; border-radius:999px; border:1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); background:color-mix(in srgb, var(--gold) 12%, var(--card2)); color:var(--gold); }
.trial-bar { margin-top:.85rem; height:.35rem; border-radius:999px; background:var(--card2); border:1px solid var(--line); overflow:hidden; }
.trial-bar > span { display:block; height:100%; background:linear-gradient(90deg, color-mix(in srgb, var(--gold) 70%, #8a6a20), var(--gold)); }
.tier-table th.tier-on, .tier-table td.tier-on { background:color-mix(in srgb, var(--gold) 10%, transparent); }
.tier-you { font-size:.68rem; font-weight:650; color:var(--gold); margin-top:.15rem; }
.tier-table td.ok-cell { color:#7fe0b5; font-weight:650; }
.tier-matrix h3 { margin:0 0 .2rem; }


/* ===== UI polish 20261019i — marketing + account ===== */
:root {
  --bg: #0a0d12; --card: #121820; --card2: #181f2c; --line: #242c3b;
  --text: #e9edf4; --muted: #8791a4; --gold: #e3b341;
  --shadow-sm: 0 1px 0 rgba(255,255,255,.04) inset, 0 2px 10px rgba(0,0,0,.25);
}
body {
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(227,179,65,.045) 0%, transparent 50%),
    var(--bg);
}
header.nav {
  background: rgba(10, 13, 18, .94);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, var(--gold) 6%);
}
.logo {
  letter-spacing: .04em;
  background: linear-gradient(105deg, #b8922e, #f0d78c 40%, #e3b341 70%, #c9a227);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.links a { font-size: .92rem; font-weight: 550; }
.btn { border-radius: .55rem; transition: border-color .12s ease, background .12s ease; }
.btn.primary {
  background: linear-gradient(180deg, #edd070, var(--gold));
  color: #0a0d12; border-color: color-mix(in srgb, var(--gold) 70%, #8a6a20);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 4px 14px rgba(227,179,65,.18);
}
.btn.primary:hover { filter: brightness(1.04); text-decoration: none; }
.card {
  border: 1px solid color-mix(in srgb, var(--line) 90%, var(--gold) 5%);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 100%, #1a2030), var(--card));
}
.hero h1 { letter-spacing: -.015em; font-weight: 780; }
.hero p { line-height: 1.7; }
.tag {
  font-size: .76rem; letter-spacing: .03em;
  border-color: color-mix(in srgb, var(--line) 80%, var(--gold) 12%);
  color: color-mix(in srgb, var(--muted) 80%, var(--gold) 20%);
}
.plan.featured {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent);
}
.tier-table { font-size: .9rem; }
.tier-table th {
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 90%, var(--gold) 6%);
  padding: .55rem .6rem;
}
.tier-table td { padding: .55rem .6rem; border-top-color: color-mix(in srgb, var(--line) 75%, transparent); }
.tier-table tr:nth-child(even) td { background: rgba(255,255,255,.012); }
.tier-table th.tier-on, .tier-table td.tier-on {
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}
.plan-badge {
  font-size: .85rem; padding: .28rem .75rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.trial-bar { height: .3rem; border-radius: 999px; }
.kv { gap: .45rem .9rem; }
section h2 { letter-spacing: -.005em; }
details summary { letter-spacing: .005em; }
footer.site { border-top-color: color-mix(in srgb, var(--line) 85%, transparent); }
.account-hero { margin-top: 1rem; }
