/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏滚动条，但保留滚动功能 */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* 美化全局动画 */
* {
    transition: all 0.3s ease;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
}

.logo p {
    color: #666;
    font-size: 14px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dropbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}

.dropdown-content.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #667eea;
}

.dropdown-content a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 180px 0 150px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

.hero-content-center {
    position: relative;
    z-index: 3;
    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-content-center h2 {
    font-size: 52px;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.single-line-title {
    white-space: nowrap;
    overflow: visible;
}

.hero-content-center p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    background-color: white;
    color: #667eea;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
}

.hero-btn:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
    margin-left: 15px;
}

.hero-btn-secondary:hover {
    background-color: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 项目链接样式 - 作为重要内容区域 */
.project-links {
    padding: 80px 0;
    background-color: white;
    position: relative;
}

.project-links h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.project-links h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.project-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 构建脚本大按钮样式 */
.build-script-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.build-script-btn i {
    margin-right: 10px;
    font-size: 18px;
    color: white;
}

.build-script-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.build-script-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.build-script-btn:hover::before {
    left: 100%;
}

/* 确保在.project-links-grid中正确应用网格布局 */
.project-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* 桌面端大按钮样式 - 占据3个按钮宽度 */
@media (min-width: 1024px) {
    .project-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .build-script-btn {
        grid-column: 1 / -1; /* 占据所有3列 */
        font-size: 18px;
        padding: 30px;
        max-width: none;
    }
    
    .build-script-btn i {
        font-size: 2em;
    }
    
    .build-script-btn span {
        font-size: 1.5em;
        font-weight: 700;
    }
}

/* 平板端适配 */
@media (min-width: 768px) and (max-width: 1023px) {
    .build-script-btn {
        grid-column: span 2;
        justify-self: center;
    }
}

.project-link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background-color: white;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid #f0f0f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.project-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    color: #667eea;
    border-color: #667eea;
}

.project-link-card i {
    font-size: 32px;
    color: #667eea;
}

.project-link-card span {
    font-size: 18px;
    font-weight: 600;
}

/* 确保图标在链接卡片中的样式一致 */
.project-link-card img {
    width: 32px !important;
    height: 32px !important;
    /* 移除颜色过滤，使用原始图标颜色 */
}

/* 功能区域样式 */
.features {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 70px;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 17px;
    line-height: 1.6;
}

/* 联系区域样式 */
.contact {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 35px 30px;
    background-color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.contact-card i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.contact-card p {
    color: #666;
    font-size: 17px;
    line-height: 1.6;
}

/* 确保图标在联系卡片中样式协调 */
.contact-card img {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    /* 移除颜色过滤，使用原始图标颜色 */
}

.contact-card:hover img {
    transform: scale(1.1);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-info,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.7;
}

.footer-links h3,
.footer-social h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    margin-right: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-social a:hover {
    color: #667eea;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    /* 优化快速链接在移动端的显示 */
    .dropdown {
        width: 100%;
        margin-top: 10px;
    }
    
    .dropbtn {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        min-width: unset;
    }
    
    /* 确保下拉菜单中的图片图标在移动端显示正常 */
    .dropdown-content a img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .hero {
        padding: 120px 0 100px;
    }
    
    .hero-content-center h2 {
        font-size: 36px;
    }
    
    .hero-content-center p {
        font-size: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .feature-grid,
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .project-links-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .project-link-card {
        justify-content: center;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links,
    .footer-social {
        margin-top: 20px;
    }
    
    .footer-social a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-content-center h2 {
        font-size: 28px;
    }
    
    .hero-content-center p {
        font-size: 18px;
    }
    
    .hero-btn,
    .hero-btn-secondary {
        width: 100%;
        text-align: center;
    }
}