/* ============================================================
 * style.css - 数字遗产守护平台 全局样式表
 * 克制配色 + 干净排版 + 扁平卡片 + 统一间距
 * ============================================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 品牌色 — Verde Moderna 配色（灵感来自日式枯山水庭院，绿+青蓝搭配） */
    --accent: #0d8ba1;            /* 主品牌色：青蓝（链接、按钮、激活态） */
    --accent-dark: #095a6b;       /* 深-青蓝（hover/active 加深） */
    --accent-light: #0599c2;      /* 亮-青蓝（悬停链接） */
    --accent-soft: rgba(13, 139, 161, 0.06);
    --accent2: #49968e;           /* 辅助色：青绿（安全/成功态） */
    --accent2-soft: rgba(73, 150, 142, 0.08);

    /* 语义色 */
    --success: #49968e;
    --success-soft: rgba(73, 150, 142, 0.08);
    --danger: #F53F3F;
    --danger-soft: rgba(245, 63, 63, 0.06);
    --warning: #FF7D00;
    --warning-soft: rgba(255, 125, 0, 0.06);
    --info: #0d8ba1;

    /* 背景与表面 */
    --bg: #edf4f0;                /* 浅灰绿背景（侧边栏同色） */
    --bg2: #FFFFFF;

    /* 文字 */
    --ink: #325050;               /* 深青绿正文 */
    --muted: #607476;             /* 灰绿次要文字 */

    /* 灰阶 */
    --gray-50: #f0f4f1;
    --gray-100: #e8ede9;
    --gray-200: #d9e3dc;
    --gray-300: #c0cac3;
    --gray-400: #809b7e;
    --gray-500: #616857;
    --gray-600: #4e5969;
    --gray-700: #2e484c;
    --gray-800: #325050;
    --gray-900: #1a2b2a;

    /* 边框 */
    --rule: #d9e3dc;

    /* 圆角（统一规范：卡片8px、按钮6px、输入框6px、弹窗10px） */
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;

    /* 阴影 - 扁平化：仅保留极轻 shadow-sm */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-card: none;

    /* 字体 */
    --serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --mono: 'IBMPlexMono', 'Courier New', monospace;

    /* 兼容旧变量名 */
    --primary: #0d8ba1;
    --primary-dark: #095a6b;
    --primary-light: rgba(13, 139, 161, 0.06);

    /* 导航与布局 */
    --nav-h: 56px;
    --tabbar-h: 56px;
    --sidebar-w: 220px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background-color: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:visited {
    color: var(--accent-dark);
}

a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

a:active {
    color: var(--accent-dark);
}

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

/* ===== Layout Container ===== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.page-content {
    flex: 1;
    padding: 24px 0;
}

/* ===== Layout: Sidebar + Dashboard Main ===== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar (PC) ===== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg2);
    border-right: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
}

.sidebar-logo {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-logo:hover {
    color: var(--accent);
    opacity: 0.85;
    text-decoration: none;
}

.sidebar-logo .logo-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-lg);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-nav a:hover {
    background: var(--gray-100);
    color: var(--ink);
    text-decoration: none;
}

.sidebar-nav a.active {
    background: var(--accent);
    color: #fff;
}

.sidebar-nav .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav .nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Dashboard Main ===== */
.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

.dashboard-header {
    height: var(--nav-h);
    background: var(--bg2);
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 80;
    flex-shrink: 0;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user .user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--muted);
}

.header-user .user-nickname {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

.page-content {
    flex: 1;
    padding: 24px 0;
}

/* ===== Card ===== */
.card {
    background: var(--bg2);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
}

.card-body {
    /* padding inherited from .card */
}

/* ===== Grid ===== */
.grid {
    display: grid;
    gap: 12px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Stats ===== */
.stat-card {
    background: var(--bg2);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 4px;
}

.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.success .stat-value { color: var(--success); }

/* ===== Forms ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--bg2);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: border-color 0.15s ease;
    outline: none;
    font-family: var(--sans);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: none;
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6f76' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 4px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row > .form-group {
    flex: 1;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    font-family: var(--sans);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-primary:active:not(:disabled) {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-primary:visited {
    color: #fff;
}

.btn-secondary {
    background: var(--bg2);
    color: var(--accent);
    border-color: var(--rule);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
    background: #D93636;
}

.btn-success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.btn-success:hover:not(:disabled) {
    background: #3a7a72;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--accent-soft);
    color: var(--accent);
}

/* 验证码发送按钮 */
.btn-code-send {
    width: 38%;
    padding: 10px 12px;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

/* ===== Table ===== */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--rule);
}

th {
    font-weight: 700;
    color: var(--ink);
    background: var(--gray-50);
    white-space: nowrap;
    font-size: 0.85rem;
}

tbody tr:nth-child(even) {
    background: var(--accent-soft);
}

tbody tr:hover td {
    background: var(--accent-soft);
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    gap: 4px;
}

.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--accent-soft); color: var(--accent); }
.badge-gray { background: var(--gray-100); color: var(--muted); }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
}

