/* root.css - 极简白色毛玻璃风格基础框架 - 修复版 */

:root {
    /* 主色调：中性色搭配暖黄色强调色 */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* 强调色：暖黄色系 */
    --accent-50: #fffaf0;
    --accent-100: #feebc8;
    --accent-200: #fbd38d;
    --accent-300: #f6ad55;
    --accent-400: #ed8936;
    --accent-500: #dd6b20;
    --accent-600: #c05621;
    --accent-700: #9c4221;
    --accent-800: #7b341e;
    --accent-900: #652b19;
    
    /* 功能色 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #6b7280;
    --primary: var(--accent-400);
    --accent: var(--accent-400);
    
    /* 毛玻璃效果 */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.28);
    --glass-shadow: 0 1px 24px rgba(0, 0, 0, 0.04), 
                    0 8px 48px rgba(0, 0, 0, 0.08);
    --glass-glow: 0 0 0 1px rgba(255, 255, 255, 0.9);
    
    /* 文本颜色 */
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-600);
    --text-tertiary: var(--neutral-400);
    --text-light: var(--neutral-300);
    
    /* 间距系统 - 优化为8px倍数 */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* 圆角系统 */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 9999px;
    
    /* 字体系统 */
    --font-sans: 'Noto Sans SC', 'HarmonyOS Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    
    /* 字体大小 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* 行高 */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* 过渡效果 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 层级 */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
    
    /* 移动端优化变量 */
    --touch-target-min: 44px;
    --tap-highlight-color: rgba(0, 0, 0, 0.1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--neutral-50);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.9) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(250, 250, 250, 0.8) 0px, transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 修复导航栏覆盖问题 */
body:not(.form-page) {
    padding-top: 64px;
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    
    body:not(.form-page) {
        padding-top: 56px;
    }
}

/* 毛玻璃效果类 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-glow);
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

/* 导航栏修复 - 统一手机端和PC端 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: var(--z-fixed);
    padding: var(--space-2) var(--space-4);
    min-height: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-base);
}

@media (min-width: 768px) {
    .navbar {
        padding: 0 var(--space-6);
        min-height: 64px;
        height: 64px;
    }
    
    body:not(.form-page) {
        padding-top: 64px;
    }
}

/* 用户菜单修复 */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--neutral-700);
    -webkit-tap-highlight-color: var(--tap-highlight-color);
    position: relative;
    z-index: var(--z-sticky);
}

.menu-toggle:hover {
    background: white;
    border-color: var(--accent-300);
    color: var(--accent-500);
}

.menu-toggle:focus-visible {
    outline: 3px solid var(--accent-300);
    outline-offset: 2px;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + var(--space-1));
    right: 0;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: var(--space-2) 0;
    display: none;
    z-index: var(--z-dropdown);
    animation: slideDown 200ms ease;
    width: max-content;
}

.dropdown-content.show {
    display: block;
}

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

.dropdown-content a {
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: all var(--transition-fast);
    text-decoration: none;
    min-height: 44px;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    padding-left: var(--space-5);
    text-decoration: none;
}

/* 移动端下拉菜单修复 */
@media (max-width: 768px) {
    .user-menu {
        position: static;
    }
    
    .dropdown-content {
        position: fixed;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        min-width: auto;
        width: 100vw !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: none !important;
        animation: slideDown 200ms ease;
    }
    
    .dropdown-content a {
        min-height: 48px;
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-base);
    }
    
    .menu-toggle {
        z-index: var(--z-fixed);
    }
}

/* 模态框系统 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--space-4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    overflow-y: auto;
}

.modal.show,
.modal[style*="display: block"] {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 300ms ease;
    position: relative;
    margin: auto;
}

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

/* 模态框关闭按钮 */
.close-modal {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--neutral-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
    z-index: 1;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--neutral-800);
    transform: scale(1.1);
}

/* 页脚修复 - 提高文字对比度 */
.footer {
    background: linear-gradient(180deg, var(--neutral-800), rgba(30, 30, 30, 0.95));
    color: rgba(255, 255, 255, 0.95);
    padding: var(--space-12) 0 var(--space-8);
    margin-top: auto;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column p {
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.85);
    max-width: 320px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
}

