/* ========================================
   common.css - 公共样式
   提取自各页面重复的内联样式
   ======================================== */

/* ================================================================
   CSS 设计变量（Design Tokens）
   全站统一色彩、圆角、阴影、字号规范
   使用方式：var(--primary) / var(--radius-md) 等
   ================================================================ */
:root {
    /* 主色 */
    --primary:        #667eea;
    --primary-dark:   #5a6fd8;
    --primary-light:  #eef0fd;

    /* 语义色 */
    --success:        #10b981;
    --success-light:  #d1fae5;
    --warning:        #f59e0b;
    --warning-light:  #fef3c7;
    --danger:         #ef4444;
    --danger-light:   #fee2e2;
    --info:           #3b82f6;
    --info-light:     #dbeafe;

    /* 文字 */
    --text-primary:   #1f2937;
    --text-secondary: #6b7280;
    --text-muted:     #9ca3af;
    --text-inverse:   #ffffff;

    /* 背景 */
    --bg-base:        #f0f2f5;
    --bg-card:        #ffffff;
    --bg-hover:       #f8fafc;
    --bg-stripe:      #f9fafb;

    /* 边框 */
    --border:         #e5e7eb;
    --border-light:   #f1f5f9;

    /* 圆角 */
    --radius-xs:      4px;
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      16px;
    --radius-xl:      20px;
    --radius-full:    9999px;

    /* 阴影 */
    --shadow-sm:      0 1px 4px rgba(0,0,0,0.06);
    --shadow:         0 2px 10px rgba(0,0,0,0.08);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);

    /* 字号阶梯 */
    --text-xs:        11px;
    --text-sm:        12px;
    --text-base:      13px;
    --text-md:        14px;
    --text-lg:        16px;
    --text-xl:        20px;
    --text-2xl:       24px;

    /* 过渡 */
    --transition:     0.15s ease;
    --transition-md:  0.25s ease;
}

/* === 重置与基础 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f3e8ff 0%, #dbeafe 35%, #cffafe 70%, #d1fae5 100%);
    min-height: 100vh;
    background-attachment: fixed; /* 滚动时背景不动，渐变稳定 */
}

/* === 顶部导航栏 === */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* === 通用按钮 === */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: var(--text-md);
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.back-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid white;
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* === 容器 === */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* === 加载动画 - 声波山形风格 === */
.loading {
    text-align: center;
    padding: 100px;
}

/* 声波容器 - 居中对齐，条形从中间向两端扩展 */
.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 70px;
    margin: 0 auto 20px;
}

.spinner::before,
.spinner::after {
    content: '';
    display: none;
}

/* 声波容器：横向排列，bar 从中轴上下对称伸展 */
.bridge-bar-wave {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 70px;
    margin: 0 auto 8px;
}

/* 蓝绿交替配色 */
.bridge-bar {
    width: 6px;
    border-radius: 3px;
    transform-origin: center;   /* 从中间向上下两端伸展 */
    flex-shrink: 0;
}