.modal {
    background: var(--bg2);
    border-radius: var(--radius-lg);
    box-shadow: none;
    border: 1px solid var(--rule);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rule);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    color: var(--ink);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

/* 浮动关闭按钮（与 .modal-close 样式一致，仅增加绝对定位） */
.modal-close-float {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    line-height: 1;
    z-index: 20;
    transition: color 0.2s ease;
}

.modal-close-float:hover {
    color: var(--ink);
}

.modal-close-float svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--rule);
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    padding-top: 12px;
}

.toast {
    padding: 16px 28px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    width: 70vw;
    max-width: 520px;
    text-align: center;
    line-height: 1.5;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--accent); }

/* ===== Loading ===== */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(237,244,240,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--rule);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-inline {
    display: flex;
    justify-content: center;
    padding: 40px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 0.9375rem;
}

/* ===== Progress Bar ===== */
.progress {
    width: 100%;
    height: 8px;
    background: var(--rule);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-bar.warning { background: var(--warning); }
.progress-bar.danger { background: var(--danger); }
.progress-bar.success { background: var(--success); }

/* ===== Nav Card (Dashboard) ===== */
.nav-card {
    transition: border-color 0.15s ease;
    border: 1px solid var(--rule) !important;
}

.nav-card:hover {
    box-shadow: none;
    border-color: var(--accent) !important;
    transform: none;
    text-decoration: none;
}

/* ===== Auth Page (Login) - 白底居中扁平化 ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 40px 16px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Brand header */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-brand-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0;
}

.auth-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-brand-title {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.auth-brand-desc {
    font-size: clamp(0.8125rem, 2.5vw, 0.9rem);
    color: var(--muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.auth-brand-domain {
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    color: var(--gray-400);
    letter-spacing: 0.05em;
    margin: 6px auto 0;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

/* PC端：Logo 和标题同一行 */
@media (min-width: 768px) {
    .auth-brand {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 16px;
        column-gap: 12px;
    }

    .auth-brand-icon {
        width: 40px;
        height: 40px;
    }

    .auth-brand-title {
        margin-bottom: 0;
    }

    .auth-brand-desc {
        flex-basis: 100%;
    }

    .auth-brand-domain {
        flex-basis: 100%;
        margin-top: 2px;
    }
}

/* Login card */
.auth-card-panel {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--rule);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Trust badges row */
.auth-trust {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-trust-item {
    font-size: 0.8125rem;
    color: var(--muted);
}

.auth-trust-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gray-300);
    flex-shrink: 0;
}

/* Footer links + ICP */
.auth-footer {
    width: 100%;
    text-align: center;
    margin-top: 28px;
    line-height: 2;
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    letter-spacing: 0.03em;
}

.auth-footer-links a {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.25s ease-out;
}

.auth-footer-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

.auth-footer-sep {
    font-size: 0.75rem;
    color: var(--gray-300);
}

.auth-footer-icp {
    margin-top: 8px;
}

.auth-footer-icp a {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.25s ease-out;
}

.auth-footer-icp a:hover {
    color: var(--gray-500);
}

.auth-footer-copyright {
    margin-top: 6px;
    font-size: 0.6875rem;
    color: var(--gray-400);
    letter-spacing: 0.02em;
    line-height: 1.8;
}

/* ===== 滑动拼图验证码 ===== */
.slider-captcha {
    width: 100%;
    user-select: none;
}

.sc-canvas-wrap {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-100);
    margin-bottom: 12px;
}

.sc-canvas-wrap .sc-bg {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sc-canvas-wrap .sc-puzzle {
    position: absolute;
    left: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sc-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.sc-refresh {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    font-size: 16px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.sc-refresh:hover {
    background: #fff;
    color: var(--primary);
    transform: rotate(90deg);
}

.sc-slider-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: var(--gray-100);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.sc-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(13, 139, 161, 0.15);
    border-radius: 20px;
    transition: background 0.3s;
    pointer-events: none;
}

.sc-slider-tip {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    color: var(--gray-500);
    pointer-events: none;
    transition: opacity 0.2s;
}

.sc-slider-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    z-index: 2;
}

.sc-slider-btn:active {
    cursor: grabbing;
}

.sc-slider-btn svg {
    width: 18px;
    height: 18px;
}

.sc-slider-track.active .sc-slider-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 139, 161, 0.3);
}

.sc-slider-track.active .sc-slider-fill {
    background: rgba(13, 139, 161, 0.2);
}

.sc-slider-track.success .sc-slider-btn {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.sc-slider-track.success .sc-slider-fill {
    background: rgba(73, 150, 142, 0.2);
}

.sc-slider-track.success .sc-slider-tip {
    color: var(--success);
}

.sc-slider-track.fail .sc-slider-btn {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.sc-slider-track.fail .sc-slider-fill {
    background: rgba(245, 63, 63, 0.2);
}

.sc-slider-track.fail .sc-slider-tip {
    color: var(--danger);
}

/* ===== 验证码弹窗 ===== */
.captcha-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.captcha-modal-dialog {
    position: relative;
    width: 360px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: captchaModalIn 0.25s ease;
}

@keyframes captchaModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.captcha-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

.captcha-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--gray-500);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.captcha-modal-close:hover {
    color: var(--ink);
}

.captcha-modal-body {
    padding: 18px;
}

/* Documentation content (about/workflow/disclaimer/terms/privacy) */
.doc-content h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--accent-dark);
    margin-top: 28px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.doc-content h3:first-child {
    margin-top: 0;
}

.doc-content p {
    font-size: 0.9375rem;
    line-height: 2;
    color: var(--gray-700);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.doc-content ul,
.doc-content ol {
    font-size: 0.9375rem;
    line-height: 2;
    color: var(--gray-700);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    padding-left: 20px;
}

.doc-content ul li,
.doc-content ol li {
    margin-bottom: 6px;
}

.doc-content strong {
    font-weight: 600;
    color: var(--ink);
}

.login-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--rule);
    margin-bottom: 24px;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-weight: 500;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.login-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

.login-field {
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--sans);
    outline: none;
    transition: border 0.2s;
    color: var(--ink);
    background: var(--bg2);
}

