/* 顶级UI增强 - Premium Enhancements */

/* ========================================
   Hero 区域增强
   ======================================== */

.hero {
    position: relative;
    overflow: hidden;
}

/* 动态网格背景 */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(74, 144, 226, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 226, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    animation: grid-flow 20s linear infinite;
}

@keyframes grid-flow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Hero 按钮增强 */
.hero-buttons {
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    box-shadow: 
        0 10px 30px rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* ========================================
   工具区域增强
   ======================================== */

.tools {
    position: relative;
    overflow: hidden;
}

.tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(155, 89, 182, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.tool-card {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.6) 0%, rgba(20, 20, 40, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* 卡片光晕效果 */
.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.tool-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(74, 144, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

.tool-icon {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(155, 89, 182, 0.15) 100%);
    box-shadow: 
        0 8px 24px rgba(74, 144, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.tool-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(74, 144, 226, 0.2);
    animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.tool-card:hover .tool-icon {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3) 0%, rgba(155, 89, 182, 0.3) 100%);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 12px 32px rgba(74, 144, 226, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tool-card:hover .tool-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px currentColor);
}

.tool-link {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8) 0%, rgba(155, 89, 182, 0.8) 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.tool-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.tool-link:hover::before {
    width: 300px;
    height: 300px;
}

.tool-link:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 1) 0%, rgba(155, 89, 182, 1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
}

/* ========================================
   论文区域增强
   ======================================== */

.papers {
    position: relative;
}

.papers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(155, 89, 182, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.paper-card {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.6) 0%, rgba(20, 20, 40, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* 论文卡片装饰线 */
.paper-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #4a90e2 0%, #9b59b6 100%);
    transition: height 0.5s ease;
}

.paper-card:hover::after {
    height: 100%;
}

.paper-card:hover {
    transform: translateY(-8px) translateX(5px);
    box-shadow: 
        -5px 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(74, 144, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

.paper-meta {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.paper-meta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2 0%, transparent 100%);
}

.paper-year {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8) 0%, rgba(74, 144, 226, 1) 100%);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.paper-journal {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(155, 89, 182, 0.1) 100%);
    border: 1px solid rgba(155, 89, 182, 0.3);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.2);
}

.paper-card h3 {
    position: relative;
    padding-left: 1rem;
}

.paper-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 4px;
    height: 1em;
    background: linear-gradient(180deg, #4a90e2 0%, #9b59b6 100%);
    border-radius: 2px;
}

.paper-link {
    background: rgba(74, 144, 226, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.paper-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.2), transparent);
    transition: left 0.5s ease;
}

.paper-link:hover::before {
    left: 100%;
}

.paper-link:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8) 0%, rgba(155, 89, 182, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* ========================================
   关于区域增强
   ======================================== */

.about {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-text h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37 0%, #f4e5b8 50%, #c5a028 100%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.feature {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(74, 144, 226, 0.2);
    transform: translateX(10px);
}

.feature svg {
    width: 24px;
    height: 24px;
    color: #4a90e2;
    filter: drop-shadow(0 0 8px rgba(74, 144, 226, 0.5));
}

/* 统计数据增强 */
.stat {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.6) 0%, rgba(20, 20, 40, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2 0%, #9b59b6 50%, #43e97b 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

.stat-number {
    position: relative;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.3));
    animation: number-glow 3s ease-in-out infinite;
}

@keyframes number-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(74, 144, 226, 0.6));
    }
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================================
   页脚增强
   ======================================== */

.footer {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 1) 100%);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(74, 144, 226, 0.5) 50%, transparent 100%);
}

.footer-section h3,
.footer-section h4 {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37 0%, transparent 100%);
}

.footer-section ul li a {
    position: relative;
    padding-left: 1rem;
    display: inline-block;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-section ul li a:hover {
    color: #4a90e2;
    transform: translateX(8px);
}

.social-links a {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.6) 0%, rgba(20, 20, 40, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-links a:hover::before {
    width: 100px;
    height: 100px;
}

.social-links a:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8) 0%, rgba(155, 89, 182, 0.8) 100%);
    border-color: rgba(74, 144, 226, 0.5);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.disclaimer {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
    border: 1px solid rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.disclaimer::before {
    content: '⚠️';
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.3;
}

.disclaimer strong {
    color: #e74c3c;
    font-weight: 700;
}

/* ========================================
   搜索框增强
   ======================================== */

.search-box {
    position: relative;
}

.search-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #4a90e2, #9b59b6, #43e97b);
    border-radius: 52px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.search-box:focus-within::before {
    opacity: 1;
}

.search-box input {
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-box input:focus {
    background: rgba(30, 30, 60, 0.9);
    border-color: transparent;
    box-shadow: 
        0 0 0 3px rgba(74, 144, 226, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   响应式优化
   ======================================== */

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-text h2::after {
        width: 60px;
    }
    
    .feature:hover {
        transform: translateX(5px);
    }
}
