/**
 * 追梦 UI（zhuimui）- FastAdmin 美化插件
 * @author  追梦
 * @wechat  PSPPTVqq
 * @link    https://gitee.com/zhuim666/framework
 */
/* =========================================================
 * 追梦 UI · 官网首页
 * ========================================================= */

:root {
    --zhuim-brand: #006eff;
    --zhuim-brand-hover: #2a86ff;
    --zhuim-brand-soft: #d5e7ff;
    --zhuim-ink: #0b1220;
    --zhuim-text: #1d2129;
    --zhuim-muted: #4e5969;
    --zhuim-line: #e5e6eb;
    --zhuim-bg: #f3f5f9;
    --zhuim-surface: #ffffff;
    --zhuim-radius: 10px;
    --zhuim-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --zhuim-display: "Outfit", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.zhuim-home {
    margin: 0;
    color: var(--zhuim-text);
    font-family: var(--zhuim-font);
    font-size: 15px;
    line-height: 1.6;
    background: var(--zhuim-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.zhuim-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

/* ---------- Nav ---------- */
.zhuim-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(243, 245, 249, 0.72);
    border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s, box-shadow .25s;
}

.zhuim-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--zhuim-line);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.zhuim-nav .zhuim-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.zhuim-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--zhuim-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--zhuim-ink);
}

.zhuim-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #006eff 0%, #3b9bff 100%);
    position: relative;
    flex: 0 0 28px;
}

.zhuim-logo-mark::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 2px solid #fff;
    border-radius: 3px;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(45deg) translate(1px, -1px);
}

.zhuim-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--zhuim-muted);
    font-size: 14px;
}

.zhuim-nav-links a:hover {
    color: var(--zhuim-brand);
}

.zhuim-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--zhuim-brand);
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s, transform .2s;
}

.zhuim-nav-cta:hover {
    background: var(--zhuim-brand-hover);
    transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.zhuim-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 12% 18%, rgba(0, 110, 255, 0.16), transparent 60%),
        radial-gradient(700px 420px at 88% 78%, rgba(42, 134, 255, 0.12), transparent 55%),
        linear-gradient(165deg, #eef3ff 0%, #f5f7fb 42%, #eef1f6 100%);
}

.zhuim-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
    pointer-events: none;
}

.zhuim-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 120px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: center;
}

.zhuim-hero-copy {
    max-width: 480px;
    animation: zhuimRise .8s ease both;
}

.zhuim-brand-title {
    margin: 0 0 18px;
    font-family: var(--zhuim-display);
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--zhuim-ink);
    word-break: break-word;
}

.zhuim-hero-headline {
    margin: 0 0 14px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--zhuim-text);
}

.zhuim-hero-desc {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--zhuim-muted);
}

.zhuim-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.zhuim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.zhuim-btn-primary {
    background: var(--zhuim-brand);
    color: #fff;
    border: 1px solid var(--zhuim-brand);
}

.zhuim-btn-primary:hover {
    background: var(--zhuim-brand-hover);
    border-color: var(--zhuim-brand-hover);
    transform: translateY(-1px);
}

.zhuim-btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--zhuim-text);
    border: 1px solid var(--zhuim-line);
}

.zhuim-btn-ghost:hover {
    border-color: var(--zhuim-brand);
    color: var(--zhuim-brand);
    background: #fff;
}

/* Hero visual: product plane */
.zhuim-hero-visual {
    position: relative;
    min-height: 420px;
    animation: zhuimFloat 7s ease-in-out infinite;
}

.zhuim-mock {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px 0 0 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 35, 80, 0.12);
    display: grid;
    grid-template-columns: 196px 1fr;
    overflow: hidden;
    transform: translateX(24px);
}

.zhuim-mock-side {
    background: #fafbfd;
    border-right: 1px solid var(--zhuim-line);
    padding: 18px 14px;
}

.zhuim-mock-brand {
    height: 18px;
    width: 88px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--zhuim-brand), #74b0ff);
    margin-bottom: 22px;
}

.zhuim-mock-nav {
    display: grid;
    gap: 8px;
}

.zhuim-mock-nav span {
    display: block;
    height: 28px;
    border-radius: 6px;
    background: #eef1f6;
}

.zhuim-mock-nav span.active {
    background: var(--zhuim-brand-soft);
    position: relative;
}

.zhuim-mock-nav span.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--zhuim-brand);
}

.zhuim-mock-main {
    padding: 18px 20px 20px;
    background:
        linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}

.zhuim-mock-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.zhuim-mock-bar i {
    display: block;
    height: 30px;
    border-radius: 6px;
    background: #eef1f6;
}

.zhuim-mock-bar i:nth-child(1) { width: 72px; background: var(--zhuim-brand); }
.zhuim-mock-bar i:nth-child(2) { width: 72px; }
.zhuim-mock-bar i:nth-child(3) { width: 36px; margin-left: auto; }

