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

html {
    transition: all 0.5s ease-in-out;
}

:root {
    /* 亮色主题变量 */
    --primary-color: #7CBCE8;
    --primary-light: #A5D3F3;
    --primary-dark: #5B9AC8;
    --gradient-main: linear-gradient(135deg, #7CBCE8, #5B9AC8);
    --gradient-secondary: linear-gradient(135deg, #A5D3F3, #7CBCE8);
    --text-dark: #2c3e50;
    --text-medium: #546e7a;
    --text-light: #ffffff;
    --bg-light: #edf7fc;
    --bg-white: #ffffff;
    --footer-bg: var(--text-dark);  /* 浅色模式下页脚背景色 */
    --footer-text: var(--text-light); /* 浅色模式下页脚文字颜色 */
    --shadow: 0 4px 20px rgba(124, 188, 232, 0.15);
    --border-radius: 10px;
    --border-radius-small: 6px;
    --transition: all 0.25s ease;
}

/* 深色主题变量 */
[data-theme="dark"] {
    --primary-color: #5B9AC8;
    --primary-light: #7CBCE8;
    --primary-dark: #4A89B7;
    --gradient-main: linear-gradient(135deg, #5B9AC8, #3A78A6);
    --gradient-secondary: linear-gradient(135deg, #7CBCE8, #5B9AC8);
    --text-dark: #ecf0f1;
    --text-medium: #b0bec5;
    --text-light: #ffffff;
    --bg-light: #1a2a38;
    --bg-white: #243441;
    --footer-bg: #0f1c28;  /* 深色模式下页脚背景色 */
    --footer-text: #b0bec5; /* 深色模式下页脚文字颜色 */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body {
    font-family: "SF Pro", "Inter", "Helvetica", "Arial", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

section {
    padding: 100px 0;
    position: relative;
    border-top: none;
    border-bottom: none;
    transition: background-color 0.5s ease;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-main);
    margin: 12px auto 0;
    border-radius: 1.5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(124, 188, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 188, 232, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(124, 188, 232, 0.08);
}

/* 顶部导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 36px;
    margin-right: 10px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    color: var(--text-medium);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 15px;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active::after,
nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
}

/* 语言切换按钮 */
.lang-switch {
    display: flex;
    align-items: center;
    margin-left: 25px;
}

.lang-switch span {
    color: var(--text-medium);
    margin: 0 6px;
    opacity: 0.6;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 22px;
    color: var(--primary-color);
    cursor: pointer;
}

/* 大图Banner区 - 现在使用白色背景 */
.hero {
    padding: 180px 0 120px;
    background: var(--bg-white);
    color: var(--text-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(124, 188, 232, 0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg-pattern.png');
    opacity: 0.03;
    animation: pulse 8s infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 160px;
    margin-bottom: 35px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-dark);
    letter-spacing: -1px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 45px;
    color: var(--text-medium);
}

/* 三栏功能介绍区 - 现在使用浅色背景 */
.features {
    background: var(--bg-light);
    position: relative;
    padding-top: 120px;
    padding-bottom: 120px;
    border-bottom: 1px solid rgba(124, 188, 232, 0.2);
    margin-top: -1px; /* 避免边框间的小缝隙 */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 45px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background: var(--gradient-secondary);
    width: 80px;
    height: 80px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--text-light);
    font-size: 30px;
    transform: rotate(5deg);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.7;
}

/* 配置示例截图区 - 现在使用白色背景 */
.screenshots {
    background: var(--bg-white);
    position: relative;
    padding-top: 120px;
    padding-bottom: 120px;
    border-bottom: 1px solid rgba(124, 188, 232, 0.2);
    margin-top: -1px; /* 避免边框间的小缝隙 */
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.screenshot-item {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.screenshot-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.screenshot-item h3 {
    padding: 25px 20px 10px;
    font-size: 20px;
    color: var(--primary-dark);
}

.screenshot-item p {
    padding: 0 20px 25px;
    color: var(--text-medium);
}

/* 下载引导按钮区 - 现在使用浅色背景 */
.download {
    background: var(--bg-light);
    position: relative;
    padding-top: 120px;
    padding-bottom: 120px;
    border-bottom: none;
    margin-top: -1px; /* 避免边框间的小缝隙 */
}

.download-options {
    display: flex;
    justify-content: center;
}

.download-option {
    text-align: center;
    padding: 40px;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 400px;
    width: 100%;
}

.download-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.qr-code {
    width: 180px;
    height: 180px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px;
    background: var(--bg-white);
    border-radius: var(--border-radius-small);
}

.download-option h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.download-option p {
    color: var(--text-medium);
    margin-bottom: 25px;
}

/* 页脚 */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 70px 0 30px;
    margin-top: -1px; /* 避免边框间的小缝隙 */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 36px;
    margin-right: 10px;
}

.footer-links {
    display: flex;
}

.link-group h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.link-group h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
}

.link-group ul li {
    margin-bottom: 12px;
}

.link-group ul li a {
    color: var(--footer-text);
    opacity: 0.7;
    font-size: 15px;
}

.link-group ul li a:hover {
    color: var(--primary-light);
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    opacity: 0.5;
    font-size: 14px;
}

/* 添加AOS动画效果支持 */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .features-grid,
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .lang-switch {
        margin-left: auto;
        margin-right: 10px;
    }
    
    .theme-switch {
        margin-right: 10px;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 30px;
    }

    nav ul li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    section {
        padding: 70px 0;
    }

    .hero {
        padding: 150px 0 100px;
    }

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

    .hero p {
        font-size: 18px;
    }

    .features-grid,
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .logo img {
        height: 30px;
    }

    .logo span {
        font-size: 18px;
    }
    
    .download-option {
        padding: 30px 20px;
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
    }
}

/* 主题切换按钮 */
.theme-switch {
    display: flex;
    align-items: center;
    margin-left: 15px;
    cursor: pointer;
}

.theme-switch i {
    font-size: 18px;
    color: var(--text-medium);
    transition: var(--transition);
}

.theme-switch:hover i {
    color: var(--primary-color);
}

[data-theme="dark"] .theme-switch .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-switch .fa-sun {
    display: block;
}

[data-theme="light"] .theme-switch .fa-moon {
    display: block;
}

[data-theme="light"] .theme-switch .fa-sun {
    display: none;
}

/* 深色模式下的边框调整 */
[data-theme="dark"] .feature-card {
    border: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .legal-content h2 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .qr-code {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 深色模式下的高亮框调整 */
[data-theme="dark"] .highlight-box {
    background-color: rgba(91, 154, 200, 0.15);
}

/* 漂浮背景元素 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.float-element {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(124, 188, 232, 0.1);
    box-shadow: 0 0 40px rgba(124, 188, 232, 0.1);
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.5;
    }
}

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