/* ========== 机构合作方案页 · solution.html 专用样式 ========== */

/* --- 入场动画 --- */
@keyframes solFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero（紧凑版，非全屏） --- */
.sol-hero {
    padding: 150px 24px 96px;
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(var(--color-secondary-rgb), 0.07) 0%, transparent 50%);
}

.sol-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 28px;
}

.sol-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: solFadeUp 0.8s var(--ease-out) 0.1s both;
}

.sol-hero-desc {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--foreground-muted);
    max-width: 620px;
    margin: 0 auto 36px;
    animation: solFadeUp 0.8s var(--ease-out) 0.2s both;
}

.sol-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: solFadeUp 0.8s var(--ease-out) 0.3s both;
}

/* --- 数据统计条 --- */
.sol-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: -56px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.sol-stat {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 12px;
    text-align: center;
    animation: solFadeUp 0.7s var(--ease-out) both;
}

.sol-stat:nth-child(2) { animation-delay: 0.08s; }
.sol-stat:nth-child(3) { animation-delay: 0.16s; }
.sol-stat:nth-child(4) { animation-delay: 0.24s; }

.sol-stat-num {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

.sol-stat-num em {
    font-style: normal;
    font-size: 14px;
    color: var(--foreground-muted);
    font-weight: 500;
    margin-left: 2px;
}

.sol-stat-label {
    font-size: 13px;
    color: var(--foreground-muted);
    margin-top: 6px;
}

@media (max-width: 640px) {
    .sol-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 通用网格 --- */
.sol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .sol-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 技术架构（分层图） ========== */
.arch-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

/* 中轴线 */
.arch-stack::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg,
        rgba(var(--color-primary-rgb), 0.3),
        rgba(var(--color-secondary-rgb), 0.3),
        rgba(var(--color-warning-rgb), 0.3),
        rgba(var(--color-danger-rgb), 0.25));
    transform: translateX(-0.5px);
    pointer-events: none;
}

@media (max-width: 720px) {
    .arch-stack::before { display: none; }
}

.arch-layer {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0;
    align-items: stretch;
    position: relative;
    animation: solFadeUp 0.7s var(--ease-out) both;
}

.arch-layer:nth-child(1) { animation-delay: 0.05s; }
.arch-layer:nth-child(2) { animation-delay: 0.15s; }
.arch-layer:nth-child(3) { animation-delay: 0.25s; }
.arch-layer:nth-child(4) { animation-delay: 0.35s; }

@media (max-width: 720px) {
    .arch-layer {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.arch-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 18px 20px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border: 1px solid var(--border);
    border-right: none;
    background: var(--bg-elevated);
}

@media (max-width: 720px) {
    .arch-side {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        border-right: 1px solid var(--border);
        border-bottom: none;
        flex-direction: row;
        align-items: center;
    }
}

.arch-side .arch-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 8px;
}

.arch-side .arch-en {
    font-size: 10.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--foreground-dim);
}

.arch-body {
    padding: 18px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    align-content: center;
    transition: border-color var(--transition-normal);
}

@media (max-width: 720px) {
    .arch-body {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
}

.arch-layer:hover .arch-body {
    border-color: var(--border-hover);
}

/* 层级主题色 */
.arch-layer[data-theme="cyan"] .arch-side { box-shadow: inset 3px 0 0 var(--color-primary); }
.arch-layer[data-theme="purple"] .arch-side { box-shadow: inset 3px 0 0 var(--color-accent); }
.arch-layer[data-theme="green"] .arch-side { box-shadow: inset 3px 0 0 var(--color-secondary); }
.arch-layer[data-theme="amber"] .arch-side { box-shadow: inset 3px 0 0 var(--color-warning); }
.arch-layer[data-theme="red"] .arch-side { box-shadow: inset 3px 0 0 var(--color-danger); }

/* 技术徽章 */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    border: 1px solid;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tech-badge:hover {
    transform: translateY(-2px);
}

.tech-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.arch-layer[data-theme="cyan"] .tech-badge {
    color: #67E8F9;
    background: rgba(var(--color-primary-rgb), 0.08);
    border-color: rgba(var(--color-primary-rgb), 0.25);
}
.arch-layer[data-theme="cyan"] .tech-badge .dot { background: var(--color-primary); }
.arch-layer[data-theme="cyan"] .tech-badge:hover { box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.25); }

