/* 美国 OpenAI 短信接码独立单面板卡片样式 */
:root {
    color-scheme: light;
    --bg: #f5f2eb;
    --ink: #181615;
    --muted: #6e675f;
    --line: #e2dcd0;
    --accent: #c2410c;
    --accent-light: #ea580c;
    --accent-soft: #fff1e6;
    --emerald: #047857;
    --emerald-bright: #059669;
    --emerald-soft: #d1fae5;
    --amber: #b45309;
    --amber-soft: #fef3c7;
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
    --font-sans: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: 0.56; cursor: default; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ambient-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(95px); opacity: 0.42; }
.orb-warm { width: 520px; height: 520px; top: -160px; left: -100px; background: radial-gradient(circle, #fb923c 0%, transparent 70%); }
.orb-emerald { width: 480px; height: 480px; bottom: -160px; right: -100px; background: radial-gradient(circle, #34d399 0%, transparent 70%); }
.ambient-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(24, 22, 21, 0.055) 1px, transparent 1px); background-size: 24px 24px; }

.top-dock { position: relative; z-index: 30; max-width: 960px; margin: 24px auto 22px; padding: 0 20px; }
.dock-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px -12px rgba(40, 30, 20, 0.08);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #ea580c, #9a3412); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 6px 14px rgba(194, 65, 12, 0.26); }
.brand-logo svg { width: 18px; height: 18px; fill: currentColor; }
.brand-text strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.brand-text small { display: block; font-size: 11px; color: var(--muted); }

.dock-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.back-redeem-btn { min-height: 36px; padding: 7px 13px; border-radius: 12px; background: #f3efe6; border: 1px solid #dfd7c8; font-size: 12px; font-weight: 700; color: #4a433b; display: inline-flex; align-items: center; transition: all 0.18s; }
.back-redeem-btn:hover { background: var(--accent-soft); border-color: #f3b58a; color: var(--accent); }
.sms-active-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 13px; border-radius: 12px; background: #1c1917; color: #fff; font-size: 12px; font-weight: 700; }
.sms-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25); }

.main-stage { position: relative; z-index: 10; max-width: 960px; margin: 0 auto 56px; padding: 0 20px; }
.single-panel-card { background: #fffdf9; border: 1px solid #dfd7c8; border-radius: 28px; padding: 26px 32px; color: var(--ink); box-shadow: 0 24px 52px -18px rgba(45, 35, 20, 0.14); }

.subview-header { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px dashed #e4dccd; }
.subview-header-flex { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.pane-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 4px; }
.subview-header h1 { margin: 0; font-size: 22px; font-weight: 850; letter-spacing: -0.02em; }
.pane-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.sms-live-pill { padding: 5px 12px; border-radius: 99px; background: var(--emerald-soft); color: var(--emerald); font-size: 12px; font-weight: 750; flex-shrink: 0; }

.subview-search-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 16px; }
.search-input-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.search-input-wrap input {
    width: 100%;
    min-width: 0;
    padding: 13px 76px 13px 15px;
    border-radius: 14px;
    border: 1.5px solid #dcd5c7;
    background: #fcfbf9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1c1917;
}
.search-input-wrap input:focus { outline: none; background: #fff; border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12); }
.inline-chip-btn { position: absolute; right: 9px; min-height: 32px; padding: 5px 11px; border-radius: 9px; background: #f2eee6; border: 1px solid #ded7c9; font-size: 11.5px; font-weight: 700; color: #4a433b; }

.btn-primary { min-height: 46px; padding: 10px 20px; border-radius: 13px; background: linear-gradient(135deg, #ea580c 0%, #b91c1c 100%); color: #fff; font-size: 13.5px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 10px 22px -6px rgba(194, 65, 12, 0.35); }
.btn-launch { background: linear-gradient(135deg, #059669 0%, #0f766e 100%); box-shadow: 0 10px 22px -6px rgba(5, 150, 105, 0.35); }
.btn-ghost-sm { min-height: 38px; padding: 7px 13px; border-radius: 10px; background: #f3efe7; border: 1px solid #e2dbd0; font-size: 12px; font-weight: 700; color: #4e473e; }
.btn-ghost-sm:hover { background: #eae4d8; }
.danger-hover:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

.notice, .warning { margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; background: var(--amber-soft); border: 1px solid #fde68a; color: #92400e; font-size: 12.5px; font-weight: 650; overflow-wrap: anywhere; }

.sms-phone-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1c1917 0%, #29231e 100%);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.36);
}
.sms-country-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #d6c7b2; margin-bottom: 6px; }
.sms-number-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.sms-phone-digits { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 24px; font-weight: 850; letter-spacing: 0.04em; color: #fef08a; overflow-wrap: anywhere; }
.btn-copy-pill { min-height: 32px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff; font-size: 11.5px; font-weight: 700; }
.sms-order-status { display: block; font-size: 12px; color: #6ee7b7; font-weight: 650; }

.sms-phone-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sms-timer-box { text-align: right; padding: 7px 13px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.timer-label { display: block; font-size: 10px; color: #b8afa3; }
.timer-digits { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 14px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.sms-attempts-pill { font-size: 11.5px; font-weight: 700; color: #fde68a; }

.sms-policy-hint { margin: 10px 0 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.sms-policy-hint:empty { display: none; }

.sms-actions-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.sms-actions-bar .btn-primary { min-height: 38px; padding: 8px 16px; font-size: 12.5px; border-radius: 10px; }

.timeline-console { padding: 14px 16px; border-radius: 14px; background: #faf8f4; border: 1px solid #e6e0d4; margin-bottom: 14px; }
.console-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12.5px; font-weight: 750; }
.console-title { display: inline-flex; align-items: center; gap: 6px; }
.console-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-bright); }
.console-meta { font-size: 11px; color: var(--muted); }

.sms-code-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sms-code-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid #bce3cd;
}
.sms-code-main { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.sms-code-list code {
    padding: 6px 13px;
    border-radius: 9px;
    background: var(--emerald-soft);
    color: var(--emerald);
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 19px;
    font-weight: 850;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}
.sms-code-list time { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, monospace; }

.sms-guide-strip {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e4dccd;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.55;
}
.sms-guide-strip b { color: var(--ink); }

@media (max-width: 820px) {
    .top-dock, .main-stage { padding: 0 12px; }
    .single-panel-card { padding: 20px 16px; border-radius: 24px; }
    .subview-search-bar, .sms-guide-strip { grid-template-columns: minmax(0, 1fr); }
    .sms-phone-right { align-items: flex-start; width: 100%; }
    .sms-timer-box { text-align: left; width: 100%; }
}
