/* ── 首页：浅色 Bento（与 ticket_public 色调一致）── */
.home-page {
    --home-bg-a: #eef4fb;
    --home-bg-b: #f8f9fc;
    --home-bg-c: #f3f6fa;
    --home-surface: #ffffff;
    --home-border: rgba(15, 45, 80, 0.08);
    --home-text: #1a2b3c;
    --home-muted: #6c757d;
    --home-accent: #0d6efd;
    --home-accent-dark: #0a58ca;
    --home-accent-soft: #eef4ff;
    --home-navy: #1a3a5c;
    --home-glow: rgba(13, 110, 253, 0.18);

    min-height: 100vh;
    background: linear-gradient(160deg, var(--home-bg-a) 0%, var(--home-bg-b) 45%, var(--home-bg-c) 100%);
    color: var(--home-text);
    font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

/* 导航栏保持站点默认深色，与内页一致 */
.home-page .navbar {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 背景柔光 */
.home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: home-float 20s ease-in-out infinite;
}

.home-orb-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -60px;
    opacity: 0.9;
}

.home-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(134, 183, 254, 0.2) 0%, transparent 70%);
    bottom: -80px;
    left: -40px;
    animation-delay: -7s;
    opacity: 0.85;
}

.home-orb-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(207, 226, 255, 0.55) 0%, transparent 70%);
    top: 40%;
    left: 42%;
    animation-delay: -14s;
    opacity: 0.7;
}

@keyframes home-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.04); }
    66% { transform: translate(-16px, 12px) scale(0.97); }
}

.home-shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.25rem 1.5rem 2rem;
}

/* 品牌区 */
.home-brand {
    margin-bottom: 2rem;
}

.home-brand h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--home-navy);
}

.home-brand h1 .home-gradient-text {
    background: linear-gradient(120deg, var(--home-navy) 0%, var(--home-accent) 55%, #4dabf7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento */
.home-bento {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

.home-glass {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 45, 80, 0.08);
}

.home-bento-login {
    grid-row: span 2;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.home-panel-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.home-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--home-navy);
    letter-spacing: -0.02em;
}

.home-panel-sub {
    font-size: 0.8125rem;
    color: var(--home-muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* 登录表单 */
.home-login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-field {
    margin-bottom: 1rem;
}

.home-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.4rem;
}

.home-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: var(--home-text);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-field input::placeholder {
    color: #adb5bd;
}

.home-field input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.home-login-alert {
    border-radius: 10px;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #f5c2c7;
    background: #f8d7da;
    color: #842029;
}

.home-btn-primary {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--home-accent) 0%, var(--home-accent-dark) 100%);
    box-shadow: 0 4px 14px var(--home-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.25rem;
}

.home-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.28);
}

.home-btn-ghost {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.6rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    color: var(--home-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.home-btn-ghost:hover {
    color: var(--home-accent);
    border-color: #cfe2ff;
    background: var(--home-accent-soft);
}

/* 报修区 */
.home-bento-ticket {
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-bento-ticket::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.home-ticket-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.home-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #e9ecef;
    background: #f8f9fb;
    color: var(--home-text);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.home-action-card:hover {
    transform: translateX(4px);
    border-color: #cfe2ff;
    background: #fff;
    color: var(--home-navy);
    box-shadow: 0 6px 20px rgba(15, 45, 80, 0.07);
}

.home-action-card.featured {
    border-color: #cfe2ff;
    background: linear-gradient(135deg, #f0f6ff 0%, #eef4ff 100%);
}

.home-action-card.featured:hover {
    border-color: #86b7fe;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
}

.home-action-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: #fff;
    color: var(--home-accent);
    border: 1px solid #e9ecef;
}

.home-action-card.featured .home-action-icon {
    background: linear-gradient(135deg, var(--home-accent), #4dabf7);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.home-action-text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
}

.home-action-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--home-muted);
    margin-top: 0.15rem;
}

.home-action-arrow {
    margin-left: auto;
    color: #adb5bd;
    font-size: 1.1rem;
    transition: transform 0.2s, color 0.2s;
}

.home-action-card:hover .home-action-arrow {
    transform: translateX(4px);
    color: var(--home-accent);
}

/* 二维码 */
.home-qr-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    min-width: 190px;
    box-shadow: 0 4px 16px rgba(15, 45, 80, 0.06);
}

.home-qr-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #eef2f6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.home-qr-frame img {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
}

.home-qr-label {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--home-navy);
    line-height: 1.4;
}

.home-qr-label i {
    color: var(--home-accent);
    margin-right: 0.2rem;
}

.home-qr-link {
    display: block;
    font-size: 0.6875rem;
    color: #94a3b8;
    text-decoration: none;
    word-break: break-all;
    line-height: 1.4;
    max-width: 180px;
    margin: 0 auto;
}

.home-qr-link:hover {
    color: var(--home-accent);
    text-decoration: underline;
}

/* 特性条 */
.home-bento-features {
    grid-column: 2;
    padding: 1.1rem 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
}

.home-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #495057;
}

.home-feature i {
    font-size: 1rem;
    color: var(--home-accent);
}

.home-footer-beian {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.25rem 1rem 1.75rem;
}

.home-footer-beian a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.75rem;
}

.home-footer-beian a:hover {
    color: #64748b;
}

@media (max-width: 991px) {
    .home-bento {
        grid-template-columns: 1fr;
    }

    .home-bento-login {
        grid-row: auto;
    }

    .home-bento-features {
        grid-column: 1;
    }

    .home-bento-ticket {
        grid-template-columns: 1fr;
    }

    .home-qr-card {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .home-shell {
        padding: 1.25rem 1rem 1.5rem;
    }

    .home-brand h1 {
        font-size: 1.85rem;
    }

    .home-bento-login,
    .home-bento-ticket,
    .home-bento-features {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-orb {
        animation: none;
    }

    .home-action-card:hover,
    .home-btn-primary:hover {
        transform: none;
    }
}
