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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

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

/* 头部样式 */
.header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333333;
    font-weight: 600;
    transition: font-size 0.3s ease;
}

.header-scrolled h1 {
    font-size: 2rem;
}

.header p {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.header-scrolled p {
    opacity: 0;
    margin-bottom: 10px;
}

/* 导航菜单样式 */
.main-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f5f5f5;
    color: #0078d4;
}

.nav-link.active {
    background-color: #0078d4;
    color: #ffffff;
}

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

/* 英雄区域样式 */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    background-color: #fafafa;
    border-radius: 12px;
    padding: 80px 20px;
    background-image: linear-gradient(120deg, #f6f9fc 0%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #333333;
    position: relative;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666666;
    max-width: 900px;
    margin: 0 auto 30px;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
}

.btn-primary:hover {
    background-color: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #0078d4;
    border: 2px solid #0078d4;
}

.btn-secondary:hover {
    background-color: #0078d4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

/* 功能区域样式 */
.features-section {
    margin-bottom: 60px;
}

.features-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #333333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.feature-card-visible {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333333;
}

.feature-card p {
    color: #666666;
    line-height: 1.6;
}

/* 链接卡片样式 */
.links-section {
    margin-bottom: 60px;
    padding: 40px 0;
}

.links-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #333333;
    position: relative;
}

.links-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0078d4, #4F46E5);
    border-radius: 3px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 50px 20px;
    text-align: center;
    text-decoration: none;
    color: #333333;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

/* 背景装饰效果 */
.link-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 3px;
    background: linear-gradient(90deg, #0078d4, #4F46E5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #0078d4;
    border-color: #0078d4;
}

.link-card:hover::before {
    transform: scaleX(1);
}

/* 为不同卡片设置特定颜色 */
.link-card:nth-child(1):hover {
    border-color: #0078d4;
}

.link-card:nth-child(1):hover h3 {
    color: #0078d4;
}

.link-card:nth-child(2):hover {
    border-color: #4F46E5;
}

.link-card:nth-child(2):hover h3 {
    color: #4F46E5;
}

.link-card:nth-child(3):hover {
    border-color: #10b981;
}

.link-card:nth-child(3):hover h3 {
    color: #10b981;
}

.link-card:nth-child(4):hover {
    border-color: #f59e0b;
}

.link-card:nth-child(4):hover h3 {
    color: #f59e0b;
}

.link-card .icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.link-card:hover .icon {
    transform: scale(1.1);
}

.link-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.4s ease;
}

/* 统计区域样式 */
.stats-section {
    background-color: #f8fafc;
    padding: 60px 0;
    margin-bottom: 60px;
    border-radius: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0078d4;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    color: #666666;
}

/* 推荐资源区域样式 */
.resources-section {
    margin-bottom: 60px;
}

.resources-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #333333;
    position: relative;
}

.resources-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0078d4, #4F46E5);
    border-radius: 3px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333333;
    display: block;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #0078d4;
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333333;
    transition: color 0.3s ease;
}

.resource-card:hover h3 {
    color: #0078d4;
}

.resource-card p {
    color: #666666;
    line-height: 1.6;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 25px;
    }

    .link-card {
        padding: 40px 20px;
    }

    .link-card .icon {
        font-size: 3rem;
    }
}

/* 页脚样式 */
footer {
    background-color: #ffffff;
    padding: 60px 0 30px;
    border-top: 1px solid #f0f0f0;
    color: #333333;
}

.footer .container,
footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333333;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #0078d4;
}

.footer-column p {
    color: #666666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #666666;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-column ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0078d4;
    transition: transform 0.3s ease;
}

.footer-column ul li a:hover {
    color: #0078d4;
    transform: translateX(5px);
}

.footer-column ul li a:hover::before {
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.footer-bottom p {
    color: #666666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    text-decoration: none;
    color: #666666;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #0078d4;
}

.beian-link {
    text-decoration: none;
    color: #666666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: #0078d4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .main-nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .features-grid,
    .links-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 50px 15px;
    }

    .hero-section h2 {
        font-size: 1.6rem;
    }

    .main-content {
        padding: 40px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}