* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
    font-style: italic;
    shape-margin: 1rem;
}

/* Improve scrolling performance */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize animations */
.featured-card,
.nav-link,
.logo img {
    will-change: transform;
    backface-visibility: hidden;
}

:root {
    --primary-color: #1e293b;
    --primary-dark: #0f172a;
    --secondary-color: #78350f;
    --text-dark: #1e1e1e;
    --text-medium: #404040;
    --text-light: #737373;
    --bg-light: #f5f5f4;
    --bg-white: #ffffff;
    --border-color: #e7e5e4;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header.scrolled {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.header.scrolled .logo {
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header.scrolled .logo img {
    filter: none;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    opacity: 0.8;
}

.header.scrolled .nav-link {
    color: var(--text-medium);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-color);
    opacity: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.hero {
    position: relative;
    padding: 180px 0 120px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 36px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.featured-reviews {
    padding: 80px 0;
    background: var(--bg-white);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* 移除跨两行设置，使所有卡片大小一致 */

.featured-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.3s ease;
    text-decoration: none;
    display: block;
    border: 1px solid var(--border-color);
}

.featured-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px) scale(1.02);
}

/* Add hover effects for other card types */
.review-card,
.category-card {
    transition: box-shadow 0.2s, transform 0.3s ease;
}

.review-card:hover,
.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.featured-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--bg-light);
    /* Optimize background image rendering */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

.featured-large .featured-image {
    height: 300px;
}

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--secondary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
}

.featured-content {
    padding: 16px;
}

.featured-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.featured-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.featured-date {
    color: var(--text-light);
    font-size: 14px;
}

.featured-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
}

.featured-large .featured-title {
    font-size: 24px;
}

.featured-excerpt {
    color: var(--text-medium);
    margin-bottom: 12px;
    line-height: 1.6;
}

.featured-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.featured-link:hover {
    text-decoration: underline;
}

.categories-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 6px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
    color: white;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-count {
    color: var(--text-light);
    font-size: 14px;
}

.reviews-grid-section {
    padding: 80px 0;
}

.reviews-grid-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
}

.see-all {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.see-all:hover {
    text-decoration: underline;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.review-card {
    background: var(--bg-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.review-card:hover {
    box-shadow: var(--shadow-sm);
}

.review-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.review-content {
    padding: 24px;
}

.review-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: inline-block;
}

.review-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-dark);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.review-rating span {
    color: var(--text-dark);
    font-weight: 600;
    margin-left: 4px;
}

.review-excerpt {
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.6;
}

.review-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.review-link:hover {
    text-decoration: underline;
}

.why-trust-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.why-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-trust-grid .section-header {
    text-align: left;
    margin-bottom: 24px;
}

.why-trust-text {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.7;
}

.trust-points {
    display: grid;
    gap: 24px;
}

.trust-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-icon {
    color: var(--primary-color);
    font-size: 28px;
    flex-shrink: 0;
}

.trust-point h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.trust-point p {
    color: var(--text-medium);
}

.why-trust-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.newsletter-section {
    padding: 60px 0;
    background: var(--primary-color);
}

.newsletter-content {
    text-align: center;
    color: white;
}

.newsletter-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.newsletter-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.newsletter-text {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.newsletter-form .btn-primary {
    background: white;
    color: var(--primary-color);
}

.newsletter-form .btn-primary:hover {
    background: var(--bg-light);
}

.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.disclosure {
    font-size: 14px;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-large {
        grid-row: auto;
    }
    
    .why-trust-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.article-header {
    position: relative;
    padding: 100px 0 60px;
    color: white;
}

.article-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.article-header-content {
    position: relative;
    z-index: 1;
}

.article-category-badge {
    display: inline-block;
    background: var(--primary-color);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 24px;
    font-size: 16px;
    opacity: 0.9;
}

.article-meta i {
    margin-right: 6px;
}

.article-content {
    padding: 60px 0;
}

.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
}

.article-main {
    background: var(--bg-white);
}

.article-intro {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 40px;
}

.article-section {
    margin-bottom: 48px;
}

.article-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.article-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.article-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.article-section ul,
.article-section ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.article-section li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 6px;
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.product-badge {
    background: var(--secondary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
}

.product-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 20px;
}

.product-rating-large span {
    color: var(--text-dark);
    font-weight: 700;
}

.product-image-wrapper {
    margin-bottom: 24px;
}

.product-image-wrapper img {
    width: 100%;
    border-radius: 12px;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.product-spec {
    background: var(--bg-white);
    padding: 16px;
    border-radius: 8px;
}

.product-spec-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.product-spec-value {
    font-weight: 700;
    color: var(--text-dark);
}

.product-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.pros, .cons {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
}

.pros h4, .cons h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 700;
}

.pros h4 {
    color: #10b981;
}

.cons h4 {
    color: #ef4444;
}

.pros ul, .cons ul {
    list-style: none;
    margin-left: 0;
}

.pros li, .cons li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.pros li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.cons li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 700;
}

.product-cta {
    display: flex;
    gap: 12px;
}

.btn-check-price {
    flex: 1;
    background: var(--secondary-color);
    color: white;
    padding: 14px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-check-price:hover {
    background: #c2410c;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--text-medium);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.toc-list a:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.affiliate-disclosure {
    background: #fef3c7;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.affiliate-disclosure h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #92400e;
}

.affiliate-disclosure p {
    color: #78350f;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 700;
}

.buying-guide-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid var(--primary-color);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.buying-guide-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        display: none;
    }
    
    .product-specs,
    .product-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 36px;
    }
}

.category-hero {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.category-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.category-hero p {
    font-size: 16px;
    opacity: 0.9;
}

.filters-section {
    padding: 32px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}