/* 奇数条：蓝色 */
.bridge-bar:nth-child(odd)  { background: #5b8dbf; }
/* 偶数条：绿色 */
.bridge-bar:nth-child(even) { background: #5a9469; }

/* 每条 bar 独立高度 + 独立动画，形成真实声波感 */
.bridge-bar:nth-child(1) { height: 20px; animation: wave-bar-1 1.1s ease-in-out infinite; }
.bridge-bar:nth-child(2) { height: 36px; animation: wave-bar-2 0.9s ease-in-out infinite; }
.bridge-bar:nth-child(3) { height: 50px; animation: wave-bar-3 1.3s ease-in-out infinite; }
.bridge-bar:nth-child(4) { height: 60px; animation: wave-bar-4 0.8s ease-in-out infinite; }
.bridge-bar:nth-child(5) { height: 64px; animation: wave-bar-5 1.0s ease-in-out infinite; }
.bridge-bar:nth-child(6) { height: 58px; animation: wave-bar-6 1.2s ease-in-out infinite; }
.bridge-bar:nth-child(7) { height: 46px; animation: wave-bar-7 0.95s ease-in-out infinite; }
.bridge-bar:nth-child(8) { height: 28px; animation: wave-bar-8 1.15s ease-in-out infinite; }
.bridge-bar:nth-child(9) { height: 16px; animation: wave-bar-9 0.85s ease-in-out infinite; }

/* 每条独立 scaleY 范围 + 不同速度，模拟真实声波 */
@keyframes wave-bar-1 { 0%,100% { transform: scaleY(0.3); } 50% { transform: scaleY(1.1); } }
@keyframes wave-bar-2 { 0%,100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.0); } }
@keyframes wave-bar-3 { 0%,100% { transform: scaleY(0.25); } 50% { transform: scaleY(1.2); } }
@keyframes wave-bar-4 { 0%,100% { transform: scaleY(0.6); } 50% { transform: scaleY(1.0); } }
@keyframes wave-bar-5 { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1.15); } }
@keyframes wave-bar-6 { 0%,100% { transform: scaleY(0.35); } 50% { transform: scaleY(1.05); } }
@keyframes wave-bar-7 { 0%,100% { transform: scaleY(0.55); } 50% { transform: scaleY(1.1); } }
@keyframes wave-bar-8 { 0%,100% { transform: scaleY(0.3); } 50% { transform: scaleY(1.2); } }
@keyframes wave-bar-9 { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1.0); } }

/* 保留旧的 spin 动画以防其他地方用到 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* === 表单通用样式 === */
.form-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: var(--text-md);
}

.required {
    color: #f48771;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: var(--text-md);
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e1e8ed;
}

.btn-submit {
    flex: 1;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    padding: 15px 30px;
    background: #f5f7fa;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #e7eaf0;
}

/* === 筛选区域 === */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #666;
}

.filter-input,
.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: var(--text-md);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* === 面板 === */
.panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.panel-title {
    color: #333;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === 模态框 === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.close-btn:hover {
    color: #333;
}

/* === 项目阶段分类选择器（通用） === */
.stage-category-selector {
    display: none;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 18px;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    font-size: var(--text-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.category-btn:hover {
    border-color: var(--primary);
    background: #F9FAFB;
    transform: translateY(-1px);
}

.category-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* === 通用响应式 === */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   共享模块样式 (page-loader / paginator / data-table / status-badge)
   新增于 2026-03-14，供各页面通过共享 JS 模块调用
   ================================================================ */

/* === 全屏加载层 (page-loader.js) === */
.page-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);  /* 半透明：内容透过来可见 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(1px);
    pointer-events: none;  /* 不拦截鼠标，用户可在加载中滚动/点击 */
}

/* 轻量版：只显示动画，无蒙层背景（用于筛选/刷新等快速操作） */
.page-loading-overlay.overlay-light {
    background: transparent;
    backdrop-filter: none;
    pointer-events: none;
}
.page-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.page-loading-msg {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin: 0;
}

/* === 通用分页控件 (paginator.js) === */
.pagination-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 0;
    font-size: var(--text-base);
}
.pager-btn {
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: var(--text-base);
    color: #374151;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.pager-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: var(--primary);
}
.pager-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pager-btn-active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.pager-ellipsis {
    padding: 0 4px;
    color: var(--text-muted);
    font-size: var(--text-base);
}
.pager-info {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-left: 8px;
}

