/* ================= 人事管理详情页 (独立样式 duty- 前缀) ================= */

/* 主题色（蓝色系 blue） */
:root {
    --duty-primary: #2563eb;
    --duty-primary-d: #1d4ed8;
    --duty-primary-l: #eff6ff;
    --duty-primary2: #3b82f6;
}

.page-container {
    margin-top: 70px;
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------- 通用容器 ---------- */
.duty-section-container {
    width: 1200px;
    max-width: 92%;
    margin: 0 auto;
}

.duty-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.duty-section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #142336;
    margin-bottom: 12px;
}

.title-line {
    width: 40px;
    height: 3px;
    background: var(--duty-primary);
    border-radius: 2px;
    margin: 14px auto 16px;
}

.title-sub {
    display: block;
    font-size: 14px;
    color: #94a3b8;
}

/* ---------- 1. Hero ---------- */
.duty-hero {
    padding: 110px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.duty-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;
}

.duty-hero-img {
    width: 560px; min-height: 320px; background: #fff;
    border-radius: 16px; overflow: hidden; flex-shrink: 0;
    box-shadow: 0 24px 64px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
}

.duty-hero-img img { width: 100%; height: auto; object-fit: cover; display: block; }

.duty-hero-text { flex: 1; max-width: 560px; }

.duty-hero-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--duty-primary-d);
    margin-bottom: 18px; font-weight: 500;
}

.duty-hero-label-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 5px;
    background: var(--duty-primary-l); color: var(--duty-primary-d);
    margin-right: 2px;
}
.duty-hero-label-icon svg { width: 14px; height: 14px; }

.duty-hero-text h1 {
    font-size: 42px; font-weight: 700; color: #0f172a;
    line-height: 1.32; margin-bottom: 22px; letter-spacing: -0.5px;
}

.duty-hero-text h1 b { color: var(--duty-primary-d); }

.duty-hero-text .subtitle {
    font-size: 16px; color: #475569; line-height: 1.85;
    margin-bottom: 36px; max-width: 520px;
}

.duty-hero-btns { display: flex; align-items: center; gap: 16px; }

/* ---------- 2. 痛点挑战 ---------- */
.duty-pain { padding: 80px 0; background: #fff; }

.duty-pain-panel {
    background: #fff; border-radius: 18px;
    border: 1px solid #eef1f5;
    box-shadow: 0 8px 32px rgba(37,99,235,0.06);
    padding: 50px 40px;
}

.duty-pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 0; }

.duty-pain-card { background: transparent; border: none; padding: 0; transition: transform 0.3s; }
.duty-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; }

