/* ============================================================
   Zerjie 站检工具箱
   ============================================================ */

:root {
    --tb-brand:      #2563eb;
    --tb-brand-dark: #1d4ed8;
    --tb-dark:       #0f172a;
    --tb-gray:       #64748b;
    --tb-gray-light: #94a3b8;
    --tb-line:       #e2e8f0;
    --tb-bg:         #f8fafc;
    --tb-green:      #16a34a;
    --tb-red:        #dc2626;
    --tb-orange:     #f59e0b;
    --tb-blue:       #2563eb;
}

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

body.tb-body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
    background: var(--tb-bg);
    color: var(--tb-dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--tb-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ============================================================
   导航
   ============================================================ */
.tb-nav {
    background: #fff;
    border-bottom: 1px solid var(--tb-line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tb-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.tb-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--tb-dark);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tb-brand:hover { text-decoration: none; color: var(--tb-brand); }
.tb-brand span { letter-spacing: -0.2px; }

.tb-nav-links {
    display: flex;
    gap: 2px;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
}
.tb-nav-links a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--tb-gray);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.tb-nav-links a:hover {
    background: var(--tb-bg);
    color: var(--tb-brand);
    text-decoration: none;
}

/* ============================================================
   导航 - 用户区（头像 / 下拉）
   ============================================================ */
.tb-nav-user {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.tb-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* 图标按钮（头像 / 人形） */
.tb-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--tb-gray);
    transition: all 0.2s ease;
    padding: 0;
    font-family: inherit;
    outline: none;
}
.tb-icon-btn:hover,
.tb-icon-btn:focus-visible,
.tb-icon-btn.is-active {
    background: var(--tb-bg);
    color: var(--tb-brand);
}

/* 未登录：灰色人形图标 */
.tb-user-default {
    width: 26px;
    height: 26px;
    color: var(--tb-gray-light);
    transition: color 0.2s ease;
}
.tb-icon-btn:hover .tb-user-default,
.tb-icon-btn.is-active .tb-user-default {
    color: var(--tb-brand);
}

/* 已登录：首字母圆形头像 */
.tb-user-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-dark));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    letter-spacing: 0;
    line-height: 1;
}

/* 下拉面板 */
.tb-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    padding: 6px 0;
    display: none;
    z-index: 300;
}

.tb-dropdown.is-open {
    display: block;
    animation: tbDropdownIn 0.15s ease;
}

@keyframes tbDropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 悬停间隙填充：鼠标从按钮移到面板时不断裂 */
.tb-dropdown::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

/* 小三角 */
.tb-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--tb-line);
    border-top: 1px solid var(--tb-line);
    transform: rotate(45deg);
}

.tb-dropdown-divider {
    height: 1px;
    background: var(--tb-line);
    margin: 6px 0;
}

.tb-dropdown-item {
    display: block;
    padding: 9px 16px;
    color: #475569;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.tb-dropdown-item:hover {
    background: var(--tb-bg);
    color: var(--tb-brand);
    text-decoration: none;
}
.tb-dropdown-danger:hover {
    color: var(--tb-red);
    background: #fef2f2;
}

