/* 意玩云数 · 实人认证 — 登录 / 控制台共用样式
   视觉：深墨绿与纸白，单一玉色强调，不用渐变、阴影与装饰图形。 */

:root {
    --ink: #101917;
    --ink-soft: #18231f;
    --paper: #f1f1ef;
    --panel: #e6e7e3;
    --text: #121917;
    --muted: #5f665f;
    --line: #c9cec5;
    --jade: #1f6b56;
    --jade-deep: #15503f;
    --jade-light: #79c6ac;
    --danger: #9c3b2e;
    --on-dark: #e9ece6;
    --on-dark-muted: #a6b3ac;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    background: var(--paper);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

/* ---------- 品牌标记 ---------- */

.mark {
    width: 34px;
    height: 34px;
    border-radius: 2px;
    background: var(--jade);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.mark svg {
    width: 19px;
    height: 19px;
    display: block;
}

.wordmark {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.wordmark span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--on-dark-muted);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- 登录页 ---------- */

.auth-shell {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    min-height: 100vh;
}

.brand-pane {
    background: var(--ink);
    color: var(--on-dark);
    padding: 44px clamp(32px, 5vw, 72px) 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    min-height: 100vh;
}

.brand-copy {
    max-width: 580px;
}

.brand-copy h1 {
    margin: 0;
    font-size: clamp(36px, 3.8vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.brand-copy p {
    margin: 26px 0 0;
    max-width: 32em;
    font-size: 15px;
    line-height: 1.75;
    color: var(--on-dark-muted);
}

.brand-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 12px;
    color: #8d9b94;
}

.brand-foot .status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-foot .status::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--jade-light);
    display: block;
}

.form-pane {
    background: var(--paper);
    padding: 56px clamp(28px, 5vw, 88px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.form-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.form-head p {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.notice {
    margin: 20px 0 0;
    padding: 12px 14px;
    background: var(--panel);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

.field {
    margin-top: 30px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
}

.field input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 6px 0 10px;
    font: inherit;
    font-size: 16px;
    color: var(--text);
    transition: border-color 0.18s ease;
}

.field input:focus {
    outline: none;
    border-bottom-color: var(--jade);
    box-shadow: inset 0 -2px 0 var(--jade);
}

.field input::placeholder {
    color: #a3aaa3;
}

.phone-row {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 18px;
}

.error {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--danger);
}

.error[hidden] {
    display: none;
}

.submit {
    width: 100%;
    height: 50px;
    margin-top: 26px;
    border: 0;
    border-radius: 2px;
    background: var(--ink);
    color: var(--paper);
    font: inherit;
    font-size: 15px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
}

.submit:hover {
    background: var(--jade-deep);
}

.submit:active {
    transform: translateY(1px);
}

.submit:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

.submit:focus-visible {
    outline: 2px solid var(--jade);
    outline-offset: 3px;
}

.hint {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.dev-note {
    margin: 22px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.dev-note::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--jade);
    flex: none;
}

.form-foot {
    width: 100%;
    max-width: 360px;
    margin: 56px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: #646b64;
}

/* ---------- 控制台 ---------- */

.nowrap {
    white-space: nowrap;
}

.console-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 clamp(20px, 4vw, 56px);
}

.console-head {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.console-head .wordmark {
    color: var(--text);
}

.console-head .wordmark span {
    color: var(--muted);
}

.console-head .mark {
    background: var(--ink);
    color: var(--paper);
}

.console-main {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
    padding: clamp(56px, 8vw, 104px) 0 40px;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

.console-intro h1 {
    margin: 0;
    font-size: clamp(34px, 3.8vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.console-intro p {
    margin: 24px 0 0;
    max-width: 30em;
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
}

.console-panel {
    background: var(--panel);
    padding: 28px clamp(22px, 2.4vw, 34px) 10px;
}

.console-panel h2 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 500;
}

.console-panel dl {
    margin: 0;
}

.console-panel dl > div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(18, 25, 23, 0.1);
}

.console-panel dl > div:first-child {
    border-top: 0;
}

.console-panel dt {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.console-panel dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.console-note {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 0 40px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 96px);
}

.console-note h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.console-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}

.console-foot {
    margin-top: auto;
    padding: 24px 0 28px;
    font-size: 12px;
    color: #646b64;
    border-top: 1px solid var(--line);
}

.logout {
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.logout:hover {
    border-color: var(--ink);
    background: var(--panel);
}

.logout:focus-visible {
    outline: 2px solid var(--jade);
    outline-offset: 3px;
}

.logout:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ---------- 动效 ---------- */

@media (prefers-reduced-motion: no-preference) {
    .brand-copy h1,
    .brand-copy p,
    .form-head,
    .notice,
    .field,
    .submit,
    .hint,
    .dev-note,
    .form-foot,
    .console-intro,
    .console-panel {
        animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .brand-copy p {
        animation-delay: 0.08s;
    }

    .form-head,
    .console-intro {
        animation-delay: 0.05s;
    }

    .field:nth-of-type(1) {
        animation-delay: 0.12s;
    }

    .field:nth-of-type(2) {
        animation-delay: 0.18s;
    }

    .submit {
        animation-delay: 0.24s;
    }

    .hint,
    .dev-note {
        animation-delay: 0.3s;
    }

    .console-panel {
        animation-delay: 0.12s;
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(14px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }
}

/* ---------- 移动端 ---------- */

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .brand-pane {
        min-height: 0;
        padding: 30px 24px 34px;
        gap: 42px;
    }

    .brand-copy h1 {
        font-size: 34px;
    }

    .brand-copy p {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.7;
    }

    .brand-foot {
        font-size: 11px;
    }

    .form-pane {
        padding: 38px 24px 44px;
    }

    .form-foot {
        margin-top: 40px;
    }

    .console-head {
        height: 70px;
    }

    .console-main,
    .console-note {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-left: 0;
        padding-right: 0;
    }

    .console-main {
        padding-top: 44px;
    }

    .console-intro h1 {
        font-size: 34px;
    }
}

/* ---------- 控制台内部页面 ---------- */

.console-head a.brand {
    text-decoration: none;
    color: inherit;
}

.console-account {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-name {
    font-size: 14px;
}

.account-uid {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--muted);
}

.console-nav {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
}

.console-nav a {
    padding: 16px 0;
    margin-bottom: -1px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.console-nav a:hover {
    color: var(--text);
}

.console-nav a.is-active {
    color: var(--text);
    border-bottom-color: var(--jade);
}

.console-body {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 0 56px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.page-head h1 {
    margin: 0;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.page-desc {
    margin: 12px 0 0;
    max-width: 46em;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}

.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--muted);
}

.meta-value {
    font-size: 14px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 28px;
    background: var(--line);
    border: 1px solid var(--line);
}

.stat {
    background: var(--paper);
    padding: 18px 20px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.stat-value {
    display: block;
    margin-top: 10px;
    font-size: 22px;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.section {
    margin-top: 44px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.section-meta {
    font-size: 12px;
    color: var(--muted);
}

.section-empty {
    margin: 0;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    text-align: left;
    white-space: nowrap;
}

.table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.table tbody tr:hover td {
    background: rgba(31, 107, 86, 0.035);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    white-space: nowrap;
}

.badge.is-ok {
    color: var(--jade-deep);
    border-color: rgba(31, 107, 86, 0.35);
    background: rgba(31, 107, 86, 0.06);
}

.badge.is-bad {
    color: var(--danger);
    border-color: rgba(156, 59, 46, 0.3);
    background: rgba(156, 59, 46, 0.05);
}

.badge.is-wait {
    color: #6f5518;
    border-color: rgba(111, 85, 24, 0.3);
    background: rgba(111, 85, 24, 0.05);
}

.badge.is-muted {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    border-color: var(--ink);
    background: var(--panel);
}

.btn:focus-visible {
    outline: 2px solid var(--jade);
    outline-offset: 3px;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--jade-deep);
    border-color: var(--jade-deep);
}

.btn-primary:disabled:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.btn-ghost {
    background: transparent;
}

.btn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.card {
    margin-top: 32px;
    padding: 24px 24px 20px;
    background: var(--panel);
}

.card h2 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 500;
}

.card-text {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}

.kv {
    margin: 0;
}

.kv > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(18, 25, 23, 0.1);
}

.kv > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.kv dt {
    font-size: 12px;
    color: var(--muted);
}

.kv dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}

.secret-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.secret-row code {
    letter-spacing: 0.04em;
}

.inline-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-form input {
    flex: 1;
    min-width: 220px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper);
    font: inherit;
    font-size: 14px;
    color: var(--text);
}

.inline-form input:focus {
    outline: none;
    border-color: var(--jade);
    box-shadow: inset 0 0 0 1px var(--jade);
}

.form-note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.notice-bar {
    margin-top: 32px;
    padding: 14px 16px;
    background: var(--panel);
    border-left: 2px solid var(--jade);
    font-size: 13px;
    line-height: 1.7;
}

.notice-bar.is-bad {
    border-left-color: var(--danger);
}

.notice-bar a {
    color: var(--jade-deep);
}

.empty {
    margin-top: 36px;
    padding: 48px 24px;
    border: 1px dashed var(--line);
    text-align: center;
}

.empty-title {
    margin: 0;
    font-size: 15px;
}

.empty-desc {
    margin: 10px auto 20px;
    max-width: 32em;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.chip {
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip:hover {
    border-color: var(--ink);
}

.chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.pager {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    font-size: 12px;
}

.pager-link {
    color: var(--jade-deep);
    text-decoration: none;
}

.pager-link.is-disabled {
    color: #a3aaa3;
}

.pager-info {
    color: var(--muted);
}

.cell-sub {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.cell-note {
    max-width: 220px;
    font-size: 12px;
    color: var(--muted);
}

.cell-action {
    text-align: right;
}

.link {
    color: var(--jade-deep);
    text-decoration: none;
    border-bottom: 1px solid rgba(21, 80, 63, 0.25);
}

.link:hover {
    border-bottom-color: var(--jade-deep);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .console-nav {
        gap: 20px;
        overflow-x: auto;
    }

    .account-uid {
        display: none;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-head {
        flex-direction: column;
        gap: 16px;
    }

    .section {
        overflow-x: auto;
    }

    .table {
        min-width: 620px;
    }

    .kv > div {
        grid-template-columns: 88px 1fr;
    }

    .meta-strip {
        gap: 24px;
    }
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.sync-note {
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.amount-plus {
    color: var(--jade-deep);
}

.amount-minus {
    color: var(--danger);
}
