/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4285f4;
    --primary-dark: #3367d6;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --warning-color: #fbbc05;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --gray-color: #5f6368;
    --light-gray: #dadce0;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 排版 */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.highlight {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-download-nav, .btn-download-large {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(66, 133, 244, 0.1);
}

.btn-download-nav {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-download-nav:hover {
    background-color: #2d8c47;
    color: white;
}

.btn-download-large {
    background-color: var(--primary-color);
    color: white;
    padding: 16px 32px;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.btn-download-large:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* 导航栏 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--gray-color);
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #444;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.hero-image {
    flex: 1;
}

.browser-window {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.browser-window:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.browser-header {
    background-color: #f1f3f4;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dots .dot.red {
    background-color: #ff5f57;
}

.browser-dots .dot.yellow {
    background-color: #ffbd2e;
}

.browser-dots .dot.green {
    background-color: #28ca42;
}

.browser-url {
    background-color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gray-color);
    flex-grow: 1;
}

.browser-content img {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-color);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    margin-top: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 功能区域 */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.feature-card {
    min-width: 100%;
    padding: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:not(.active) {
    opacity: 0.5;
    transform: scale(0.95);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(66, 133, 244, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.feature-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.feature-details ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-details li {
    position: relative;
    padding-left: 20px;
}

.feature-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-prev, .slider-next, .version-prev, .version-next {
    background-color: white;
    border: 1px solid var(--light-gray);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover, .version-prev:hover, .version-next:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.slider-dots, .version-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot, .version-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active, .version-dots .dot.active {
    background-color: var(--primary-color);
}

/* 扩展区域 */
.extensions {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.extensions-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.extensions-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.extension-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.extension-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.extension-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 168, 83, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.extensions-showcase {
    flex: 1;
}

.showcase-browser {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.showcase-header {
    background-color: #f1f3f4;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.showcase-url {
    background-color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gray-color);
    flex-grow: 1;
}

.showcase-content {
    padding: 30px;
}

.extensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.ext-item {
    background-color: #f1f3f4;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.ext-item.active {
    background-color: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.extensions-count {
    text-align: center;
    color: var(--gray-color);
    font-style: italic;
}

/* 常见问题 */
.faq {
    padding: 80px 0;
}

.faq-container {
    display: flex;
    gap: 60px;
}

.faq-list {
    flex: 2;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.faq-item.active {
    box-shadow: var(--box-shadow);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: white;
}

.faq-question h4 {
    margin-bottom: 0;
}

.faq-question i {
    color: var(--gray-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 300px;
}

.faq-cta {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-cta h3 {
    color: white;
}

.faq-cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    margin-top: 20px;
    align-self: flex-start;
}

.faq-cta .btn-primary:hover {
    background-color: #f0f0f0;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #bdc1c6;
    max-width: 300px;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #bdc1c6;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #3c4043;
    padding-top: 30px;
    text-align: center;
    color: #9aa0a6;
    font-size: 0.9rem;
}

/* 下载页特定样式 */
.download-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 100%);
}

.download-hero .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.download-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.version-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.version-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.version-number {
    font-weight: 700;
    font-size: 1.2rem;
}

.release-date, .file-size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-color);
}

.download-hero-image {
    max-width: 1000px;
    margin: 0 auto;
}

.platform-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.platform-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
}

.platform-icon:hover {
    background-color: rgba(66, 133, 244, 0.1);
}

.platform-icon.active {
    background-color: rgba(66, 133, 244, 0.15);
    color: var(--primary-color);
}

.platform-icon i {
    font-size: 2rem;
}

.platform-icon span {
    font-weight: 500;
}

.download-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: none;
}

.download-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-card-header {
    background-color: #f1f3f4;
    padding: 25px 30px;
    border-bottom: 1px solid var(--light-gray);
}

.download-card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.download-card-body {
    padding: 30px;
}

.system-requirements {
    margin-bottom: 30px;
}

.system-requirements h4 {
    margin-bottom: 15px;
    color: var(--gray-color);
}

.system-requirements ul {
    list-style: none;
    padding-left: 0;
}

.system-requirements li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.system-requirements li:last-child {
    border-bottom: none;
}

.linux-download-options, .mobile-download-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.download-notes {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--gray-color);
}

.download-notes i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* 安装指南 */
.installation-guide {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.guide-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    min-width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* 版本历史 */
.version-history {
    padding: 80px 0;
}

.version-slider-container {
    max-width: 800px;
    margin: 0 auto;
}

.version-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.version-slide {
    min-width: 100%;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.version-slide:not(.active) {
    opacity: 0.5;
    transform: scale(0.95);
}

.version-date {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.version-slide ul {
    list-style: none;
    margin-top: 20px;
}

.version-slide li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    padding-left: 25px;
    position: relative;
}

.version-slide li:before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 2px;
}

/* 下载常见问题 */
.download-faq {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.faq-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.faq-item h4 i {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container, .extensions-container, .faq-container {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
    }
    
    .browser-window {
        transform: none;
    }
    
    .faq-cta {
        margin-top: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .extensions-list {
        order: 2;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: space-between;
    }
    
    .feature-details ul {
        grid-template-columns: 1fr;
    }
    
    .extensions-list {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .platform-icons {
        gap: 10px;
    }
    
    .platform-icon {
        min-width: 80px;
        padding: 10px;
    }
    
    .step {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .feature-card, .download-card-body, .version-slide {
        padding: 25px;
    }
}