/* 已登录：顶部账号信息 */
.tb-user-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}
.tb-user-avatar-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-dark));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
    line-height: 1;
}
.tb-user-info {
    min-width: 0;
    flex: 1;
}
.tb-user-name {
    font-weight: 600;
    color: var(--tb-dark);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tb-user-email {
    color: var(--tb-gray-light);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

/* 未登录：空状态 */
.tb-dropdown-empty {
    text-align: center;
    padding: 20px 16px 12px;
    color: var(--tb-gray-light);
}
.tb-dropdown-empty-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
    opacity: 0.6;
}
.tb-dropdown-empty p {
    font-size: 0.88rem;
    margin: 0;
    color: var(--tb-gray);
}

/* 未登录：登录 / 注册按钮 */
.tb-auth-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px 12px;
}
.tb-auth-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tb-auth-login {
    background: #f1f5f9;
    color: #475569;
}
.tb-auth-login:hover {
    background: var(--tb-line);
    color: var(--tb-dark);
    text-decoration: none;
}
.tb-auth-register {
    background: var(--tb-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.tb-auth-register:hover {
    background: var(--tb-brand-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* ============================================================
   Main
   ============================================================ */
.tb-main {
    flex: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px;
    width: 100%;
}

/* ============================================================
   Hero（首页）
   ============================================================ */
.tb-hero {
    text-align: center;
    padding: 48px 0 32px;
}
.tb-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: var(--tb-dark);
}
.tb-hero p {
    color: var(--tb-gray);
    font-size: 1.05rem;
    margin-bottom: 28px;
    font-weight: 300;
}
.tb-hero-tip {
    color: var(--tb-gray-light);
    font-size: 0.85rem;
    margin-top: 16px !important;
}

/* ============================================================
   表单（Hero 搜索 / 工具页 / 收录查询）
   ============================================================ */
.tb-search-form,
.tb-form,
.tb-quick-form {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
}

.tb-search-form input,
.tb-form input,
.tb-form select,
.tb-quick-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--tb-line);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    color: var(--tb-dark);
    font-family: inherit;
    transition: all 0.2s ease;
    min-width: 0;
}
.tb-search-form input:focus,
.tb-form input:focus,
.tb-form select:focus,
.tb-quick-form input:focus {
    border-color: var(--tb-brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tb-search-form button,
.tb-form button,
.tb-quick-form button {
    padding: 14px 32px;
    background: var(--tb-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.tb-search-form button:hover,
.tb-form button:hover,
.tb-quick-form button:hover {
    background: var(--tb-brand-dark);
}
.tb-form button:disabled,
.tb-search-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================================
   工具网格（首页 / 关于页复用）
   ============================================================ */
.tb-tools,
.tb-features {
    margin: 64px 0;
}
.tb-tools h2,
.tb-features h2,
.tb-quick-index h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
    color: var(--tb-dark);
}

.tb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.tb-tool-card {
    display: block;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--tb-line);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}
.tb-tool-card:hover {
    border-color: var(--tb-brand);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
    text-decoration: none;
}
.tb-tool-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1;
}
.tb-tool-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--tb-dark);
}
.tb-tool-desc {
    color: var(--tb-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   收录查询
   ============================================================ */
.tb-quick-index {
    margin: 64px 0;
}
.tb-hint {
    text-align: center;
    color: var(--tb-gray);
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.tb-hint code {
    background: var(--tb-line);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--tb-dark);
}

.tb-engines {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.tb-engine {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--tb-gray);
    cursor: default;
    transition: all 0.2s ease;
}

/* ============================================================
   工具页主面板
   ============================================================ */
.tb-panel {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--tb-line);
}
.tb-panel > h1:first-child {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--tb-dark);
    letter-spacing: -0.3px;
}
.tb-panel h2 {
    font-size: 1.2rem;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tb-line);
    color: var(--tb-dark);
    font-weight: 600;
}
.tb-panel h3 {
    font-size: 1.05rem;
    margin: 24px 0 12px;
    color: var(--tb-dark);
    font-weight: 600;
}

/* ============================================================
   Alert 提示
   ============================================================ */
.tb-alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.92rem;
    line-height: 1.7;
}
.tb-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--tb-red);
}

/* ============================================================
   评分
   ============================================================ */
.tb-score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tb-score-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--tb-brand);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.tb-score-label {
    color: var(--tb-gray);
    font-size: 0.95rem;
}

/* ============================================================
   结果 / 表格
   ============================================================ */
.tb-result {
    margin-top: 32px;
}

.tb-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.tb-table th,
.tb-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--tb-line);
    vertical-align: top;
}
.tb-table th {
    background: var(--tb-bg);
    font-weight: 600;
    color: var(--tb-dark);
}
.tb-table td {
    color: var(--tb-dark);
}
.tb-table tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   标签
   ============================================================ */
