/* ================= 考勤管理详情页 (独立样式 atd- 前缀) ================= */

/* 主题色（蓝色系 blue） */
:root {
    --atd-primary: #2563eb;
    --atd-primary-d: #1d4ed8;
    --atd-primary-l: #eff6ff;
    --atd-primary2: #3b82f6;
}

.page-container {
    margin-top: 70px;
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------- 通用容器 ---------- */
.atd-section-container {
    width: 1200px;
    max-width: 92%;
    margin: 0 auto;
}

.atd-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.atd-section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #142336;
    margin-bottom: 12px;
}

.title-line {
    width: 40px;
    height: 3px;
    background: var(--atd-primary);
    border-radius: 2px;
    margin: 14px auto 16px;
}

.title-sub {
    display: block;
    font-size: 14px;
    color: #94a3b8;
}

/* ---------- 1. Hero ---------- */
.atd-hero {
    padding: 110px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.atd-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;
}

.atd-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);
}

.atd-hero-img img { width: 100%; height: auto; object-fit: cover; display: block; }

.atd-hero-text { flex: 1; max-width: 560px; }

.atd-hero-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--atd-primary-d);
    margin-bottom: 18px; font-weight: 500;
}

.atd-hero-label-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 5px;
    background: var(--atd-primary-l); color: var(--atd-primary-d);
    margin-right: 2px;
}
.atd-hero-label-icon svg { width: 14px; height: 14px; }

.atd-hero-text h1 {
    font-size: 42px; font-weight: 700; color: #0f172a;
    line-height: 1.32; margin-bottom: 22px; letter-spacing: -0.5px;
}

.atd-hero-text h1 b { color: var(--atd-primary-d); }

.atd-hero-text .subtitle {
    font-size: 16px; color: #475569; line-height: 1.85;
    margin-bottom: 36px; max-width: 520px;
}

.atd-hero-btns { display: flex; align-items: center; gap: 16px; }

/* ---------- 2. 痛点挑战 ---------- */
.atd-pain { padding: 80px 0; background: #fff; }

.atd-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;
}

.atd-pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 0; }

.atd-pain-card { background: transparent; border: none; padding: 0; transition: transform 0.3s; }
.atd-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; }

