/* ========================================
   home.css - Product UI Home / Work Overview
   A composed dashboard with brand atmosphere and clear task hierarchy.
   ======================================== */

.pu-home-container {
    --home-ink: #111827;
    --home-muted: #64748b;
    --home-blue: #2563eb;
    --home-blue-deep: #123fbf;
    --home-violet: #7956e8;
    --home-cyan: #20b7c9;
    --home-amber: #f59e0b;
    width: 100%;
    min-height: 100vh;
    padding: 28px clamp(24px, 3vw, 48px) 48px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 82% 0%, rgba(89, 137, 255, 0.11), transparent 28%),
        linear-gradient(180deg, #f7f9fd 0%, #f3f6fb 100%);
    color: var(--home-ink);
    font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif;
}

.pu-home-container svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pu-home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1460px;
    margin: 0 auto 18px;
}

.pu-home-kicker {
    margin: 0 0 6px;
    color: #8a99ae;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.pu-home-topbar h1 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.pu-home-topbar-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pu-home-date {
    color: var(--home-muted);
    font-size: 13px;
}

.pu-home-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #f7c874, #e99a48);
    box-shadow: 0 6px 18px rgba(84, 105, 142, 0.16);
    color: #5a3512;
    font-size: 14px;
    font-weight: 800;
}

.pu-home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    min-height: 214px;
    max-width: 1460px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dbe5f3;
    border-radius: 22px;
    background:
        linear-gradient(rgba(74, 106, 174, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 106, 174, 0.035) 1px, transparent 1px),
        linear-gradient(125deg, #f8fbff 0%, #eef4ff 60%, #eaf3ff 100%);
    background-size: 42px 42px, 42px 42px, auto;
    box-shadow: 0 12px 32px rgba(58, 82, 128, 0.08);
    isolation: isolate;
}

.pu-home-hero::after {
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(80, 111, 181, 0.11);
    border-radius: 50%;
    content: "";
}

.pu-home-hero-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
}

.pu-home-hero-glow--one {
    top: -170px;
    left: 34%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(75, 106, 255, 0.12), transparent 68%);
}

.pu-home-hero-glow--two {
    right: -80px;
    bottom: -130px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(40, 207, 225, 0.10), transparent 68%);
}

.pu-home-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    padding: 21px 22px 20px clamp(28px, 3vw, 42px);
    flex-direction: column;
    justify-content: center;
}

.pu-home-hero-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 9px;
    padding: 5px 9px;
    align-items: center;
    gap: 8px;
    border: 1px solid #ccdcfb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #4267be;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.11em;
}

.pu-home-hero-label svg {
    width: 15px;
    height: 15px;
}

.pu-home-hero h2 {
    margin: 0 0 8px;
    color: #17233d;
    font-size: clamp(27px, 2.35vw, 36px);
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -0.055em;
}

.pu-home-hero h2 em {
    color: #3768d8;
    font-style: normal;
}

.pu-home-hero-copy > p {
    max-width: 600px;
    margin: 0 0 13px;
    color: #687894;
    font-size: 12px;
    line-height: 1.72;
}