.login-field input:focus {
    border-color: var(--accent);
}

.session-notice {
    margin-top: 16px;
    padding: 12px;
    background: var(--danger-soft);
    border: 1px solid rgba(179,65,58,0.2);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--danger);
    display: none;
}

.session-notice.show {
    display: block;
}

/* Mobile fallback for login split */
.auth-card {
    background: var(--bg2);
    border-radius: var(--radius-lg);
    box-shadow: none;
    border: 1px solid var(--rule);
    max-width: 420px;
    width: 100%;
    padding: 40px 32px;
    margin: 20px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-icon {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-title {
    font-size: 1.375rem;
    font-weight: 600;
    font-family: var(--sans);
    color: var(--ink);
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--rule);
    background: var(--bg2);
    line-height: 2;
    letter-spacing: 0.03em;
}

/* ===== Mobile Bottom Tabbar (微信风格) ===== */
.mobile-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 56px;
    height: auto;
    background: var(--bg2);
    border-top: 1px solid var(--rule);
    z-index: 200;
    transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    contain: layout style paint;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-tabbar-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    max-width: 600px;
    margin: 0 auto;
    padding: 6px 0;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

.mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 1.05rem;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s ease;
    flex: 1;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-tabbar a:hover {
    text-decoration: none;
    color: var(--muted);
}

.mobile-tabbar a.active {
    color: var(--accent);
}

.mobile-tabbar a .tab-icon {
    width: 27px;
    height: 27px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.mobile-tabbar a .tab-icon svg {
    width: 100%;
    height: 100%;
}

.mobile-tabbar a .tab-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--danger);
    color: #fff;
    border-radius: 8px;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    pointer-events: none;
}

.mobile-tabbar a .tab-label {
    font-size: 1em;
    font-weight: 400;
    line-height: 1;
}

/* ===== 签到页专用样式 ===== */

/* 签到状态卡片 */
.checkin-status-card .card-body {
    text-align: center;
    padding: 32px 24px;
}

/* 圆形倒计时环 */
.checkin-ring-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.checkin-ring {
    display: block;
}

.checkin-ring-num {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--sans);
}

.checkin-ring-sub {
    font-size: 12px;
    font-family: var(--sans);
}

/* 状态徽章 */
.checkin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.checkin-badge-icon {
    font-size: 1rem;
    line-height: 1;
}

.checkin-badge-done {
    background: var(--success-soft);
    color: var(--success);
}

.checkin-badge-overdue {
    background: var(--danger-soft);
    color: var(--danger);
}

.checkin-badge-pending {
    background: var(--gray-100);
    color: var(--muted);
}

