/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 校徽样式 */
.school-badge {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    animation: fadeIn 1s ease-out;
    transition: all 0.3s ease;
}

.badge-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.school-badge:hover {
    transform: translateY(-5px);
}

.school-badge:hover .badge-image {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 主题变量 */
:root {
    /* 暗色模式（默认） */
    --primary-color: #1976d2; /* Material Design 蓝色 */
    --primary-dark: #1565c0;
    --primary-light: #bbdefb;
    --secondary-color: #43a047; /* Material Design 绿色 */
    --secondary-dark: #388e3c;
    --secondary-light: #c8e6c9;
    --accent-color: #ff9800; /* Material Design 橙色 */
    --accent-dark: #f57c00;
    --accent-light: #ffe0b2;
    
    --light-bg: #121212;
    --white: #1e1e1e;
    --text-color: #ffffff;
    --text-light: #b0b0b0;
    --text-secondary: #9e9e9e;
    --border-color: #333333;
    --divider-color: #333333;
    --error-color: #f44336;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5), 0 6px 6px rgba(0, 0, 0, 0.6);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(-45deg, var(--primary-color), var(--primary-dark), var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transition: all 0.4s ease;
}

.logo:hover .logo-icon::before {
    transform: scale(1.2) rotate(180deg);
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.4s ease;
}

.logo:hover .logo-text::after {
    width: 100%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.primary-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.primary-btn:active {
    transform: translateY(0);
}

/* 按钮点击效果 */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(25, 118, 210, 0.2);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

/* 主内容区域 */
.main-content {
    padding: 80px 0;
}

/* 章节样式 */
.section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 48px;
    text-align: center;
    color: var(--text-color);
}

/* 概述内容 */
.overview-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.overview-item {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.overview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 118, 210, 0.1), transparent);
    transition: all 0.6s ease;
}

.overview-item:hover::before {
    left: 100%;
}

.overview-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.overview-item h3 {
    transition: all 0.3s ease;
}

.overview-item:hover h3 {
    color: var(--primary-color);
}

.overview-item p {
    transition: all 0.4s ease;
}

.overview-item:hover p {
    transform: translateX(8px);
}

.overview-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    border-radius: 50%;
    background-color: rgba(25, 118, 210, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.overview-icon::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: all 0.4s ease;
}

.overview-item:nth-child(1) .overview-icon::before {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.overview-item:nth-child(2) .overview-icon::before {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--primary-color) 30%, var(--white) 30%, var(--white) 40%, var(--primary-color) 40%, var(--primary-color) 70%, var(--white) 70%, var(--white) 80%, var(--primary-color) 80%);
}

.overview-item:nth-child(3) .overview-icon::before {
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
}

.overview-item:hover .overview-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(25, 118, 210, 0.2);
}

.overview-item:hover .overview-icon::before {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(25, 118, 210, 0.5);
}

.overview-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.overview-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 特色功能 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 捐赠容器 */
.donate-container {
    max-width: 800px;
    margin: 0 auto;
}

.donate-header {
    text-align: center;
    margin-bottom: 32px;
}

.donate-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.donate-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 爱发电捐赠区域 */
.afdian-container {
    display: flex;
    justify-content: center;
}

.afdian-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 600px;
    transition: var(--transition);
}

.afdian-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.afdian-info {
    margin-bottom: 32px;
}

.afdian-info p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 24px;
    text-align: center;
}

.afdian-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.afdian-features li {
    padding: 16px;
    background-color: rgba(25, 118, 210, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(25, 118, 210, 0.2);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.afdian-features li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 118, 210, 0.1), transparent);
    transition: all 0.6s ease;
}

.afdian-features li:hover::before {
    left: 100%;
}

.afdian-features li:hover {
    background-color: rgba(25, 118, 210, 0.08);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.afdian-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.afdian-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
    min-width: 300px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.afdian-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.afdian-btn:hover::before {
    width: 400px;
    height: 400px;
}

.afdian-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.afdian-btn:active {
    transform: translateY(0) scale(0.98);
}

.afdian-btn span {
    position: relative;
    z-index: 1;
}

.afdian-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 600px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.afdian-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 118, 210, 0.05), transparent);
    transition: all 0.8s ease;
}

.afdian-content:hover::before {
    left: 100%;
}

.afdian-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-light);
}

.afdian-icon {
    font-size: 24px;
}

.afdian-note {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}



/* 联系我们板块 */
#contact {
    background-color: var(--light-bg);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.contact-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.contact-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 24px;
}

.email-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.email-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background-color: rgba(25, 118, 210, 0.04);
}

.email-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    font-weight: 500;
}

.copy-btn:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.copy-icon {
    font-size: 18px;
}

.contact-note {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .section {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .overview-item {
        padding: 24px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .afdian-content {
        padding: 24px;
    }
    
    .afdian-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .afdian-btn {
        padding: 16px 32px;
        font-size: 18px;
        min-width: 240px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
        min-width: 140px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .overview-item {
        padding: 20px;
    }
    
    .overview-icon {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .overview-title {
        font-size: 18px;
    }
    
    .overview-text {
        font-size: 14px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .feature-title {
        font-size: 16px;
    }
    
    .afdian-content {
        padding: 20px;
    }
    
    .afdian-btn {
        padding: 14px 24px;
        font-size: 16px;
        min-width: 200px;
    }
    
    .afdian-info p {
        font-size: 16px;
    }
    
    /* 联系我们板块响应式 */
    .contact-content {
        padding: 24px;
    }
    
    .email-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-link {
        font-size: 16px;
        text-align: center;
    }
    
    .copy-btn {
        justify-content: center;
    }
    
    .contact-text {
        font-size: 16px;
    }
}

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

.overview-item,
.feature-card,
.afdian-content {
    animation: fadeIn 0.6s ease-out;
}

.overview-item:nth-child(2),
.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.overview-item:nth-child(3),
.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

.overview-item:nth-child(4),
.feature-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}