.atd-pain-card h3 { font-size: 17px; font-weight: 700; color: #1e293b; margin-bottom: 10px; line-height: 1.4; }
.atd-pain-card p { font-size: 13px; color: #64748b; line-height: 1.85; }

/* ---------- 3. 核心优势 ---------- */
.atd-advantage { padding: 80px 0; background: #f8fafc; }

.atd-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }

.atd-adv-card {
    background: #fff; border: 1px solid #f0f2f5;
    border-radius: 14px; padding: 30px 26px 28px;
    transition: all 0.3s; text-align: center;
}

.atd-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(--atd-primary-d);
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.adv-icon-box svg { width: 24px; height: 24px; }

.atd-adv-card h3 { font-size: 18px; font-weight: 700; color: #1e293b; margin: 0 0 12px; line-height: 1.3; }
.atd-adv-card p { font-size: 13.5px; color: #64748b; line-height: 1.85; }

/* ---------- 4. 高维度产品架构 ---------- */
.atd-architecture { padding: 80px 0; background: #fff; }

.atd-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. 核心功能全景剖析 ---------- */
.atd-core-detail { padding: 80px 0; background: #f8fafc; }

.atd-core-grid {
    margin-top: 50px;
    display: flex; flex-direction: column; gap: 32px;
}

.core-phase-card {
    background: #fff; border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #eef1f5;
    display: flex; align-items: stretch;
    transition: all 0.3s;
}
.core-phase-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }

.core-phase-img {
    flex: 0 0 50%; background: #f1f5f9; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.core-phase-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.core-phase-body {
    flex: 1; padding: 48px 52px;
    display: flex; flex-direction: column; justify-content: center;
}

.core-phase-label {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: 2px;
    color: var(--atd-primary);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.core-phase-body h3 {
    font-size: 26px; font-weight: 700; color: #0f172a;
    margin: 0 0 18px; line-height: 1.35;
}

.core-phase-body p {
    font-size: 15px; color: #64748b; line-height: 1.85;
    margin-bottom: 28px; max-width: 480px;
}

.core-phase-tags {
    display: flex; flex-wrap: wrap; gap: 10px;
}

.core-phase-tags span {
    display: inline-flex; align-items: center;
    padding: 8px 18px;
    background: var(--atd-primary-l);
    color: var(--atd-primary-d);
    font-size: 13px; font-weight: 600;
    border-radius: 20px;
    border: 1px solid #dbeafe;
}

/* 交替布局：偶数行图片在右 */
.core-phase-card.reverse { flex-direction: row-reverse; }

/* ---------- 6. 系统详细功能截图 ---------- */
.atd-screenshots { padding: 80px 0; background: #fff; }

.atd-screen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; }

.screen-card {
    background: #fff; border-radius: 16px; padding: 30px 30px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid #eef1f5;
    transition: all 0.3s; overflow: hidden;
}
.screen-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-2px); }

.screen-card-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}

.screen-num {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 40px; height: 40px;
    background: #f1f5f9; color: #64748b;
    font-size: 15px; font-weight: 700; border-radius: 10px;
}

.screen-card-header h4 {
    font-size: 22px; font-weight: 700; color: #0f172a; line-height: 1.3;
}

.screen-desc {
    font-size: 14px; color: #64748b; line-height: 1.75;
    margin-bottom: 24px;
}

.screen-img {
    margin: 0 -30px; border-radius: 12px 12px 0 0; overflow: hidden;
}
.screen-img img { width: 100%; height: auto; object-fit: cover; display: block; }

/* 按钮 */
.btn-blue {
    display: inline-block; padding: 13px 34px;
    background: var(--atd-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(--atd-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) {
    .atd-section-title h2 { font-size: 24px; }

    .atd-hero { padding: 80px 16px 60px; }
    .atd-hero-container { flex-direction: column; width: 100%; gap: 40px; }
    .atd-hero-text h1 { font-size: 28px; }
    .atd-hero-text .subtitle { font-size: 15px; }
    .atd-hero-btns { flex-direction: column; }
    .atd-hero-btns .btn-blue,
    .atd-hero-btns .btn-outline { text-align: center; width: 100%; box-sizing: border-box; display: block; padding: 12px 20px; }
    .atd-hero-img { width: 100%; height: 240px; border-radius: 10px; }

    .atd-pain { padding: 50px 16px; }
    .atd-pain-panel { padding: 28px 20px; }
    .atd-pain-grid { grid-template-columns: 1fr; gap: 22px; }

    .atd-advantage { padding: 50px 16px; }
    .atd-adv-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
    .atd-adv-card { padding: 22px 16px; }

    .atd-architecture { padding: 50px 16px; }
    .atd-arch-panel { padding: 32px 18px 28px; margin-top: 30px; }

    .atd-core-detail { padding: 50px 16px; }
    .atd-core-grid { gap: 20px; margin-top: 30px; }
    .core-phase-card { flex-direction: column !important; border-radius: 14px; }
    .core-phase-img { flex: 0 0 auto; height: 200px; }
    .core-phase-body { padding: 28px 22px 30px; }
    .core-phase-body h3 { font-size: 20px; }
    .core-phase-body p { font-size: 14px; }
    .core-phase-tags span { padding: 6px 14px; font-size: 12px; }

    .atd-screenshots { padding: 50px 16px; }
    .atd-screen-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
    .screen-card { padding: 22px 20px 0; border-radius: 12px; }
    .screen-card-header h4 { font-size: 18px; }
    .screen-desc { font-size: 13px; }
    .screen-img { margin: 0 -20px; border-radius: 8px 8px 0 0; }
}
