/**
 * SoftIP · 首页门户（品牌先行 · 铁路蓝）
 */
#view-home.cupertino-home {
    --home-ink: #0c1a2e;
    --home-muted: #5a6a7e;
    --home-line: rgba(26, 75, 140, 0.12);
    --home-rail: #1a4b8c;
    --home-rail-deep: #0f3460;
    --home-surface: rgba(255, 255, 255, 0.78);
    --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background: #eef3f9;
}
#view-home.cupertino-home.active { display: block !important; }
.home-portal {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--header-h, 56px));
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.home-atmosphere { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.home-atmosphere-wash {
    position: absolute; inset: -20% -10% auto; height: 72vh;
    background:
        radial-gradient(ellipse 80% 55% at 18% 18%, rgba(26, 75, 140, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 45% at 88% 8%, rgba(201, 162, 39, 0.12), transparent 55%),
        linear-gradient(180deg, #dfe8f4 0%, #eef3f9 52%, #f5f7fb 100%);
}
.home-atmosphere-rail {
    position: absolute; left: -5%; right: -5%; top: 42%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26,75,140,.22) 18%, rgba(201,162,39,.35) 50%, rgba(26,75,140,.22) 82%, transparent);
    transform: rotate(-4deg);
}
.home-atmosphere-glow {
    position: absolute; width: 420px; height: 420px; right: -80px; top: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.55), transparent 68%);
    animation: homeGlowDrift 14s var(--home-ease) infinite alternate;
}
@keyframes homeGlowDrift {
    from { transform: translate3d(0,0,0) scale(1); }
    to { transform: translate3d(-36px,28px,0) scale(1.08); }
}
.home-hero {
    position: relative; z-index: 1; padding: 48px 8px 8px; max-width: 720px;
    animation: homeHeroIn .85s var(--home-ease) both;
}
@keyframes homeHeroIn {
    from { opacity: 0; transform: translate3d(0, 22px, 0); }
    to { opacity: 1; transform: none; }
}
.home-hero-eyebrow {
    margin: 0 0 14px; font-size: 12px; font-weight: 650;
    letter-spacing: .14em; text-transform: uppercase; color: var(--home-rail);
}
.home-hero-brand { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.home-hero-brand-cn {
    font-size: clamp(42px, 7vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--home-rail-deep) 0%, var(--home-rail) 55%, #2a6bb8 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-hero-brand-en {
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--home-muted);
}
.home-hero-lead {
    margin: 22px 0 0; max-width: 34em; font-size: 17px; line-height: 1.65; color: var(--home-muted);
}
.home-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-cta {
    appearance: none; border: none; cursor: pointer; font-size: 15px; font-weight: 700;
    padding: 13px 22px; border-radius: 999px;
    transition: transform .2s var(--home-ease), box-shadow .2s ease, background .2s ease;
}
.home-cta-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--home-rail-deep), var(--home-rail));
    box-shadow: 0 10px 28px rgba(26, 75, 140, .28);
}
.home-cta-primary:hover { transform: translateY(-1px); }
.home-cta-ghost {
    color: var(--home-rail); background: rgba(255,255,255,.72);
    border: 1px solid var(--home-line); backdrop-filter: blur(12px);
}
.home-hero-path {
    margin: 22px 0 0; font-size: 13px; font-weight: 650;
    letter-spacing: .18em; color: rgba(26,75,140,.55);
}
.home-directions { position: relative; z-index: 1; animation: homeHeroIn .9s var(--home-ease) .12s both; }
.home-directions-head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
    gap: 8px 16px; margin-bottom: 16px; padding: 0 4px;
}
.home-directions-title { margin: 0; font-size: 20px; font-weight: 750; color: var(--home-ink); }
.home-directions-sub { margin: 0; font-size: 13px; color: var(--home-muted); }
#view-home.cupertino-home[data-home-mode="simple"] .home-portal {
    width: 100%;
    max-width: 1120px;
    min-height: calc(100vh - var(--header-h, 56px));
    padding: 28px 28px 48px;
    gap: 36px;
    justify-content: flex-start;
    box-sizing: border-box;
}
#view-home .home-widget-panel {
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
#view-home .home-band-catalog {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}
#view-home .home-band-catalog-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 118px;
    padding: 20px 16px;
    border: 1px dashed var(--home-line, rgba(15, 52, 96, 0.12));
    border-radius: var(--radius, 16px);
    background: var(--home-surface, rgba(255, 255, 255, 0.72));
    text-align: center;
}
#view-home .home-band-catalog-state-msg {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, #5a6b7d);
}
#view-home .home-band-catalog-retry {
    appearance: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-pill, 999px);
    border: 1px solid var(--home-line, rgba(15, 52, 96, 0.16));
    background: var(--home-surface, #fff);
    color: var(--home-rail-deep, #1a4b8c);
}
#view-home .home-band-catalog-retry:hover,
#view-home .home-band-catalog-retry:focus-visible {
    border-color: var(--home-rail, #2d6cb5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 108, 181, 0.18);
}
#view-home .home-band-catalog .home-band-primary-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100%;
}
#view-home .home-band-primary {
    position: relative;
    overflow: hidden;
    appearance: none;
    font-family: inherit;
    color: inherit;
    border: 1px solid var(--home-line);
    background: var(--home-surface);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-radius: var(--radius, 16px);
    padding: 18px 18px !important;
    min-height: 118px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(15, 52, 96, 0.06);
    transition:
        transform 0.25s var(--home-ease),
        box-shadow 0.25s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}