/* 提示信息 */
.checkin-hint {
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 4px 0;
}

.checkin-hint-sub {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin: 2px 0;
}

/* 倒计时框 */
.checkin-countdown-box {
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    text-align: center;
}

.checkin-countdown-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
}

/* 签到记录列表 */
.checkin-records-list {
    display: flex;
    flex-direction: column;
}

.checkin-record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--rule);
}

.checkin-record-item:last-child {
    border-bottom: none;
}

.record-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.record-date-main {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

.record-date-week {
    font-size: 0.8125rem;
    color: var(--muted);
}

.record-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.record-status-icon {
    font-size: 1rem;
    line-height: 1;
}

.record-status-normal {
    color: var(--success);
}

.record-status-late {
    color: var(--warning);
}

.record-status-other {
    color: var(--muted);
}

/* ===== 资产管理页专用样式 ===== */

/* 存储信息紧凑条 */
.asset-storage-bar {
    padding: 16px 20px;
}

/* 分类筛选标签 */
.asset-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.asset-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--bg2);
    color: var(--ink);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.asset-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.asset-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: none;
}

.asset-tab-icon {
    width: 16px;
    height: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-tab-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asset-tab-count {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 2px;
}

.asset-tab.active .asset-tab-count {
    opacity: 1;
}

/* 资产卡片网格 */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.asset-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 12px;
    background: var(--bg2);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 0.15s ease;
    min-height: 140px;
}

.asset-card:hover {
    box-shadow: none;
    border-color: var(--accent);
}

.asset-card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    line-height: 1;
}

.asset-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.asset-card-size {
    font-size: 0.75rem;
    color: var(--muted);
}

/* 上传区 */
.asset-upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    margin-bottom: 16px;
    position: relative;
}

.asset-upload-zone:hover,
.asset-upload-zone.dragover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.upload-zone-inner {
    pointer-events: none;
}

.upload-icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upload-text {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* 移动端快捷上传按钮 */
.mobile-upload-actions {
    display: none;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-upload-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--bg2);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mobile-upload-btn:active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-upload-btn-primary {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-upload-btn-primary:active {
    background: var(--accent);
    color: #fff;
}

.mobile-upload-btn svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 公开链接预览面板 */
.public-link-panel {
    background: var(--gray-100);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px;
    margin-top: 16px;
}

.public-link-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.public-link-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.public-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gray-200);
    color: var(--muted);
}

.public-link-badge.protected {
    background: var(--accent2-soft);
    color: var(--accent2);
}

.public-link-badge.protected::before {
    content: '\1F512';
}

.public-link-url-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--bg2);
    padding: 10px 16px;
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.public-link-url {
    font-size: 0.8125rem;
    color: var(--accent);
    word-break: break-all;
}

.public-link-hint {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.public-link-desc {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
}

/* ===== 仪表盘快捷功能卡片 ===== */
.quick-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 12px;
    background: var(--bg2);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}

.quick-nav-card:hover {
    box-shadow: none;
    border-color: var(--accent);
    transform: none;
    text-decoration: none;
}

.quick-nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    color: var(--accent);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-nav-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-nav-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

