/**
 * KOCVP 测评平台 - 主样式表
 * 包含所有页面样式，支持响应式布局
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(145deg, #f5f9ff 0%, #e8f0fa 100%);
    padding: 24px 16px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 32px 40px;
    box-shadow: 0 20px 40px -12px rgba(0, 60, 120, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ========= 头部区域 ========= */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-left {
    flex: 1;
    min-width: 280px;
}

.pill-badge {
    display: inline-block;
    background: #ff8a5c;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 1.4rem;
    border-radius: 40px;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(255, 138, 92, 0.25);
}

.hero-left h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0a2647;
    margin-bottom: 0.8rem;
}

.hero-highlight {
    background: linear-gradient(120deg, #2a6df4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 3px solid #c2daff;
    display: inline-block;
}

.hero-desc {
    font-size: 1rem;
    color: #36618e;
    max-width: 540px;
    background: #eaf2ff;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    margin-top: 0.5rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 70, 130, 0.08);
}

.hero-right {
    background: linear-gradient(135deg, #ffffff, #f0f7ff);
    border-radius: 32px;
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 12px 24px rgba(42, 109, 244, 0.1);
    border: 1px solid white;
}

.koc-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}

.koc-icon {
    font-size: 2.6rem;
}

.koc-text {
    font-weight: 600;
    color: #144d85;
    font-size: 1rem;
    text-align: left;
}

.koc-text small {
    font-weight: 400;
    font-size: 0.8rem;
    color: #5d82a8;
}

/* ========= KOC 描述区域 ========= */
.koc-description {
    background: linear-gradient(145deg, #f0f7ff, #e5f0ff);
    border-radius: 28px;
    padding: 1.5rem 2.2rem;
    border: 1px solid white;
    font-size: 1rem;
    color: #1a4a7a;
    line-height: 1.6;
}

/* ========= 轮播容器 - 响应式优化 ========= */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin: 24px auto 36px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 50, 100, 0.25);
    background: #f9fcff;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e8f0fa;
}

@media (min-width: 768px) {
    .carousel-slide {
        height: 420px;
        aspect-ratio: auto;
    }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    color: #003366;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid white;
    font-size: 1rem;
    z-index: 5;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 500;
    color: #2a6df4;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 30, 60, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 10;
    border: 1px solid #e0edff;
}

.carousel-btn:hover {
    background: #2a6df4;
    color: white;
    box-shadow: 0 8px 18px rgba(42, 109, 244, 0.4);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #99b5d6;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.dot.active {
    background: #2a6df4;
    transform: scale(1.2);
    box-shadow: 0 0 8px #2a6df4;
}

