:root {
    --bg: #18120f;
    --surface: rgba(255, 255, 255, 0.08);
    --text: #fff7eb;
    --muted: rgba(255, 247, 235, 0.72);
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    --max-width: 460px;
    --design-width: 392px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(255, 206, 120, 0.18), transparent 24%),
        linear-gradient(180deg, #32231d 0%, #1f1713 32%, #130f0d 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
        radial-gradient(circle at 20% 15%, rgba(246, 187, 85, 0.16), transparent 18%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.08), transparent 14%);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    -webkit-user-drag: none;
}

.app-shell {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
}

.phone-stage {
    position: relative;
    width: min(100%, var(--design-width));
    max-width: var(--design-width);
    margin: 0 auto;
    padding: 10px 8px 12px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 219, 172, 0.28), transparent 24%),
        radial-gradient(circle at 50% 60%, rgba(255, 179, 56, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%, rgba(0, 0, 0, 0.2) 100%);
    filter: blur(2px);
    transform: scale(1.03);
}

.site-header,
.hero-gallery,
.content-group,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    padding-top: 0;
}

.header-main {
    display: block;
}

.brand-pill {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    width: 100%;
    padding: 8px 10px;
    min-height: 72px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(20, 21, 25, 0.9), rgba(14, 15, 18, 0.9)),
        linear-gradient(120deg, rgba(255, 194, 100, 0.12), rgba(255, 194, 100, 0));
    border: 1px solid rgba(255, 200, 120, 0.2);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.brand-pill__logo {
    grid-row: 1 / span 2;
    position: relative;
    isolation: isolate;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-image: url('images/logo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 230, 180, 0.26);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.brand-pill__logo::before {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: 16px;
    pointer-events: none;
    padding: 2px;
    background: conic-gradient(
        from 180deg,
        rgba(255, 118, 160, 0.75),
        rgba(255, 210, 116, 0.75),
        rgba(118, 236, 255, 0.75),
        rgba(145, 138, 255, 0.75),
        rgba(255, 118, 160, 0.75)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    box-shadow: 0 0 5px rgba(255, 145, 170, 0.2), 0 0 5px rgba(118, 230, 255, 0.2);
}

.brand-pill__logo::after {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: 16px;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0) 22%, rgba(255, 248, 214, 0.95) 48%, rgba(255, 255, 255, 0) 76%) top left / 220% 2px no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0) 22%, rgba(208, 251, 255, 0.9) 48%, rgba(255, 255, 255, 0) 76%) top right / 2px 220% no-repeat,
        linear-gradient(270deg, rgba(255, 255, 255, 0) 22%, rgba(255, 240, 210, 0.92) 48%, rgba(255, 255, 255, 0) 76%) bottom right / 220% 2px no-repeat,
        linear-gradient(0deg, rgba(255, 255, 255, 0) 22%, rgba(216, 233, 255, 0.9) 48%, rgba(255, 255, 255, 0) 76%) bottom left / 2px 220% no-repeat;
    filter: drop-shadow(0 0 3px rgba(255, 244, 207, 0.35));
    animation: logo-marquee-flow 3.2s linear infinite;
}

@keyframes logo-marquee-flow {
    0% {
        background-position: -120% 0, 100% -120%, 220% 100%, 0 220%;
    }

    100% {
        background-position: 220% 0, 100% 220%, -120% 100%, 0 -120%;
    }
}

.brand-pill__headline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    line-height: 1;
}

.brand-pill__headline strong {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.34rem, 5.2vw, 2.05rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-pill__headline em {
    margin: 0;
    padding: 5px 9px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f3b464, #e99940);
    color: #27180c;
    font-size: clamp(0.94rem, 3.5vw, 1.34rem);
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.brand-pill__subline {
    display: block;
    width: 100%;
    padding: 5px 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 194, 110, 0.48);
    color: #f4b369;
    font-size: clamp(0.76rem, 2.7vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.28em;
    text-align: center;
}

.hero-gallery {
    display: block;
    margin-top: 10px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 260px;
    min-height: 260px;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    touch-action: pan-y;
    user-select: none;
    padding: 0 12px;
    perspective: 1200px;
}

.hero-carousel::before,
.hero-carousel::after {
    content: none;
}

.hero-carousel::-webkit-scrollbar {
    display: none;
}

.hero-carousel__track {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 16px;
    will-change: transform;
}

.hero-slide {
    flex: 0 0 calc(100% - 112px);
    min-height: 260px;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    border-radius: 30px;
    overflow: hidden;
    transform: scale(0.84);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 320ms ease, box-shadow 320ms ease, filter 320ms ease;
    filter: brightness(0.94) saturate(0.95);
}

.hero-slide.is-neighbor {
    transform: scale(0.84) translateY(4px);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.22);
    filter: brightness(0.92) saturate(0.92);
}

.hero-slide.is-current {
    transform: scale(1);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.34),
        0 4px 10px rgba(0, 0, 0, 0.22);
    filter: brightness(1) saturate(1.02);
}