/* === 通用数据表格 (data-table) === */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
    color: #374151;
}
.data-table th {
    background: var(--bg-hover);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: var(--bg-hover);
}
.data-table .amount-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* === 状态徽章 (status-badge) === */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
}
.status-badge.signed    { background: var(--success-light); color: #065f46; }
.status-badge.pipeline  { background: #dbeafe; color: #1e40af; }
.status-badge.completed { background: #e0e7ff; color: #3730a3; }
.status-badge.ongoing   { background: var(--warning-light); color: #92400e; }
.status-badge.approved  { background: var(--success-light); color: #065f46; }
.status-badge.pending   { background: var(--warning-light); color: #92400e; }
.status-badge.rejected  { background: var(--danger-light); color: #991b1b; }
.status-badge.canceled  { background: #f3f4f6; color: var(--text-secondary); }

/* ================================================================
   按钮规范（.btn 系列）
   HTML 用法：<button class="btn btn-primary">提交</button>
   与各页面已有的 .action-btn/.filter-btn 并存，不冲突
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}
.btn:disabled, .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-primary {
    background: #5a67d8; /* 加深以满足 WCAG AA 对比度 (4.6:1 vs 白色) */
    color: var(--text-inverse);
    border-color: #5a67d8;
}
.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(102,126,234,0.35);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-success {
    background: var(--success);
    color: var(--text-inverse);
    border-color: var(--success);
}
.btn-success:hover:not(:disabled) {
    background: #0ea571;
    box-shadow: 0 4px 12px rgba(16,185,129,0.35);
}
.btn-danger {
    background: var(--danger);
    color: var(--text-inverse);
    border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239,68,68,0.35);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}
/* 尺寸 */
.btn-sm { padding: 5px 10px; font-size: var(--text-sm); }
.btn-lg { padding: 11px 22px; font-size: var(--text-md); }
.btn-icon { padding: 7px; width: 34px; height: 34px; justify-content: center; }

/* ================================================================
   卡片规范（.card 系列）
   ================================================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 20px;
}
.card-sm  { padding: 14px; }
.card-lg  { padding: 28px; }
.card-flat {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
}
.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px;
}
.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: -12px 0 14px;
}

/* ================================================================
   表格列宽辅助类
   ================================================================ */
.col-xs   { width: 60px;  min-width: 60px;  }
.col-sm   { width: 90px;  min-width: 90px;  }
.col-md   { width: 120px; min-width: 120px; }
.col-lg   { width: 180px; min-width: 160px; }
.col-fill { min-width: 160px; }   /* 占满剩余空间 */
.col-amount { width: 100px; min-width: 90px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-status { width: 80px; min-width: 70px; text-align: center; }
.col-action { width: 70px; min-width: 60px; text-align: center; white-space: nowrap; }

/* 表格横向滚动容器（移动端防溢出）*/
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
}

/* ================================================================
   统计卡片（.stat-card 系列）
   基础样式，各页面可通过 ::before / 颜色类覆盖
   ================================================================ */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}
.stat-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}
.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: 2px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* ================================================================
   骨架屏加载 (Skeleton Loading)
   用于在数据加载完成前展示页面结构占位符
   ================================================================ */

/* 骨架屏动画 - 闪烁效果 */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 骨架元素基础样式 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

/* 骨架文本行 */
.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    width: 80%;
}
.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 60%; }
.skeleton-text.long { width: 95%; }

/* 骨架标题 */
.skeleton-title {
    height: 22px;
    margin-bottom: 16px;
    width: 50%;
}

/* 骨架卡片 */
.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* 骨架统计卡片 */
.skeleton-stat {
    text-align: center;
    padding: 16px;
}
.skeleton-stat .skeleton-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 auto 10px;
}
.skeleton-stat .skeleton-value {
    height: 28px;
    width: 60px;
    margin: 0 auto 8px;
}
.skeleton-stat .skeleton-label {
    height: 12px;
    width: 80px;
    margin: 0 auto;
}

/* 骨架表格行 */
.skeleton-table-row {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.skeleton-table-row .skeleton-cell {
    height: 14px;
    flex: 1;
}
.skeleton-table-row .skeleton-cell:first-child { flex: 2; }

/* 骨架容器 - 在main-content加载前显示 */
.skeleton-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 隐藏骨架屏（当main-content显示时） */
#main-content[style*="display: block"] ~ .skeleton-container,
#main-content[style*="display:block"] ~ .skeleton-container,
#main-content:not([style*="display: none"]):not([style*="display:none"]) ~ .skeleton-container {
    display: none;
}

/* ================================================================
   无障碍 (Accessibility) 增强样式
   ================================================================ */

/* 视觉隐藏但屏幕阅读器可读 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点可见性增强 */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 跳过导航链接 */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
}
.skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    overflow: visible;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    font-size: var(--text-md);
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
