/* Subject 页面样式 */

/* Banner区域 - 参考support页面样式 */
.subject-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 150px 0 100px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.subject-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    animation: bannerShift 20s ease-in-out infinite;
}

.subject-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

@keyframes bannerShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-20px) translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

.subject-banner .banner-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.subject-banner .banner-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: 1px;
}

.subject-banner .banner-overlay p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.subject-section {
    margin-bottom: 60px;
}

.subject-section .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000000 !important;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 30px;
    opacity: 1 !important;
    transform: none !important;
    text-align: center !important;
    position: static !important;
}

.subject-section .section-title::after {
    display: none !important;
}

.subject-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.subject-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 25px;
    color: var(--white);
}

.subject-card:nth-child(2n) .subject-card-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.subject-card:nth-child(3n) .subject-card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.subject-card:nth-child(4n) .subject-card-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.subject-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: var(--white);
}

.subject-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    align-items: center;
}

.subject-card-body p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
}

.subject-cta-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    transition: all 0.3s ease;
}

.subject-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .subject-banner .banner-overlay h1 {
        font-size: 2.5rem;
    }
    
    .subject-banner .banner-overlay p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .subject-banner {
        padding: 120px 0 80px;
    }
    
    .subject-banner .banner-overlay h1 {
        font-size: 2rem;
    }
    
    .subject-banner .banner-overlay p {
        font-size: 1rem;
    }
    
    .subject-section .section-title {
        font-size: 1.5rem;
    }
    
    .subject-card-title {
        font-size: 1.1rem;
    }
    
    .subject-card-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .subject-banner {
        padding: 100px 0 60px;
    }
    
    .subject-banner .banner-overlay h1 {
        font-size: 1.8rem;
    }
    
    .subject-banner .banner-overlay p {
        font-size: 0.95rem;
    }
    
    .subject-card-header {
        padding: 15px 20px;
    }
    
    .subject-card-title {
        font-size: 1rem;
    }
    
    .subject-card-body {
        padding: 15px;
    }
    
    .subject-card-body p {
        font-size: 0.9rem;
    }
}

/* 卡片动画效果 */
.subject-card {
    animation: fadeInUp 0.6s ease-out;
}

.subject-card:nth-child(1) { animation-delay: 0.1s; }
.subject-card:nth-child(2) { animation-delay: 0.2s; }
.subject-card:nth-child(3) { animation-delay: 0.3s; }
.subject-card:nth-child(4) { animation-delay: 0.4s; }
.subject-card:nth-child(5) { animation-delay: 0.5s; }
.subject-card:nth-child(6) { animation-delay: 0.6s; }
.subject-card:nth-child(7) { animation-delay: 0.7s; }
.subject-card:nth-child(8) { animation-delay: 0.8s; }