.duty-pain-card h3 { font-size: 17px; font-weight: 700; color: #1e293b; margin-bottom: 10px; line-height: 1.4; }
.duty-pain-card p { font-size: 13px; color: #64748b; line-height: 1.85; }

/* ---------- 3. 核心优势 ---------- */
.duty-advantage { padding: 80px 0; background: #f8fafc; }

.duty-adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.duty-adv-grid-4 { grid-template-columns: repeat(4, 1fr); }

.duty-adv-card {
    background: #fff; border: 1px solid #f0f2f5;
    border-radius: 14px; padding: 30px 26px 28px;
    transition: all 0.3s; text-align: center;
}
.duty-adv-card-horizontal { text-align: left; padding: 26px 24px; }

.duty-adv-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.06); transform: translateY(-4px); border-color: transparent; }

.adv-icon-box {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--duty-primary-d);
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.duty-adv-card-horizontal .adv-icon-box { margin: 0 0 14px; }
.adv-icon-box svg { width: 24px; height: 24px; }

.duty-adv-card h3 { font-size: 18px; font-weight: 700; color: #1e293b; margin: 0 0 12px; line-height: 1.3; }
.duty-adv-card p { font-size: 13.5px; color: #64748b; line-height: 1.85; }

/* ---------- 4. 高维度产品架构 ---------- */
.duty-architecture { padding: 80px 0; background: #fff; }

.duty-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. 产品核心流转引擎 ---------- */
.duty-flow-engine { padding: 80px 0; background: #fff; }

.flow-engine-panel {
    background: #fff; border-radius: 18px;
    border: 1px solid #eef1f5; margin-top: 50px;
    box-shadow: 0 8px 32px rgba(37,99,235,0.05);
    padding: 44px 40px 40px;
}

.flow-engine-header { margin-bottom: 36px; }
.flow-engine-header h3 { font-size: 22px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.flow-engine-header p { font-size: 14px; color: #64748b; line-height: 1.7; }

.flow-step-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.flow-step-card {
    background: #f8fafc; border: 1px solid #f0f2f5;
    border-radius: 12px; padding: 22px 18px 20px;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.flow-step-card::before {
    content: attr(data-step);
    position: absolute; right: -8px; bottom: -38px;
    font-size: 120px; font-weight: 800; color: rgba(37,99,235,0.08);
    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: 8px;
    font-size: 12px; font-weight: 700; color: var(--duty-primary-d);
    background: #fff;
    padding: 5px 10px; border-radius: 6px;
    margin-bottom: 12px; letter-spacing: 0.5px;
    border: 1px solid #e0e7ff;
}
.step-arrow { color: var(--duty-primary); font-size: 16px; line-height: 1; }
.flow-step-card h4 { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.step-sub { font-size: 13px; color: var(--duty-primary-d); margin-bottom: 10px; font-weight: 500; }
.flow-step-card p { font-size: 13px; color: #64748b; line-height: 1.7; }

/* ---------- 6. 核心功能全景剖析 ---------- */
.duty-core-detail { padding: 80px 0; background: #f8fafc; }

.duty-core-grid {
    margin-top: 50px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

.core-feature-card {
    background: #fff; border-radius: 14px;
    border: 1px solid #f1f3f6;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: all 0.3s; display: flex; flex-direction: column;
}
.core-feature-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); transform: translateY(-3px); }

.core-feature-img {
    position: relative; height: 180px; background: #f1f5f9; overflow: hidden;
}
.core-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.core-num-tag {
    position: absolute; top: 14px; left: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 10px;
    background: var(--duty-primary); color: #fff;
    font-size: 13px; font-weight: 700; border-radius: 6px;
    z-index: 2;
}

.core-feature-body { padding: 22px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.core-feature-body h3 { font-size: 17px; font-weight: 700; color: #1e293b; margin-bottom: 10px; line-height: 1.4; }
.core-feature-body p { font-size: 13px; color: #64748b; line-height: 1.85; margin-bottom: 16px; }

.core-feature-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.core-feature-bullets li {
    font-size: 13px; color: #475569;
    padding: 6px 8px 6px 30px;
    position: relative; line-height: 1.5;
}

.core-feature-bullets li::before {
    content: ''; position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; border-radius: 50%; background: var(--duty-primary);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' 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;
}

/* ---------- 7. 系统详细功能截图 ---------- */
.duty-screenshots { padding: 80px 0; background: #f8fafc; }

.duty-screen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }

.screen-card {
    background: #fff; border-radius: 14px; padding: 26px 26px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04); border: 1px solid #f1f3f6;
    transition: all 0.3s; overflow: hidden;
}
.screen-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); transform: translateY(-2px); }

.screen-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }

.screen-num {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 38px; height: 38px;
    background: #f1f5f9; color: #475569;
    font-size: 13px; font-weight: 700; border-radius: 8px;
}

.screen-card-info { flex: 1; }
.screen-card-info h4 { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.screen-desc { font-size: 13px; color: #64748b; line-height: 1.85; }

.screen-img { margin: 0 -26px; background: #f1f5f9; }
.screen-img img { width: 100%; height: auto; object-fit: cover; display: block; }

/* 按钮 */
.btn-blue {
    display: inline-block; padding: 13px 34px;
    background: var(--duty-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(37,99,235,0.25);
}
.btn-blue:hover { background: var(--duty-primary-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.35); }

.btn-outline {
    display: inline-block; padding: 12px 33px;
    background: #fff; color: #334155 !important;
    font-size: 15px; font-weight: 600; border-radius: 8px;
    text-decoration: none; transition: all 0.3s; cursor: pointer;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }

/* ================= 响应式 ================= */
@media (max-width: 768px) {
    .duty-section-title h2 { font-size: 24px; }

    .duty-hero { padding: 80px 16px 60px; }
    .duty-hero-container { flex-direction: column; width: 100%; gap: 40px; }
    .duty-hero-text h1 { font-size: 28px; }
    .duty-hero-text .subtitle { font-size: 15px; }
    .duty-hero-btns { flex-direction: column; }
    .duty-hero-btns .btn-blue,
    .duty-hero-btns .btn-outline { text-align: center; width: 100%; box-sizing: border-box; display: block; padding: 12px 20px; }
    .duty-hero-img { width: 100%; height: 240px; border-radius: 10px; }

    .duty-pain { padding: 50px 16px; }
    .duty-pain-panel { padding: 28px 20px; }
    .duty-pain-grid { grid-template-columns: 1fr; gap: 22px; }

    .duty-advantage { padding: 50px 16px; }
    .duty-adv-grid,
    .duty-adv-grid-4 { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
    .duty-adv-card { padding: 22px 16px; }

    .duty-architecture { padding: 50px 16px; }
    .duty-arch-panel { padding: 32px 18px 28px; margin-top: 30px; }

    .duty-flow-engine { padding: 50px 16px; }
    .flow-engine-panel { padding: 28px 18px 24px; margin-top: 30px; }
    .flow-step-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .flow-step-card { padding: 18px 14px 16px; }

    .duty-core-detail { padding: 50px 16px; }
    .duty-core-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
    .core-feature-img { height: 180px; }
    .core-feature-body h3 { font-size: 16px; }

    .duty-screenshots { padding: 50px 16px; }
    .duty-screen-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
    .screen-card { padding: 20px 18px 0; }
    .screen-card-info h4 { font-size: 16px; }
    .screen-img { margin: 0 -18px; }
}
