/* ========================================
   Ultimate Guide to Gravel Bike Frames
   Mondince Cycle - Guide Stylesheet
   ======================================== */

/* 全局容器 */
.guide-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===== Hero 区域 ===== */
.guide-hero {
    text-align: center;
    padding: 2rem 1rem 3rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.guide-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f0b90b 0%, #d4a00a 100%);
    color: #1a2a3a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.guide-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.guide-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #718096;
}

.guide-meta i {
    margin-right: 0.4rem;
    color: #f0b90b;
}

/* ===== 目录（TOC）===== */
.table-of-contents {
    background: #f7fafc;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid #e2e8f0;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0b90b;
}

.toc-header i {
    font-size: 1.5rem;
    color: #f0b90b;
}

.toc-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #1a2a3a;
}

.table-of-contents ul {
    columns: 2;
    column-gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.6rem;
    break-inside: avoid;
}

.table-of-contents a {
    color: #2d3748;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.table-of-contents a:hover {
    color: #f0b90b;
}

.table-of-contents ul ul {
    columns: 1;
    margin-left: 1.5rem;
    margin-top: 0.3rem;
}

.table-of-contents ul ul li {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

/* ===== 章节通用样式 ===== */
.guide-section {
    margin-bottom: 3rem;
    scroll-margin-top: 80px;
}

.guide-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2a3a;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #f0b90b;
    margin-bottom: 1.5rem;
}

.guide-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1.8rem 0 1rem;
}

.guide-section p {
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1.2rem;
}

.guide-section ul, .guide-section ol {
    margin: 1rem 0 1.5rem 1.8rem;
    line-height: 1.7;
    color: #4a5568;
}

.guide-section li {
    margin-bottom: 0.5rem;
}

