/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em;
}

h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
}

strong, b {
    font-weight: 600 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Font Awesome and Elementor icon fonts */
i.fa, i.fas, .fa.fa, .fas.fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
i.far, .far.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}
[class*="eicon"] {
    font-family: "eicons" !important;
}

/* Header Styles */
header {
    background: #fff;
    border-bottom: 2px solid #d0d0d0;
    padding: 25px 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
}
.header-logo i {
    color: #4CAF50;
    margin-right: 10px;
    font-size: 24px;
}
.header-logo span:first-of-type {
    margin: 0 8px;
}
.header-logo span:last-of-type {
    margin: 0;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}
.header-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}
.header-nav a {
    text-decoration: none;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}
.header-nav a:hover {
    color: #4CAF50;
}
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: width 0.3s;
}
.header-nav a:hover::after {
    width: 100%;
}
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* 英雄区域 */
.hero {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 5rem 0;
    text-align: center;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: #1e3a5f;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1e3a5f;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    color: #2c3e50;
    font-weight: 600;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 章节标题 */
.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.section-header {
    margin-bottom: 2rem;
}

/* 热门榜单 */
.trending {
    padding: 5rem 0;
    background: var(--bg-light);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trending-card {
    background: var(--bg-white);
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s, border-color 0.3s;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.trending-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.card-number {
    font-size: 2rem;
    font-weight: 600;
    color: #4b5563;
    line-height: 1;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.card-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-link::after {
    content: '→';
    transition: transform 0.3s;
}

.card-link:hover {
    color: #1d4ed8;
}

.card-link:hover::after {
    transform: translateX(4px);
}

/* 专业评测 */
.expert-testing {
    padding: 5rem 0;
    background: var(--bg-white);
}

.testing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testing-card {
    background: #f9fafb;
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s, border-color 0.3s;
    border: 1px solid #e5e7eb;
}

.testing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.testing-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.testing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.testing-card p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 专业领域 */
.expertise {
    padding: 5rem 0;
    background: var(--bg-light);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-card {
    background: var(--bg-white);
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.expertise-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.expertise-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.expertise-card h3 {
    font-size: 1.125rem;
    color: #1f2937;
    line-height: 1.5;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

/* 读者优先 */
.readers-first {
    padding: 5rem 0;
    background: var(--bg-white);
}

.readers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.readers-card {
    background: #f9fafb;
    border-radius: 6px;
    padding: 2.5rem;
    text-align: center;
    transition: box-shadow 0.3s, border-color 0.3s;
    border: 1px solid #e5e7eb;
}

.readers-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.readers-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.readers-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.readers-card p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-copyright {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-operator {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media screen and (max-width: 767px) {
    .header-container {
        flex-wrap: wrap;
    }
    .menu-toggle {
        display: block;
    }
    .header-nav {
        width: 100%;
        display: none;
        margin-top: 15px;
    }
    .header-nav.active {
        display: block;
    }
    .header-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .header-nav a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #e0e0e0;
    }
}

@media (max-width: 768px) {

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .trending-grid,
    .testing-grid,
    .expertise-grid,
    .readers-grid {
        grid-template-columns: 1fr;
    }

    .trending-card {
        flex-direction: column;
        text-align: center;
    }

    .card-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 15px;
    }
}