#view-home .home-band-primary::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--home-rail-deep), var(--home-rail), #4a90d9);
    opacity: 0;
    transition: opacity 0.2s ease;
}
#view-home .home-band-primary:hover,
#view-home .home-band-primary:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(26, 75, 140, 0.32);
    box-shadow: 0 16px 40px rgba(15, 52, 96, 0.12);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}
#view-home .home-band-primary:hover::before,
#view-home .home-band-primary:focus-visible::before,
#view-home .home-band-primary.is-open::before {
    opacity: 1;
}
#view-home .home-band-primary.is-open,
#view-home .home-band-primary.is-open:focus-visible {
    border-color: rgba(26, 75, 140, 0.42);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.12), 0 12px 32px rgba(15, 52, 96, 0.1);
}
#view-home .home-band-primary-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
    color: var(--home-rail) !important;
    background: linear-gradient(160deg, #e8f1fb, #f7fafc) !important;
    border: 1px solid rgba(26, 75, 140, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    animation: none !important;
}
#view-home .home-band-primary-icon svg {
    width: 22px;
    height: 22px;
    animation: none !important;
}
#view-home .home-band-primary-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
#view-home .home-band-primary-title {
    font-size: 17px !important;
    font-weight: 750 !important;
    letter-spacing: -0.02em;
    line-height: 1.25 !important;
    color: var(--home-ink) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#view-home .home-band-primary-blurb {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: var(--home-muted) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
#view-home .home-band-primary-meta {
    margin-top: 2px !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    color: rgba(26, 75, 140, 0.72) !important;
}
#view-home .home-band-primary-cta {
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    color: var(--home-rail) !important;
    background: rgba(26, 75, 140, 0.1) !important;
    box-shadow: inset 0 0 0 1px rgba(26, 75, 140, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
}
#view-home .home-band-primary:hover .home-band-primary-cta {
    transform: translateX(2px);
    background: rgba(26, 75, 140, 0.14) !important;
}
#view-home .home-footer {
    margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 18px;
    justify-content: space-between; font-size: 12px; color: var(--home-muted);
    border-top: 1px solid var(--home-line);
}
#view-home .home-footer-link {
    appearance: none; border: none; background: none; color: var(--home-rail);
    font: inherit; font-weight: 650; cursor: pointer; padding: 0;
}
@media (max-width: 900px) {
    .home-hero-brand-cn { font-size: clamp(36px, 9vw, 56px); }
    .home-hero-lead { font-size: 16px; }
}
@media (max-width: 768px) {
    .home-portal {
        padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(28px, env(safe-area-inset-bottom, 0px));
        gap: 28px;
    }
    #view-home.cupertino-home[data-home-mode="simple"] .home-portal {
        width: calc(100% - 32px);
        padding-left: 16px;
        padding-right: 16px;
    }
    .home-hero { padding-top: 12px; padding-left: 0; padding-right: 0; }
    .home-hero-cta { width: 100%; }
    .home-cta { flex: 1 1 auto; justify-content: center; min-width: 0; }
    .home-directions-head { padding: 0; }
    #view-home .home-band-catalog .home-band-primary-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    #view-home .home-band-primary {
        min-height: 104px !important;
        padding: 16px !important;
    }
    #view-home .home-band-primary-blurb {
        -webkit-line-clamp: 1;
    }
    #view-home .home-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
@media (max-width: 420px) {
    .home-hero-brand-en { font-size: 11px; letter-spacing: 0.05em; }
    .home-directions-title { font-size: 18px; }
    #view-home .home-band-primary-title { font-size: 16px !important; }
    .home-atmosphere-glow {
        width: min(72vw, 300px);
        height: min(72vw, 300px);
        right: -48px;
    }
    .home-atmosphere-wash {
        inset: -12% -6% auto;
    }
}