.arch-layer[data-theme="purple"] .tech-badge {
    color: #C4B5FD;
    background: rgba(var(--color-accent-rgb), 0.08);
    border-color: rgba(var(--color-accent-rgb), 0.25);
}
.arch-layer[data-theme="purple"] .tech-badge .dot { background: var(--color-accent); }
.arch-layer[data-theme="purple"] .tech-badge:hover { box-shadow: 0 4px 16px rgba(var(--color-accent-rgb), 0.25); }

.arch-layer[data-theme="green"] .tech-badge {
    color: #86EFAC;
    background: rgba(var(--color-secondary-rgb), 0.08);
    border-color: rgba(var(--color-secondary-rgb), 0.25);
}
.arch-layer[data-theme="green"] .tech-badge .dot { background: var(--color-secondary); }
.arch-layer[data-theme="green"] .tech-badge:hover { box-shadow: 0 4px 16px rgba(var(--color-secondary-rgb), 0.25); }

.arch-layer[data-theme="amber"] .tech-badge {
    color: #FCD34D;
    background: rgba(var(--color-warning-rgb), 0.08);
    border-color: rgba(var(--color-warning-rgb), 0.25);
}
.arch-layer[data-theme="amber"] .tech-badge .dot { background: var(--color-warning); }
.arch-layer[data-theme="amber"] .tech-badge:hover { box-shadow: 0 4px 16px rgba(var(--color-warning-rgb), 0.25); }

.arch-layer[data-theme="red"] .tech-badge {
    color: #FCA5A5;
    background: rgba(var(--color-danger-rgb), 0.07);
    border-color: rgba(var(--color-danger-rgb), 0.22);
}
.arch-layer[data-theme="red"] .tech-badge .dot { background: var(--color-danger); }
.arch-layer[data-theme="red"] .tech-badge:hover { box-shadow: 0 4px 16px rgba(var(--color-danger-rgb), 0.2); }

/* ========== 功能标签流 ========== */
.sol-feat-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    animation: solFadeUp 0.7s var(--ease-out) both;
}

.sol-feat-card:nth-child(2) { animation-delay: 0.1s; }
.sol-feat-card:nth-child(3) { animation-delay: 0.2s; }

.sol-feat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.sol-feat-head-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--color-primary-rgb), 0.12);
}

.sol-feat-head.green .sol-feat-head-icon { background: rgba(var(--color-secondary-rgb), 0.12); }
.sol-feat-head.purple .sol-feat-head-icon { background: rgba(var(--color-accent-rgb), 0.12); }

.sol-feat-head h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.sol-feat-head span {
    font-size: 12px;
    color: var(--foreground-dim);
    display: block;
    margin-top: 2px;
}

.tag-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-flow .feat-tag {
    padding: 6px 13px;
    border-radius: 100px;
    font-size: 12.5px;
    color: var(--foreground-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    cursor: default;
}

.tag-flow .feat-tag:hover {
    color: var(--color-primary);
    border-color: rgba(var(--color-primary-rgb), 0.4);
    background: rgba(var(--color-primary-rgb), 0.08);
}

.sol-feat-foot {
    margin-top: auto;
    padding-top: 16px;
    font-size: 12.5px;
    color: var(--foreground-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sol-feat-foot svg {
    flex-shrink: 0;
}

/* --- 对比表格 --- */
.sol-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-overflow-scrolling: touch;
    animation: solFadeUp 0.7s var(--ease-out) 0.1s both;
}

.sol-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.sol-table th,
.sol-table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
    color: var(--foreground-muted);
    line-height: 1.55;
}

.sol-table tr:last-child td {
    border-bottom: none;
}

.sol-table thead th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--foreground);
    background: var(--surface);
    white-space: nowrap;
}

.sol-table td:first-child,
.sol-table th:first-child {
    color: var(--foreground);
    font-weight: 500;
    white-space: nowrap;
}

.sol-table .good {
    color: var(--color-secondary);
}

.sol-table .good::before {
    content: '✓ ';
    font-weight: 700;
}

.sol-table .bad {
    color: var(--foreground-dim);
}

