/* ========================================
   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;
}

/* ---------- 服务详情布局 ---------- */
.service-detail-section { padding: 100px 0; }

.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.service-detail-layout.reverse {
    direction: rtl;
}

.service-detail-layout.reverse > * {
    direction: ltr;
}

.service-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 10px;
    background: rgba(74, 155, 127, 0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(74, 155, 127, 0.2);
}

.service-detail-text h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-lead {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* ---------- 功能列表 ---------- */
.service-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.sf-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sf-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);
    flex-shrink: 0;
}

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

.sf-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* ---------- 可视化面板 ---------- */
.service-detail-visual { width: 100%; }

.visual-panel {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

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

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

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

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

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

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

.vp-value {
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 12px;
}

.vp-num {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    margin-left: auto;
}

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

.vp-fill {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 1s ease;
}

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

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

.vp-status.vp-warn {
    background: rgba(196, 122, 122, 0.15);
    color: #c47a7a;
    border: 1px solid rgba(196, 122, 122, 0.3);
}

/* ---------- 服务统计 ---------- */
.service-stats-section { background: var(--bg-darker); }

.service-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ss-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
}

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

.ss-num {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1.2;
}

.ss-card .stat-plus {
    font-size: 20px;
    color: var(--accent);
    font-weight: 600;
}

.ss-label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

/* ---------- 滚动揭示 ---------- */
.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) {
    .service-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail-layout.reverse {
        direction: ltr;
    }

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

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .service-detail-section { padding: 64px 0; }

    .page-banner {
        padding: calc(var(--nav-height) + 56px) 20px 56px;
    }

    .page-title { font-size: 28px; }

    .service-detail-text h2 { font-size: 24px; }

    .sf-item { gap: 12px; }

    .sf-icon { width: 36px; height: 36px; }

    .vp-body { padding: 16px; }

    .vp-line { font-size: 12px; }

    .service-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ss-card { padding: 28px 16px; }

    .ss-num { font-size: 32px; }
}

@media (max-width: 480px) {
    .service-stats-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb { font-size: 12px; }
}
