/* 基础样式 */
:root {
    --primary: #1a73e8;
    --primary-dark: #0d5bbc;
    --secondary: #6c757d;
    --dark: #212529;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #f1f3f4;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
}

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

section {
    padding: 100px 0;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #0d47a1);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

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

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 10px;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn.primary {
    background: linear-gradient(135deg, #1a73e8, #0d5bbc);
    color: var(--white);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #0d5bbc, #1a73e8);
    box-shadow: 0 6px 12px rgba(13, 91, 188, 0.3);
    transform: translateY(-2px);
}

.btn.secondary {
    background: linear-gradient(135deg, transparent, transparent);
    color: var(--primary);
    border: 2px solid var(--primary);
    background-color: rgba(255, 255, 255, 0.9);
}

.btn.secondary:hover {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(26, 115, 232, 0.05));
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.2);
    transform: translateY(-2px);
}

.btn.tertiary {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: var(--white);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.btn.tertiary:hover {
    background: linear-gradient(135deg, #f57c00, #ff9800);
    box-shadow: 0 6px 12px rgba(245, 124, 0, 0.3);
    transform: translateY(-2px);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.btn:hover {
    animation: float 2s ease-in-out infinite;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 250, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

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

.nav a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    z-index: 1001;
}

/* 英雄区域 */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 600px;
    z-index: 0;
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
    }
    .cta-buttons .btn {
        width: 100%;
    }
}

/* 功能区域 */
.features {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

.section-title {
    text-align: center;
}

.section-title h2 {
    display: inline-block;
}

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

.feature {
    padding: 40px 30px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: none;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(145deg, #ffffff 0%, #e3f2fd 100%);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1) 0%, rgba(13, 71, 161, 0.1) 100%);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.1);
}

/* 截图区域 */
.screenshots {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
}

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

.screenshot-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.screenshot-info {
    padding: 20px;
    text-align: center;
}

/* 假入库说明部分样式 */
.faq-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

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

.info-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.info-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

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

.card-list {
    list-style: none;
    padding-left: 0;
}

.card-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.card-list i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.card-note, .card-warning {
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.card-note {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.card-warning {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.card-note i, .card-warning i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 常见问题部分 */
.faqq-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #fff8e1;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--dark);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
    background-color: #fff;
}

.faq-answer p {
    padding: 20px 0;
    margin: 0;
    line-height: 1.6;
    color: var(--secondary);
}

/* 激活状态的FAQ项 */
.faq-item.active .faq-question {
    background-color: #ffecb3;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* 使用教程部分 */
.tutorial-section {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
}

.tutorial-steps {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.step {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #eee;
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.step-content p {
    color: var(--secondary);
}

.tutorial-warning {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    padding: 15px;
    border-radius: 6px;
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.tutorial-warning i {
    margin-right: 15px;
    font-size: 1.5rem;
}

/* 下载区域 */
.download {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
}

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

.download-card {
    padding: 40px 30px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: none;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(145deg, #ffffff 0%, #e3f2fd 100%);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1) 0%, rgba(13, 71, 161, 0.1) 100%);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.1);
}

/* 页脚 */
.footer {
    padding: 50px 0;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: var(--white);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

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

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* 灯箱样式 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-out;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
    transform: scale(1.2);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 10px 0;
}

.screenshot-img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-img:hover {
    transform: scale(1.02);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-image {
        opacity: 0.3;
        right: -20%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    section {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
        transition: var(--transition);
        transform: translateY(-100%);
    }
    
    .nav.active {
        display: flex;
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 140px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-image {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .tutorial-steps {
        padding: 30px 20px;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }

    /* FAQ响应式调整 */
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-answer p {
        padding: 15px 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.feature, .screenshot-card, .download-card, .info-card, .tutorial-steps, .faq-item {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.hero-content h1 {
    opacity: 0;
    animation: slideUp 0.6s ease 0.2s forwards;
}

.hero-content p {
    opacity: 0;
    animation: slideUp 0.6s ease 0.4s forwards;
}

.cta-buttons {
    opacity: 0;
    animation: slideUp 0.6s ease 0.6s forwards;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* 页面加载动画 */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}