/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 强制重置浏览器默认链接样式 */
*:any-link {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

/* 兼容性写法 */
:-webkit-any-link {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

:-moz-any-link {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

:root {
    /* 优化版全息渐变色彩方案 */
    --gradient-primary: linear-gradient(135deg, 
        #6B46C1 0%, #7C3AED 8%, #A855F7 18%, #8B5CF6 28%, 
        #06B6D4 38%, #0EA5E9 48%, #38BDF8 58%, 
        #EC4899 68%, #F472B6 78%, #A855F7 88%, #6B46C1 100%);
    --gradient-holographic: linear-gradient(45deg, 
        rgba(107, 70, 193, 0.8) 0%, rgba(124, 58, 237, 0.7) 12%, 
        rgba(168, 85, 247, 0.6) 25%, rgba(139, 92, 246, 0.7) 37%, 
        rgba(6, 182, 212, 0.6) 50%, rgba(14, 165, 233, 0.7) 62%, 
        rgba(236, 72, 153, 0.6) 75%, rgba(244, 114, 182, 0.7) 87%, 
        rgba(107, 70, 193, 0.8) 100%);
    --gradient-aurora: linear-gradient(to right, 
        rgba(107, 70, 193, 0.6) 0%, rgba(124, 58, 237, 0.5) 10%, 
        rgba(168, 85, 247, 0.4) 20%, rgba(139, 92, 246, 0.5) 30%, 
        rgba(6, 182, 212, 0.4) 40%, rgba(14, 165, 233, 0.5) 50%, 
        rgba(56, 189, 248, 0.4) 60%, rgba(236, 72, 153, 0.5) 70%, 
        rgba(244, 114, 182, 0.4) 80%, rgba(168, 85, 247, 0.5) 90%, 
        rgba(107, 70, 193, 0.6) 100%);
    
    /* 基础色彩 */
    --holo-purple-dark: #6B46C1;
    --holo-purple-bright: #A855F7;
    --holo-cyan: #06B6D4;
    --holo-blue: #0EA5E9;
    --holo-magenta: #EC4899;
    
    --color-white: #FFFFFF;
    --color-gray-900: #374151;
    --color-gray-700: #4B5563;
    --color-gray-600: #6B7280;
    --color-gray-500: #9CA3AF;
    
    /* 文字颜色 */
    --text-primary: #374151;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-white: #FFFFFF;
    
    /* 玻璃效果 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(168, 85, 247, 0.2);
    
    /* 阴影 */
    --shadow-holographic: 
        0 4px 20px rgba(168, 85, 247, 0.12),
        0 2px 8px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.3), 
                   0 0 40px rgba(6, 182, 212, 0.2);
    
    /* 字体 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* 动画 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 字体 */
body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 全局超链接样式重置 - 强制覆盖浏览器默认样式 */
a,
a:link,
a:visited,
a:hover,
a:active {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--text-primary) !important;
}

a:focus {
    outline: 2px solid rgba(168, 85, 247, 0.3) !important;
    outline-offset: 2px;
    border-radius: 2px;
}

/* 特定类型链接的样式重写 */
a.nav-btn,
a.nav-btn:link,
a.nav-btn:visited,
a.nav-btn:hover,
a.nav-btn:active,
a.holo-button,
a.holo-button:link,
a.holo-button:visited,
a.holo-button:hover,
a.holo-button:active,
a.footer-link,
a.footer-link:link,
a.footer-link:visited,
a.footer-link:hover,
a.footer-link:active {
    color: inherit !important;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-aurora);
    opacity: 0.08;
    animation: aurora-drift 40s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.02) 0%, rgba(168, 85, 247, 0.01) 30%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.02) 0%, rgba(6, 182, 212, 0.01) 30%, transparent 70%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.015) 0%, rgba(236, 72, 153, 0.005) 40%, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

/* 背景层 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* 极光背景 */
.aurora-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--aurora-gradient);
    opacity: 0.08;
    animation: auroraFlow 20s linear infinite;
    filter: blur(80px);
}

/* 动画定义 */
@keyframes aurora-drift {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    25% { 
        transform: translate(-20px, -30px) rotate(90deg) scale(1.1);
        opacity: 0.12;
    }
    50% { 
        transform: translate(30px, -20px) rotate(180deg) scale(0.9);
        opacity: 0.06;
    }
    75% { 
        transform: translate(-10px, 20px) rotate(270deg) scale(1.05);
        opacity: 0.1;
    }
}

@keyframes liquid-flow {
    0% { transform: translateX(-150%) rotate(0deg); }
    25% { transform: translateX(-100%) rotate(90deg); }
    50% { transform: translateX(-50%) rotate(180deg); }
    75% { transform: translateX(0%) rotate(270deg); }
    100% { transform: translateX(50%) rotate(360deg); }
}

