/* 第三方登录页样式，纯 CSS 无外部依赖（图标都是内联 SVG） */

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #1f2329;
    background: #eef1f6 linear-gradient(180deg, #e7ecf5 0%, #f4f6fa 100%) no-repeat;
    -webkit-text-size-adjust: 100%;
}

a { color: #2b6cb0; }

.wrap {
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 16px 40px;
}
.wrap-wide { max-width: 960px; }

.card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 8px 30px rgba(31, 41, 55, .08);
}
.card-plain { padding: 28px 26px; }

.logo {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    letter-spacing: .5px;
}
.logo-sm { font-size: 18px; text-align: left; }

.sub {
    margin: 0 0 24px;
    text-align: center;
    color: #8a9099;
    font-size: 13px;
}
.card-plain .sub { text-align: left; margin-bottom: 18px; }

/* ---------- 登录按钮 ---------- */
.btns { display: flex; flex-direction: column; gap: 12px; }

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

.btn-wechat { background: #07c160; }
.btn-qq     { background: #12b7f5; }

.btn-ghost {
    margin-top: 22px;
    background: #fff;
    color: #4a5058;
    border: 1px solid #dfe3e8;
}
.btn-ghost:hover { background: #f7f8fa; filter: none; }

.btn-disabled {
    background: #f2f3f5;
    color: #a8adb5;
    cursor: not-allowed;
}
.btn-disabled:hover { filter: none; }

/* ---------- 已登录资料 ---------- */
.profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eef0f3;
}
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f3f5;
    flex: none;
}
.avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6aa9e8, #3f7fc4);
}
.profile-main { min-width: 0; }
.nick {
    font-size: 17px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
}
.badge-qq     { background: #12b7f5; }
.badge-wechat { background: #07c160; }

table.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
table.kv th {
    width: 96px;
    padding: 7px 10px 7px 0;
    text-align: left;
    font-weight: 400;
    color: #8a9099;
    vertical-align: top;
    white-space: nowrap;
}
table.kv td {
    padding: 7px 0;
    word-break: break-all;
    border-bottom: 1px solid #f4f5f7;
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.muted { color: #8a9099; }

/* ---------- 地址清单页 ---------- */
.card-plain h2 {
    margin: 28px 0 12px;
    font-size: 15px;
    font-weight: 600;
    padding-left: 9px;
    border-left: 3px solid #3f7fc4;
}

table.grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}
table.grid th, table.grid td {
    padding: 9px 10px;
    border: 1px solid #eceef1;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
}
table.grid thead th {
    background: #f7f8fa;
    font-weight: 600;
    color: #4a5058;
    white-space: nowrap;
}
table.grid tbody th {
    width: 150px;
    background: #fbfcfd;
    color: #4a5058;
    white-space: nowrap;
}
table.grid code { word-break: break-all; }

/* 点一下就全选，方便直接 Ctrl+C */
code.sel {
    display: inline-block;
    padding: 2px 7px;
    background: #f4f6f9;
    border: 1px solid #e3e7ed;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #1f5aa8;
    user-select: all;
    -webkit-user-select: all;
    cursor: copy;
}
.note { font-size: 12px; margin-top: 5px; line-height: 1.6; }

.tips { margin: 0; padding-left: 20px; font-size: 13px; color: #4a5058; }
.tips li { margin-bottom: 9px; }
.tips code {
    padding: 1px 5px;
    background: #f4f6f9;
    border-radius: 4px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 12px;
    vertical-align: middle;
}
.tag-ok   { background: #e6f7ed; color: #12833f; }
.tag-warn { background: #fff4e0; color: #96621a; }

/* ---------- 提示条 ---------- */
.notice {
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 9px;
    background: #f4f6f9;
    border: 1px solid #e6e9ee;
    font-size: 13px;
    color: #4a5058;
    line-height: 1.75;
}
.notice-warn { background: #fff8e8; border-color: #f5e2b8; color: #7a5a17; }
.notice code {
    padding: 1px 5px;
    background: rgba(0, 0, 0, .05);
    border-radius: 4px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 错误页 ---------- */
.err {
    margin: 14px 0 20px;
    padding: 14px 16px;
    border-radius: 9px;
    background: #fdf0f0;
    border: 1px solid #f6d9d9;
    color: #a13c3c;
    font-size: 14px;
    line-height: 1.75;
    word-break: break-word;
}

/* ---------- 原始报文 ---------- */
.raw {
    margin: 0 0 4px;
    border: 1px solid #e6e9ee;
    border-radius: 9px;
    background: #fbfcfd;
}
.raw summary {
    padding: 9px 14px;
    font-size: 13px;
    color: #4a5058;
    cursor: pointer;
    user-select: none;
}
.raw pre {
    margin: 0;
    padding: 12px 14px;
    border-top: 1px solid #eef0f3;
    max-height: 260px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #4a5058;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ---------- 页脚 / 回调地址提示 ---------- */
.addr {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eef0f3;
    font-size: 12px;
    color: #8a9099;
    text-align: center;
}
.addr span { display: block; margin-bottom: 5px; }
.addr code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
    color: #4a5058;
}

.foot {
    margin: 22px 0 0;
    text-align: center;
    font-size: 12px;
    color: #9aa0a8;
}
.foot a { color: #6b7280; }
.foot code {
    padding: 1px 4px;
    background: rgba(0, 0, 0, .04);
    border-radius: 3px;
}

@media (max-width: 600px) {
    .wrap { padding: 24px 12px 32px; }
    .card, .card-plain { padding: 24px 18px; border-radius: 12px; }
    table.grid thead { display: none; }
    table.grid, table.grid tbody, table.grid tr, table.grid td, table.grid th { display: block; width: auto; }
    table.grid tr { margin-bottom: 12px; border: 1px solid #eceef1; border-radius: 8px; overflow: hidden; }
    table.grid th, table.grid td { border: 0; border-bottom: 1px solid #f4f5f7; }
    table.grid tbody th { background: #f7f8fa; font-weight: 600; }
}