.tb-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}
.tb-tag-green {
    background: #dcfce7;
    color: #166534;
}
.tb-tag-red {
    background: #fee2e2;
    color: #991b1b;
}
.tb-tag-orange {
    background: #fef3c7;
    color: #92400e;
}
.tb-tag-blue {
    background: #dbeafe;
    color: #1e40af;
}

/* ============================================================
   跳转链路
   ============================================================ */
.tb-chain {
    padding-left: 20px;
    margin-bottom: 20px;
}
.tb-chain li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--tb-dark);
}
.tb-chain code {
    background: var(--tb-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
    word-break: break-all;
}

/* ============================================================
   列表 / 弱化文本
   ============================================================ */
.tb-list {
    padding-left: 20px;
    margin: 0;
}
.tb-list li {
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: var(--tb-dark);
    line-height: 1.7;
}
.tb-muted {
    color: var(--tb-gray-light);
}

/* ============================================================
   代码块
   ============================================================ */
.tb-pre {
    background: var(--tb-dark);
    color: #e2e8f0;
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.7;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    white-space: pre;
    margin-bottom: 20px;
}

/* ============================================================
   FAQ（关于页）
   ============================================================ */
.tb-faq-item {
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.tb-faq-item:hover {
    border-color: #cbd5e1;
}
.tb-faq-item.is-open {
    border-color: var(--tb-brand);
}

.tb-faq-q {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--tb-dark);
    font-size: 0.98rem;
    user-select: none;
}
.tb-faq-arrow {
    color: var(--tb-gray);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.tb-faq-item.is-open .tb-faq-arrow {
    transform: rotate(180deg);
    color: var(--tb-brand);
}

.tb-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.tb-faq-item.is-open .tb-faq-a {
    max-height: 400px;
}
.tb-faq-a p {
    padding: 0 20px 18px;
    color: var(--tb-gray);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
}

/* ============================================================
   页脚
   ============================================================ */
.tb-footer {
    background: var(--tb-dark);
    color: #94a3b8;
    padding: 32px 24px;
    margin-top: 60px;
    flex-shrink: 0;
}
.tb-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.88rem;
}
.tb-footer-inner p {
    margin: 0;
}
.tb-footer-tip {
    margin-top: 8px !important;
    color: #64748b;
    font-size: 0.8rem;
}

/* ============================================================
   响应式 - 平板 / 手机 (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    .tb-nav-inner {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        align-items: stretch;
    }

    .tb-brand {
        text-align: center;
        justify-content: center;
    }

    .tb-nav-links {
        justify-content: center;
        gap: 2px;
    }
    .tb-nav-links a {
        padding: 5px 9px;
        font-size: 0.82rem;
    }

    .tb-nav-user {
        margin-left: 0;
        justify-content: center;
        margin-top: 4px;
    }

    /* 移动端下拉：避免右侧溢出 */
    .tb-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 220px;
    }
    .tb-dropdown.is-open {
        animation: tbDropdownInMobile 0.15s ease;
    }
    @keyframes tbDropdownInMobile {
        from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
    .tb-dropdown::before {
        right: auto;
        left: 50%;
        margin-left: -6px;
    }

    .tb-main {
        padding: 24px 16px;
    }

    .tb-panel {
        padding: 20px 18px;
        border-radius: 12px;
    }
    .tb-panel > h1:first-child {
        font-size: 1.35rem;
    }
    .tb-panel h2 {
        font-size: 1.1rem;
        margin-top: 24px;
    }

    .tb-search-form,
    .tb-form,
    .tb-quick-form {
        flex-direction: column;
    }
    .tb-search-form button,
    .tb-form button,
    .tb-quick-form button {
        width: 100%;
    }

    .tb-table {
        font-size: 0.85rem;
    }
    .tb-table th,
    .tb-table td {
        padding: 8px 10px;
    }

    .tb-score-num {
        font-size: 2.4rem;
    }

    .tb-hero {
        padding: 32px 0 24px;
    }

    .tb-tools,
    .tb-features,
    .tb-quick-index {
        margin: 40px 0;
    }
    .tb-tools h2,
    .tb-features h2,
    .tb-quick-index h2 {
        font-size: 1.2rem;
    }
}

