/* ================= 门户管理详情页 (独立样式 portal- 前缀) ================= */

/* 主题色（蓝色系 blue，呼应"统一门户"的科技感） */
:root {
    --portal-primary: #3b82f6;
    --portal-primary-d: #2563eb;
    --portal-primary-l: #eff6ff;
    --portal-primary2: #60a5fa;
}

/* 页面主体容器 */
.page-container {
    margin-top: 70px;
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------- 通用容器 ---------- */
.portal-section-container {
    width: 1200px;
    max-width: 92%;
    margin: 0 auto;
}

.portal-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.portal-section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #142336;
    margin-bottom: 12px;
}

.portal-section-title p {
    font-size: 16px;
    color: #5f6f7f;
}

.title-line {
    width: 40px;
    height: 3px;
    background: var(--portal-primary);
    border-radius: 2px;
    margin: 14px auto 16px;
}

.title-sub {
    display: block;
    font-size: 14px;
    color: #94a3b8;
}

/* ---------- 1. Hero ---------- */
.portal-hero {
    padding: 100px 0 90px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 50%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.portal-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(59,130,246,0.05);
}

.portal-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 280px;
    background-image:
        linear-gradient(rgba(59,130,246,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 60%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 60%, #000 100%);
    pointer-events: none;
    z-index: 0;
}

.portal-hero-container {
    width: 1200px;
    max-width: 92%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    position: relative;
    z-index: 1;
}

.portal-hero-text {
    flex: 1;
    max-width: 580px;
}

.portal-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--portal-primary-d);
    margin-bottom: 20px;
    font-weight: 500;
}

.portal-hero-text h1 {
    font-size: 44px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.portal-hero-text h1 b {
    color: var(--portal-primary-d);
}

.portal-hero-text .subtitle {
    font-size: 17px;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 36px;
    max-width: 520px;
}

.portal-hero-btns {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-hero-img {
    width: 540px;
    min-height: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
    position: relative;
}

.portal-hero-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ---------- 2. 痛点挑战 ---------- */
.portal-pain {
    padding: 80px 0;
    background: #fff;
}

.portal-pain-panel {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eef1f5;
    box-shadow: 0 8px 32px rgba(245,158,11,0.06);
    padding: 50px 40px;
}

.portal-pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
}

.portal-pain-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: transform 0.3s;
}

.portal-pain-card:hover {
    transform: translateY(-3px);
}

.pain-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fef2f2;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.pain-icon-box svg {
    width: 22px;
    height: 22px;
}

.portal-pain-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.portal-pain-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.85;
}

/* ---------- 3. 核心优势 ---------- */
.portal-advantage {
    padding: 80px 0;
    background: #f8fafc;
}

.portal-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.portal-adv-card {
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 14px;
    padding: 36px 28px 28px;
    transition: all 0.3s;
    text-align: center;
}

.portal-adv-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.06);
    transform: translateY(-4px);
    border-color: transparent;
}

/* 居中版优势卡片：图标在上，标题居中 */
.portal-adv-card-center .adv-icon-box {
    margin: 0 auto 18px;
}

.adv-icon-box {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adv-icon-box svg {
    width: 24px;
    height: 24px;
}

.portal-adv-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.3;
}

.portal-adv-card p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.85;
}

/* ---------- 4. 高维度产品架构 ---------- */
.portal-architecture {
    padding: 80px 0;
    background: #fff;
}

.portal-arch-panel {
    background: #f8fafc;
    border-radius: 20px;
    padding: 50px 40px 48px;
    margin-top: 44px;
}

.arch-img-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    background: #0f172a;
    text-align: center;
}

.arch-img-wrapper img {
    width: 100%;
    display: block;
}

/* ---------- 5. 产品核心流转引擎 ---------- */
.portal-flow-engine {
    padding: 80px 0;
    background: #f8fafc;
}

.flow-engine-block {
    margin-top: 50px;
}

.flow-engine-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.flow-engine-desc {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 36px;
}

