/* TG 接码页面 · 轻量化样式 */
:root {
    --bg: #0f1419;
    --card: #1c2733;
    --accent: #2aabee;
    --text: #e8edf2;
    --muted: #8b9bab;
    --err: #ff6b6b;
    --ok: #4caf50;
    --divider: rgba(255,255,255,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wrap { width: 100%; max-width: 480px; }

.card {
    background: var(--card);
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .05);
}

.brand {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 18px;
    letter-spacing: .5px;
}

h2 { font-size: 19px; margin-bottom: 14px; }
h3 { font-size: 15px; margin-bottom: 10px; color: var(--accent); }

.muted { color: var(--muted); font-size: 13px; margin: 8px 0; }
.msg { font-size: 14px; line-height: 1.6; margin: 10px 0; }
.err { color: var(--err); font-size: 13px; margin: 10px 0; }

form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

label { font-size: 13px; color: var(--muted); }

input, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #0f1419;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border .2s;
    font-family: inherit;
    resize: vertical;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { font-size: 13px; line-height: 1.4; }

.btn {
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .05s;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.98); }

.foot { text-align: center; color: var(--muted); font-size: 11px; margin-top: 16px; }

/* 接码页面模板图片 */
.tpl-box { text-align: center; margin: 0 0 14px; }
.tpl-img { max-width: 100%; border-radius: 10px; display: block; margin: 0 auto; }

/* 转API页面分区 */
.section { margin-bottom: 6px; }
.divider { border: none; border-top: 1px solid var(--divider); margin: 18px 0; }

/* 凭证展示 */
.cred-box {
    background: #0f1419;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 14px 0;
    border: 1px solid rgba(255,255,255,.06);
}
.cred-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 13px;
    gap: 12px;
}
.cred-row:last-child { border-bottom: none; }
.cred-k { color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.cred-v { text-align: right; word-break: break-all; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.small { font-size: 11px; }

/* 广告板块 (与 telegram 风白底模板统一内容) */
.ad-box {
    margin-top: 14px;
    padding: 12px 14px;
    background: #0f1419;
    border: 1px dashed rgba(255, 255, 255, .15);
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-all;
}
