/* 基础样式重置 */
* {
    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);
}

.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;
}

.header p {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 20px;
}

/* 导航菜单样式 */
.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;
}

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

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

/* 功能区域样式 */
.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;
}

.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 .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;
}

/* 响应式设计优化 */
@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 {
        grid-template-columns: 1fr;
    }
}

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

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

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

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