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

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

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

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
    transition: all 0.3s ease;
}

.header.scrolled .logo img {
    height: 35px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav ul li a:hover {
    color: #1890ff;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1890ff;
    transition: width 0.3s ease;
}

.nav ul li a:hover::after {
    width: 100%;
}

/* 主要内容样式 */
.main {
    margin-top: 80px;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft 1s ease;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.platforms {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.platforms span {
    font-size: 14px;
    opacity: 0.8;
}

.platform {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.download-btn {
    display: inline-block;
    background-color: #fff;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

/* 功能特性区域样式 */
.features {
    padding: 100px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: #f8f9fa;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #1890ff;
    background-color: #fff;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

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

.feature-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* 下载区域样式 */
.download-section {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-content h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.download-content p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 50px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.download-btn-large {
    display: flex;
    align-items: center;
    background-color: #1890ff;
    color: #fff;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
    max-width: 400px;
    width: 100%;
    justify-content: center;
    gap: 15px;
}

.download-btn-large:hover {
    background-color: #40a9ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 144, 255, 0.4);
}

.btn-icon {
    font-size: 24px;
    font-weight: bold;
}

.btn-text {
    text-align: left;
}

.btn-title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.btn-subtitle {
    display: block;
    font-size: 13px;
    opacity: 0.9;
}

.other-downloads {
    text-align: center;
}

.other-downloads p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.platform-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-btn {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.platform-btn:hover {
    background-color: #1890ff;
    color: #fff;
    border-color: #1890ff;
    transform: translateY(-2px);
}

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

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

.footer-about h4,
.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ecf0f1;
    font-weight: 600;
}

.footer-about p {
    font-size: 14px;
    color: #bdc3c7;
    line-height: 1.7;
}

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

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

.footer-links ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #1890ff;
    padding-left: 5px;
}

.footer-contact p {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1890ff;
    color: #fff;
    transform: translateY(-3px);
}

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

.footer-bottom p {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 15px;
}

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

.footer-policies a {
    font-size: 13px;
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-policies a:hover {
    color: #1890ff;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #40a9ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
}

/* 动画效果 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 38px;
    }

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

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

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 20px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav ul li {
        margin: 10px 15px;
    }

    .main {
        margin-top: 140px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .platforms {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .features,
    .download-section {
        padding: 70px 0;
    }

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

    .feature-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .download-content h2 {
        font-size: 28px;
    }

    .download-content p {
        font-size: 16px;
    }

    .download-btn-large {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .btn-text {
        text-align: center;
    }

    .platform-buttons {
        flex-direction: column;
        align-items: center;
    }

    .platform-btn {
        width: 200px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .download-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .download-btn-large {
        padding: 18px 30px;
    }

    .btn-title {
        font-size: 18px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .nav,
    .download-btn,
    .back-to-top {
        display: none;
    }

    .hero {
        background: white;
        color: black;
    }

    .footer {
        background: white;
        color: black;
        border-top: 1px solid #ccc;
    }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .feature-card {
        border: 2px solid #000;
    }

    .nav ul li a {
        border-bottom: 2px solid transparent;
    }

    .nav ul li a:hover {
        border-bottom-color: #000;
    }
}