@keyframes liquid-chrome {
    0%, 100% { 
        opacity: 0.02;
        transform: scaleX(1) skewX(0deg);
    }
    50% { 
        opacity: 0.08;
        transform: scaleX(1.5) skewX(15deg);
    }
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes glitch-effect {
    0%, 100% { 
        opacity: 0; 
        transform: translate(0); 
    }
    2% { 
        opacity: 0.8; 
        transform: translate(2px, 1px); 
    }
    4% { 
        opacity: 0; 
        transform: translate(-1px, -1px); 
    }
    8% { 
        opacity: 0.6; 
        transform: translate(-2px, 1px); 
    }
    10% { opacity: 0; }
}

/* 网格叠加层 */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 粒子画布 */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 主容器 */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* 毛玻璃卡片效果 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-holographic);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 400%;
    height: 200%;
    background: var(--gradient-aurora);
    animation: liquid-flow 20s linear infinite;
    opacity: 0.15;
    filter: blur(80px);
    pointer-events: none;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(168, 85, 247, 0.02) 20%,
        rgba(168, 85, 247, 0.06) 40%,
        rgba(168, 85, 247, 0.08) 50%,
        rgba(168, 85, 247, 0.06) 60%,
        rgba(168, 85, 247, 0.02) 80%,
        transparent 100%);
    animation: liquid-chrome 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes holoShimmer {
    0%, 100% { opacity: 0.5; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

/* 头部 */
.header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container {
    position: relative;
}

.logo-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--aurora-gradient);
    filter: blur(40px);
    opacity: 0.3;
    animation: logoGlow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoGlow {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.main-title {
    font-family: var(--font-family);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.title-gradient {
    background: var(--gradient-aurora);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-text 8s linear infinite;
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.5));
    line-height: 1.2;
    font-weight: 700;
    text-shadow: none;
}



.title-sub {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
}

@keyframes titlePulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.8)); }
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: var(--font-family);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 10px var(--holo-cyan); 
    }
    50% { 
        transform: scale(1.2); 
        box-shadow: 0 0 20px var(--holo-cyan), 0 0 30px var(--holo-cyan); 
    }
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* 面板样式 */
.query-panel, .result-panel {
    padding: 2rem;
    animation: slideInUp 0.6s ease-out;
}

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

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

.panel-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.panel-title {
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.panel-indicator {
    width: 8px;
    height: 8px;
    background: var(--holo-cyan);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
}

.panel-controls {
    display: flex;
    gap: 0.5rem;
}

/* 表单样式 */
.query-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-family: var(--font-family);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.input-wrapper {
    position: relative;
}

.holo-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.875rem;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 8px rgba(168, 85, 247, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.holo-input::placeholder {
    color: var(--text-muted);
}

.holo-input:focus {
    outline: none;
    border-color: var(--holo-cyan);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 3px rgba(6, 182, 212, 0.2),
        0 0 20px rgba(6, 182, 212, 0.3),
        0 0 40px rgba(168, 85, 247, 0.2),
        0 0 60px rgba(236, 72, 153, 0.1),
        0 0 80px rgba(14, 165, 233, 0.1),
        0 0 100px rgba(107, 70, 193, 0.05);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(45deg, 
        rgba(168, 85, 247, 0.2), 
        rgba(6, 182, 212, 0.2), 
        rgba(236, 72, 153, 0.2));
    transition: opacity 0.3s ease;
}

.holo-input:focus + .input-glow {
    opacity: 1;
    animation: inputGlow 2s ease-in-out infinite;
}

@keyframes inputGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.input-hint {
    font-family: var(--font-family);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* 按钮样式 */
.holo-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    min-height: auto;
}

.holo-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.holo-button.primary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    box-shadow: 
        0 2px 8px rgba(168, 85, 247, 0.2),
        0 1px 4px rgba(6, 182, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(10px);
}

.holo-button.primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-aurora);
    border-radius: var(--radius-md);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.holo-button.primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.05) 30%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 70%,
        transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.holo-button.primary:hover::before {
    opacity: 1;
}

.holo-button.primary:hover::after {
    left: 100%;
}

.holo-button.primary:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(168, 85, 247, 0.7),
        0 0 60px rgba(236, 72, 153, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.holo-button.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    box-shadow: 
        0 2px 8px rgba(168, 85, 247, 0.2),
        0 1px 4px rgba(6, 182, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(10px);
}

.holo-button.secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(168, 85, 247, 0.2),
        0 2px 6px rgba(6, 182, 212, 0.1);
}

.holo-button.danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: var(--color-white);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 
        0 4px 20px rgba(239, 68, 68, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.08);
}

.holo-button.danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 24px rgba(239, 68, 68, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
}

