/* ============================================================
 * 商务合作报告页样式
 * 设计语言：与博客主样式对齐
 *   - 颜色：复用 CSS 变量（#1e80ff 掘金蓝）
 *   - 卡片：8/12/16 圆角层级
 *   - 留白：24/32/48 网格
 * ============================================================ */

.coop-page {
    width: 100%;
    max-width: 100%;
    color: var(--text-primary);
    background: var(--bg-primary);
    --coop-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
    --coop-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08), 0 16px 40px rgba(15, 23, 42, 0.06);
}

/* ---------------- 共用：段头 ---------------- */
.coop-section-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: left;
}

.coop-section-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(30, 128, 255, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 16px;
}

.coop-section-title {
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.coop-section-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* =====================================================
 * 1. Hero
 * ===================================================== */
.coop-hero {
    position: relative;
    padding: 72px 32px 64px;
    background:
        radial-gradient(circle at 12% 8%, rgba(30, 128, 255, 0.10), transparent 40%),
        radial-gradient(circle at 90% 30%, rgba(255, 125, 0, 0.08), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.coop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(30, 128, 255, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(30, 128, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.6;
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
}

.coop-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
}

.coop-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(30, 128, 255, 0.10);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.coop-hero__title {
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: var(--text-primary);
    max-width: 880px;
}

.coop-hero__lead {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.85;
    color: var(--text-secondary);
    margin: 0 0 28px;
    max-width: 760px;
}

.coop-hero__lead b {
    color: var(--text-primary);
    background: linear-gradient(180deg, transparent 60%, rgba(30, 128, 255, 0.16) 60%);
    padding: 0 2px;
}

.coop-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coop-tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: var(--coop-shadow);
    transition: transform var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.coop-tag:hover {
    transform: translateY(-1px);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* =====================================================
 * 2. Stats
 * ===================================================== */
.coop-stats {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.coop-stat {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--coop-shadow);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.coop-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--coop-shadow-hover);
}

.coop-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(30, 128, 255, 0.10);
    color: var(--primary-color);
}

.coop-stat:nth-child(2) .coop-stat__icon { background: rgba(255, 125, 0, 0.10); color: #ff7d00; }
.coop-stat:nth-child(3) .coop-stat__icon { background: rgba(0, 179, 101, 0.10); color: #00b365; }
.coop-stat:nth-child(4) .coop-stat__icon { background: rgba(114, 46, 209, 0.10); color: #722ed1; }

.coop-stat__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.coop-stat__label {
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

.coop-stat__value {
    font-size: clamp(26px, 2.8vw, 34px);
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.coop-stat:nth-child(2) .coop-stat__value {
    font-size: clamp(18px, 2.2vw, 26px);
    white-space: nowrap;
}

.coop-stat__hint {
    font-size: 13px;
    color: var(--text-tertiary);
}

.coop-stat:nth-child(1) .coop-stat__value { color: var(--primary-color); }
.coop-stat:nth-child(2) .coop-stat__value { color: #ff7d00; }
.coop-stat:nth-child(3) .coop-stat__value { color: #00b365; }
.coop-stat:nth-child(4) .coop-stat__value { color: #722ed1; }

/* =====================================================
 * 3. 爆款方法论
 * ===================================================== */
.coop-methodology {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 32px 48px;
}

.coop-method {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.coop-method__item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 26px 22px 24px;
    box-shadow: var(--coop-shadow);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.coop-method__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--coop-shadow-hover);
    border-color: var(--primary-color);
}

/* 步骤间的连接箭头 */
.coop-method__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px;
    right: -28px;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color), rgba(30, 128, 255, 0.35));
    z-index: 0;
    pointer-events: none;
}

.coop-method__item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 32px;
    right: -32px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(30, 128, 255, 0.35);
    border-right: 2px solid rgba(30, 128, 255, 0.35);
    transform: rotate(45deg);
    z-index: 0;
    pointer-events: none;
}

.coop-method__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e80ff, #4ca6ff);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(30, 128, 255, 0.25);
}

.coop-method__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.coop-method__step {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.12;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.coop-method__title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.coop-method__desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 14px;
}

.coop-method__example {
    display: block;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 8px 12px;
    border-left: 2px solid var(--primary-color);
    border-radius: 4px;
}

/* =====================================================
 * 4. 内容领域
 * ===================================================== */
.coop-domains {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 32px 48px;
}

.coop-domain {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 40px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    margin-top: 28px;
    box-shadow: var(--coop-shadow);
    position: relative;
    overflow: hidden;
}

.coop-domain::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), #5cd6ff);
}

.coop-domain--alt {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.coop-domain--alt::before {
    left: auto;
    right: 0;
    background: linear-gradient(180deg, #ff7d00, #ffb84d);
}

.coop-domain--case::before {
    background: linear-gradient(180deg, #722ed1, #d896ff);
}

/* ----------- 核心赛道（AI 三大板块） -----------
 * 视觉加重：彩色描边 + 浅色背景 + 更大的左侧色条
 * 目的：让客户一眼看到 AI 是当前主推方向
 */
.coop-domain--core {
    border-color: rgba(30, 128, 255, 0.35);
    background:
        linear-gradient(135deg, rgba(30, 128, 255, 0.04) 0%, rgba(94, 92, 230, 0.03) 100%),
        #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(30, 128, 255, 0.06);
}

.coop-domain--core::before {
    width: 6px;
    background: linear-gradient(180deg, var(--primary-color), #5e5ce6 60%, #00c6ff);
}

.coop-domain--core.coop-domain--alt::before {
    left: auto;
    right: 0;
}

/* ----------- 非核心赛道（弱化） -----------
 * 视觉降权：浅灰边 + 灰背景 + 字号略小
 */
.coop-domain--minor {
    background: #fafbfc;
    border-color: var(--border-light);
    box-shadow: none;
    padding: 32px;
}

.coop-domain--minor::before {
    width: 3px;
    opacity: 0.5;
}

.coop-domain--minor .coop-domain__title {
    font-size: clamp(20px, 2.2vw, 26px);
}

.coop-domain--minor .coop-domain__desc {
    font-size: 14.5px;
    color: var(--text-tertiary);
}

.coop-domain--minor .coop-domain__copy {
    gap: 0;
}

/* ----------- "核心赛道"角标 ----------- */
.coop-domain__chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), #5e5ce6);
    padding: 3px 10px;
    border-radius: 999px;
    margin-left: 10px;
    letter-spacing: 0.06em;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(30, 128, 255, 0.3);
    position: relative;
    top: -3px;
}

.coop-domain--alt .coop-domain__chip {
    background: linear-gradient(135deg, #ff7d00, #ff4d4f);
    box-shadow: 0 2px 8px rgba(255, 125, 0, 0.3);
}

.coop-domain__copy {
    display: flex;
    flex-direction: column;
    align-self: start;
    position: relative;
}

.coop-domain__index {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(30, 128, 255, 0.10);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    width: fit-content;
    letter-spacing: 0.08em;
}

.coop-domain--alt .coop-domain__index { color: #ff7d00; background: rgba(255, 125, 0, 0.10); }
.coop-domain--case .coop-domain__index { color: #722ed1; background: rgba(114, 46, 209, 0.10); }

.coop-domain__title {
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.coop-domain__tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    width: fit-content;
}

.coop-domain__desc {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

.coop-domain__desc b {
    color: var(--text-primary);
    font-weight: 600;
}

.coop-domain__fits {
    list-style: none;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coop-domain__fits li {
    position: relative;
    padding-left: 22px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.coop-domain__fits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

.coop-domain--alt .coop-domain__fits li::before { color: #ff7d00; }
.coop-domain--case .coop-domain__fits li::before { color: #722ed1; }

/* ----------- video list (zebra striping) ----------- */
.coop-vlist {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(30, 128, 255, 0.10);
    background: #ffffff;
}

.coop-vlist__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(30, 128, 255, 0.08);
    transition: background var(--transition-base), padding-left var(--transition-base), color var(--transition-base);
    position: relative;
}

.coop-vlist__item:last-child {
    border-bottom: none;
}

/* 隔行换色：偶数行轻底色 */
.coop-vlist__item:nth-child(even) {
    background: rgba(30, 128, 255, 0.04);
}

.coop-vlist__item:hover {
    background: rgba(30, 128, 255, 0.10);
    padding-left: 22px;
}

.coop-vlist__item:hover .coop-vlist__title {
    color: var(--primary-color);
}

/* 商单案例变体：紫色 */
.coop-vlist__item--case {
    border-bottom-color: rgba(114, 46, 209, 0.10);
}

.coop-vlist__item--case:nth-child(even) {
    background: rgba(114, 46, 209, 0.04);
}

.coop-vlist__item--case:hover {
    background: rgba(114, 46, 209, 0.10);
}

.coop-vlist__item--case:hover .coop-vlist__title {
    color: #722ed1;
}

/* 播放按钮 */
.coop-vlist__play {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1e80ff, #4ca6ff);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding-left: 2px;
    box-shadow: 0 2px 8px rgba(30, 128, 255, 0.30);
    transition: transform var(--transition-base);
}

.coop-vlist__item--case .coop-vlist__play {
    background: linear-gradient(135deg, #722ed1, #b366ff);
    box-shadow: 0 2px 8px rgba(114, 46, 209, 0.30);
}

.coop-vlist__item:hover .coop-vlist__play {
    transform: scale(1.15);
}

/* 标题（占满剩余空间，单行截断） */
.coop-vlist__title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
    color: var(--text-primary);
    /* 单行截断 + 省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 鼠标悬停显示完整标题 */
}

/* 时长 · 播放量 */
.coop-vlist__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 12.5px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.coop-vlist__duration {
    font-weight: 600;
    color: var(--text-secondary);
}

.coop-vlist__sep {
    color: #c5cdd6;
}

.coop-vlist__views {
    color: var(--primary-color);
    font-weight: 600;
}

/* 右侧标签 */
.coop-vlist__tag {
    flex: 0 0 auto;
    margin-left: 4px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(30, 128, 255, 0.10);
    color: var(--primary-color);
    white-space: nowrap;
}

.coop-vlist__tag--case {
    background: rgba(114, 46, 209, 0.10);
    color: #722ed1;
}

/* =====================================================
 * 响应式
 * ===================================================== */
@media (max-width: 1080px) {
    .coop-domain,
    .coop-domain--alt {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px;
    }
    .coop-domain--alt::before {
        left: 0;
        right: auto;
    }
}

@media (max-width: 880px) {
    .coop-stats,
    .coop-method {
        grid-template-columns: 1fr 1fr;
        padding: 32px 24px;
    }
    .coop-methodology,
    .coop-domains,
    .coop-hero {
        padding-left: 24px;
        padding-right: 24px;
    }
    .coop-hero {
        padding-top: 56px;
        padding-bottom: 48px;
    }
    .coop-method__item:nth-child(2)::after,
    .coop-method__item:nth-child(2)::before { display: none; }
}

@media (max-width: 540px) {
    .coop-stats,
    .coop-method {
        grid-template-columns: 1fr;
    }
    .coop-domain {
        padding: 24px;
        border-radius: 16px;
    }
    .coop-hero {
        padding-left: 20px;
        padding-right: 20px;
    }
    .coop-vlist__title {
        font-size: 13px;
    }
    .coop-vlist__meta {
        font-size: 11.5px;
    }
    .coop-vlist__tag {
        font-size: 10.5px;
        padding: 2px 8px;
    }
    .coop-method__item::after,
    .coop-method__item::before { display: none; }
}

/* =====================================================
 * 3.5 合作流程
 * ===================================================== */
.coop-process {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 32px 48px;
}

.coop-process-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    counter-reset: process-step;
}

.coop-process__item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: var(--coop-shadow);
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.coop-process__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--coop-shadow-hover);
}

.coop-process__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e80ff, #4ca6ff);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.coop-process__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.coop-process__desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* 步骤间连接线 */
.coop-process__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 40px;
    right: -16px;
    width: 16px;
    height: 2px;
    background: var(--border-color);
}

@media (max-width: 960px) {
    .coop-process-list {
        grid-template-columns: repeat(3, 1fr);
    }
    .coop-process__item:nth-child(3)::after { display: none; }
}

@media (max-width: 640px) {
    .coop-process-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .coop-process__item:nth-child(2n)::after { display: none; }
    .coop-process__item:nth-child(3)::after { display: block; }
}

@media (max-width: 480px) {
    .coop-process-list {
        grid-template-columns: 1fr;
    }
    .coop-process__item::after { display: none; }
}

/* 数字滚动效果相关 */
.coop-stat__value,
.coop-stat__hint {
    transition: color var(--transition-base);
}

/* =====================================================
   Print styles
   ===================================================== */
@media print {
    .coop-hero,
    .coop-stats,
    .coop-methodology,
    .coop-process,
    .coop-domains {
        page-break-inside: avoid;
    }
}