/* ===== 信息框 ===== */
.info-box, .insight-box {
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box i, .insight-box i {
    font-size: 1.3rem;
    color: #3182ce;
    margin-top: 0.1rem;
}

.info-box div, .insight-box div {
    flex: 1;
}

.insight-box {
    background: #faf5ff;
    border-left-color: #805ad5;
}

.insight-box i {
    color: #805ad5;
}

/* ===== 比较表格 ===== */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #1a2a3a;
    color: white;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ===== 材料对比卡片 ===== */
.material-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.material-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.material-card:hover {
    transform: translateY(-4px);
}

.material-icon {
    font-size: 2rem;
    color: #f0b90b;
    margin-bottom: 1rem;
}

.material-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-item {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.spec-label {
    min-width: 120px;
    display: inline-block;
    color: #718096;
}

/* ===== 碳纤维规格表 ===== */
.carbon-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.carbon-spec-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.carbon-spec-table th,
.carbon-spec-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.carbon-spec-table th {
    background: #2d3748;
    color: white;
    font-weight: 600;
}

.carbon-spec-table tr:last-child td {
    border-bottom: none;
}

/* ===== 几何详解网格 ===== */
.geometry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.geometry-item {
    background: #f7fafc;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.geometry-item i {
    font-size: 1.5rem;
    color: #f0b90b;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.geometry-item strong {
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.geometry-item p {
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

/* ===== 认证徽章 ===== */
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.cert-badge {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
}

.cert-badge.en {
    background: #1a2a3a;
    color: #f0b90b;
}

.cert-badge.iso {
    background: #2d3748;
    color: white;
}

.cert-badge.third {
    background: #e2e8f0;
    color: #2d3748;
}

/* ===== 测试项目列表 ===== */
.test-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.test-item {
    background: #f7fafc;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #f0b90b;
    font-size: 0.95rem;
}

/* ===== OEM 步骤 ===== */
.oem-steps {
    margin: 1.5rem 0;
}

.step {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f0b90b, #d4a00a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2a3a;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #1a2a3a;
}

.step-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #4a5568;
}

/* ===== OEM 卡片网格 ===== */
.oem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.oem-card {
    background: #f7fafc;
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.oem-card i {
    font-size: 2rem;
    color: #f0b90b;
    margin-bottom: 0.8rem;
}

.oem-card h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: #1a2a3a;
}

.oem-card p {
    font-size: 0.85rem;
    margin: 0;
    color: #4a5568;
}

/* ===== 成功案例 ===== */
.success-story {
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a24 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
}

.success-quote {
    position: relative;
}

.success-quote i {
    font-size: 2rem;
    color: #f0b90b;
    opacity: 0.5;
    margin-bottom: 0.8rem;
}

.success-quote p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
    color: #e2e8f0;
}

.success-quote cite {
    font-style: normal;
    font-size: 0.9rem;
    color: #f0b90b;
}

/* ===== FAQ 区域 ===== */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.2rem;
    font-weight: 600;
    color: #1a2a3a;
    cursor: pointer;
    background: #f7fafc;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    font-size: 1.2rem;
    color: #f0b90b;
}

.faq-answer {
    padding: 0 1.2rem 1rem;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    border-top: 1px solid #e2e8f0;
}

/* ===== 结论区域 CTA ===== */
.conclusion-section {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 20px;
    margin-top: 2rem;
}

.cta-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cta-left {
    flex: 2;
}

.cta-left h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.cta-left p {
    margin: 0;
    color: #4a5568;
}

.cta-right {
    flex: 1;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #f0b90b;
    color: #1a2a3a;
}

.btn-primary:hover {
    background: #d4a00a;
    transform: translateX(2px);
    text-decoration: none;
    color: #1a2a3a;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateX(2px);
    text-decoration: none;
}

/* ===== 相关文章 ===== */
.related-articles-section {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.related-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.related-header i {
    font-size: 1.3rem;
    color: #f0b90b;
}

.related-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a2a3a;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.related-article-card a {
    text-decoration: none;
    color: inherit;
}

.card-img {
    height: 140px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-article-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1rem;
}

.card-content h4 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    color: #1a2a3a;
}

.read-more {
    font-size: 0.8rem;
    color: #f0b90b;
    font-weight: 500;
}

/* ===== 底部CTA ===== */
.bottom-cta {
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a24 100%);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.bottom-cta-text strong {
    display: block;
    font-size: 1.1rem;
    color: #f0b90b;
    margin-bottom: 0.3rem;
}

.bottom-cta-text p {
    margin: 0;
    color: #cbd5e0;
}

.bottom-cta-btn {
    background: #f0b90b;
    color: #1a2a3a;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bottom-cta-btn:hover {
    background: #d4a00a;
    transform: translateY(-2px);
    text-decoration: none;
    color: #1a2a3a;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .guide-container {
        padding: 1rem;
    }

    .guide-hero h1 {
        font-size: 1.8rem;
    }

    .guide-subtitle {
        font-size: 1rem;
    }

    .table-of-contents ul {
        columns: 1;
    }

    .guide-section h2 {
        font-size: 1.5rem;
    }

    .guide-section h3 {
        font-size: 1.2rem;
    }

    .material-comparison {
        grid-template-columns: 1fr;
    }

    .cta-block {
        flex-direction: column;
        text-align: center;
    }

    .cta-right {
        justify-content: center;
    }

    .bottom-cta {
        flex-direction: column;
        text-align: center;
    }

    .geometry-grid {
        grid-template-columns: 1fr;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .oem-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .oem-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== 全局图片自适应 ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;  /* 去除图片底部多余空隙 */
}

/* 专门针对指南页面内的各种图片容器 */
.section-image img,
.guide-hero img,
.article-grid img,
.related-article-card img,
.bottom-cta img {
    width: 100%;
    object-fit: cover;  /* 保持比例填充，可根据需要改为 contain */
}

/* 保留原有 .section-image 样式，如果已有则确保包含上述属性 */
.section-image {
    margin: 2rem 0;
    text-align: center;
}
.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 移动端调整边框圆角，可选 */
@media (max-width: 768px) {
    .section-image img {
        border-radius: 8px;
    }
}