.hero-slide__media {
    position: absolute;
    inset: 0;
    background-image: var(--slide-image, linear-gradient(135deg, #7a6456 0%, #e5cdb2 32%, #4f4038 60%, #271c18 100%));
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-slide__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 26%, rgba(0, 0, 0, 0.62) 100%),
        radial-gradient(circle at 50% 18%, rgba(255, 215, 160, 0.36), transparent 18%);
}

.hero-slide__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.22));
}

.thumb-card__tag {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    font-size: 11px;
    font-weight: 700;
}

.content-group {
    margin-top: 10px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 360px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.section-title__bar {
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe066, #f6a205);
}

.section-title h2 {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 247, 235, 0.96);
}

.thumb-strip {
    display: grid;
    gap: 10px;
}

.thumb-strip--wide {
    grid-template-columns: repeat(4, 1fr);
}

#latest .latest-scroller {
    overflow: hidden;
    contain: content;
    touch-action: pan-y;
    user-select: none;
}

#latest .thumb-strip--wide {
    display: flex;
    width: max-content;
    will-change: transform;
    gap: 6px;
    touch-action: pan-y;
    user-select: none;
}

#latest .thumb-card--wide {
    flex: 0 0 clamp(110px, 28vw, 140px);
    aspect-ratio: 1.58;
}

.featured-scroller {
    overflow: hidden;
    contain: content;
    touch-action: pan-y;
    user-select: none;
}

.featured-scroller .thumb-strip--mini {
    display: flex;
    width: max-content;
    will-change: transform;
    gap: 6px;
    touch-action: pan-y;
    user-select: none;
}

.featured-scroller .thumb-card--mini {
    flex: 0 0 clamp(110px, 28vw, 140px);
    aspect-ratio: 1.58;
}

.thumb-strip--mini {
    grid-template-columns: repeat(5, 1fr);
}

.thumb-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-image: var(--thumb-image, linear-gradient(135deg, #734035, #c28f6a, #4f3229));
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.thumb-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 32%, rgba(0, 0, 0, 0.5));
}

.site-footer {
    margin-top: 10px;
    padding: 4px 0 2px;
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 247, 235, 0.52);
    font-size: 11px;
}

.bottom-bar {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    margin: 8px auto calc(10px + env(safe-area-inset-bottom));
    padding: 0 4px;
    background: transparent;
}

.site-footer .bottom-bar {
    width: 100%;
    margin: 0;
    padding: 0 6px;
}

.bottom-bar__button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    touch-action: manipulation;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.bottom-bar__button span {
    font-size: 15px;
}

.bottom-bar__button small {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.72;
}

.bottom-bar__button--light,
.bottom-bar__button--primary {
    color: #231300;
    background: linear-gradient(180deg, #ffc62e, #f7a600);
}

.bottom-bar__button--image {
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.bottom-bar__button--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .app-shell {
        padding-top: 24px;
    }

    .phone-stage {
        width: 430px;
    }

    .bottom-bar {
        width: min(100%, var(--max-width));
        transform: none;
    }
}

@media (max-width: 390px) {
    .brand-pill {
        grid-template-columns: 56px 1fr;
        padding: 8px;
        min-height: 68px;
    }

    .brand-pill__logo {
        width: 52px;
        height: 52px;
        border-radius: 11px;
    }

    .brand-pill__headline {
        gap: 5px;
    }

    .brand-pill__headline em {
        padding: 4px 7px;
    }

    .brand-pill__subline {
        letter-spacing: 0.16em;
    }

    .hero-carousel {
        min-height: 230px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .app-shell {
        padding: 0;
    }

    .phone-stage {
        width: 100%;
        max-width: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .bottom-bar,
    .site-footer .bottom-bar {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    body::before {
        position: absolute;
    }

    .hero-backdrop {
        filter: none;
        transform: none;
    }

    .brand-pill {
        backdrop-filter: none;
    }

    .phone-stage {
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    }

    .thumb-card {
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .hero-slide {
        transition: none;
    }

    .brand-pill__logo::before {
        animation: none;
    }

    .brand-pill__logo::after {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
