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

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
    background-color: #f8f9fa;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #096dd9 0%, #1890ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 144, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #1890ff;
    border: 2px solid #1890ff;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

.btn-download {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(82, 196, 26, 0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, #389e0d 0%, #52c41a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(82, 196, 26, 0.4);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #1890ff;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 桌面端导航 */
.nav-desktop {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #546e7a;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.2px;
}

.nav-link:hover {
    color: #1890ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1890ff, #096dd9);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1100;
    width: 40px;
    height: 40px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端导航遮罩层 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 990;
    backdrop-filter: blur(5px);
}

.mobile-nav-overlay.active {
    display: block;
}

/* 移动端导航菜单 */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1050;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 20px 20px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile-list {
    list-style: none;
}

.nav-mobile-item {
    margin-bottom: 25px;
}

.nav-mobile-link {
    display: block;
    text-decoration: none;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(24, 144, 255, 0.05);
}

.nav-mobile-link:hover {
    background-color: rgba(24, 144, 255, 0.1);
    color: #1890ff;
    transform: translateX(5px);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
    padding: 200px 0 150px;
    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 20% 50%, rgba(24, 144, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(82, 196, 26, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 193, 7, 0.2) 0%, transparent 50%);
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff, #a7c5eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.hero-description {
    font-size: 20px;
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 功能区域 */
.features-section {
    padding: 120px 0;
    background-color: #fff;
    position: relative;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: #607d8b;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
    text-align: center;
}

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

.feature-card {
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(24, 144, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1890ff, #52c41a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(24, 144, 255, 0.15);
    border-color: rgba(24, 144, 255, 0.3);
}

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

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 8px 30px rgba(24, 144, 255, 0.3);
}

.feature-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.feature-description {
    color: #607d8b;
    line-height: 1.7;
    font-size: 16px;
}

/* 下载区域 */
.download-section {
    padding: 120px 0;
    background-color: #f8f9fa;
    position: relative;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.download-card {
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
    border-radius: 16px;
    padding: 50px 30px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(82, 196, 26, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #52c41a, #389e0d);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(82, 196, 26, 0.15);
    border-color: rgba(82, 196, 26, 0.3);
}

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

.download-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #52c41a, #389e0d);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 40px rgba(82, 196, 26, 0.3);
}

.download-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.download-description {
    color: #607d8b;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 30px;
}

/* 版本比较 */
.versions-section {
    padding: 120px 0;
    background-color: #fff;
    position: relative;
}

.versions-table-wrapper {
    overflow-x: auto;
    margin-top: 60px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    background-color: #fff;
}

.versions-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.versions-table th,
.versions-table td {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.versions-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
    position: sticky;
    top: 0;
}

.versions-table tbody tr:last-child td {
    border-bottom: none;
}

.versions-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 模板中心 */
.templates-section {
    padding: 120px 0;
    background-color: #f8f9fa;
    position: relative;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.template-card {
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
    border-radius: 16px;
    padding: 50px 30px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 193, 7, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.template-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

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

.template-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.3);
}

.template-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.template-description {
    color: #607d8b;
    line-height: 1.7;
    font-size: 16px;
}

/* 技术支持 */
.support-section {
    padding: 120px 0;
    background-color: #fff;
    position: relative;
}

.support-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.support-item {
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
    border-radius: 16px;
    padding: 50px 30px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(156, 39, 176, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #9c27b0, #7b1fa2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.support-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(156, 39, 176, 0.15);
    border-color: rgba(156, 39, 176, 0.3);
}

.support-item:hover::before {
    transform: scaleX(1);
}

.support-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 8px 30px rgba(156, 39, 176, 0.3);
}

.support-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.support-description {
    color: #607d8b;
    line-height: 1.7;
    font-size: 16px;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
}

.footer-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    padding-left: 15px;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #1890ff;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: #1890ff;
    transform: translateX(5px);
}

.footer-link:hover::before {
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 图标样式 */
.icon-writer::before,
.icon-spreadsheet::before,
.icon-presentation::before,
.icon-pdf::before,
.icon-windows::before,
.icon-mac::before,
.icon-android::before,
.icon-ios::before,
.icon-help::before,
.icon-tutorial::before,
.icon-update::before {
    font-size: 50px;
    color: #fff;
    font-weight: bold;
}

.icon-writer::before { content: '📝'; }
.icon-spreadsheet::before { content: '📊'; }
.icon-presentation::before { content: '🎬'; }
.icon-pdf::before { content: '📄'; }
.icon-windows::before { content: '🪟'; }
.icon-mac::before { content: '🍎'; }
.icon-android::before { content: '🤖'; }
.icon-ios::before { content: '📱'; }
.icon-help::before { content: '❓'; }
.icon-tutorial::before { content: '📚'; }
.icon-update::before { content: '🔄'; }

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 52px;
    }
    
    .hero-subtitle {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .feature-card,
    .download-card,
    .template-card,
    .support-item {
        padding: 40px 25px;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 160px 0 120px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .features-section,
    .download-section,
    .versions-section,
    .templates-section,
    .support-section {
        padding: 80px 0;
    }
    
    .feature-title,
    .download-title,
    .template-title,
    .support-title {
        font-size: 24px;
    }
    
    .feature-description,
    .download-description,
    .template-description,
    .support-description {
        font-size: 15px;
    }
    
    .feature-icon,
    .download-icon,
    .template-image,
    .support-icon {
        width: 80px;
        height: 80px;
    }
    
    .icon-writer::before,
    .icon-spreadsheet::before,
    .icon-presentation::before,
    .icon-pdf::before,
    .icon-windows::before,
    .icon-mac::before,
    .icon-android::before,
    .icon-ios::before,
    .icon-help::before,
    .icon-tutorial::before,
    .icon-update::before {
        font-size: 40px;
    }
    
    .download-cards,
    .features-grid,
    .templates-grid,
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 17px;
    }
    
    .versions-table th,
    .versions-table td {
        padding: 15px;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 滚动动画 */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 按钮波纹效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
