/* 全局变量 */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #4a90e2;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --card-bg: #f8fafc;
    --border-color: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f8fafc;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 深色模式变量 */
.dark-mode {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #60a5fa;
    --secondary-color: #94a3b8;
    --accent-color: #fbbf24;
    --card-bg: #1e293b;
    --border-color: #334155;
    --header-bg: rgba(15, 23, 42, 0.95);
    --footer-bg: #1e293b;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
}

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

/* 头部 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg,
.logo img {
    color: var(--primary-color);
    max-width: 100%;
    height: auto;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--text-color);
}

/* 导航菜单 */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 5px;
}

.nav a:hover {
    color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.1);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: rgba(100, 116, 139, 0.1);
}

/* 英雄区域 */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(100, 116, 139, 0.05));
    transition: var(--transition);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-content p {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.version {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
}

/* 通用部分样式 */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 功能特性 */
.features {
    padding: 80px 0;
    background-color: var(--bg-color);
    transition: var(--transition);
}

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

.feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item svg {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-item p {
    color: var(--secondary-color);
}

/* 下载部分 */
.download {
    padding: 80px 0;
    background-color: var(--card-bg);
    transition: var(--transition);
}

.download-card {
    background-color: var(--bg-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.download-info h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.download-info p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.download-stats {
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: var(--secondary-color);
}

.download-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-download:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    color: var(--primary-color);
    padding: 15px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.download-tips {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.download-tips h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.download-tips ul {
    list-style: none;
}

.download-tips li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.download-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 20px;
    line-height: 1;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: var(--bg-color);
    transition: var(--transition);
}

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

.about-content p {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 18px;
    line-height: 1.8;
}

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

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: var(--card-bg);
    transition: var(--transition);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-item p {
    color: var(--secondary-color);
}

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

/* 页脚 */
.footer {
    background-color: var(--footer-bg);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo svg {
    color: var(--primary-color);
}

.footer-logo p {
    color: var(--secondary-color);
    font-size: 14px;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.icp-info a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 14px;
    transition: var(--transition);
}

.icp-info a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-image svg {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .nav ul {
        gap: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .download-card {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .btn-primary, .btn-download {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .download-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* 安全增强 */
.security-fix {
    /* 防止点击劫持 */
    position: relative;
    z-index: 1;
}

/* 安全头部设置 */
meta[http-equiv="X-Content-Type-Options"] {
    content: "nosniff";
}

meta[http-equiv="X-Frame-Options"] {
    content: "DENY";
}

meta[http-equiv="Content-Security-Policy"] {
    content: "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;";
}

/* 响应式设计 - 缩减高度四分之一 */
@media (max-width: 768px) {
    /* 头部响应式 */
    .header .container {
        padding: 10px 15px;
        display: block;
        padding-top: 15px;
    }
    
    /* 移动头部布局 - 左上角菜单，右上角主题按钮 */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    /* 左上角汉堡菜单 */
    .hamburger {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }
    
    /* 右上角夜间模式按钮 */
    .theme-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }
    
    /* 确保桌面版导航在移动设备上不显示 */
    .nav {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 56px;
        gap: 0;
        flex-direction: column;
        background-color: var(--header-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 8px 0;
    }
    
    .nav-links a {
        display: block;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    /* 英雄区域响应式 */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .hero-content h2 {
        font-size: 28px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    /* 适配11.png图片在移动设备上的显示 */
    .hero-image img {
        max-width: 80%;
        height: auto !important;
        width: auto !important;
        max-height: 250px;
    }
    
    /* 功能特性区域 */
    .features {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .feature-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .feature-item h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .feature-item p {
        font-size: 13px;
    }
    
    /* 下载区域 */
    .download {
        padding: 30px 0;
    }
    
    .download-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .download-card h3 {
        font-size: 16px;
    }
    
    .download-card p {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .btn-download {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* 关于我们区域 */
    .about {
        padding: 30px 0;
    }
    
    .about p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .btn-link {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* 联系我们区域 */
    .contact {
        padding: 30px 0;
    }
    
    .contact-item {
        margin-bottom: 15px;
    }
    
    .contact-item h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .contact-item p {
        font-size: 13px;
    }
    
    /* 页脚区域 */
    .footer {
        padding: 20px 0;
    }
    
    .footer p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .icp-info {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 8px 10px;
    }
    
    .logo h1 {
        font-size: 14px;
    }
    
    .hero {
        padding: 70px 0 30px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 13px;
    }
    
    .hero-image img {
        max-width: 70%;
        max-height: 200px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

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

/* 焦点样式 */
button:focus,
 a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title,
 .feature-item,
 .download-card,
 .contact-item {
    animation: fadeIn 0.6s ease-out;
}