/* 手机端轮播优化 */
@media (max-width: 767px) {
    .carousel-container {
        border-radius: 20px;
        margin: 16px auto 28px;
    }
    
    .carousel-slide {
        aspect-ratio: 4 / 3;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .carousel-btn.prev {
        left: 12px;
    }
    
    .carousel-btn.next {
        right: 12px;
    }
    
    .slide-caption {
        bottom: 12px;
        left: 12px;
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
        border-radius: 30px;
    }
    
    .carousel-dots {
        bottom: 12px;
        padding: 0.3rem 0.8rem;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        aspect-ratio: 3 / 4;
    }
    
    .slide-caption {
        bottom: 10px;
        left: 10px;
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* ========= 板块通用 ========= */
.section {
    margin-bottom: 42px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4e5ff;
    padding-bottom: 8px;
}

.section-num {
    width: 36px;
    height: 36px;
    background: #2a6df4;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 4px 8px rgba(42, 109, 244, 0.3);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0a2a4a;
}

.section-sub {
    margin-left: auto;
    color: #2a6df4;
    font-weight: 500;
    background: #e2eeff;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
}

/* ========= 痛点网格 ========= */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.pain-card {
    background: white;
    border-radius: 28px;
    padding: 1.5rem 1.8rem;
    box-shadow: 0 12px 24px -10px rgba(42, 109, 244, 0.1);
    border: 1px solid #ffffff;
    transition: 0.2s;
    display: flex;
    gap: 16px;
}

.pain-card:hover {
    box-shadow: 0 16px 28px -8px rgba(42, 109, 244, 0.2);
}

.pain-emoji {
    font-size: 2.2rem;
    line-height: 1;
}

.pain-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003366;
    margin-bottom: 6px;
}

.pain-content p {
    color: #3d6189;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========= 优势卡片 ========= */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.adv-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 14px 28px -12px rgba(42, 109, 244, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: 0.2s;
}

.adv-card:hover {
    box-shadow: 0 18px 32px -10px #2a6df4;
}

.adv-card-large {
    grid-column: span 2;
}

.adv-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e9f2ff, #d4e6ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a5fb0;
}

.adv-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0a3155;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vs-tag {
    background: #edf3ff;
    color: #2a6df4;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    border: 1px solid #c7ddff;
}

.adv-desc {
    color: #285585;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.gain-block {
    background: linear-gradient(145deg, #f0f7ff, #e5f0ff);
    border-radius: 16px;
    padding: 1rem 1.3rem;
    margin-top: 0.8rem;
    border-left: 4px solid #ff8a5c;
    font-weight: 500;
    color: #003f88;
    font-size: 0.9rem;
}

/* ========= 双阶段区域 ========= */
.phase-wrapper {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.phase-box {
    flex: 1;
    background: #f7fbff;
    border-radius: 24px;
    padding: 1.6rem 1.6rem;
    border: 1px solid #d2e5ff;
}

.phase-box h4 {
    font-size: 1.2rem;
    color: #004080;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phase-list {
    list-style: none;
}

.phase-list li {
    margin-bottom: 0.7rem;
    padding-left: 1.8rem;
    position: relative;
    color: #235e8f;
    font-size: 0.95rem;
}

.phase-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
    color: #ff8a5c;
    font-size: 1rem;
}

/* ========= 无忧售后区域 ========= */
.warranty-strip {
    background: linear-gradient(105deg, #deedff, #cbe2ff);
    border-radius: 32px;
    padding: 1.8rem 2.2rem;
    margin: 30px 0 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border: 1px solid white;
}

.warranty-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: #003366;
    margin-right: 16px;
}

.warranty-title small {
    font-size: 0.85rem;
    font-weight: 400;
    background: white;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    margin-left: 10px;
    color: #ff6b4a;
}

.warranty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    flex: 2;
    justify-content: flex-end;
}

.warranty-item {
    background: white;
    border-radius: 40px;
    padding: 0.5rem 1.4rem;
    font-weight: 500;
    color: #003d7c;
    box-shadow: 0 4px 8px rgba(0, 60, 120, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.warranty-item strong {
    color: #ff6b4a;
}

/* ========= 增值服务 ========= */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.value-card {
    background: linear-gradient(145deg, #ffffff, #f5fbff);
    border-radius: 28px;
    padding: 1.6rem 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid #e1efff;
    box-shadow: 0 10px 20px -8px #b3d0f0;
}

.value-icon {
    font-size: 2.5rem;
}

.value-card h4 {
    font-size: 1.2rem;
    color: #003d7c;
    margin-bottom: 4px;
}

.value-card p {
    color: #2f68a3;
    line-height: 1.5;
    font-size: 0.95rem;
}

.promise-note {
    text-align: center;
    font-size: 1.1rem;
    color: #1a4a7a;
    background: #ecf5ff;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-top: 24px;
    font-style: italic;
    border: 1px dashed #9ac0ff;
}

/* ========= 二维码合作区 ========= */
.qr-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #144d85, #2a6df4, #8b5cf6);
    border-radius: 40px;
    padding: 2.2rem 3rem;
    margin-top: 30px;
    color: white;
    flex-wrap: wrap;
    gap: 24px;
    box-shadow: 0 20px 30px -10px #2a6df4;
}

.qr-left h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.qr-left p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.qr-code-box {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.qr-code-box svg {
    width: 80px;
    height: 80px;
    fill: #144d85;
}

.qr-code-box span img {
    width: 100%;
    height: auto;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    background: white;
    color: #144d85;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 14px rgba(42, 109, 244, 0.15);
    border: 1px solid #fff;
}

.footer-note {
    text-align: center;
    margin-top: 36px;
    color: #4a7fb4;
    font-size: 0.9rem;
    font-weight: 500;
    background: #ffffffd9;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

/* ========= 底部独立模块：测评知识库 ========= */
.knowledge-footer-module {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px dashed #c9e0ff;
}

.knowledge-footer-header {
    text-align: center;
    margin-bottom: 30px;
}

.knowledge-footer-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #144d85;
    display: inline-block;
    background: linear-gradient(135deg, #144d85, #2a6df4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.knowledge-module {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
}

.knowledge-header {
    background: transparent;
    padding: 0 0 20px 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 2px solid #e8f0fa;
}

.knowledge-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #144d85;
    display: flex;
    align-items: center;
    gap: 8px;
}

.knowledge-header h3:before {
    content: "📘";
    font-size: 1.4rem;
}

.knowledge-list-container {
    padding: 20px 0;
}

/* 简洁列表样式 */
.knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.knowledge-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f4f9;
    transition: all 0.2s ease;
}

.knowledge-item:hover {
    background: #fafdff;
    padding-left: 8px;
}

.item-number {
    width: 32px;
    height: 32px;
    background: transparent;
    font-weight: 500;
    font-size: 0.9rem;
    color: #8ba5c2;
    margin-right: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-title {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
    color: #1e4668;
    letter-spacing: -0.2px;
}

.item-title a {
    color: #1e4668;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    transition: color 0.2s;
}

.item-title a:hover {
    color: #2a6df4;
}

.item-link {
    background: transparent;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2a6df4;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 20px;
    flex-shrink: 0;
}

.item-link:hover {
    background: #eef4ff;
    color: #144d85;
}

.item-link::after {
    content: "→";
    font-size: 0.9rem;
}

/* ========= 翻页控件 ========= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef3fc;
}

.page-btn {
    background: white;
    border: 1px solid #d9e6ff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2a6df4;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.page-btn:hover:not(:disabled) {
    background: #2a6df4;
    color: white;
    border-color: #2a6df4;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.9rem;
    color: #5d82a8;
    font-weight: 500;
    padding: 0 16px;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5d82a8;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.page-num:hover {
    background: #f0f6ff;
    color: #2a6df4;
}

.page-num.active {
    background: #2a6df4;
    color: white;
}

/* ========= 响应式布局 ========= */
@media (max-width: 900px) {
    .container {
        padding: 24px;
    }
    
    .hero-left h1 {
        font-size: 1.8rem;
    }
    
    .adv-grid {
        grid-template-columns: 1fr;
    }
    
    .adv-card-large {
        grid-column: span 1;
    }
    
    .pain-grid {
        grid-template-columns: 1fr;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-section {
        flex-direction: column;
        text-align: center;
    }
    
    .knowledge-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .item-link {
        margin-left: 48px;
    }
    
    .page-numbers {
        display: none;
    }
}