:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --text: #1a1d26;
    --text-muted: #6b7280;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --success: #059669;
    --success-light: #ecfdf5;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --warning: #d97706;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand:hover { text-decoration: none; }

.navbar-brand .logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px;
}

.navbar-nav { display: flex; align-items: center; gap: 16px; }
.navbar-nav a { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; }
.navbar-nav a:hover { color: var(--primary); }

.container { max-width: 1100px; margin: 0 auto; padding: 32px 24px; width: 100%; flex: 1; }

.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #eef2ff 0%, #f4f6fb 50%, #faf5ff 100%);
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-card .brand { text-align: center; margin-bottom: 32px; }

.auth-card .brand .logo {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-size: 28px; margin-bottom: 16px;
}

.auth-card .brand h1 { font-size: 1.5rem; font-weight: 700; }
.auth-card .brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 6px; }

.form-control {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.95rem; background: var(--surface);
}

.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.password-field {
    position: relative;
}
.password-field .form-control {
    padding-right: 42px;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}
.password-toggle:hover {
    color: var(--text);
    background: var(--bg);
}
.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.password-toggle .icon-eye-off {
    display: none;
}
.password-toggle.is-visible .icon-eye {
    display: none;
}
.password-toggle.is-visible .icon-eye-off {
    display: block;
}

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border: none; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500; cursor: pointer; text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-block { width: 100%; }

.alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 0.875rem; margin-bottom: 20px;
}

.alert-error { background: var(--danger-light); color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #a7f3d0; }

.form-control-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.85rem; }

.sync-progress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
}
.sync-progress-overlay[hidden] { display: none !important; }
.sync-progress-card {
    width: min(420px, 92vw);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px;
    text-align: center;
}
.sync-progress-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.sync-progress-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    min-height: 1.4em;
}
.sync-progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}
.sync-progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    border-radius: 999px;
    transition: width 0.35s ease;
}
.sync-progress-percent {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h2 { font-size: 1.1rem; font-weight: 600; }
.card-body { padding: 24px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat-card .label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .value { font-size: 2rem; font-weight: 700; }
.stat-card .value.primary { color: var(--primary); }
.stat-card .value.success { color: var(--success); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; background: var(--bg); }
td { font-size: 0.9rem; }
tr:hover td { background: #fafbfc; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
.badge-bound { background: var(--success-light); color: var(--success); }
.badge-unbound { background: #fef3c7; color: var(--warning); }

.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.5); z-index: 200;
    align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }

.modal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 480px; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.1rem; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

.hero { text-align: center; padding: 60px 24px; }
.hero h1 {
    font-size: 2.5rem; font-weight: 700; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto 32px; }

.info-box { background: var(--primary-light); border-radius: var(--radius-sm); padding: 16px 20px; }
.info-box h3 { font-size: 0.95rem; margin-bottom: 8px; color: var(--primary); }
.info-box p { font-size: 0.875rem; color: var(--text-muted); }

.info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-muted); font-size: 0.9rem; }
.info-row .value { font-weight: 500; font-size: 0.9rem; }

.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #1e1b4b; color: white; padding: 24px 0; flex-shrink: 0; }
.sidebar-brand { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.sidebar-brand h2 { font-size: 1.1rem; font-weight: 700; }
.sidebar-brand span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    margin: 4px 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}
.sidebar-nav a.active {
    background: #4338ca;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    text-decoration: none;
}

.admin-main { flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: flex-end;
}
.admin-content { padding: 32px; flex: 1; }
.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.actions-cell { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .hero h1 { font-size: 1.75rem; }
    .auth-card { padding: 28px; }
    .user-dashboard { flex-direction: column; }
    .user-sidebar { width: 100%; min-height: auto; }
    .user-main { padding: 20px; }
    .video-grid { grid-template-columns: 1fr; }
}

/* 用户前台 - 官小数据管理 */
.user-dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.user-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-inner {
    padding: 40px 28px;
    flex: 1;
}