.holo-button.info {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.9) 0%, 
        rgba(14, 165, 233, 0.85) 20%,
        rgba(56, 189, 248, 0.8) 40%,
        rgba(107, 70, 193, 0.85) 80%,
        rgba(124, 58, 237, 0.9) 100%);
    color: var(--color-white);
    box-shadow: 
        0 4px 20px rgba(6, 182, 212, 0.4),
        0 2px 40px rgba(14, 165, 233, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.3);
    backdrop-filter: blur(10px);
}

.holo-button.info:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(6, 182, 212, 0.7),
        0 0 60px rgba(14, 165, 233, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.holo-button.small {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    min-height: auto;
}

/* 短按钮样式 */
.holo-button.short {
    padding: 0.8rem 2rem;
    min-width: 120px;
    font-size: 1rem;
    border-radius: 8px;
    height: auto;
    margin-left: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    width: auto;
}

.holo-button.short .btn-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
}

/* 按钮文字和图标 */
.btn-text {
    position: relative;
    z-index: 2;
}

/* 图标按钮 */
.icon-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 
        0 2px 8px rgba(168, 85, 247, 0.15),
        0 1px 4px rgba(6, 182, 212, 0.1);
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--holo-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid transparent;
    border-top: 2px solid var(--holo-magenta);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

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

.loading-text {
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--aurora-gradient);
    border-radius: 2px;
    animation: progressFlow 2s ease-in-out infinite;
}

@keyframes progressFlow {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 100%; transform: translateX(0); }
    100% { width: 100%; transform: translateX(100%); }
}

/* 结果面板 */
.grade-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.preview-badge {
    background: var(--holo-cyan);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 表格样式 */
.grade-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.grade-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.grade-table th,
.grade-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    font-family: var(--font-family);
}

.grade-table th {
    background: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
}

.grade-table td {
    color: var(--text-secondary);
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

.grade-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* 下载区域 */
.download-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-notice {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notice-icon {
    font-size: 2rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.notice-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.notice-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.card-input-group .input-wrapper {
    flex: 1;
}

/* 错误消息 */
.error-message {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #fca5a5;
}

.error-icon {
    font-size: 1.5rem;
    animation: errorPulse 2s ease-in-out infinite;
}

@keyframes errorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.error-content h4 {
    margin-bottom: 0.5rem;
    color: #fca5a5;
}

/* 底部 */
.footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
}

/* Footer居中样式 */
.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--holo-cyan);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--holo-cyan);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* 此样式已移动到文件末尾统一管理 */

.separator {
    opacity: 0.5;
}

/* 通知系统（全息风格） */
.notification-container {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.notification {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    min-width: 300px;
    max-width: 450px;
    animation: slideInRight 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 28px rgba(168, 85, 247, 0.12),
        0 3px 14px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 0.85rem;
}

.notification.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #059669;
}

.notification.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #DC2626;
}

.notification.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #D97706;
}

.notification.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563EB;
}

/* 通知关闭按钮 */
.notification-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: auto;
    text-shadow: none;
}

.notification-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-aurora);
    opacity: 0;
    border-radius: 50%;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.notification-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-fast);
    pointer-events: none;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 
        0 0 12px rgba(168, 85, 247, 0.3),
        0 0 18px rgba(6, 182, 212, 0.2),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.notification-close:hover::before {
    opacity: 0.2;
}

.notification-close:hover::after {
    width: 20px;
    height: 20px;
}

.notification-close:active {
    transform: scale(0.95);
}

/* 通知内容布局优化 */
.notification-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.notification-icon {
    flex-shrink: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.notification-message {
    flex: 1;
    line-height: 1.4;
}

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

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.dialog {
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideInScale 0.3s ease-out;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.dialog-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-family);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.close-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-primary);
}

.dialog-content {
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family);
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

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

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