/* ============================================================
   响应式 - 极小屏 (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    .tb-nav-inner {
        padding: 10px 12px;
    }
    .tb-nav-links a {
        padding: 4px 8px;
        font-size: 0.78rem;
    }
    .tb-brand {
        font-size: 1.05rem;
    }

    .tb-main {
        padding: 20px 12px;
    }
    .tb-panel {
        padding: 16px 14px;
    }
    .tb-panel > h1:first-child {
        font-size: 1.2rem;
    }

    .tb-table {
        font-size: 0.8rem;
    }
    .tb-table th,
    .tb-table td {
        padding: 7px 8px;
    }

    .tb-score-num {
        font-size: 2rem;
    }

    .tb-hero h1 {
        font-size: 1.6rem;
    }
    .tb-hero p {
        font-size: 0.92rem;
    }

    .tb-grid {
        grid-template-columns: 1fr;
    }
    .tb-tool-card {
        padding: 20px;
    }

    .tb-dropdown {
        min-width: 200px;
    }

    .tb-footer {
        padding: 24px 16px;
        margin-top: 40px;
    }
    .tb-footer-inner {
        font-size: 0.8rem;
    }
}

/* ============================================================
   认证页（登录 / 注册）
   ============================================================ */
.tb-auth-page {
    min-height: calc(100vh - 220px);
    padding: 40px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.tb-auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    padding: 40px 36px 32px;
}

.tb-auth-head {
    text-align: center;
    margin-bottom: 28px;
}
.tb-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tb-brand), var(--tb-brand-dark));
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}
.tb-auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tb-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.tb-auth-subtitle {
    color: var(--tb-gray);
    font-size: 0.92rem;
}

/* 提示条 */
.tb-auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.6;
}
.tb-auth-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--tb-red);
}
.tb-auth-alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid var(--tb-green);
}

.tb-auth-notice {
    padding: 10px 14px;
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid var(--tb-brand);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* 表单 */
.tb-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.tb-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tb-auth-field label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--tb-dark);
}
.tb-auth-req {
    color: var(--tb-red);
}
.tb-auth-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--tb-line);
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--tb-dark);
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.tb-auth-field input:focus {
    border-color: var(--tb-brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.tb-auth-field-hint {
    color: var(--tb-gray-light);
    font-size: 0.78rem;
    line-height: 1.5;
}
.tb-auth-field-error {
    color: var(--tb-red);
    font-size: 0.78rem;
    line-height: 1.5;
}

.tb-auth-submit {
    width: 100%;
    padding: 13px 24px;
    margin-top: 4px;
    background: var(--tb-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.25s ease;
    font-family: inherit;
}
.tb-auth-submit:hover {
    background: var(--tb-brand-dark);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* 底部链接 */
.tb-auth-foot {
    text-align: center;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--tb-line);
    font-size: 0.9rem;
    color: var(--tb-gray);
}
.tb-auth-foot a {
    color: var(--tb-brand);
    font-weight: 500;
}
.tb-auth-back {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
}
.tb-auth-back a {
    color: var(--tb-gray-light);
}
.tb-auth-back a:hover {
    color: var(--tb-brand);
    text-decoration: none;
}

/* 认证页移动端 */
@media (max-width: 768px) {
    .tb-auth-page {
        padding: 24px 16px;
    }
    .tb-auth-card {
        padding: 28px 22px 24px;
        border-radius: 16px;
    }
    .tb-auth-title {
        font-size: 1.35rem;
    }
    .tb-auth-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}