.sidebar-logo .logo {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; margin-bottom: 20px;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.sidebar-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.user-avatar {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}

.user-meta { display: flex; flex-direction: column; gap: 2px; }
.user-meta strong { font-size: 0.95rem; }
.user-meta span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.sidebar-stats {
    display: flex; gap: 12px;
}

.sidebar-stat {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.sidebar-stat .num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
}

.sidebar-stat .label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.sidebar-footer {
    padding: 20px 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-main {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
}

.user-main-header {
    margin-bottom: 28px;
}

.user-main-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-main-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.video-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.video-time { font-size: 0.75rem; color: var(--text-muted); }

.video-card-body {
    padding: 24px 20px;
    text-align: center;
}

.video-avatar {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-size: 1.25rem; font-weight: 700;
    margin-bottom: 12px;
}

.video-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.video-id {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-card-footer {
    padding: 0 20px 16px;
}

.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; }

.video-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin: 2px 4px 2px 0;
}

.manage-video-block {
    margin-bottom: 12px;
}

.manage-video-block:last-child { margin-bottom: 0; }

.manage-video-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.manage-video-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.manage-video-avatar-wrap { flex-shrink: 0; }

.manage-video-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.manage-video-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light, #eff6ff);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.manage-video-meta {
    min-width: 0;
    flex: 1;
}

.manage-video-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.manage-video-title-row strong {
    font-size: 1rem;
}

.manage-video-id,
.manage-video-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    word-break: break-all;
}

.manage-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.manage-modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.modal-lg {
    width: min(720px, 92vw);
}

.manage-video-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.manage-video-item:last-child { border-bottom: none; }

.manage-video-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.manage-video-info strong { font-size: 0.95rem; }
.manage-video-info span { font-size: 0.8rem; color: var(--text-muted); }

.manage-video-block {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.manage-video-block:last-child { margin-bottom: 0; }

.mini-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.85rem;
}

.mini-table th, .mini-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.mini-table th {
    background: var(--surface);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.add-item-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.add-item-form .form-control {
    width: auto;
    flex: 1;
    min-width: 120px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.video-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.video-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.video-card-add {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border: 2px dashed var(--border);
    background: var(--surface);
    box-shadow: none;
    text-decoration: none;
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.video-card-add:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.video-card-add-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
}

.video-add-icon {
    width: 56px;
    height: 56px;
    line-height: 52px;
    font-size: 2rem;
    font-weight: 300;
    border-radius: 50%;
    border: 2px dashed currentColor;
}

.video-add-text {
    font-size: 1rem;
    font-weight: 600;
}

.video-add-tip {
    font-size: 0.85rem;
    opacity: 0.85;
}

.detail-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.detail-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.detail-breadcrumb span { margin: 0 6px; }

.detail-info-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.detail-info-item {
    min-width: 0;
}

.detail-info-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.detail-info-item .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.detail-info-item .value.account-id {
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-info-item .value.primary { color: var(--primary); }
.detail-info-item .value.success { color: var(--success); }

@media (max-width: 992px) {
    .detail-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
}

.video-id-code {
    background: var(--bg);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary);
    word-break: break-all;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
}

.play-count {
    font-weight: 600;
    color: var(--text);
}

.video-cover-thumb {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    display: block;
}

.video-cover-empty {
    display: inline-block;
    width: 72px;
    height: 96px;
    line-height: 96px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg);
    border-radius: 6px;
    border: 1px dashed var(--border);
}

.video-title {
    display: block;
    max-width: 280px;
    line-height: 1.5;
    word-break: break-word;
}

.video-card.is-offline { opacity: 0.92; }
.video-card.is-offline .video-name { color: var(--text-muted); }

.video-avatar-wrap {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
}

.video-avatar-wrap.offline {
    filter: grayscale(100%);
    opacity: 0.55;
}

.video-avatar-img {
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: 50%;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-avatar-wrap { flex-shrink: 0; }

.detail-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.scan-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.scan-box { text-align: center; }

.qr-wrap {
    width: 220px; height: 220px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.qr-image { width: 200px; height: 200px; }

.qr-loading { color: var(--text-muted); font-size: 0.9rem; }

.qr-demo-placeholder {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
}

.qr-demo-placeholder span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--warning, #e6a23c);
    margin-bottom: 8px;
}

.qr-demo-placeholder p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.scan-status {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.scan-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.scan-tip.expired { color: var(--danger); }

.scan-info h3 { font-size: 1rem; margin-bottom: 12px; }
.scan-info p { margin-bottom: 8px; }
.scan-info .muted { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 768px) {
    .scan-card { grid-template-columns: 1fr; }
}

.notice-box {
    background: var(--primary-light);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: 0.92rem;
}

.notice-box ul {
    margin: 10px 0 0 18px;
    color: var(--text-muted);
}

.notice-box li { margin-bottom: 6px; }

.notice-warn {
    margin-top: 12px;
    color: var(--warning);
    font-size: 0.88rem;
}

.text-muted-sm {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}
