/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* 网站整体容器 */
.website-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: calc(100vh - 80px);
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 0 auto;
    flex: 1;
}

/* ===== Color Variables ===== */
:root {
    --primary-blue: #4a90e2;
    --soft-blue: #e8f2ff;
    --light-blue: #b3d9ff;
    --dark-blue: #2c5aa0;
    --text-dark: #2c3e50;
    --text-light: #6c7b7f;
    --border-color: #e1e8ed;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --toc-width: 280px;
}

/* ===== Table of Contents Sidebar ===== */
.toc-sidebar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-580px, -50%);
    width: 300px;
    height: auto;
    max-height: 80vh;
    background: #ffffff;
    border: 2px solid #e8f4f8;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 15px;
}

.toc-header h3 {
    margin: 0;
    color: #2c5aa0;
    font-size: 1.2em;
    font-weight: 600;
}

.toc-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #2c5aa0;
}

/* IN THIS REVIEW Section */
.review-section {
    margin-bottom: 30px;
}

.review-section h4 {
    color: #2c5aa0;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 4px solid #2c5aa0;
}

/* Enhanced TOC List */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.toc-list a:hover {
    background-color: #e8f4f8;
    color: #2c5aa0;
    border-left-color: #2c5aa0;
    transform: translateX(5px);
}