.quick-nav-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 768px) {
    /* iOS smooth scrolling & prevent overscroll bounce */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: none;
    }

    .page-content {
        -webkit-overflow-scrolling: touch;
    }

    .container {
        padding: 0 12px;
    }

    .card {
        padding: 16px;
        border-radius: var(--radius);
        margin-bottom: 12px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        flex-direction: column;
    }

    /* Hide sidebar on mobile, show mobile tabbar */
    .sidebar {
        display: none;
    }

    .dashboard-main {
        margin-left: 0;
    }

    /* Hide top header bar on mobile */
    .dashboard-header {
        display: none;
    }

    /* Add top padding since header is hidden */
    .page-content {
        padding-top: 16px;
    }

    .mobile-tabbar {
        display: block;
    }

    /* Add bottom padding for tabbar */
    .page-content {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    /* Login responsive */
    .auth-page {
        padding: 12vh 16px 20px;
        min-height: auto;
    }

    /* 文档页（隐私协议、服务条款等）移动端顶部不留白 */
    .auth-page.doc-page {
        padding-top: 20px;
    }

    .auth-card-panel {
        padding: 24px 20px;
    }

    /* 移动端 auth-brand 字号加大 */
    .auth-brand-title {
        font-size: clamp(1.5rem, 6vw, 1.75rem);
    }

    .auth-brand-desc {
        font-size: clamp(0.9375rem, 3vw, 1rem);
    }

    /* 移动端输入框加大加高，提升触摸体验 */
    .login-field {
        margin-bottom: 20px;
    }

    .login-field label {
        font-size: 0.9375rem;
        margin-bottom: 8px;
    }

    .login-field input {
        padding: 14px 14px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* 移动端主按钮加高 */
    .btn-lg {
        padding: 16px 24px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* 移动端验证码发送按钮加高 */
    .btn-code-send {
        padding: 14px 12px;
        font-size: 0.875rem;
        border-radius: 10px;
    }

    .auth-brand {
        margin-bottom: 24px;
    }

    .auth-trust {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 0;
    }

    .auth-footer-links a,
    .auth-footer-sep {
        font-size: 0.8125rem;
    }

    /* Asset grid: 3 columns on tablet */
    .asset-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .asset-card {
        padding: 16px 8px;
        min-height: 120px;
    }

    .asset-filter-tabs {
        display: flex;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .asset-tab {
        flex: 1;
        flex-shrink: 0;
        justify-content: center;
        font-size: 0.75rem;
        padding: 8px 4px;
        min-width: 0;
        gap: 4px;
    }

    .asset-tab-icon {
        width: 14px;
        height: 14px;
    }

    .asset-tab-icon svg {
        width: 14px;
        height: 14px;
    }

    .asset-tab-count {
        font-size: 0.625rem;
    }

    /* Stats: 2 columns */
    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Quick nav: 2 columns */
    .quick-nav-card {
        padding: 16px 8px;
    }
}

/* ===== Responsive: Mobile (微信风格) ===== */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 8px;
    }

    .card {
        padding: 14px;
        border-radius: var(--radius);
        margin-bottom: 10px;
    }

    .card-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .card-title {
        font-size: 1rem;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Stats: 2 columns on mobile */
    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 1.375rem;
    }

    /* Asset grid: 3 columns on mobile (compact) */
    .asset-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .asset-card {
        padding: 12px 6px;
        min-height: 100px;
        border-radius: var(--radius);
    }

    .asset-card-icon {
        font-size: 1.5rem;
    }

    .asset-card-name {
        font-size: 0.75rem;
    }

    .asset-card-size {
        font-size: 0.6875rem;
    }

    /* Upload zone compact */
    .asset-upload-zone {
        padding: 24px 16px;
        border-radius: var(--radius);
    }

    .upload-icon svg {
        width: 40px;
        height: 40px;
    }

    .upload-text {
        font-size: 0.875rem;
    }

    /* Quick nav: 2 columns */
    .quick-nav-card {
        padding: 14px 8px;
    }

    .quick-nav-icon {
        width: 24px;
        height: 24px;
    }

    .quick-nav-icon svg {
        width: 20px;
        height: 20px;
    }

    .quick-nav-title {
        font-size: 0.8125rem;
    }

    .quick-nav-desc {
        font-size: 0.6875rem;
    }

    /* Login full screen on mobile */
    .auth-page {
        padding: 12vh 12px 16px;
        align-items: flex-start;
        min-height: auto;
    }

    /* 文档页小屏顶部不留白 */
    .auth-page.doc-page {
        padding-top: 12px;
    }

    .auth-card-panel {
        padding: 20px 16px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: #fff;
    }

    .auth-brand-icon {
        width: 48px;
        height: 48px;
    }

    .auth-brand-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .auth-trust {
        gap: 6px;
    }

    /* Toast centered on mobile */
    .toast-container {
        top: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding-top: 8px;
    }

    .toast {
        width: 85vw;
        max-width: 85vw;
        font-size: 0.9375rem;
        padding: 14px 20px;
    }

    /* Modal full width on mobile */
    .modal {
        max-width: 100%;
        border-radius: var(--radius);
    }

    /* Table: smaller text */
    th, td {
        padding: 8px 6px;
        font-size: 0.8125rem;
    }

    /* 移动端禁止文字选择（首页、公开访问页），模态框/输入框除外 */
    body.no-select-mobile {
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    body.no-select-mobile input,
    body.no-select-mobile textarea {
        -webkit-user-select: text;
        -moz-user-select: text;
        user-select: text;
    }

    /* 模态框内允许文字选择 */
    body.no-select-mobile .modal-overlay,
    body.no-select-mobile .modal,
    body.no-select-mobile .modal *,
    body.no-select-mobile .bd-modal-mask,
    body.no-select-mobile .bd-modal,
    body.no-select-mobile .bd-modal *,
    body.no-select-mobile .bd-preview,
    body.no-select-mobile .bd-preview * {
        -webkit-user-select: text;
        -moz-user-select: text;
        user-select: text;
        -webkit-touch-callout: default;
    }
}