.zhuim-mock-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.zhuim-mock-cards b {
    display: block;
    height: 78px;
    border-radius: 8px;
    border: 1px solid var(--zhuim-line);
    background: linear-gradient(180deg, #fff, #f7f9fc);
}

.zhuim-mock-cards b:first-child {
    border-color: #b7d4ff;
    background: linear-gradient(160deg, #eaf2ff, #fff);
}

.zhuim-mock-table {
    border: 1px solid var(--zhuim-line);
    border-radius: 8px;
    overflow: hidden;
}

.zhuim-mock-table span {
    display: block;
    height: 34px;
    border-bottom: 1px solid #f0f1f5;
    background: repeating-linear-gradient(
        90deg,
        #f5f7fa 0 18%,
        transparent 18% 22%,
        #f5f7fa 22% 48%,
        transparent 48% 52%,
        #f5f7fa 52% 78%,
        transparent 78% 100%
    );
    background-size: 100% 12px;
    background-repeat: no-repeat;
    background-position: 16px center;
}

.zhuim-mock-table span:first-child {
    background-color: #fafbfd;
}

.zhuim-mock-table span:last-child {
    border-bottom: 0;
}

/* ---------- Sections ---------- */
.zhuim-section {
    padding: 88px 0;
}

.zhuim-section-head {
    max-width: 560px;
    margin-bottom: 40px;
}

.zhuim-section-head h2 {
    margin: 0 0 12px;
    font-family: var(--zhuim-display);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--zhuim-ink);
}

.zhuim-section-head p {
    margin: 0;
    color: var(--zhuim-muted);
    font-size: 16px;
}

.zhuim-features {
    background: var(--zhuim-surface);
    border-top: 1px solid var(--zhuim-line);
    border-bottom: 1px solid var(--zhuim-line);
}

.zhuim-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--zhuim-line);
}

.zhuim-feature {
    padding: 28px 24px 28px 0;
    border-bottom: 1px solid var(--zhuim-line);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.zhuim-feature:nth-child(3n) {
    padding-right: 0;
}

.zhuim-feature.is-in {
    opacity: 1;
    transform: none;
}

.zhuim-feature-index {
    display: block;
    margin-bottom: 14px;
    font-family: var(--zhuim-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--zhuim-brand);
}

.zhuim-feature h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--zhuim-ink);
}

.zhuim-feature p {
    margin: 0;
    color: var(--zhuim-muted);
    font-size: 14px;
    line-height: 1.7;
}

.zhuim-scene {
    background:
        linear-gradient(180deg, #f7f9fc 0%, #eef3ff 100%);
}

.zhuim-scene-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.zhuim-scene-panel {
    border: 1px solid var(--zhuim-line);
    border-radius: 14px;
    background: #fff;
    padding: 28px;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.zhuim-scene-panel::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 110, 255, 0.14), transparent 70%);
}

.zhuim-scene-lines {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.zhuim-scene-lines span {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: #e8edf5;
}

.zhuim-scene-lines span:nth-child(1) { width: 42%; background: var(--zhuim-brand-soft); }
.zhuim-scene-lines span:nth-child(2) { width: 78%; }
.zhuim-scene-lines span:nth-child(3) { width: 64%; }
.zhuim-scene-lines span:nth-child(4) { width: 88%; }
.zhuim-scene-lines span:nth-child(5) { width: 55%; }

.zhuim-scene-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.zhuim-scene-points li {
    display: grid;
    gap: 4px;
}

.zhuim-scene-points strong {
    font-size: 16px;
    color: var(--zhuim-ink);
}

.zhuim-scene-points span {
    font-size: 14px;
    color: var(--zhuim-muted);
}

.zhuim-install {
    background: var(--zhuim-surface);
}

.zhuim-install-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 36px 40px;
    border: 1px solid var(--zhuim-line);
    border-radius: 14px;
    background:
        linear-gradient(120deg, rgba(213, 231, 255, 0.55), transparent 55%),
        #fff;
}

.zhuim-install-box h2 {
    margin: 0 0 8px;
    font-family: var(--zhuim-display);
    font-size: 28px;
    letter-spacing: -0.02em;
}

.zhuim-install-box p {
    margin: 0;
    color: var(--zhuim-muted);
}

.zhuim-code {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #0b1220;
    color: #d7e3ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

/* ---------- Footer ---------- */
.zhuim-footer {
    border-top: 1px solid var(--zhuim-line);
    background: #fff;
    padding: 28px 0;
}

.zhuim-footer .zhuim-container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--zhuim-muted);
    font-size: 13px;
}

.zhuim-footer a:hover {
    color: var(--zhuim-brand);
}

/* ---------- Motion ---------- */
@keyframes zhuimRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes zhuimFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 960px) {
    .zhuim-nav-links {
        gap: 16px;
    }

    .zhuim-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 108px;
        padding-bottom: 40px;
    }

    .zhuim-hero-visual {
        min-height: 300px;
        order: -1;
        animation: none;
    }

    .zhuim-mock {
        position: relative;
        inset: auto;
        height: 300px;
        border-radius: 14px;
        transform: none;
    }

    .zhuim-feature-list,
    .zhuim-scene-grid,
    .zhuim-install-box {
        grid-template-columns: 1fr;
    }

    .zhuim-feature {
        padding-right: 0;
    }
}

@media (max-width: 560px) {
    .zhuim-container,
    .zhuim-hero-inner {
        width: calc(100% - 32px);
    }

    .zhuim-mock {
        grid-template-columns: 1fr;
    }

    .zhuim-mock-side {
        display: none;
    }

    .zhuim-hero-actions {
        width: 100%;
    }

    .zhuim-btn {
        flex: 1;
    }
}
