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

html {
    overflow-x: hidden;
    width: 100%;
}

/* 根元素变量定义 - Dark Mode (Google AI Style) */
:root {
    --primary-color: #8AB4F8; /* Google Blue Light */
    --secondary-color: #81C995; /* Google Green Light */
    --accent-color: #FDD663; /* Google Yellow Light */
    --danger-color: #F28B82; /* Google Red Light */
    
    --background-dark: #131314; /* Deepest Black */
    --background-card: #1E1F20; /* Card Background */
    --background-hover: #2D2E30; /* Hover State */
    
    --text-primary: #E8EAED;
    --text-secondary: #9AA0A6;
    --text-tertiary: #5F6368;
    
    --border-color: #3C4043;
    --border-hover: #5F6368;
    
    --gradient-hero: linear-gradient(90deg, #8AB4F8 0%, #C58AF9 50%, #F28B82 100%);
    --gradient-button: linear-gradient(135deg, #1A73E8 0%, #8AB4F8 100%);
    
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 80px rgba(66, 133, 244, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* 基础排版 */
body {
    font-family: 'Google Sans', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-dark);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

section {
    width: 100%;
    overflow-x: hidden;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

p, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: none;
}

h3 {
    font-size: 1.5rem;
    margin-top: 0;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #aecbfa;
    text-decoration: none;
}

/* 头部导航 */
header {
    background-color: rgba(19, 19, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--text-primary);
}

/* 首屏英雄区 */
.hero {
    background: radial-gradient(circle at 50% 0%, rgba(66, 133, 244, 0.1) 0%, transparent 70%);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    word-wrap: break-word;
}

.hero-image {
    margin-top: 4rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow), 0 0 0 1px var(--border-color);
    background: var(--background-card);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
}

/* 内容区块通用 */
section {
    padding: 6rem 0;
    border-top: 1px solid transparent;
}

section:nth-child(even) {
    background-color: transparent; /* Remove alternating background */
}

/* 介绍区块 */
.intro-section {
    text-align: center;
}

.intro-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 功能特性网格 (Bento Grid Style) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 图文分栏布局 */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-section .content {
    flex: 1;
}

.split-section .image {
    flex: 1;
}

.split-section .image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.split-section .image img:hover {
    transform: translateY(-5px);
}

.feature-item {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--background-hover);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(138, 180, 248, 0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.feature-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* 优势区块 */
.advantages-section {
    background: linear-gradient(180deg, var(--background-dark) 0%, #18191A 100%);
}

.advantages-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 下载模块 */
.download-section {
    background: linear-gradient(180deg, #18191A 0%, var(--background-dark) 100%);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 180, 248, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.download-section .container {
    position: relative;
    z-index: 1;
}

.download-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(138, 180, 248, 0.2);
}

.download-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.version-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.download-btn span {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.download-btn small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.download-btn.primary {
    background: var(--primary-color);
    color: #000;
}

.download-btn.primary:hover {
    background: #aecbfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 180, 248, 0.3);
}

.download-btn.secondary {
    background: var(--background-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.download-btn.secondary:hover {
    border-color: var(--primary-color);
    background: var(--background-card);
}

.requirements {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.download-notice {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(138, 180, 248, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
}

.download-notice p {
    margin: 0;
    color: var(--text-secondary);
}

.download-notice a {
    color: var(--primary-color);
    text-decoration: none;
}

.download-notice a:hover {
    text-decoration: underline;
}

/* 使用指南 & FAQ */
.guide-section, .faq-section {
    border-top: 1px solid var(--border-color);
}

/* 最佳实践卡片网格 */
.best-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.practice-card {
    background: var(--background-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.practice-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(138, 180, 248, 0.15);
}

.practice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.practice-card h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.practice-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.faq-item {
    background: var(--background-card);
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-left: none; /* Remove old style */
    box-shadow: none;
}

.faq-item h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* 画廊区块 */
.gallery-section {
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 16/9;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 行动号召区块 */
.cta-section {
    background: transparent;
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #000;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(138, 180, 248, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 180, 248, 0.4);
    background: #aecbfa;
    text-decoration: none;
    color: #000;
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: rgba(138, 180, 248, 0.1);
    color: #aecbfa;
    border-color: #aecbfa;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
    background-color: #0E0E0F;
    color: var(--text-secondary);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

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

/* 图片优化 */
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image img,
.intro-image img,
.feature-image img,
.gallery-item img,
.split-section .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.download-icon svg {
    width: 100%;
    height: auto;
    max-width: 80px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    h1 { 
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 { 
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    .hero { 
        padding: 2.5rem 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
        display: inline-block;
        width: auto;
        max-width: 100%;
    }
    
    header {
        padding: 1rem 0;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    header .logo {
        justify-content: center;
    }
    
    header .logo h1 {
        font-size: 1.1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .best-practices-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .download-card,
    .practice-card,
    .feature-item {
        padding: 1.5rem;
    }
    
    .split-section,
    .split-section.reverse {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .split-section .image {
        order: -1;
        width: 100%;
    }
    
    .split-section .content {
        width: 100%;
    }
    
    .split-section .content h2,
    .split-section .content h3 {
        text-align: left;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
    
    .download-notice {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    footer {
        padding: 2.5rem 0;
        font-size: 0.85rem;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    .container {
        padding: 0 0.875rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .download-buttons {
        gap: 0.625rem;
    }
    
    .download-btn {
        padding: 0.75rem 1rem;
    }
    
    .download-btn span {
        font-size: 0.95rem;
    }
    
    .download-btn small {
        font-size: 0.8rem;
    }
    
    .practice-icon {
        font-size: 2.25rem;
    }
    
    nav ul li {
        font-size: 0.8rem;
    }
    
    .cta-button {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .download-card,
    .practice-card,
    .feature-item {
        padding: 1.25rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
}

/* 平板设备优化 */
@media (min-width: 481px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .download-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .best-practices-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