.flow-step-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.flow-step-card {
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    padding: 24px 20px 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.flow-step-card::before {
    content: attr(data-step);
    position: absolute;
    right: -10px;
    bottom: -36px;
    font-size: 130px;
    font-weight: 800;
    color: var(--portal-primary-l);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    letter-spacing: -4px;
}

.flow-step-card > * {
    position: relative;
    z-index: 1;
}

.flow-step-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    transform: translateY(-3px);
    border-color: transparent;
}

.step-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--portal-primary-d);
    background: var(--portal-primary-l);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.step-arrow {
    color: #cbd5e1;
    font-weight: 400;
    font-size: 14px;
}

.flow-step-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.flow-step-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}

/* ---------- 6. 核心功能全景剖析 ---------- */
.portal-core-detail {
    padding: 80px 0;
    background: #fff;
}

.portal-core-list {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.core-feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.core-feature-row-reverse {
    flex-direction: row-reverse;
}

.core-feature-text {
    flex: 1;
    max-width: 520px;
}

.detail-num-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    padding: 0 10px;
    background: var(--portal-primary-l);
    color: var(--portal-primary-d);
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.core-feature-text h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.4;
}

.core-feature-text p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.9;
    margin-bottom: 18px;
}

.core-feature-img {
    flex: 1;
    max-width: 560px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    background: #f8fafc;
}

.core-feature-img img {
    width: 100%;
    height: auto;
    display: block;
}

.core-feature-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.core-feature-bullets li {
    font-size: 13.5px;
    color: #475569;
    padding-left: 26px;
    position: relative;
    line-height: 1.6;
}

.core-feature-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--portal-primary-l);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* 按钮 */
.btn-blue {
    display: inline-block;
    padding: 13px 34px;
    background: var(--portal-primary);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59,130,246,0.25);
}

.btn-blue:hover {
    background: var(--portal-primary-d);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}

.btn-ghost {
    display: inline-block;
    padding: 13px 32px;
    background: #fff;
    color: #1e293b !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid #bfdbfe;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-ghost:hover {
    background: #eff6ff;
    border-color: var(--portal-primary);
    color: var(--portal-primary-d) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59,130,246,0.18);
}

.portal-hero-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--portal-primary-l);
    color: var(--portal-primary-d);
    font-size: 14px;
    margin-right: 2px;
}

/* ================= 响应式 ================= */
@media (max-width: 768px) {
    .portal-section-title h2 { font-size: 24px; }
    .portal-section-title p { font-size: 14px; }

    /* Hero */
    .portal-hero { padding: 80px 16px 60px; }
    .portal-hero-container { flex-direction: column; width: 100%; gap: 40px; }
    .portal-hero-text h1 { font-size: 28px; }
    .portal-hero-text .subtitle { font-size: 15px; }
    .portal-hero-btns { flex-direction: column; }
    .portal-hero-btns .btn-blue,
    .portal-hero-btns .btn-ghost { text-align: center; width: 100%; box-sizing: border-box; display: block; padding: 12px 20px; }
    .portal-hero-img { width: 100%; height: 240px; border-radius: 10px; }

    /* 痛点 */
    .portal-pain { padding: 50px 16px; }
    .portal-pain-panel { padding: 28px 20px; }
    .portal-pain-grid { grid-template-columns: 1fr; gap: 22px; }

    /* 核心优势 */
    .portal-advantage { padding: 50px 16px; }
    .portal-adv-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
    .portal-adv-card { padding: 22px 16px; }

    /* 架构 */
    .portal-architecture { padding: 50px 16px; }
    .portal-arch-panel { padding: 32px 18px 28px; margin-top: 30px; }

    /* 流转引擎 */
    .portal-flow-engine { padding: 50px 16px; }
    .flow-step-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .flow-step-card { padding: 18px 14px 16px; }

    /* 核心功能剖析 */
    .portal-core-detail { padding: 50px 16px; }
    .portal-core-list { gap: 40px; margin-top: 30px; }
    .core-feature-row,
    .core-feature-row-reverse { flex-direction: column; gap: 28px; }
    .core-feature-text { max-width: 100%; }
    .core-feature-img { max-width: 100%; }
    .core-feature-text h3 { font-size: 22px; }
}