.sol-quote {
    margin-top: 24px;
    padding: 22px 26px;
    border-radius: var(--radius-lg);
    background: rgba(var(--color-primary-rgb), 0.06);
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    font-size: 13.5px;
    color: var(--foreground-muted);
    line-height: 1.8;
    animation: solFadeUp 0.7s var(--ease-out) 0.2s both;
}

.sol-quote strong {
    color: var(--color-primary);
}

/* --- 效率对比 --- */
.sol-eff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 860px) {
    .sol-eff-grid {
        grid-template-columns: 1fr;
    }
}

.sol-eff-card {
    padding: 20px 22px;
    animation: solFadeUp 0.7s var(--ease-out) both;
}

.sol-eff-card:nth-child(2) { animation-delay: 0.07s; }
.sol-eff-card:nth-child(3) { animation-delay: 0.14s; }
.sol-eff-card:nth-child(4) { animation-delay: 0.21s; }
.sol-eff-card:nth-child(5) { animation-delay: 0.28s; }
.sol-eff-card:nth-child(6) { animation-delay: 0.35s; }

.sol-eff-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 14px;
}

.sol-eff-title svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.sol-eff-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sol-eff-line {
    display: grid;
    grid-template-columns: 1fr 24px 1fr;
    gap: 10px;
    align-items: center;
    font-size: 12.5px;
    line-height: 1.5;
}

.sol-eff-old {
    color: var(--foreground-dim);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(var(--color-danger-rgb), 0.05);
    border: 1px dashed rgba(var(--color-danger-rgb), 0.2);
}

.sol-eff-new {
    color: var(--foreground);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(var(--color-secondary-rgb), 0.07);
    border: 1px solid rgba(var(--color-secondary-rgb), 0.2);
}

.sol-eff-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

/* --- 价格 --- */
.sol-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .sol-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.sol-price-card {
    padding: 34px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: solFadeUp 0.7s var(--ease-out) 0.1s both;
}

.sol-price-card.featured {
    border-color: rgba(var(--color-secondary-rgb), 0.35);
    background: linear-gradient(180deg, rgba(var(--color-secondary-rgb), 0.06), var(--bg-card) 40%);
}

.sol-price-badge {
    position: absolute;
    top: -13px;
    right: 24px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-secondary), #16A34A);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--color-secondary-rgb), 0.35);
}

.sol-price-label {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--foreground-dim);
    font-weight: 600;
    margin-bottom: 10px;
}

.sol-price-value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.sol-price-value small {
    font-size: 14px;
    font-weight: 400;
    color: var(--foreground-muted);
    font-family: var(--font-body);
}

.sol-price-note {
    font-size: 13px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* 服务项双列网格 */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

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

.service-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--foreground-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.service-item:hover {
    border-color: rgba(var(--color-secondary-rgb), 0.3);
    color: var(--foreground);
    background: rgba(var(--color-secondary-rgb), 0.05);
}

.service-item svg {
    flex-shrink: 0;
    color: var(--color-secondary);
}

.sol-price-foot {
    margin-top: auto;
    padding-top: 18px;
    font-size: 12.5px;
    color: var(--foreground-dim);
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sol-price-foot svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-primary);
}

/* --- 合作流程时间线 --- */
.sol-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    counter-reset: step;
}

@media (max-width: 900px) {
    .sol-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .sol-process {
        grid-template-columns: 1fr;
    }
}

.sol-step {
    position: relative;
    padding: 24px 20px;
    counter-increment: step;
    animation: solFadeUp 0.7s var(--ease-out) both;
}

.sol-step:nth-child(2) { animation-delay: 0.07s; }
.sol-step:nth-child(3) { animation-delay: 0.14s; }
.sol-step:nth-child(4) { animation-delay: 0.21s; }
.sol-step:nth-child(5) { animation-delay: 0.28s; }
.sol-step:nth-child(6) { animation-delay: 0.35s; }

.sol-step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: rgba(var(--color-primary-rgb), 0.25);
    display: block;
    line-height: 1;
    margin-bottom: 12px;
}

.sol-step h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.sol-step p {
    font-size: 13px;
    color: var(--foreground-muted);
    line-height: 1.65;
}

.sol-step .step-time {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
    padding: 3px 10px;
    border-radius: 100px;
}

/* --- 页内导航锚点偏移 --- */
section[id] {
    scroll-margin-top: 90px;
}
