/**
 * 数据仪表盘页面样式
 * ===========================
 *
 * 包含：装饰背景、统计仪表盘、用户排行榜、最近会议、时长分析
 */

/* ========== CSS 变量 ========== */
:root {
    --dashboard-header-height: 120px;
    --card-hover-lift: -6px;
    --card-hover-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    --anim-duration-fast: 0.15s;
    --anim-duration-normal: 0.25s;
    --anim-duration-slow: 0.4s;
    --stagger-base: 0.05s;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-page, #f5f7fa);
    min-height: 100vh;
    color: var(--text-primary, #1e293b);
    overflow-x: hidden;
}

/* ========== 页面装饰背景 ========== */
.page-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.14;
    animation: none;
}

.bg-circle-1 {
    width: 500px;
    height: 500px;
    background: var(--brand-primary-soft, rgba(99, 102, 241, 0.2));
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    background: var(--ai-soft, rgba(167, 139, 250, 0.15));
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(-30px, -10px) scale(1.02); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: none;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* ========== 页面容器 ========== */
.page-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ========== 页头 ========== */
.page-header {
    position: relative;
    padding: 32px 0 24px;
    margin-bottom: 24px;
    animation: slideInDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    border-radius: 0 0 24px 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    z-index: -1;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--tap-control-min-h);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
    text-decoration: none;
    background: var(--bg-white, #fff);
    border-radius: 10px;
    border: 1px solid var(--border-light, #e2e8f0);
    transition: all var(--anim-duration-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.back-link:hover {
    color: var(--brand-primary, #6366f1);
    border-color: var(--brand-primary-border, rgba(99, 102, 241, 0.3));
    background: var(--brand-primary-soft, rgba(99, 102, 241, 0.04));
    transform: translateX(-4px);
}

.back-link svg {
    transition: transform var(--anim-duration-fast);
}

.back-link:hover svg {
    transform: translateX(-2px);
}

.title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    letter-spacing: -0.02em;
}

.title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--ai-gradient, linear-gradient(135deg, #818CF8, #A78BFA));
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-tertiary, #94a3b8);
    margin-left: 56px;
}

/* ========== 用户下拉菜单 ========== */
.user-dropdown-container {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--tap-control-min-h);
    padding: 8px 14px;
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--anim-duration-normal);
}

.user-dropdown-trigger:hover {
    border-color: var(--brand-primary-border, rgba(99, 102, 241, 0.3));
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.user-dropdown-trigger .header-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--ai-gradient, linear-gradient(135deg, #818CF8, #A78BFA));
    border-radius: 10px;
}

.user-dropdown-trigger .header-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.user-dropdown-trigger .header-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1e293b);
}

.user-dropdown-trigger .header-user-role {
    font-size: 11px;
    color: var(--text-tertiary, #94a3b8);
}

.user-dropdown-trigger .dropdown-arrow {
    color: var(--text-tertiary, #94a3b8);
    transition: transform var(--anim-duration-fast);
}

.user-dropdown-trigger:hover .dropdown-arrow {
    color: var(--brand-primary, #6366f1);
}

.user-dropdown-container.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 1000;
}

.user-dropdown-menu.show {
    display: block;
    animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-secondary, #64748b);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--anim-duration-fast);
}

.dropdown-item:hover {
    color: var(--brand-primary, #6366f1);
    background: var(--brand-primary-soft, rgba(99, 102, 241, 0.08));
}

.dropdown-item-active {
    color: var(--brand-primary, #6366f1);
    background: var(--brand-primary-soft, rgba(99, 102, 241, 0.08));
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light, #e2e8f0);
    margin: 6px 0;
}

button.dropdown-item:hover {
    color: var(--color-danger, #ef4444);
    background: var(--color-danger-bg, #fef2f2);
}

/* ========== 统计仪表盘 ========== */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg-white, #ffffff);
    border-radius: 16px;
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all var(--anim-duration-normal) cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity var(--anim-duration-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-meetings::before { background: var(--brand-primary, #6366f1); }
.stat-card-users::before { background: var(--color-success, #10b981); }
.stat-card-duration::before { background: var(--color-warning, #f59e0b); }
.stat-card-week::before { background: var(--color-purple, #8b5cf6); }

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-card-meetings .stat-icon {
    background: var(--brand-primary-soft, rgba(99, 102, 241, 0.1));
    color: var(--brand-primary, #6366f1);
}

.stat-card-users .stat-icon {
    background: var(--color-success-light, #dcfce7);
    color: var(--color-success, #10b981);
}

.stat-card-duration .stat-icon {
    background: var(--color-warning-light, #fef3c7);
    color: var(--color-warning, #f59e0b);
}

.stat-card-week .stat-icon {
    background: var(--color-purple-soft, rgba(139, 92, 246, 0.1));
    color: var(--color-purple, #8b5cf6);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary, #94a3b8);
}

/* 数字计数动画 */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-value.animate {
    animation: countUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== 双栏布局 ========== */
.dashboard-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    min-width: 0;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* ========== 区块样式 ========== */
.dashboard-section {
    background: var(--bg-white, #ffffff);
    border-radius: 14px;
    border: 1px solid var(--border-light, #e2e8f0);
    padding: 24px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
    min-width: 0;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.section-title svg {
    color: var(--brand-primary, #6366f1);
}

.sort-select {
    appearance: none;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1e293b);
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 8px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all var(--anim-duration-normal);
}

.sort-select:hover {
    border-color: var(--brand-primary-border, rgba(99, 102, 241, 0.3));
}

.sort-select:focus {
    outline: none;
    border-color: var(--brand-primary, #6366f1);
    box-shadow: 0 0 0 3px var(--brand-primary-soft, rgba(99, 102, 241, 0.1));
}

.view-all-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-primary, #6366f1);
    text-decoration: none;
    transition: opacity var(--anim-duration-fast);
}

.view-all-link:hover {
    opacity: 0.8;
}

/* ========== 用户排行榜 ========== */
.user-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    min-width: 0;
}

.user-ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all var(--anim-duration-normal) cubic-bezier(0.16, 1, 0.3, 1);
    animation: cardAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--stagger-index, 0) * var(--stagger-base));
    min-width: 0;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-ranking-item:hover {
    transform: translateY(-2px);
    background: var(--bg-white, #ffffff);
    border-color: var(--brand-primary-border, rgba(99, 102, 241, 0.3));
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

/* 排名徽章 */
.rank-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--bg-tertiary, #e2e8f0);
    color: var(--text-secondary, #64748b);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #E8E8E8 0%, #B8B8B8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(184, 184, 184, 0.3);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

/* 用户头像 */
.user-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--ai-gradient, linear-gradient(135deg, #818CF8, #A78BFA));
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform var(--anim-duration-normal);
}

.user-ranking-item:hover .user-avatar {
    transform: scale(1.05);
}

/* 用户信息 */
.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-tertiary, #94a3b8);
}

.stat-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ========== 最近会议列表 ========== */
.recent-meetings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 150px;
    min-width: 0;
}

.meeting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 10px;
    transition: all var(--anim-duration-normal);
    animation: cardAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--stagger-index, 0) * var(--stagger-base));
    min-width: 0;
}

.meeting-item:hover {
    background: var(--bg-white, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.meeting-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary-soft, rgba(99, 102, 241, 0.1));
    color: var(--brand-primary, #6366f1);
    border-radius: 10px;
    flex-shrink: 0;
}

.meeting-icon svg {
    width: 18px;
    height: 18px;
}

.meeting-info {
    flex: 1;
    min-width: 0;
}

.meeting-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.meeting-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary, #94a3b8);
}

.meeting-duration {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
    flex-shrink: 0;
}

/* 状态指示器 */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.active {
    background: var(--color-success, #10b981);
    box-shadow: 0 0 6px var(--color-success, #10b981);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.completed {
    background: var(--neutral-400, #94a3b8);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== 时长分布图 ========== */
.duration-chart {
    min-height: 100px;
}

.duration-bar-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.duration-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: cardAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--stagger-index, 0) * var(--stagger-base));
}

.duration-bar-label {
    width: 70px;
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    flex-shrink: 0;
}

.duration-bar {
    flex: 1;
    height: 28px;
    background: var(--bg-tertiary, #f1f5f9);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.duration-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.duration-bar-fill.short { background: var(--color-success, #10b981); }
.duration-bar-fill.medium { background: var(--color-info, #3b82f6); }
.duration-bar-fill.long { background: var(--color-warning, #f59e0b); }
.duration-bar-fill.very-long { background: var(--color-purple, #8b5cf6); }

.duration-bar-value {
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.duration-bar-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.duration-bar-value-outside {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary, #94a3b8);
    flex-shrink: 0;
}

/* ========== 加载状态 ========== */
.loading-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light, #e2e8f0);
    border-top-color: var(--brand-primary, #6366f1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-state p,
.empty-state p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-tertiary, #94a3b8);
}

.empty-state svg {
    color: var(--text-tertiary, #94a3b8);
    margin-bottom: 8px;
}

/* ========== Toast 通知 ========== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--neutral-900, #0f172a);
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all var(--anim-duration-slow) cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success { background: var(--color-success, #10b981); }
.toast-error { background: var(--color-danger, #ef4444); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 0 16px 40px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: flex-end;
    }

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        display: none;
    }

    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-value {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .title-group {
        margin-left: 0;
    }

    .page-subtitle {
        margin-left: 0;
    }

    .user-stats-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .dashboard-section {
        padding: 16px;
        border-radius: 14px;
    }

    .stats-dashboard {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: row;
        justify-content: flex-start;
    }

    .user-dropdown-trigger .header-user-info {
        display: none;
    }

    .user-dropdown-trigger {
        padding: 8px;
    }

    .back-link span:last-child {
        display: none;
    }

    .back-link {
        padding: 8px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========== 工具类：仅供屏幕阅读器 ========== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========== 减少动画偏好 ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