.pu-home-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pu-home-btn {
    display: inline-flex;
    min-height: 38px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 650;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pu-home-btn svg {
    width: 17px;
    height: 17px;
}

.pu-home-btn--primary {
    background: #315fcc;
    box-shadow: 0 8px 18px rgba(49, 95, 204, 0.18);
    color: #fff;
}

.pu-home-btn--primary:hover {
    background: #254fab;
    box-shadow: 0 11px 23px rgba(49, 95, 204, 0.23);
    transform: translateY(-2px);
}

.pu-home-btn--ghost {
    border-color: #cbd7e9;
    background: rgba(255, 255, 255, 0.72);
    color: #4e5f7c;
}

.pu-home-btn--ghost:hover {
    border-color: #9fb6df;
    background: #fff;
}

.pu-home-hero-facts {
    display: flex;
    margin-top: 12px;
    gap: 0;
}

.pu-home-hero-facts div {
    display: flex;
    min-width: 104px;
    padding-right: 18px;
    align-items: baseline;
    gap: 7px;
}

.pu-home-hero-facts div + div {
    padding-left: 18px;
    border-left: 1px solid #d7e1ef;
}

.pu-home-hero-facts strong {
    color: #243654;
    font-size: 17px;
    font-weight: 700;
}

.pu-home-hero-facts span {
    color: #7b8ba3;
    font-size: 10px;
    white-space: nowrap;
}

.pu-home-visual {
    position: relative;
    z-index: 1;
    min-height: 214px;
}

.pu-home-orbit {
    position: absolute;
    top: 50%;
    left: 51%;
    border: 1px solid rgba(77, 112, 185, 0.16);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pu-home-orbit--outer {
    width: 190px;
    height: 190px;
}

.pu-home-orbit--inner {
    width: 128px;
    height: 128px;
    border-style: dashed;
}

.pu-home-core {
    position: absolute;
    top: 50%;
    left: 51%;
    display: flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #cad9f0;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 34px rgba(61, 88, 140, 0.14);
    color: #42567c;
    transform: translate(-50%, -50%) rotate(-4deg);
    backdrop-filter: blur(14px);
}

.pu-home-core span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 13px;
    background: #e8f0ff;
    color: #2861d5;
}

.pu-home-core small {
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.08em;
}

.pu-home-satellite {
    position: absolute;
    width: 11px;
    height: 11px;
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: #7bd8f0;
    box-shadow: 0 0 22px rgba(123, 216, 240, 0.76);
}

.pu-home-satellite--one { top: 22px; left: 48%; }
.pu-home-satellite--two { right: 31px; bottom: 54px; background: #a89aff; }
.pu-home-satellite--three { bottom: 22px; left: 31%; background: #ffd37b; }

.pu-home-float-chip {
    position: absolute;
    padding: 6px 9px;
    border: 1px solid #d3dfef;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 20px rgba(54, 78, 124, 0.10);
    color: #5c6f8d;
    font-size: 9px;
    letter-spacing: 0.06em;
    backdrop-filter: blur(10px);
}

.pu-home-float-chip--one { top: 39px; left: 12px; transform: rotate(-5deg); }
.pu-home-float-chip--two { top: 38px; right: 15px; transform: rotate(4deg); }

.pu-home-float-card {
    position: absolute;
    right: 8px;
    bottom: 10px;
    width: 156px;
    padding: 10px 12px;
    border: 1px solid #d2deef;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 26px rgba(54, 78, 124, 0.12);
    color: #334761;
    transform: rotate(-2deg);
    backdrop-filter: blur(14px);
}

.pu-home-float-card-head {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
    justify-content: space-between;
    color: #8290a4;
    font-size: 8px;
}

.pu-home-float-card-head strong {
    color: #3a74bd;
    font-size: 8px;
}

.pu-home-progress {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6ebf2;
}

.pu-home-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b8cff, #61c9d3);
}

.pu-home-mini-bars {
    display: flex;
    height: 28px;
    margin-top: 8px;
    align-items: flex-end;
    gap: 7px;
}

.pu-home-mini-bars i {
    flex: 1;
    min-height: 7px;
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg, rgba(86, 147, 217, 0.72), rgba(99, 120, 255, 0.18));
}

.pu-home-section-heading {
    display: flex;
    max-width: 1460px;
    margin: 27px auto 15px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.pu-home-section-heading span {
    color: #8a99ae;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.pu-home-section-heading h2 {
    margin: 5px 0 0;
    color: var(--home-ink);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.pu-home-section-heading button {
    display: inline-flex;
    padding: 7px 0;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #cfd8e7;
    background: transparent;
    color: #53657f;
    font-size: 12px;
    font-weight: 600;
}

.pu-home-section-heading button:hover {
    border-color: var(--home-blue);
    color: var(--home-blue);
}

.pu-home-section-heading button svg {
    width: 15px;
    height: 15px;
}

.pu-home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    max-width: 1460px;
    margin: 0 auto;
    gap: 18px;
}

.pu-home-workflow-panel,
.pu-home-quick-panel {
    border: 1px solid rgba(199, 210, 227, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 38px rgba(58, 76, 112, 0.07);
}

.pu-home-workflow-panel {
    position: relative;
    display: grid;
    min-height: 324px;
    padding: 34px 26px;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    overflow: hidden;
}

.pu-home-workflow-line {
    position: absolute;
    top: 86px;
    right: 10%;
    left: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dfe7f2 8%, #dfe7f2 92%, transparent);
}

.pu-home-workflow-step {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 0 6px;
}

.pu-home-step-number {
    display: block;
    margin-bottom: 15px;
    color: #9ba9bd;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.pu-home-step-icon,
.pu-home-quick-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pu-home-step-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border: 5px solid #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(64, 86, 132, 0.12);
}

.pu-home-step-icon--blue,
.pu-home-quick-icon--blue { background: #eaf1ff; color: #3265d8; }
.pu-home-step-icon--violet,
.pu-home-quick-icon--violet { background: #f0edff; color: #7659d7; }
.pu-home-step-icon--cyan { background: #e7f9fb; color: #1599aa; }
.pu-home-step-icon--amber,
.pu-home-quick-icon--amber { background: #fff5df; color: #d7860a; }

.pu-home-workflow-step strong {
    display: block;
    margin-bottom: 10px;
    color: #1d293b;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.pu-home-workflow-step p {
    margin: 0;
    color: #77869b;
    font-size: 13px;
    line-height: 1.72;
}

.pu-home-quick-panel {
    min-height: 324px;
    padding: 25px 23px 20px;
}

.pu-home-quick-panel-head {
    display: flex;
    margin-bottom: 8px;
    padding: 0 3px 14px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf1f6;
}

.pu-home-quick-panel-head span {
    color: #1d293b;
    font-size: 16px;
    font-weight: 700;
}

.pu-home-quick-panel-head small {
    color: #9ba9bd;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 9px;
    letter-spacing: 0.13em;
}

.pu-home-quick-item {
    display: grid;
    width: 100%;
    min-height: 62px;
    padding: 10px 3px;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid #f0f3f7;
    background: transparent;
    text-align: left;
}

.pu-home-quick-item:hover .pu-home-quick-icon {
    transform: translateY(-2px);
}

.pu-home-quick-item > svg {
    width: 16px;
    height: 16px;
    color: #a3aec0;
    transition: transform 180ms ease, color 180ms ease;
}

.pu-home-quick-item:hover > svg {
    color: var(--home-blue);
    transform: translateX(3px);
}

.pu-home-quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    transition: transform 180ms ease;
}

.pu-home-quick-icon svg {
    width: 20px;
    height: 20px;
}

.pu-home-quick-item > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.pu-home-quick-item strong {
    color: #263449;
    font-size: 14px;
    font-weight: 700;
}

.pu-home-quick-item small {
    overflow: hidden;
    color: #8a98ab;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pu-home-principle {
    display: flex;
    margin-top: 15px;
    padding: 15px;
    align-items: flex-start;
    gap: 11px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef4ff, #f4f1ff);
    color: #4f67a4;
}

.pu-home-principle > svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pu-home-principle span {
    display: block;
    margin-bottom: 3px;
    color: #38528e;
    font-size: 12px;
    font-weight: 700;
}

.pu-home-principle p {
    margin: 0;
    color: #7181a4;
    font-size: 12px;
    line-height: 1.65;
}

@media (max-width: 1180px) {
    .pu-home-hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    }

    .pu-home-float-chip--two,
    .pu-home-satellite--two {
        display: none;
    }

    .pu-home-content-grid {
        grid-template-columns: 1fr;
    }

    .pu-home-quick-panel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .pu-home-quick-panel-head,
    .pu-home-principle {
        grid-column: 1 / -1;
    }

    .pu-home-quick-item {
        border: 1px solid #edf1f6;
        border-radius: 14px;
        padding: 11px;
    }
}

@media (max-width: 900px) {
    .pu-home-container {
        padding: 24px 22px 40px;
    }

    .pu-home-hero {
        grid-template-columns: 1fr;
    }

    .pu-home-visual {
        display: none;
    }

    .pu-home-hero-copy {
        padding: 25px 28px 23px;
    }

    .pu-home-workflow-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 12px;
    }

    .pu-home-workflow-line {
        display: none;
    }
}

@media (max-width: 620px) {
    .pu-home-topbar {
        align-items: flex-start;
    }

    .pu-home-date {
        display: none;
    }

    .pu-home-hero {
        border-radius: 22px;
    }

    .pu-home-hero h2 {
        font-size: 28px;
    }

    .pu-home-hero-actions {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .pu-home-hero-facts {
        gap: 0;
    }

    .pu-home-hero-facts div,
    .pu-home-hero-facts div + div {
        min-width: 0;
        padding: 0 12px;
        border-left: 1px solid #d7e1ef;
    }

    .pu-home-hero-facts div:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .pu-home-section-heading button {
        display: none;
    }

    .pu-home-workflow-panel,
    .pu-home-quick-panel {
        grid-template-columns: 1fr;
    }

    .pu-home-workflow-panel {
        padding: 25px 20px;
    }

    .pu-home-quick-item,
    .pu-home-quick-panel-head,
    .pu-home-principle {
        grid-column: 1;
    }
}