/* 工具类 */
.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        text-align: center;
        flex-direction: column;
        padding: 1.5rem 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 0.9rem;
    }
    
    .content {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .query-panel, .result-panel {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
        align-items: stretch;
    }
    
    .panel-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
    
    .card-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .notification-container {
        left: var(--spacing-md);
        right: var(--spacing-md);
        top: var(--spacing-md);
    }
    
    .notification {
        min-width: auto;
        max-width: none;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .grade-table-wrapper {
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .grade-table th,
    .grade-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    /* 预览头部优化 */
    .preview-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .file-info {
        text-align: left;
    }
    
    /* 下载区域优化 */
    .download-notice {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .notice-content h4 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .notice-content p {
        font-size: 0.85rem;
    }
    
    /* 状态指示器优化 */
    .status-indicator {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* 导航按钮优化 */
    .nav-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0.5rem;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .title-sub {
        font-size: 0.8rem;
    }
    
    .content {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .query-panel, .result-panel {
        padding: 1rem;
        margin: 0;
        border-radius: 12px;
    }
    
    .panel-header {
        margin-bottom: 1rem;
    }
    
    .panel-title {
        font-size: 1.25rem;
    }
    
    .query-form {
        gap: 1rem;
    }
    
    .input-label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .holo-input {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .holo-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .holo-button.short {
        padding: 0.75rem 1.5rem;
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    /* 图标按钮适配 */
    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    /* 加载状态适配 */
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
    
    .loading-progress {
        width: 150px;
    }
    
    /* 表格适配 */
    .grade-table {
        font-size: 0.75rem;
    }
    
    .grade-table th,
    .grade-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }
    
    /* 错误消息适配 */
    .error-message {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .error-icon {
        font-size: 1.25rem;
    }
    
    .error-content h4 {
        font-size: 0.9rem;
    }
    
    .error-content p {
        font-size: 0.85rem;
    }
    
    /* 通知系统适配 */
    .notification {
        padding: 0.75rem;
        font-size: 0.85rem;
        min-width: auto;
        max-width: calc(100vw - 1rem);
    }
    
    .notification-close {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }
    
    /* 底部适配 */
    .footer {
        padding: 1.5rem 0.5rem;
    }
    
    .footer-info {
        font-size: 0.8rem;
        gap: 0.25rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .main-title {
        font-size: 1.25rem;
    }
    
    .title-sub {
        font-size: 0.75rem;
    }
    
    .query-panel, .result-panel {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .panel-title {
        font-size: 1.1rem;
    }
    
    .holo-input {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .holo-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .holo-button.short {
        padding: 0.6rem 1rem;
        min-width: 80px;
        font-size: 0.85rem;
    }
    
    .grade-table {
        font-size: 0.7rem;
    }
    
    .grade-table th,
    .grade-table td {
        padding: 0.3rem 0.1rem;
        font-size: 0.7rem;
    }
    
    .notification {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .footer-info {
        font-size: 0.75rem;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.15);
        --glass-border: rgba(255, 255, 255, 0.4);
        --text-primary: #ffffff;
        --text-secondary: rgba(255, 255, 255, 0.9);
    }
}

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

/* 历史查询页面样式 */
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    color: #000000;
}

.history-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.history-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    font-size: 2rem;
    margin-right: 1rem;
    opacity: 0.8;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #000000;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.7);
}

.file-size,
.file-time {
    display: flex;
    align-items: center;
}

.history-actions {
    margin-left: 1rem;
}

.history-list {
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(0, 0, 0, 0.8);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.card-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000000;
}

.card-info h3 {
    margin: 0 0 1rem 0;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 400;
}

.info-item > span:last-child {
    color: #000000;
    font-weight: 500;
}

.download-history {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000000;
}

.download-history h3 {
    margin: 0 0 1rem 0;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 导航按钮样式 */
.nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.nav-btn:hover {
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

/* History页面响应式设计 */
@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .history-info {
        width: 100%;
    }
    
    .file-icon {
        font-size: 1.5rem;
        margin-right: 0.75rem;
    }
    
    .file-details {
        min-width: 0;
    }
    
    .file-name {
        font-size: 0.9rem;
        word-break: break-all;
    }
    
    .history-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .history-actions .holo-button {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .info-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .info-item:last-child {
        border-bottom: none;
    }
    
    .file-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .card-info {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .card-info h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .download-history {
        padding: 1rem;
    }
    
    .download-history h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .nav-section {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }
    
    .nav-btn {
        margin-right: 0;
        width: auto;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .history-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 8px;
    }
    
    .file-icon {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }
    
    .file-name {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .file-meta {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .history-actions .holo-button {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-info {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .card-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .info-grid {
        gap: 0.5rem;
    }
    
    .info-item {
        padding: 0.4rem 0;
    }
    
    .info-label {
        font-size: 0.75rem;
    }
    
    .info-item > span:last-child {
        font-size: 0.85rem;
    }
    
    .download-history {
        padding: 0.75rem;
    }
    
    .download-history h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .empty-state {
        padding: 2rem 0.75rem;
    }
    
    .empty-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .nav-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        min-width: 100px;
    }
}

@media (max-width: 360px) {
    .history-item {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .file-name {
        font-size: 0.8rem;
    }
    
    .file-meta {
        font-size: 0.7rem;
    }
    
    .history-actions .holo-button {
        font-size: 0.75rem;
        padding: 0.45rem 0.6rem;
    }
    
    .card-info, .download-history {
        padding: 0.6rem;
    }
    
    .card-info h3, .download-history h3 {
        font-size: 0.85rem;
    }
    
    .info-label {
        font-size: 0.7rem;
    }
    
    .info-item > span:last-child {
        font-size: 0.8rem;
    }
    
    .nav-btn {
        font-size: 0.75rem;
        padding: 0.45rem 0.6rem;
        min-width: 90px;
    }
}

/* 全息文字动画 */
@keyframes aurora-text {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* 动画效果 */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 