:root {
    --bg: #080808;
    --surface: #111;
    --border: #2a2a2a;
    --text: #e8e8e8;
    --muted: #888;
    --gold: #c9a962;
    --gold-dim: rgba(201, 169, 98, 0.14);
    --font: 'Inter', system-ui, -apple-system, 'Microsoft YaHei', sans-serif;
    --shell-max: min(1440px, 100%);
}

html { color-scheme: dark; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body.page-home {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

.home-shell {
    width: var(--shell-max);
    margin: 0 auto;
    padding: 24px 28px 48px;
}

/* 顶栏：居中品牌 + 右侧语言 */
.home-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.home-top__spacer { min-height: 1px; }

.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.brand-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.brand-lotus {
    width: 48px;
    height: 48px;
    display: block;
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

.lang-switch {
    justify-self: end;
    display: flex;
    gap: 6px;
}

.lang-switch__btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.lang-switch__btn:hover {
    border-color: var(--gold);
    color: #fff;
}

.lang-switch__btn.is-active {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
}

/* 公告 */
.home-announce {
    margin-top: 16px;
    padding: 12px 16px;
    text-align: center;
    background: var(--gold-dim);
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: 8px;
}

.home-announce__text {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--gold);
    line-height: 1.6;
}

.home-announce__link {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none;
}

/* 介绍 */
.home-intro {
    margin-top: 28px;
}

.home-intro__title,
.home-stores__title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.home-intro__body {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: #c4c4c4;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

.home-intro__lead {
    color: #f2f2f2;
    font-size: 15px;
}

.home-intro__text {
    margin-top: 10px;
}

.home-intro__points {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.home-intro__points li {
    position: relative;
    padding-left: 14px;
    margin-top: 8px;
}

.home-intro__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

/* 双店 */
.home-stores {
    margin-top: 32px;
}

.home-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.home-frame__banner {
    margin: 0;
    padding: 16px 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--gold);
    border-bottom: 1px solid var(--border);
}

.home-frame__shots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 20px 20px;
}

.home-frame__shots .store-card__shot {
    border: 0;
    border-radius: 8px;
    cursor: default;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.home-frame__shots .store-card__shot:has(.store-card__shot-img[src]:not([src=""])) {
    aspect-ratio: auto;
    min-height: 0;
    overflow: visible;
    cursor: default;
}

.home-frame__shots .store-card__shot-img,
.home-frame__shots .store-card__shot:has(.store-card__shot-img[src]:not([src=""])) .store-card__shot-img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.home-frame__shots .store-card__shot + .store-card__shot {
    border: 0;
    margin-top: 12px;
}

.store-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.store-card__name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
}

.store-card__new {
    font-size: 12px;
    color: var(--muted);
}

.store-card__new strong {
    color: var(--gold);
    margin-left: 4px;
}

.store-card__shot {
    width: 100%;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0a0a0a;
    display: block;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s;
    text-align: left;
}

.store-card__shot:has(.store-card__shot-img[src]:not([src=""])) {
    cursor: zoom-in;
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 120px;
    overflow: hidden;
}

.store-card__shot:has(.store-card__shot-img[src]:not([src=""])) .store-card__shot-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

.store-card__shot-img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.store-card__shot-img:not([src]),
.store-card__shot-img[src=""] {
    display: none;
}

.store-card__shot:has(.store-card__shot-img[src]:not([src=""])) .store-card__shot-label {
    display: none;
}

.store-card__veil {
    display: none;
}

.store-card__shot:has(.store-card__shot-img[src]:not([src=""])) .store-card__veil {
    display: none;
}

.store-card__shot:not(:has(.store-card__shot-img[src]:not([src=""]))) {
    aspect-ratio: 16 / 10;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
}

.store-card__shot:hover {
    border-color: var(--gold);
}

.store-card__shot-label {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #333;
}

.home-stock-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 4px 0 28px;
}

.btn-store {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-store--gold {
    background: linear-gradient(180deg, #e4c98a 0%, #c4a15a 48%, #a6843d 100%);
    color: #1a1408;
    border: none;
}

.btn-store--gold:hover { filter: brightness(1.06); }

.btn-store--outline {
    background: #0c0c0c;
    color: #d7c29a;
    border: 1px solid rgba(201, 169, 98, 0.55);
}

.btn-store--outline:hover {
    background: #161410;
    border-color: #e4c98a;
    color: #f3e6c4;
}

.home-footer {
    margin-top: 36px;
    text-align: center;
}

.home-footer__link {
    font-size: 13px;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 98, 0.35);
}

.home-footer__link:hover { color: #fff; }

.shot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    flex-direction: column;
    background: rgba(4, 4, 4, 0.94);
    backdrop-filter: blur(6px);
    padding: 52px 16px 20px;
    box-sizing: border-box;
}

.shot-lightbox.is-open {
    display: flex;
    padding: 48px 12px 12px;
}

.shot-lightbox__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.shot-lightbox__close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.shot-lightbox__title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.shot-lightbox__scroll {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

body.shot-lightbox-open {
    overflow: hidden;
}

.shot-lightbox__img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
    cursor: zoom-out;
}

@media (max-width: 760px) {
    .home-shell { padding: 16px 14px 36px; }

    .home-top {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .home-top__spacer { display: none; }

    .lang-switch {
        justify-self: center;
        order: -1;
    }

    .brand-title { font-size: 22px; letter-spacing: 0.14em; }
    .brand-tagline { letter-spacing: 0.08em; font-size: 10px; }

    .home-announce { padding: 10px 12px; }
    .home-announce__text {
        font-size: 12px;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .home-stores { margin-top: 20px; }

    .home-stock-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    .btn-store {
        height: auto;
        min-height: 46px;
        padding: 10px 12px;
        font-size: 14px;
        letter-spacing: 0.04em;
        text-align: center;
    }

    .home-frame__banner {
        white-space: normal;
        font-size: 13px;
        line-height: 1.45;
        padding: 12px;
    }

    .home-frame__shots { padding: 12px; }
}

@media (min-width: 1600px) {
    :root { --shell-max: 1520px; }
}
