/**
 * 首页 Banner + 指标条 — 对齐 demo/src/app/pages/HomePage.tsx
 * · Hero Dark：约 L101–237（背景图 / 渐变 / 光斑 / 左侧文案 / 右侧多设备 mockup）
 * · Trust Stats Bar：约 L239–251
 */

/* ========== Hero Dark（与 HomePage section 一致） ========== */
.demo-home-hero-dark {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 96px 0 64px;
    background: #0f172a;
}

@media (min-width: 1024px) {
    .demo-home-hero-dark {
        padding: 128px 0 96px;
    }
}

/* 背景摄影 + 混合 */
.demo-home-hero-dark__bg-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;
    mix-blend-mode: screen;
    background-image: url("https://images.unsplash.com/photo-1760978631939-32968f2e1813?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&w=2000");
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.demo-home-hero-dark__bg-grad {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        to bottom right,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(11, 17, 33, 0.9) 45%,
        rgba(15, 23, 42, 0.95) 100%
    );
    pointer-events: none;
}

.demo-home-hero-dark__blob {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

.demo-home-hero-dark__blob--tr {
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: rgba(37, 99, 235, 0.2);
    filter: blur(120px);
    transform: translateY(-50%) translateX(33.333%);
}

.demo-home-hero-dark__blob--bl {
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.15);
    filter: blur(100px);
    transform: translateY(33.333%) translateX(-25%);
}

.demo-home-hero-dark__blob--tl {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.15);
    filter: blur(100px);
}

.demo-home-hero-dark__inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .demo-home-hero-dark__inner {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .demo-home-hero-dark__inner {
        flex-direction: row;
        align-items: center;
        gap: 64px;
    }
}

/* 左侧 */
.demo-home-hero-dark__left {
    width: 100%;
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
}

@media (min-width: 1024px) {
    .demo-home-hero-dark__left {
        flex: 0 0 60%;
        max-width: 60%;
    }
}

/* Kicker：bg-white/5 border-white/10 text-blue-300 */
.demo-home-hero-dark__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 24px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.demo-home-hero-dark__kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.8);
    flex-shrink: 0;
    animation: demo-home-hero-kicker-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
    .demo-home-hero-dark__kicker-dot {
        animation: none;
    }
}

@keyframes demo-home-hero-kicker-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.demo-home-hero-dark__kicker-text {
    font-family: var(--bs-font-sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: #93c5fd;
}

/* H1 白字 + 渐变行 */
.demo-home-hero-dark__h1 {
    margin: 0 0 20px;
    padding: 0;
    font-family: var(--bs-font-sans-serif);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #ffffff;
}

@media (min-width: 768px) {
    .demo-home-hero-dark__h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .demo-home-hero-dark__h1 {
        font-size: 64px;
    }
}

.demo-home-hero-dark__h1-gradient {
    display: inline;
    background: linear-gradient(to right, #60a5fa, #818cf8, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.demo-home-hero-dark__lead {
    margin: 0 0 32px;
    max-width: 36rem;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: #cbd5e1;
    font-family: var(--bs-font-sans-serif);
}

/* 按钮区 */
.demo-home-hero-dark__btns {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .demo-home-hero-dark__btns {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}

.demo-home-hero-dark__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 32px;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    font-family: var(--bs-font-sans-serif);
}

@media (min-width: 640px) {
    .demo-home-hero-dark__btn {
        width: auto;
    }
}

.demo-home-hero-dark__btn-ico {
    font-size: 16px;
    line-height: 1;
    font-family: FontAwesome !important;
    transition: transform 0.15s ease;
}

.demo-home-hero-dark__btn--primary {
    background: #2563eb;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.demo-home-hero-dark__btn--primary:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.demo-home-hero-dark__btn--primary:hover .demo-home-hero-dark__btn-ico {
    transform: translateX(4px);
}

.demo-home-hero-dark__btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.demo-home-hero-dark__btn--ghost .demo-home-hero-dark__btn-ico--phone {
    color: #60a5fa;
}

.demo-home-hero-dark__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ========== 右侧设备组（lg+） ========== */
.demo-home-hero-dark__right {
    display: none;
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 500px;
    flex-shrink: 0;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .demo-home-hero-dark__right {
        display: block;
    }
}

.demo-home-hero-dark__browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 20px;
    padding: 0 12px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.demo-home-hero-dark__browser-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
}

.demo-home-hero-dark__browser-bar--sm {
    height: 16px;
    padding: 0 8px;
    gap: 4px;
}

.demo-home-hero-dark__browser-bar--sm span {
    width: 6px;
    height: 6px;
}

.demo-home-hero-dark__screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #0f172a;
    overflow: hidden;
}

.demo-home-hero-dark__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    display: block;
}

.demo-home-hero-dark__device-frame {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 8px;
    padding-bottom: 16px;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

/* 显示器 */
.demo-home-hero-dark__monitor {
    position: absolute;
    left: 52%;
    transform: translateX(-50%);
    top: 16px;
    width: 500px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-home-hero-dark__device-frame--monitor {
    width: 100%;
}

.demo-home-hero-dark__monitor-stand {
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.demo-home-hero-dark__monitor-base {
    width: 128px;
    height: 8px;
    background: #334155;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* 笔记本 */
.demo-home-hero-dark__laptop {
    position: absolute;
    left: -24px;
    bottom: 40px;
    width: 380px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-home-hero-dark__device-frame--laptop {
    width: 340px;
    border-radius: 12px 12px 0 0;
    padding-bottom: 12px;
    border: 1px solid #1e293b;
    border-bottom: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.demo-home-hero-dark__screen--sm {
    border-radius: 4px;
}

.demo-home-hero-dark__laptop-base {
    width: 380px;
    height: 12px;
    background: linear-gradient(to bottom, #94a3b8, #64748b);
    border-radius: 4px 4px 12px 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    position: relative;
}

.demo-home-hero-dark__laptop-base::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 0 0 6px 6px;
}

/* 平板 */
.demo-home-hero-dark__tablet {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 260px;
    z-index: 20;
}

.demo-home-hero-dark__device-frame--tablet {
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid #1e293b;
}

.demo-home-hero-dark__screen--tablet {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

/* 手机 */
.demo-home-hero-dark__phone {
    position: absolute;
    left: 62%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 110px;
    z-index: 30;
}

.demo-home-hero-dark__phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 12px;
    background: #000;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    pointer-events: none;
}

.demo-home-hero-dark__device-frame--phone {
    position: relative;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
}

.demo-home-hero-dark__screen--phone {
    aspect-ratio: 1 / 2.1;
    border-radius: 14px;
}

/* ---- Trust Stats Bar（HomePage L239–251） ---- */
.demo-pencil-hero-statbar {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    padding: 48px 0;
}

.demo-pencil-statbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .demo-pencil-statbar-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 0 32px;
    }
}

.demo-pencil-stat-item {
    text-align: center;
}

.demo-pencil-stat-item .num {
    font-family: var(--bs-font-sans-serif);
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #2563eb;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .demo-pencil-stat-item .num {
        font-size: 40px;
    }
}

.demo-pencil-stat-item .label {
    font-family: var(--bs-font-sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.43;
    color: #64748b;
}
