/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4285f4;
    --primary-dark: #3367d6;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --warning-color: #fbbc05;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-light: #9aa0a6;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dadce0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/google-sans/GoogleSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/google-sans/GoogleSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Material Icons';
    src: url('../fonts/material-icons/material-icons.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: 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(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #e8eaed;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* 导航栏样式 */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-download-nav {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
}

.btn-download-nav:hover {
    background-color: var(--primary-dark);
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* 主横幅区域样式 */
.hero-section {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.browser-window {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: white;
}

.browser-header {
    background-color: #f1f3f4;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f57; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #28ca42; }

.browser-url {
    flex: 1;
    background-color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.browser-content {
    padding: 0;
}

.browser-content img {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    margin-top: 10px;
    position: relative;
}

.wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--text-light);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* 功能展示区域样式 */
.features-section, .performance-section, .security-section, .faq-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.slider-prev, .slider-next {
    background-color: var(--bg-light);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    background-color: #e8eaed;
}

.slider-prev svg, .slider-next svg {
    fill: var(--text-primary);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.features-container {
    display: flex;
    gap: 30px;
    overflow: hidden;
}

.feature-card {
    flex: 0 0 calc(25% - 22.5px);
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0.7;
    transform: scale(0.9);
}

.feature-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img, .feature-icon .material-icons {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 64px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

.feature-title {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-description {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 性能比较区域样式 */
.comparison-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.comparison-tabs {
    display: flex;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.comparison-tab {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.comparison-tab:hover {
    color: var(--primary-color);
    background-color: rgba(66, 133, 244, 0.05);
}

.comparison-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: rgba(66, 133, 244, 0.1);
}

.comparison-content {
    padding: 40px;
}

.comparison-chart {
    display: none;
}

.comparison-chart.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bar-label {
    width: 100px;
    font-weight: 500;
}

.bar-value {
    flex: 1;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: 500;
    min-width: 50px;
    transition: width 1s ease;
}

.chart-bar.chrome .bar-value {
    background-color: var(--primary-color);
}

.chart-bar.edge .bar-value {
    background-color: #0078d7;
}

.chart-bar.firefox .bar-value {
    background-color: #ff7139;
}

.chart-bar.safari .bar-value {
    background-color: #5b5b5b;
}

.chart-note {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.performance-note {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 20px;
    background-color: rgba(66, 133, 244, 0.05);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-secondary);
}

/* 安全特性区域样式 */
.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.security-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.security-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.security-tips {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.security-tips h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.security-tips ul {
    list-style: none;
}

.security-tips li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.security-tips li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* 常见问题区域样式 */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 30px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-secondary);
    padding: 0 30px;
}

/* 下载号召区域样式 */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

.cta-note {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-note p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* 页脚样式 */
.main-footer {
    background-color: #202124;
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.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;
}

.footer-bottom p {
    margin-bottom: 10px;
    color: #9aa0a6;
}

.language-selector select {
    background-color: #3c4043;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .feature-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .features-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .feature-card {
        flex: 0 0 100%;
    }
    
    .security-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .comparison-tabs {
        flex-direction: column;
    }
}