/* ========================================
   KuaiPaoCloud - 可得财务页面样式
   ======================================== */

/* ---------- 页面 Banner ---------- */
.page-banner {
    position: relative;
    padding: calc(var(--nav-height) + 80px) 24px 80px;
    background: var(--bg-darker);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 60px 60px;
}

.banner-content-simple {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--accent); }

.page-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section-alt); }

.section-header { text-align: center; margin-bottom: 56px; }

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 16px;
    border-radius: 1px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- 产品概述 ---------- */
.kedai-overview-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
}

.kedai-badge-large {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(74, 155, 127, 0.12);
    border: 1px solid rgba(74, 155, 127, 0.25);
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.kedai-overview-text h3 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.kedai-overview-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.kedai-highlights {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.kh-item {
    display: flex;
    flex-direction: column;
}

.kh-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1.2;
}

.kedai-overview-text .stat-plus {
    font-size: 18px;
    color: var(--accent);
    font-weight: 600;
}

.kh-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---------- 可视化面板 ---------- */
.kd-visual-panel {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.kd-vp-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #151515;
    border-bottom: 1px solid var(--border);
}

.kd-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.kd-dot:first-child { background: #c47a7a; }
.kd-dot:nth-child(2) { background: #c4a97a; }
.kd-dot:nth-child(3) { background: #7ac488; }

.kd-vp-title {
    margin-left: 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.kd-vp-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kd-vp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.kd-label {
    color: var(--text-muted);
    min-width: 80px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.kd-value {
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 13px;
    margin-left: auto;
}

.kd-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius);
    font-weight: 500;
    margin-left: auto;
}

.kd-status.kd-on {
    background: rgba(74, 155, 127, 0.15);
    color: var(--accent-light);
    border: 1px solid rgba(74, 155, 127, 0.3);
}

.kd-bar {
    flex: 1;
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
    max-width: 100px;
}

.kd-fill {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

.kd-pct {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    margin-left: 8px;
}

/* ---------- 核心功能卡片 ---------- */
.kf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.kf-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
}

.kf-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.kf-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 155, 127, 0.08);
    border: 1px solid rgba(74, 155, 127, 0.15);
    border-radius: var(--radius);
    color: var(--accent);
    margin-bottom: 16px;
}

.kf-icon svg { width: 20px; height: 20px; }

.kf-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.kf-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- 插件生态 ---------- */
.plugin-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.plugin-cat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: var(--transition);
}

.plugin-cat:hover {
    border-color: var(--accent-dark);
}

.plugin-cat h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.plugin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plugin-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #151515;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.plugin-tag:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

/* ---------- 迁移步骤 ---------- */
.migration-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.migration-step {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    text-align: center;
    padding: 0 16px;
}

.ms-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 155, 127, 0.12);
    border: 2px solid var(--accent);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 auto 16px;
    font-family: var(--font-mono);
}

.migration-step h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.migration-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.migration-arrow {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
    background-size: 8px 2px;
    margin-top: 24px;
    flex-shrink: 0;
}

/* ---------- 滚动揭示 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .kedai-overview-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .kf-grid { grid-template-columns: repeat(2, 1fr); }

    .plugin-categories { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .page-banner { padding: calc(var(--nav-height) + 56px) 20px 56px; }
    .page-title { font-size: 28px; }

    .kedai-highlights {
        flex-direction: column;
        gap: 16px;
    }

    .kf-grid { grid-template-columns: 1fr; }

    .migration-steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .migration-arrow {
        width: 2px;
        height: 30px;
        background: linear-gradient(180deg, var(--accent) 50%, transparent 50%);
        background-size: 2px 8px;
        margin: 0;
    }

    .plugin-cat { padding: 20px; }
}

@media (max-width: 480px) {
    .breadcrumb { font-size: 12px; }
    .page-subtitle { font-size: 14px; }
    .kd-vp-body { padding: 16px; }
}