.toc-list a.active {
    background-color: #2c5aa0;
    color: white;
    border-left-color: #1a4480;
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    margin-left: 320px;
    margin-right: auto;
    padding: 40px;
    max-width: 900px;
    background: #ffffff;
    width: calc(100% - 320px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e8f4f8;
    width: 100%;
    max-width: 800px;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h1 {
    color: #2c5aa0;
    font-size: 2.5em;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px solid #e8f4f8;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #34495e;
    margin: 24px 0 16px;
}

.content-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    margin: 20px 0 12px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #495057;
}

.content-section ul, .content-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Collapsible Sections */
.collapsible-section {
    margin: 30px 0;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.collapsible-header {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e0e6ed;
}

.collapsible-header:hover {
    background: #e8f4f8;
}

.collapsible-header h3 {
    margin: 0;
    color: #2c5aa0;
    font-size: 1.1em;
    font-weight: 600;
}

.collapsible-header span {
    color: #2c5aa0;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.collapsible-section.active .collapsible-header span {
    transform: rotate(180deg);
}

.collapsible-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.collapsible-section.active .collapsible-content {
    padding: 20px;
    max-height: 1000px;
}

.collapsible-content ul {
    margin: 0;
    padding-left: 20px;
}

.collapsible-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Key Takeaways Box */
.key-takeaway {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.key-takeaway h3 {
    color: white;
    margin-bottom: 16px;
    font-size: 20px;
}

.key-takeaway p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
}

/* Statistics Display */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    padding: 30px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
    display: block;
    filter: grayscale(0.3);
    opacity: 0.8;
}

.stat-number {
    display: block;
    font-size: 2.8em;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(44, 90, 160, 0.1);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    max-width: 120px;
}

/* Enhanced Product Cards */
.product-highlight {
    margin: 32px 0;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card.featured {
    border: 2px solid #28a745;
    position: relative;
    overflow: hidden;
}

.product-card.featured::before {
    content: "OUR TOP PICK";
    position: absolute;
    top: 0;
    right: 0;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-card h3 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 24px;
}

/* Product Image Styling */
.product-image-placeholder {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Product Image Gallery */
.product-image-gallery {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.image-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.single-ear-image,
.both-ears-image {
    flex: 1;
    text-align: center;
}

.both-ears-image {
    flex: 1.2;
}

.image-caption {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.product-image {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.price-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 4px;
}

.original-price {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: line-through;
}

.rating {
    font-size: 16px;
    color: #ffc107;
    font-weight: 600;
}

.product-details ul {
    margin: 20px 0;
}

.product-details li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.product-details li:last-child {
    border-bottom: none;
}

/* Enhanced Tables */
.comparison-table-placeholder {
    width: 100%;
    overflow-x: auto;
    margin: 24px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.price-comparison {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* 自定义滚动条样式 */
.comparison-table-placeholder::-webkit-scrollbar {
    height: 8px;
}

.comparison-table-placeholder::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.comparison-table-placeholder::-webkit-scrollbar-thumb {
    background: #4a90e2;
    border-radius: 4px;
}

.comparison-table-placeholder::-webkit-scrollbar-thumb:hover {
    background: #2c5aa0;
}

/* Firefox 滚动条样式 */
.comparison-table-placeholder {
    scrollbar-width: thin;
    scrollbar-color: #4a90e2 #f1f1f1;
}

/* 表格滚动提示 - 桌面端完全隐藏 */
.table-scroll-hint {
    text-align: center;
    padding: 12px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 0;
    display: none !important; /* 桌面端强制隐藏 */
}

.table-scroll-hint p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* 确保表格内容完全居中 */
.price-comparison th {
    background: #2c3e50;
    color: white;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    vertical-align: middle; /* 垂直居中 */
}

.price-comparison td {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle; /* 垂直居中 */
}

/* 特殊样式的表格行也要居中 */
.price-comparison tr:first-child td {
    font-weight: 600;
    background: #e8f5e8;
    text-align: center; /* 确保第一行也居中 */
}

/* 恢复表格斑马纹样式 */
.price-comparison tr:nth-child(even) {
    background: #f8f9fa;
}

/* Recommendation Box */
.recommendation-box {
    background-color: transparent;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
    border: 1px solid #e9ecef;
}

.recommendation-box p {
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.recommendation-box strong {
    font-weight: 600;
    color: #28a745;
}

/* Assessment Checklist */
.checklist-grid {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.checklist-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* FAQ Styling */
.faq-container {
    margin: 0;
}

.faq-item {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: none;
}

.faq-question {
    padding: 16px 20px;
    margin: 0;
    cursor: pointer;
    background: #f8f9fa;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: background-color 0.2s;
    position: relative;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
}

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

/* Action Steps */
.next-steps ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.next-steps li {
    counter-increment: step-counter;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    position: relative;
}

.next-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: -2px;
    top: -2px;
    background: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1240px) {
    .website-container {
        max-width: 100%;
        box-shadow: none;
        margin: 0;
    }
    
    .toc-sidebar {
        left: 20px;
        transform: translateY(-50%);
    }
}

@media (max-width: 1024px) {
    .toc-sidebar {
        width: 280px;
        left: 15px;
        transform: translateY(-50%);
        max-height: 70vh;
    }
    
    .main-content {
        margin-left: 300px;
        padding: 30px;
        width: calc(100% - 300px);
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
    
    .website-container {
        flex-direction: column;
        position: relative;
    }
    
    .toc-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .toc-sidebar.active {
        left: 0;
    }
    
    .toc-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
    
    .stats-container {
        flex-direction: row;
        gap: 10px;
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .stat-item {
        flex: 1;
        width: auto;
        padding: 10px 5px;
        border-bottom: none;
        border-right: 1px solid #e0e6ed;
    }
    
    .stat-item:last-child {
        border-right: none;
    }
    
    .stat-icon {
        font-size: 1.8em;
        margin-bottom: 4px;
    }
    
    .stat-number {
        font-size: 1.8em;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 0.75em;
        max-width: none;
        line-height: 1.1;
    }
    
    .collapsible-header {
        padding: 16px;
    }
    
    .content-section h1 {
        font-size: 28px;
    }
    
    .image-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .single-ear-image,
    .both-ears-image {
        flex: none;
        width: 100%;
    }
    
    /* 移动端只显示 Both Ears 图片 */
    .single-ear-image {
        display: none;
    }
    
    .both-ears-image {
        display: block;
    }
    
    /* 隐藏 Both Ears 图片标题 */
    .both-ears-image .image-caption {
        display: none;
    }
    
    .product-image {
        max-height: 150px;
    }
    
    /* FAQ 移动端间距调整 */
    .faq-item {
        margin-bottom: 10px;
    }
    
    .comparison-table-placeholder {
        margin: 16px -20px; /* 负边距让表格可以滚动到屏幕边缘 */
        padding: 0 20px;
        box-shadow: none;
        border-radius: 0;
    }
    
    .price-comparison {
        min-width: 600px; /* 移动端减小最小宽度 */
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .price-comparison th,
    .price-comparison td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    /* 滚动条在移动端更明显 */
    .comparison-table-placeholder::-webkit-scrollbar {
        height: 10px;
    }
    
    /* 表格滚动提示 */
    .table-scroll-hint {
        display: block !important; /* 移动端强制显示，覆盖桌面端的 !important */
        background: #e8f4f8;
        border-top: 1px solid #4a90e2;
        animation: pulse 2s infinite;
    }
    
    .table-scroll-hint p {
        color: #2c5aa0;
        font-weight: 600;
    }
    
    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.7; }
        100% { opacity: 1; }
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .stats-container {
        gap: 5px;
        padding: 15px 10px;
        margin: 15px 0;
    }
    
    .stat-item {
        padding: 8px 3px;
    }
    
    .stat-icon {
        font-size: 1.5em;
        margin-bottom: 3px;
    }
    
    .stat-number {
        font-size: 1.5em;
        margin-bottom: 1px;
    }
    
    .stat-label {
        font-size: 0.7em;
        line-height: 1.0;
    }
    
    .collapsible-header {
        padding: 12px;
    }
    
    .collapsible-section.active .collapsible-content {
        padding: 15px;
    }
    
    .target-audience,
    .value-proposition,
    .content-overview {
        padding: 20px;
    }
    
    /* FAQ 小屏幕间距调整 */
    .faq-item {
        margin-bottom: 8px;
    }
    
    .comparison-table-placeholder {
        margin: 16px -15px;
        padding: 0 15px;
    }
    
    .price-comparison {
        min-width: 550px;
    }
    
    .price-comparison th,
    .price-comparison td {
        padding: 10px 6px;
        font-size: 12px;
    }
}

/* Visit Site Button */
.visit-site-container {
    text-align: center;
    margin: 25px 0 0 0;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.visit-site-btn {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: none;
    cursor: pointer;
}

.visit-site-btn:hover {
    background: linear-gradient(135deg, #218838, #1db584);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.visit-site-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

/* Image styling */
.image-placeholder {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.section-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    vertical-align: middle;
}

/* SVG specific styling */
.section-image[src$=".svg"] {
    max-width: 800px;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Footer Styling */
.website-footer {
    width: 100%;
    background: #f8f9fa;
    color: #6c757d;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.footer-link:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .website-footer {
        padding: 15px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 10px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .copyright {
        font-size: 13px;
    }
    
    .footer-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .website-footer {
        padding: 12px 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }
} 