.footer-links i {
    margin-right: var(--space-2);
    width: 20px;
    text-align: center;
    color: var(--accent-400);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links li:not(a) {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-8) auto 0;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

.icp-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    display: inline-block;
    margin-top: var(--space-1);
    font-size: var(--text-xs);
}

.icp-link:hover {
    color: white;
    text-decoration: underline;
}

/* Cookie提示样式修复 */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--neutral-800);
    color: white;
    padding: var(--space-4);
    z-index: var(--z-modal);
    display: none;
    animation: slideUp 300ms ease;
    transform: translateY(100%);
    opacity: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: var(--space-3);
    }
}

.cookie-text h3 {
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.cookie-text a {
    color: var(--accent-300);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: white;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
    }
}

.cookie-close {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: var(--space-1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.cookie-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* 确认对话框样式 */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--space-4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.confirm-dialog.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.confirm-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 300ms ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.confirm-content h3 {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.confirm-content p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.confirm-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

.confirm-btn {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    min-height: 44px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.confirm-btn.primary {
    background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
    color: white;
}

.confirm-btn.primary:hover {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    transform: translateY(-1px);
}

.confirm-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--neutral-700);
    border: 2px solid var(--neutral-300);
}

.confirm-btn.secondary:hover {
    background: white;
    border-color: var(--accent-300);
    color: var(--accent-600);
}

/* 服务确认详情 */
.service-confirm-details {
    background: rgba(250, 250, 250, 0.8);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: var(--space-4) 0;
}

.confirm-info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.confirm-info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.info-value {
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* 认证提示样式 */
.auth-alert {
    position: fixed;
    top: 20px;
    right: -300px;
    background: white;
    color: #333;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: var(--z-tooltip);
    opacity: 0;
    min-width: 300px;
    border-left: 4px solid var(--neutral-300);
}

.auth-alert.visible {
    right: 20px;
    opacity: 1;
}

.auth-alert.hiding {
    opacity: 0;
}

.auth-alert.success {
    border-left-color: var(--success);
}

.auth-alert.error {
    border-left-color: var(--danger);
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.loader.active {
    display: flex;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid transparent;
    border-top-color: var(--accent-400);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单页特殊处理 */
.form-page {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--neutral-50), rgba(250, 250, 250, 0.9));
}

.form-page .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: var(--z-fixed);
    padding: var(--space-3) var(--space-4);
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .form-page .navbar {
        padding: var(--space-4) var(--space-6);
    }
}

/* 容器系统 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* 按钮系统 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: var(--leading-none);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    gap: var(--space-2);
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
    color: white;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.2);
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
    color: white;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.2);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--neutral-700);
    border: 2px solid var(--neutral-300);
}

.btn-outline:hover {
    border-color: var(--accent-400);
    color: var(--accent-500);
    background: rgba(237, 137, 54, 0.05);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #0da271);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #0da271, #0c8f64);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 移动端按钮优化 */
@media (max-width: 768px) {
    .btn {
        padding: var(--space-3) var(--space-4);
        min-height: 44px;
        min-width: 44px;
    }
}

/* 响应式断点 */
@media (max-width: 640px) {
    :root {
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
        --text-2xl: 1.5rem;
        --text-xl: 1.25rem;
        --text-lg: 1.125rem;
    }
    
    .navbar {
        padding: var(--space-3) var(--space-4);
    }
    
    .modal-content {
        margin: var(--space-4);
        max-height: calc(100vh - var(--space-8));
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    a:not(.btn),
    button:not(.btn),
    input[type="button"],
    input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    textarea {
        font-size: 16px;
        min-height: 44px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --text-tertiary: #666666;
        --accent-500: #b45309;
        --accent-400: #c05621;
    }
    
    .btn-primary,
    .btn-accent,
    .btn-success {
        border: 2px solid currentColor;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .modal-content {
        animation: none;
    }
    
    .dropdown-content {
        animation: none;
    }
    
    .loader-spinner {
        animation: none;
        border-top-color: var(--accent-400);
    }
    
    .cookie-banner {
        animation: none;
    }
}