:root {
    color-scheme: dark;
    --bg-0: #040816;
    --surface-1: rgba(10, 16, 30, 0.72);
    --surface-2: rgba(255, 255, 255, 0.04);
    --surface-3: rgba(255, 255, 255, 0.08);
    --border-1: rgba(255, 255, 255, 0.08);
    --border-2: rgba(255, 255, 255, 0.16);
    --text-1: rgba(245, 247, 255, 0.96);
    --text-2: rgba(226, 232, 255, 0.72);
    --text-3: rgba(226, 232, 255, 0.46);
    --brand: #f1c46b;
    --accent: #8fb6ff;
    --container-max: 1700px;
    --container-pad: clamp(20px, 3vw, 40px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    background: var(--bg-0);
    color: var(--text-1);
    text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

img,
video {
    display: block;
    max-width: 100%;
}

.page-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.site-shell {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(108, 119, 255, 0.16), transparent 28%),
        radial-gradient(circle at 80% 24%, rgba(111, 233, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #040816 0%, #030611 55%, #05070d 100%);
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(180px);
    opacity: 0.85;
}

.ambient--left {
    width: 26rem;
    height: 26rem;
    top: 14%;
    left: 8%;
    background: rgba(108, 119, 255, 0.16);
}

.ambient--right {
    width: 28rem;
    height: 28rem;
    top: 18%;
    right: 6%;
    background: rgba(111, 233, 255, 0.12);
}

.ambient--bottom {
    width: 22rem;
    height: 22rem;
    bottom: 4%;
    left: 24%;
    background: rgba(255, 139, 220, 0.12);
}

.site-grid {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-1);
    background: rgba(4, 8, 22, 0.78);
    backdrop-filter: blur(28px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 16px;
}

.brand-button,
.nav-pill,
.manage-button,
.mobile-menu-button,
.action-pill,
.filter-chip,
.back-to-top,
.collection-card,
.wallpaper-card,
.hero-stage__nav,
.preview-toolbar button,
.preview-arrow,
.prompt-head button {
    border: 0;
    color: inherit;
    background: transparent;
}

.brand-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 18px;
    color: #0b1020;
    background: linear-gradient(135deg, #f1c46b, #ffe4a8);
    box-shadow: 0 10px 34px rgba(241, 196, 107, 0.22);
    font-size: 24px;
}

.brand-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.36em;
    color: var(--text-3);
    font-size: 10px;
    line-height: 1.3;
}

.brand-button strong {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-pill {
    border: 1px solid var(--border-1);
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 10px 16px;
    transition: border-color 0.22s, background 0.22s, color 0.22s, transform 0.22s;
}

.nav-pill:hover {
    color: #fff;
    border-color: var(--border-2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 242, 254, 0.45);
    border-radius: 999px;
    padding: 9px 18px;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
    backdrop-filter: blur(14px);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.12);
}

.back-portfolio-btn:hover {
    background: rgba(0, 242, 254, 0.22);
    border-color: #00f2fe;
    color: #ffffff;
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.4);
    transform: translateY(-1px);
}

.manage-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-1);
    border-radius: 999px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-1);
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    font-size: 20px;
}

.mobile-nav {
    display: none;
}

.hero-section {
    min-height: calc(100vh - 78px);
    padding-block: 58px 82px;
}

.hero-badge {
    width: fit-content;
    margin: 0 auto 26px;
    border: 1px solid var(--border-1);
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 11px;
}

.hero-stage {
    position: relative;
    width: min(1220px, 100%);
    aspect-ratio: 16 / 8.8;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 38px;
    background: #030612;
    box-shadow: 0 32px 120px rgba(0, 0, 0, 0.36), 0 0 120px rgba(114, 132, 255, 0.12);
}

.hero-stage img,
.hero-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04) brightness(0.86);
    transform: scale(1.03);
}

.hero-stage__veil,
.hero-stage__glass {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-stage__veil {
    background:
        linear-gradient(rgba(4, 8, 22, 0.18), rgba(4, 8, 22, 0.48)),
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.08), transparent 26%);
}

.hero-stage__glass {
    background:
        linear-gradient(90deg, rgba(255, 112, 212, 0.03), transparent 22% 78%, rgba(118, 223, 255, 0.07)),
        linear-gradient(rgba(255, 255, 255, 0.05), transparent 22% 80%, rgba(255, 255, 255, 0.04));
}

.hero-stage__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(8, 13, 30, 0.34);
    backdrop-filter: blur(18px);
    transform: translateY(-50%);
    transition: background 0.22s, border-color 0.22s, transform 0.22s;
    font-size: 34px;
    line-height: 1;
}

.hero-stage__nav:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(8, 13, 30, 0.56);
}

.hero-stage__nav--left {
    left: 22px;
}

.hero-stage__nav--right {
    right: 22px;
}

.hero-copy {
    position: absolute;
    z-index: 2;
    inset-inline: 0;
    bottom: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-inline: 22px;
    text-align: center;
}

.hero-copy p {
    margin: 0;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.42em;
    font-size: 11px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(72px, 10vw, 150px);
    line-height: 0.9;
}

.glass-word-text-3d {
    display: inline-block;
    color: transparent;
    background: linear-gradient(#fff, rgba(236, 245, 255, 0.86) 24%, rgba(182, 210, 255, 0.68));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 1px rgba(255, 255, 255, 0.42), 0 18px 46px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.08));
}

.hero-copy span {
    color: var(--text-2);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-1);
    border-radius: 999px;
    padding: 14px 22px;
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.22s, background 0.22s, border-color 0.22s;
}

.action-pill:hover {
    border-color: var(--border-2);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.action-pill--primary {
    color: #08101a;
    background: #fff;
}

.hero-collection-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: clamp(64px, 7vw, 104px);
}

.section-shell {
    border-top: 1px solid var(--border-1);
    padding-block: clamp(72px, 8vw, 112px);
}

.section-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.section-head-row .section-heading {
    align-items: flex-start;
    text-align: left;
}

.section-heading p {
    margin: 0;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-size: 11px;
}

.section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 64px);
    line-height: 1.04;
}

.section-heading span {
    max-width: 760px;
    color: var(--text-2);
    line-height: 1.8;
}

.collection-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 340px));
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.collection-strip--wide {
    grid-template-columns: repeat(auto-fit, minmax(320px, 415px));
}

.collection-card {
    position: relative;
    display: block;
    aspect-ratio: 9 / 14;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-1);
    border-radius: 28px;
    color: inherit;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s, background 0.22s;
}

.collection-card:hover {
    border-color: var(--border-2);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
}

.collection-cover {
    position: absolute;
    inset: 0;
    display: block;
    aspect-ratio: auto;
    overflow: hidden;
    background: #090d17;
}

.collection-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(4, 8, 22, 0.78), rgba(4, 8, 22, 0.28) 58%, transparent);
}

.collection-cover img,
.collection-cover video,
.thumb img,
.thumb video,
.wallpaper-card__media img,
.wallpaper-card__media video,
.phone-screen img,
.phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-body {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    gap: 8px;
    padding: 0;
    background: transparent;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.collection-card .meta-line {
    color: rgba(226, 232, 255, 0.58);
}

.collection-card .collection-body strong {
    font-size: 22px;
    line-height: 1.12;
}

.collection-card .collection-description {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(226, 232, 255, 0.76);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dynamic-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(35, 91, 142, 0.68);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
    transform: translate(-50%, -50%);
    transition: transform 0.24s, background 0.24s;
}

.collection-card--dynamic:hover .dynamic-play {
    background: rgba(64, 128, 190, 0.82);
    transform: translate(-50%, -50%) scale(1.06);
}

.meta-line {
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.5;
}

.collection-body strong {
    color: #fff;
    line-height: 1.2;
}

.collection-description {
    color: var(--text-2);
    line-height: 1.65;
}

.thumb-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.thumb {
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 12px;
    background: #090d17;
}

.gallery-summary {
    border: 1px solid var(--border-1);
    border-radius: 24px;
    padding: 14px 18px;
    color: var(--text-2);
    background: var(--surface-2);
}

.gallery-summary span {
    color: #fff;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 1px solid var(--border-1);
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.04);
}

.filter-chip--active,
.filter-chip:hover {
    color: #fff;
    border-color: rgba(143, 182, 255, 0.4);
    background: rgba(143, 182, 255, 0.12);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: clamp(14px, 1.4vw, 22px);
}

.wallpaper-card {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 1px solid var(--border-1);
    border-radius: 28px;
    color: inherit;
    background: #090d17;
    transition: transform 0.28s, border-color 0.22s;
}

.wallpaper-card:hover {
    border-color: var(--border-2);
    transform: translateY(-4px);
}

.wallpaper-card__media,
.wallpaper-card__shade {
    position: absolute;
    inset: 0;
}

.wallpaper-card__shade {
    background: linear-gradient(to top, rgba(4, 8, 22, 0.72), rgba(4, 8, 22, 0.22) 48%, transparent);
}

.wallpaper-card__label {
    position: absolute;
    inset-inline: 16px;
    bottom: 16px;
    display: grid;
    gap: 4px;
    text-align: left;
}

.wallpaper-card__label strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
}

.wallpaper-card__label small {
    color: var(--text-2);
}

.gallery-empty {
    border: 1px dashed var(--border-1);
    border-radius: 30px;
    padding: 64px 24px;
    text-align: center;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.04);
}

.contact-shell {
    min-height: auto;
    border-top: 1px solid var(--border-1);
    padding-block: clamp(48px, 6vw, 80px);
}

.contact-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    min-height: auto;
}

.contact-wordmark {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.contact-wordmark span {
    color: rgba(244, 247, 255, 0.92);
    font-size: clamp(58px, 10vw, 138px);
    line-height: 0.92;
    letter-spacing: -0.08em;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.08), 0 0 42px rgba(132, 148, 255, 0.08);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.contact-card {
    border: 1px solid var(--border-1);
    border-radius: 24px;
    padding: 22px 20px;
    background: var(--surface-1);
    backdrop-filter: blur(14px);
}

.contact-card p {
    margin: 0;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 11px;
}

.contact-card strong {
    display: block;
    margin-top: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    word-break: break-word;
}

.footer-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
}

.footer-back-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    min-height: 82px;
    padding: 20px 28px;
    border-radius: 28px;
    border: 1px solid rgba(0, 242, 254, 0.35);
    background: rgba(0, 242, 254, 0.06);
    backdrop-filter: blur(14px);
    color: #00f2fe;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.1);
}

.footer-back-portfolio:hover {
    border-color: #00f2fe;
    color: #ffffff;
    background: rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 28px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
}

.back-to-top {
    width: min(220px, 100%);
    border: 1px solid var(--border-1);
    border-radius: 28px;
    padding: 20px;
    color: #fff;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
}

.back-to-top span {
    display: block;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 11px;
}

.back-to-top strong {
    display: block;
    margin-top: 28px;
    font-weight: 500;
}

.preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(18px);
}

.preview-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(380px, 500px);
    width: min(1440px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid var(--border-1);
    border-radius: 32px;
    background: #05070d;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
}

.preview-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 680px;
    padding: 34px;
    background:
        radial-gradient(circle at 20% 20%, rgba(143, 182, 255, 0.16), transparent 28%),
        #030509;
}

.phone-frame {
    width: min(360px, 72vw);
    aspect-ratio: 9 / 19.5;
    border: 14px solid #171b25;
    border-radius: 48px;
    padding: 0;
    background: #05070d;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.56);
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 34px;
    background: #05070d;
}

.full-preview-frame {
    width: min(760px, 86vw);
    max-height: calc(100vh - 130px);
    display: grid;
    place-items: center;
}

.full-preview-screen {
    display: grid;
    place-items: center;
    width: 100%;
    max-height: calc(100vh - 130px);
    overflow: hidden;
    border-radius: 26px;
    background: transparent;
}

.full-preview-screen img,
.full-preview-screen video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.phone-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 70px;
    color: #fff;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), transparent 48%, rgba(0, 0, 0, 0.22));
}

.phone-lock {
    font-size: 18px;
}

.phone-ui strong {
    margin-top: 16px;
    font-size: 64px;
    line-height: 1;
}

.phone-ui small {
    margin-top: 12px;
    font-size: 16px;
}

.phone-ui em {
    margin-top: auto;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
}

.preview-info {
    overflow-y: auto;
    padding: 36px;
    border-left: 1px solid var(--border-1);
    background: #070b15;
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.preview-toolbar span {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 12px;
}

.preview-toolbar div {
    display: flex;
    gap: 10px;
}

.preview-toolbar button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-1);
    border-radius: 999px;
    color: #fff;
    font-size: 22px;
}

.preview-info h3 {
    margin: 16px 0 24px;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
}

.field-card,
.analysis-card,
.prompt-box {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 26px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.field-card {
    display: grid;
    gap: 12px;
}

.field-card label,
.analysis-card strong,
.prompt-head strong {
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.12em;
}

.field-card p {
    margin: 0 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    padding: 16px 18px;
    color: #fff;
}

.lock-toggle {
    width: 100%;
    margin: 26px 0;
    border: 1px solid var(--border-2);
    border-radius: 16px;
    padding: 16px 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    transition: background 0.22s, border-color 0.22s;
}

.lock-toggle:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.13);
}

.analysis-card p {
    margin: 12px 0 0;
    color: #fff;
    line-height: 1.7;
}

.prompt-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 26px 0 12px;
}

.prompt-head button {
    color: #b9c7ff;
}

.prompt-box {
    margin: 0;
    min-height: 180px;
    overflow: auto;
    color: #fff;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.8;
}

.preview-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--border-1);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-50%);
    font-size: 34px;
}

.preview-arrow--prev {
    left: 28px;
}

.preview-arrow--next {
    right: 28px;
}

.preview-count {
    position: absolute;
    bottom: 18px;
    left: 50%;
    border: 1px solid var(--border-1);
    border-radius: 999px;
    padding: 8px 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    transform: translateX(-50%);
}

.empty-media {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.04);
}

.loading-screen {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    background: var(--bg-0);
}

.loading-panel {
    width: min(440px, 100%);
    border: 1px solid var(--border-1);
    border-radius: 30px;
    padding: 30px 28px;
    text-align: center;
    background: var(--surface-1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.loading-panel p {
    margin: 0;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.38em;
    font-size: 11px;
}

.loading-panel strong {
    display: block;
    margin-top: 14px;
    color: #fff;
    font-size: 44px;
}

.loading-panel span {
    display: block;
    margin-top: 10px;
    color: var(--text-2);
    line-height: 1.7;
}

.loading-panel--error {
    border-color: rgba(239, 68, 68, 0.3);
}

@media (max-width: 1180px) {
    .collection-strip {
        grid-template-columns: repeat(2, minmax(260px, 360px));
    }

    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .preview-panel {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .preview-info {
        border-left: 0;
        border-top: 1px solid var(--border-1);
    }
}

@media (max-width: 780px) {

    .desktop-nav,
    .manage-button {
        display: none;
    }

    .mobile-menu-button,
    .mobile-nav {
        display: grid;
    }

    .mobile-nav {
        gap: 8px;
        padding: 14px var(--container-pad) 18px;
        border-top: 1px solid var(--border-1);
        background: rgba(7, 11, 24, 0.96);
    }

    .hero-section {
        min-height: auto;
        padding-block: 32px 56px;
    }

    .hero-stage {
        aspect-ratio: 16 / 12;
        border-radius: 28px;
    }

    .hero-copy {
        bottom: 26px;
    }

    .hero-copy h1 {
        font-size: clamp(48px, 15vw, 82px);
    }

    .hero-copy span {
        font-size: 15px;
    }

    .hero-stage__nav {
        width: 46px;
        height: 46px;
        font-size: 28px;
    }

    .collection-strip,
    .collection-strip--wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-body {
        padding: 14px;
    }

    .collection-body strong {
        font-size: 18px;
    }

    .preview-overlay {
        padding: 0;
    }

    .preview-panel {
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
    }

    .preview-stage {
        min-height: 560px;
        padding: 20px;
    }

    .preview-info {
        padding: 26px 20px 40px;
    }
}

/* v9: first-visit onboarding */
body.onboarding-is-open {
    overflow: hidden;
}

.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(1, 4, 10, 0.76);
    backdrop-filter: blur(18px) saturate(0.85);
    animation: onboarding-fade 220ms ease both;
}

.onboarding-panel {
    width: min(760px, 100%);
    overflow: hidden;
    border: 1px solid rgba(166, 200, 255, 0.22);
    border-radius: 32px;
    color: #f5f8ff;
    background:
        radial-gradient(circle at 84% 12%, rgba(82, 39, 255, 0.22), transparent 38%),
        linear-gradient(145deg, #111a2b, #080d17 72%);
    box-shadow: 0 42px 130px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    animation: onboarding-rise 300ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.onboarding-head,
.onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 26px;
}

.onboarding-head {
    border-bottom: 1px solid rgba(166, 200, 255, 0.12);
}

.onboarding-head > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.onboarding-head p,
.onboarding-copy p {
    margin: 0;
    color: #a6c8ff;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 11px;
}

.onboarding-head span {
    color: #7185a3;
    font-size: 12px;
}

.onboarding-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(166, 200, 255, 0.18);
    border-radius: 15px;
    color: #dce9fb;
    background: rgba(255, 255, 255, 0.045);
}

.onboarding-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 210px;
    margin: 26px 26px 0;
    overflow: hidden;
    border: 1px solid rgba(166, 200, 255, 0.14);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(82, 39, 255, 0.11), rgba(166, 200, 255, 0.035));
}

.onboarding-visual > span {
    position: absolute;
    top: 18px;
    left: 20px;
    color: rgba(166, 200, 255, 0.36);
    font-size: 13px;
    letter-spacing: 0.18em;
}

.onboarding-demo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(390px, 78%);
    height: 140px;
}

.onboarding-demo i {
    display: block;
    width: 78px;
    height: 118px;
    border: 1px solid rgba(166, 200, 255, 0.28);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(166, 200, 255, 0.22), rgba(82, 39, 255, 0.22));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.onboarding-demo i:nth-child(2) {
    border-color: rgba(255, 159, 252, 0.48);
    transform: translateY(-7px) scale(1.08);
}

.onboarding-demo--2 i:first-child {
    transform: translateX(26px) rotate(-8deg) scale(0.9);
}

.onboarding-demo--2 i:last-child {
    transform: translateX(-26px) rotate(8deg) scale(0.9);
}

.onboarding-demo--3 {
    flex-direction: column;
    gap: 8px;
}

.onboarding-demo--3 i {
    width: 78%;
    height: 25px;
    border-radius: 9px;
}

.onboarding-demo--3 i:nth-child(2) {
    transform: none;
}

.onboarding-copy {
    padding: 26px 30px 12px;
    text-align: center;
}

.onboarding-copy h2 {
    margin: 10px 0 12px;
    font-size: clamp(24px, 3.4vw, 38px);
    letter-spacing: -0.035em;
}

.onboarding-copy > span {
    display: block;
    max-width: 590px;
    margin: 0 auto;
    color: #aebfd5;
    line-height: 1.8;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 2px;
}

.onboarding-progress span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(166, 200, 255, 0.18);
    transition: width 0.2s, background 0.2s;
}

.onboarding-progress span.is-active {
    width: 28px;
    background: linear-gradient(90deg, #a6c8ff, #ff9ffc);
}

.onboarding-actions {
    justify-content: flex-end;
    padding-top: 18px;
}

@keyframes onboarding-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes onboarding-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .onboarding-overlay {
        padding: 12px;
    }

    .onboarding-panel {
        border-radius: 24px;
    }

    .onboarding-visual {
        min-height: 170px;
        margin: 16px 16px 0;
    }

    .onboarding-demo {
        height: 112px;
    }

    .onboarding-demo i {
        width: 58px;
        height: 92px;
    }

    .onboarding-copy {
        padding-inline: 22px;
    }

    .onboarding-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 18px;
    }

    .onboarding-actions .action-pill:first-child {
        grid-column: 1 / -1;
    }
}

/* v10: keep the phone preview completely stationary */
.preview-panel .phone-frame {
    animation: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
}

.preview-panel .phone-frame:hover,
.preview-panel .phone-frame:focus-within {
    transform: none !important;
}

.preview-panel .phone-screen::after {
    display: none !important;
    animation: none !important;
    transform: none !important;
}

.preview-panel .phone-screen img,
.preview-panel .phone-screen video {
    transform: none !important;
    transition: none !important;
}

/* === Wallpaper X interaction/aesthetic upgrade by ChatGPT === */
:root {
    color-scheme: light;
    --bg-0: #8499a6;
    --gallery-wall: #8499a6;
    --gallery-wall-2: #8c9f8b;
    --gallery-paper: #f4efe5;
    --ink: #0b0d0d;
    --surface-1: rgba(244, 239, 229, 0.54);
    --surface-2: rgba(255, 255, 255, 0.20);
    --surface-3: rgba(255, 255, 255, 0.30);
    --border-1: rgba(11, 13, 13, 0.12);
    --border-2: rgba(11, 13, 13, 0.24);
    --text-1: rgba(10, 12, 12, 0.94);
    --text-2: rgba(10, 12, 12, 0.68);
    --text-3: rgba(10, 12, 12, 0.48);
    --brand: #111111;
    --accent: #e8d5a5;
    --shadow-soft: 0 22px 70px rgba(23, 34, 38, 0.20);
    --shadow-deep: 0 38px 110px rgba(18, 28, 32, 0.34);
}

html {
    background: var(--gallery-wall);
}

body {
    background: var(--gallery-wall);
    color: var(--text-1);
}

.site-shell {
    background:
        radial-gradient(circle at 13% 18%, rgba(255, 255, 255, 0.20), transparent 25%),
        radial-gradient(circle at 72% 20%, rgba(231, 213, 165, 0.30), transparent 25%),
        radial-gradient(circle at 58% 78%, rgba(44, 68, 76, 0.18), transparent 30%),
        linear-gradient(135deg, #7f95a4 0%, #8499a6 48%, #8fa08c 100%);
}

.site-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.20;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.22) 1px, transparent 0),
        linear-gradient(120deg, rgba(0, 0, 0, 0.08), transparent 42% 64%, rgba(255, 255, 255, 0.06));
    background-size: 7px 7px, 100% 100%;
}

.ambient {
    filter: blur(110px);
    opacity: 0.45;
}

.ambient--left {
    background: rgba(247, 238, 207, 0.55);
}

.ambient--right {
    background: rgba(80, 107, 119, 0.26);
}

.ambient--bottom {
    background: rgba(120, 143, 118, 0.42);
}

.site-grid {
    opacity: 0.055;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.18) 1px, transparent 1px);
}

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(132, 153, 166, 0.72);
    backdrop-filter: blur(26px) saturate(1.25);
    box-shadow: 0 8px 38px rgba(23, 34, 38, 0.10);
}

.brand-mark {
    color: #f3ead8;
    background: #0b0d0d;
    box-shadow: 0 12px 34px rgba(11, 13, 13, 0.20);
}

.brand-kicker,
.hero-museum__topline,
.section-heading p,
.meta-line,
.contact-card p,
.back-to-top span {
    color: var(--text-3);
}

.brand-button strong,
.section-heading h2,
.gallery-summary span,
.contact-wordmark span,
.contact-card strong,
.back-to-top strong {
    color: var(--ink);
}

.nav-pill,
.manage-button,
.mobile-menu-button,
.action-pill,
.filter-chip,
.gallery-summary,
.back-to-top,
.contact-card {
    color: var(--text-2);
    border-color: var(--border-1);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(23, 34, 38, 0.08);
}

.nav-pill:hover,
.manage-button:hover,
.mobile-menu-button:hover,
.filter-chip--active,
.filter-chip:hover {
    color: var(--ink);
    border-color: rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.34);
}

.action-pill {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.26);
    transition: transform 0.22s, background 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.action-pill:hover {
    border-color: rgba(0, 0, 0, 0.24);
    background: rgba(255, 255, 255, 0.40);
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(23, 34, 38, 0.16);
}

.action-pill--primary {
    color: #f5efe5;
    background: #0b0d0d;
    border-color: #0b0d0d;
}

.action-pill--primary:hover {
    color: #fff;
    background: #050606;
}

.hero-section {
    min-height: calc(100vh - 78px);
    padding-block: clamp(18px, 2.6vw, 42px) clamp(72px, 8vw, 118px);
}

.hero-museum {
    --mouse-x: 0;
    --mouse-y: 0;
    position: relative;
    min-height: min(780px, calc(100vh - 116px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: clamp(30px, 3vw, 52px);
    background:
        radial-gradient(circle at var(--mouse-bg-x, 50%) var(--mouse-bg-y, 40%), rgba(255, 255, 255, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.hero-museum::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.20) 50%, transparent 50.1%),
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 100% 100%, 100% 86px;
    opacity: 0.28;
}

.hero-museum__grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.18;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.30) 1px, transparent 0);
    background-size: 10px 10px;
    mix-blend-mode: soft-light;
}

.hero-museum__word {
    position: absolute;
    z-index: 1;
    top: clamp(58px, 8vw, 94px);
    left: 50%;
    width: max-content;
    color: rgba(0, 0, 0, 0.94);
    font-size: clamp(88px, 15vw, 252px);
    font-weight: 950;
    letter-spacing: -0.075em;
    line-height: 0.78;
    white-space: nowrap;
    transform: translate3d(calc(-50% + var(--word-shift-x, 0px)), var(--word-shift-y, 0px), 0) scaleX(1.04);
    transition: transform 0.16s ease-out;
    user-select: none;
}

.hero-museum__topline {
    position: absolute;
    z-index: 5;
    top: clamp(18px, 2.1vw, 32px);
    left: clamp(18px, 2.8vw, 42px);
    right: clamp(18px, 2.8vw, 42px);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(8, 12, 12, 0.58);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 11px;
}

.hero-museum__intro {
    position: absolute;
    z-index: 2;
    top: clamp(112px, 14vw, 164px);
    left: clamp(20px, 3vw, 48px);
    width: min(360px, 32vw);
    pointer-events: none;
}

.hero-museum__intro p {
    margin: 0 0 14px;
    color: rgba(8, 12, 12, 0.56);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 11px;
}

.hero-museum__intro h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(32px, 3.4vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-museum__intro span {
    display: block;
    max-width: 360px;
    margin-top: 16px;
    color: rgba(8, 12, 12, 0.62);
    line-height: 1.85;
}

.hero-deck {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: grid;
    place-items: center;
    perspective: 1200px;
    transform: translate3d(var(--deck-shift-x, 0px), var(--deck-shift-y, 0px), 0);
    transition: transform 0.16s ease-out;
}

.hero-deck-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --hover-y: 0px;
    position: absolute;
    z-index: var(--deck-z);
    width: clamp(164px, 14vw, 275px);
    aspect-ratio: 9 / 14.6;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: clamp(20px, 1.8vw, 32px);
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 52px rgba(20, 32, 36, 0.28);
    opacity: var(--deck-opacity);
    transform:
        perspective(1100px) translate3d(var(--deck-x), calc(var(--deck-y) + var(--hover-y)), 0) rotate(var(--deck-r)) scale(var(--deck-s)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transform-style: preserve-3d;
    transition: transform 0.48s cubic-bezier(0.2, 0.9, 0.22, 1), opacity 0.28s, filter 0.28s, box-shadow 0.28s;
    animation: deck-rise 0.72s cubic-bezier(0.2, 0.9, 0.22, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
    will-change: transform;
}

.hero-deck-card--active {
    box-shadow: var(--shadow-deep);
    border-color: rgba(255, 255, 255, 0.64);
}

.hero-deck-card:hover {
    --hover-y: -18px;
    filter: saturate(1.06) contrast(1.02);
    box-shadow: 0 36px 94px rgba(20, 32, 36, 0.40);
}

.hero-deck-card__media,
.hero-deck-card__shine,
.hero-deck-card__caption {
    position: absolute;
    inset: 0;
}

.hero-deck-card__media img,
.hero-deck-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.22, 1), filter 0.4s;
}

.hero-deck-card:hover .hero-deck-card__media img,
.hero-deck-card:hover .hero-deck-card__media video {
    transform: scale(1.09);
}

.hero-deck-card__shine {
    pointer-events: none;
    background:
        radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 18%), rgba(255, 255, 255, 0.42), transparent 34%),
        linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.28), transparent 36% 100%);
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.26s;
}

.hero-deck-card:hover .hero-deck-card__shine {
    opacity: 0.75;
}

.hero-deck-card__caption {
    top: auto;
    display: grid;
    gap: 4px;
    padding: 48px 14px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.64);
}

.hero-deck-card__caption strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-deck-card__caption small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-empty-showcase {
    width: min(520px, 80vw);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow-deep);
}

.hero-museum .hero-stage__nav {
    z-index: 8;
    width: 54px;
    height: 54px;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0b0d0d;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 42px rgba(20, 32, 36, 0.12);
}

.hero-museum .hero-stage__nav:hover {
    border-color: rgba(0, 0, 0, 0.24);
    background: rgba(255, 255, 255, 0.46);
    transform: translateY(-50%) scale(1.05);
}

.hero-museum__footer {
    position: absolute;
    z-index: 6;
    left: clamp(20px, 3vw, 46px);
    right: clamp(20px, 3vw, 46px);
    bottom: clamp(22px, 3vw, 42px);
    display: grid;
    grid-template-columns: minmax(120px, 0.55fr) minmax(160px, 1fr) auto;
    align-items: end;
    gap: 18px;
}

.hero-series-count strong {
    display: block;
    color: #fff;
    font-size: clamp(42px, 5vw, 74px);
    font-weight: 500;
    letter-spacing: -0.06em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.20);
}

.hero-series-count span,
.hero-now-viewing span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.hero-now-viewing {
    max-width: 380px;
    color: rgba(255, 255, 255, 0.78);
}

/* ⬇️ 这里是你需要改的第一个地方：加深了字体的阴影，这样就不会和背景文字重叠看不清了 */
.hero-now-viewing strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.8);
}

.hero-collection-band {
    margin-top: clamp(54px, 6vw, 92px);
}

.section-shell {
    border-top-color: rgba(255, 255, 255, 0.18);
}

.section-heading span,
.collection-description,
.gallery-summary,
.analysis-card p {
    color: var(--text-2);
}

.collection-card,
.wallpaper-card,
.contact-card,
.back-to-top {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --lift: 0px;
    position: relative;
    border-color: rgba(255, 255, 255, 0.30);
    box-shadow: 0 18px 52px rgba(23, 34, 38, 0.18);
    transform: perspective(980px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.22, 1), border-color 0.22s, background 0.22s, box-shadow 0.28s;
    will-change: transform;
}

.collection-card,
.wallpaper-card {
    background: rgba(255, 255, 255, 0.16);
}

.collection-card:hover,
.wallpaper-card:hover,
.contact-card:hover,
.back-to-top:hover {
    --lift: -9px;
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow: 0 34px 86px rgba(23, 34, 38, 0.28);
}

.collection-card::before,
.wallpaper-card::before,
.contact-card::before,
.back-to-top::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 0%), rgba(255, 255, 255, 0.42), transparent 36%);
    opacity: 0;
    transition: opacity 0.24s;
    mix-blend-mode: screen;
}

.collection-card:hover::before,
.wallpaper-card:hover::before,
.contact-card:hover::before,
.back-to-top:hover::before {
    opacity: 0.72;
}

.collection-cover img,
.collection-cover video,
.wallpaper-card__media img,
.wallpaper-card__media video,
.thumb img,
.thumb video {
    transition: transform 0.75s cubic-bezier(0.2, 0.9, 0.22, 1), filter 0.4s;
}

.collection-card:hover .collection-cover img,
.collection-card:hover .collection-cover video,
.wallpaper-card:hover .wallpaper-card__media img,
.wallpaper-card:hover .wallpaper-card__media video {
    transform: scale(1.065);
    filter: saturate(1.06) contrast(1.02);
}

.collection-cover::after,
.wallpaper-card__shade {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22) 54%, transparent);
}

.filter-chip {
    transition: transform 0.22s, border-color 0.22s, background 0.22s, color 0.22s;
}

.filter-chip:hover,
.filter-chip--active {
    transform: translateY(-2px);
}

.preview-overlay {
    background: rgba(18, 27, 31, 0.58);
    animation: overlay-fade 0.2s ease-out both;
}

.preview-panel {
    border-color: rgba(255, 255, 255, 0.14);
    background: #05070d;
    color: rgba(245, 247, 255, 0.96);
    animation: preview-rise 0.34s cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.preview-stage {
    background:
        radial-gradient(circle at 32% 22%, rgba(232, 213, 165, 0.20), transparent 28%),
        linear-gradient(135deg, #8499a6, #81928a 64%, #d0bf91);
}

.preview-info {
    border-left-color: rgba(255, 255, 255, 0.10);
    background: #070b15;
}

.preview-info h3,
.preview-toolbar span,
.preview-toolbar button,
.field-card label,
.field-card p,
.analysis-card strong,
.analysis-card p,
.prompt-head strong,
.prompt-box,
.lock-toggle {
    color: #fff;
}

.field-card,
.analysis-card,
.prompt-box,
.lock-toggle,
.preview-toolbar button {
    border-color: rgba(255, 255, 255, 0.16);
}

.phone-frame {
    border-color: #1c2229;
    box-shadow: 0 42px 90px rgba(0, 0, 0, 0.44), 0 0 0 2px rgba(255, 255, 255, 0.14);
    animation: phone-float 5.4s ease-in-out infinite;
}

.phone-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.18) 44%, transparent 56% 100%);
    transform: translateX(-110%);
    animation: phone-glint 4.2s ease-in-out infinite;
}

.reveal-on-scroll {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.65s ease, filter 0.65s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: var(--deck-opacity, 1);
    filter: blur(0);
}

@keyframes deck-rise {
    from {
        opacity: 0;
        filter: blur(14px);
        transform:
            perspective(1100px) translate3d(var(--deck-x), calc(var(--deck-y) + 34px), 0) rotate(calc(var(--deck-r) - 3deg)) scale(var(--deck-s));
    }

    to {
        opacity: var(--deck-opacity);
        filter: blur(0);
    }
}

@keyframes overlay-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes preview-rise {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes phone-float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes phone-glint {

    0%,
    58% {
        transform: translateX(-110%);
        opacity: 0;
    }

    68% {
        opacity: 0.75;
    }

    84%,
    100% {
        transform: translateX(110%);
        opacity: 0;
    }
}

@media (max-width: 1180px) {
    .hero-museum__intro {
        width: min(360px, 42vw);
    }

    .hero-deck-card {
        width: clamp(128px, 15vw, 210px);
    }

    .hero-museum__footer {
        grid-template-columns: 0.8fr 1fr;
    }

    .hero-museum__footer .hero-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 780px) {
    .site-header {
        background: rgba(132, 153, 166, 0.90);
    }

    .mobile-nav {
        background: rgba(132, 153, 166, 0.96);
    }

    .hero-section {
        padding-block: 20px 64px;
    }

    .hero-museum {
        min-height: 760px;
        border-radius: 30px;
    }

    .hero-museum__topline {
        flex-direction: column;
        gap: 8px;
        letter-spacing: 0.16em;
    }

    .hero-museum__word {
        top: 126px;
        font-size: clamp(74px, 28vw, 148px);
        writing-mode: horizontal-tb;
        opacity: 0.92;
    }

    .hero-museum__intro {
        top: 74px;
        left: 20px;
        right: 20px;
        z-index: 5;
        width: auto;
    }

    .hero-museum__intro h1 {
        max-width: 320px;
        font-size: clamp(34px, 10vw, 52px);
    }

    .hero-museum__intro span {
        max-width: 310px;
        margin-top: 12px;
        font-size: 14px;
    }

    .hero-deck {
        top: 245px;
        bottom: 145px;
        inset-inline: 0;
    }

    .hero-deck-card {
        width: clamp(112px, 32vw, 174px);
        border-radius: 20px;
        transform:
            perspective(960px) translate3d(var(--deck-x-mobile), calc(var(--deck-y-mobile) + var(--hover-y)), 0) rotate(var(--deck-r)) scale(var(--deck-s)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    }

    .hero-museum .hero-stage__nav {
        top: auto;
        bottom: 92px;
        width: 46px;
        height: 46px;
        font-size: 28px;
        transform: none;
    }

    .hero-museum .hero-stage__nav:hover {
        transform: scale(1.04);
    }

    .hero-stage__nav--left {
        left: 20px;
    }

    .hero-stage__nav--right {
        right: 20px;
    }

    .hero-museum__footer {
        left: 20px;
        right: 20px;
        bottom: 20px;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-series-count strong {
        font-size: 38px;
    }

    .hero-now-viewing {
        display: none;
    }

    .hero-museum__footer .hero-actions {
        justify-content: stretch;
    }

    .hero-museum__footer .action-pill {
        justify-content: center;
        width: 100%;
    }

    .collection-card,
    .wallpaper-card,
    .contact-card,
    .back-to-top {
        transform: translateY(var(--lift));
    }

    .preview-info {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .hero-deck,
    .hero-museum__word,
    .hero-deck-card,
    .collection-card,
    .wallpaper-card,
    .contact-card,
    .back-to-top,
    .phone-frame {
        transform: none !important;
    }
}

/* v3 data/loading fix: sections must not disappear when scroll reveal is delayed. */
.section-shell.reveal-on-scroll {
    opacity: 1;
    filter: none;
}

/* v4: homepage collection mode */
@media (min-width: 781px) {
    .hero-deck {
        transform: translate3d(calc(var(--deck-shift-x, 0px) + clamp(56px, 7vw, 128px)), var(--deck-shift-y, 0px), 0);
    }
}

.hero-museum__intro h1 {
    max-width: 520px;
    font-size: clamp(32px, 3.55vw, 64px);
    letter-spacing: -0.055em;
}

.hero-museum__intro span {
    max-width: 390px;
}

.hero-now-viewing strong {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-deck-card__caption strong,
.hero-deck-card__caption small {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.hero-deck-card__caption strong {
    -webkit-line-clamp: 2;
}

.hero-deck-card__caption small {
    -webkit-line-clamp: 1;
}

@media (max-width: 780px) {
    .hero-museum__intro h1 {
        max-width: 330px;
        font-size: clamp(30px, 9vw, 48px);
    }
}

/* v4: keep collection cards visually in front of the intro copy on desktop. */
@media (min-width: 781px) {
    .hero-museum__intro {
        z-index: 2;
        width: min(360px, 34vw);
    }

    .hero-museum__intro h1 {
        font-size: clamp(30px, 3.4vw, 56px);
    }

    .hero-museum__intro span {
        max-width: 320px;
    }

    .hero-deck {
        z-index: 4;
    }
}


/* v5: circular homepage gallery + reduced copy */
.hero-museum--circular {
    min-height: min(760px, calc(100vh - 112px));
    background:
        radial-gradient(circle at var(--mouse-bg-x, 50%) var(--mouse-bg-y, 42%), rgba(255, 255, 255, 0.20), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
}

.hero-museum--circular::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 52%;
    z-index: 2;
    width: min(980px, 82vw);
    height: min(280px, 26vw);
    border: 1px solid rgba(8, 12, 12, 0.08);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) rotateX(62deg);
    opacity: 0.68;
    filter: blur(0.2px);
}

.hero-museum--circular .hero-museum__word {
    top: clamp(76px, 9vw, 118px);
    color: rgba(0, 0, 0, 0.90);
    font-size: clamp(92px, 17vw, 276px);
    letter-spacing: -0.085em;
    opacity: 0.92;
}

.hero-museum__intro--minimal {
    top: clamp(96px, 13vw, 154px);
    left: clamp(24px, 3.1vw, 54px);
    width: min(420px, 33vw);
    z-index: 3;
}

.hero-museum__intro--minimal p {
    margin-bottom: 10px;
    letter-spacing: 0.42em;
}

.hero-museum__intro--minimal h1 {
    max-width: 420px;
    font-size: clamp(34px, 4.2vw, 74px);
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.hero-museum__intro--minimal span {
    display: none;
}

.circular-gallery {
    z-index: 5;
    cursor: default;
    overflow: visible;
    perspective: 1500px;
    transform: translate3d(var(--deck-shift-x, 0px), var(--deck-shift-y, 0px), 0);
    touch-action: pan-y;
    user-select: none;
}

.circular-gallery.is-dragging {
    cursor: grabbing;
}

.circular-gallery-card {
    cursor: pointer;
}

.circular-gallery.is-dragging .circular-gallery-card {
    transition: none;
}

.circular-gallery-card {
    left: 50%;
    top: 52%;
    width: clamp(150px, 13.4vw, 258px);
    border-radius: clamp(22px, 2vw, var(--hero-radius, 28px));
    opacity: 0;
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition:
        transform 560ms cubic-bezier(0.2, 0.9, 0.22, 1),
        opacity 360ms ease,
        filter 360ms ease,
        box-shadow 320ms ease,
        border-color 260ms ease;
}

.circular-gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 -72px 80px rgba(0, 0, 0, 0.34);
}

.circular-gallery-card.hero-deck-card--active {
    border-color: rgba(255, 255, 255, 0.74);
    box-shadow: 0 42px 112px rgba(13, 26, 31, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.circular-gallery-card.hero-deck-card--far {
    filter: saturate(0.82) brightness(0.88);
}

.circular-gallery-card:hover {
    filter: saturate(1.08) contrast(1.03) !important;
    box-shadow: 0 44px 118px rgba(13, 26, 31, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.circular-gallery-card .hero-deck-card__media img,
.circular-gallery-card .hero-deck-card__media video {
    transform: scale(1.04);
}

.circular-gallery-card:hover .hero-deck-card__media img,
.circular-gallery-card:hover .hero-deck-card__media video,
.circular-gallery-card.hero-deck-card--active .hero-deck-card__media img,
.circular-gallery-card.hero-deck-card--active .hero-deck-card__media video {
    transform: scale(1.10);
}

.circular-gallery-card .hero-deck-card__caption {
    top: auto;
    padding: 56px 16px 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.circular-gallery-card.hero-deck-card--active .hero-deck-card__caption,
.circular-gallery-card:hover .hero-deck-card__caption {
    opacity: 1;
    transform: translateY(0);
}

.circular-gallery-card .hero-deck-card__caption strong {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hero-museum__footer--minimal {
    grid-template-columns: minmax(88px, 0.38fr) minmax(180px, 1fr) auto;
}

.hero-museum__footer--minimal .hero-series-count strong {
    font-size: clamp(44px, 5.2vw, 78px);
}

.hero-museum__footer--minimal .hero-now-viewing strong {
    max-width: min(420px, 34vw);
    font-size: clamp(18px, 1.45vw, 24px);
}

.hero-museum__footer--minimal .action-pill {
    padding: 13px 18px;
}

@media (min-width: 781px) {
    .hero-museum--circular .hero-deck {
        transform: translate3d(calc(var(--deck-shift-x, 0px) + clamp(42px, 5vw, 96px)), var(--deck-shift-y, 0px), 0);
    }
}

@media (max-width: 1180px) {
    .hero-museum__intro--minimal {
        width: min(390px, 42vw);
    }

    .hero-museum__footer--minimal {
        grid-template-columns: 0.55fr 1fr;
    }
}

@media (max-width: 780px) {
    .hero-museum--circular {
        min-height: 720px;
    }

    .hero-museum--circular::after {
        top: 49%;
        width: 92vw;
        height: 220px;
    }

    .hero-museum--circular .hero-museum__word {
        top: 128px;
        font-size: clamp(80px, 30vw, 150px);
    }

    .hero-museum__intro--minimal {
        top: 72px;
        width: auto;
    }

    .hero-museum__intro--minimal h1 {
        max-width: 310px;
        font-size: clamp(32px, 9.4vw, 50px);
    }

    .circular-gallery {
        top: 210px;
        bottom: 148px;
    }

    .circular-gallery-card {
        top: 52%;
        width: clamp(124px, 38vw, 176px);
        border-radius: 22px;
    }

    .hero-museum__footer--minimal {
        grid-template-columns: 1fr;
    }

    .hero-museum__footer--minimal .hero-now-viewing {
        display: block;
    }

    .hero-museum__footer--minimal .hero-now-viewing strong {
        max-width: 100%;
    }

    .hero-museum__footer--minimal .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-museum__footer--minimal .action-pill {
        min-width: 0;
        padding-inline: 12px;
    }
}

@media (max-width: 520px) {
    .hero-museum--circular {
        min-height: 690px;
    }

    .hero-museum__topline span:nth-child(2) {
        display: none;
    }

    .hero-museum__footer--minimal .hero-actions {
        grid-template-columns: 1fr;
    }
}


/* v6: tolerate deleted/moved media files without showing broken icons */
.media-load-failed {
    position: relative;
}

.media-load-failed img,
.media-load-failed video {
    display: none !important;
}

.media-load-failed::before {
    content: "预览缺失";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(10, 16, 18, 0.52);
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.32), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08));
    font-size: 13px;
    letter-spacing: 0.18em;
    z-index: 2;
}


/* v6: custom static image section, 8 manually selected images */
/* ⬇️ 修补了空白，恢复了手机壁纸竖向 9:16 的比例，并优化了排版大小 */
.custom-image-section {
    margin-top: -60px;
    padding-top: 0;
}

.custom-image-section .section-heading h2 {
    font-size: clamp(36px, 4vw, 68px);
}

/* v6: custom static image section */
.custom-image-section {
    /* ⬇️ 把这里改成 0 或者直接删掉这两行，恢复正常的呼吸感间距 */
    margin-top: 0;
    padding-top: clamp(72px, 8vw, 112px);
    /* 使用标准的区块内边距 */
}

.custom-image-section .section-heading h2 {
    font-size: clamp(36px, 4vw, 68px);
}

/* 终极强制网格排版：一排 5 个 */
.custom-image-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    /* ⬅️ 这里确保是 5 */
    width: 100% !important;
    max-width: 1400px !important;
    /* ⬅️ 宽度设为1400，让5张图有充足空间 */
    margin-inline: auto;
    gap: 24px;
}

/* 终极强制撑开卡片，并设为 9:16 手机竖向比例 */
.custom-image-card {
    display: block !important;
    aspect-ratio: 9 / 16 !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
}

/* 适配屏幕变小时的排列方式 */
@media (max-width: 980px) {
    .custom-image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 780px) {
    .custom-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px;
    }
}

/* =========================================================
   强化版：让 Pantone 粉彩渐变色凸显，并修复文字隐形
   ========================================================= */

/* 1. 强制修复所有隐形的白色标题，改为高级深灰色 */
.section-heading h2,
.section-heading p,
.section-heading span,
.hero-museum__intro h1,
.hero-museum__intro p,
.hero-museum__intro span {
    color: #2C3032 !important;
}

/* 2. 让背景不再是单调的纯白，加入极具艺术感的粉彩流光渐变 */
.site-shell {
    background:
        /* 左上角：柠檬霜黄 (Lemon Icing) */
        radial-gradient(circle at 15% 30%, rgba(242, 231, 198, 0.7), transparent 60%),
        /* 右上角：冰融蓝 (Ice Melt) */
        radial-gradient(circle at 85% 20%, rgba(212, 225, 232, 0.8), transparent 60%),
        /* 底部：蜜桃粉尘 (Peach Dust) */
        radial-gradient(circle at 50% 80%, rgba(234, 208, 193, 0.65), transparent 60%),
        /* 核心底色：云上舞白 (Cloud Dancer) */
        #F4F3EE !important;
}

/* 3. 让那三个漂浮的光球颜色更浓郁，增加立体感 */
.ambient--left {
    background: #F2E7C6 !important;
    opacity: 1 !important;
    filter: blur(120px) !important;
}

.ambient--right {
    background: #D4E1E8 !important;
    opacity: 1 !important;
    filter: blur(120px) !important;
}

.ambient--bottom {
    background: #EAD0C1 !important;
    opacity: 1 !important;
    filter: blur(120px) !important;
}

/* 4. 修复底部“推荐动态壁纸”区域的文字显示 */
.collection-body strong,
.collection-card .meta-line,
.collection-card .collection-description {
    color: #2C3032 !important;
    text-shadow: none !important;
}

/* 5. 确保卡片半透明，透出背后的粉彩背景 */
.collection-card,
.wallpaper-card {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    /* 增加毛玻璃效果 */
}

/* =========================================================
   强化版：动态流体光影背景 (Aurora / Fluid Gradient)
   ========================================================= */

/* 1. 加深底层背景色，让光影更明显 */
.site-shell {
    background: #090c15 !important;
}

/* 2. 让网格线稍微清晰一点点，增加科技感 */
.site-grid {
    opacity: 0.08 !important;
}

/* 3. 强化三个光球的尺寸和色彩，并给它们绑定动画 */
.ambient {
    filter: blur(140px) !important;
    /* 加大模糊，形成流体感 */
    opacity: 0.65 !important;
    mix-blend-mode: screen;
    /* 让颜色叠加时产生发光效果 */
}

/* 左侧光球：紫蓝色，做顺时针缓慢圆周运动 */
.ambient--left {
    width: 50vw !important;
    height: 50vw !important;
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    top: -10% !important;
    left: -10% !important;
    animation: float-left 25s infinite ease-in-out alternate;
}

/* 右侧光球：青蓝色，做上下呼吸运动 */
.ambient--right {
    width: 45vw !important;
    height: 45vw !important;
    background: linear-gradient(135deg, #06b6d4, #0ea5e9) !important;
    top: 10% !important;
    right: -5% !important;
    animation: float-right 30s infinite ease-in-out alternate;
}

/* 底部光球：粉紫色，做斜向移动 */
.ambient--bottom {
    width: 60vw !important;
    height: 60vw !important;
    background: linear-gradient(135deg, #ec4899, #db2777) !important;
    bottom: -20% !important;
    left: 20% !important;
    animation: float-bottom 28s infinite ease-in-out alternate;
}

/* 4. 定义流光运动的动画关键帧 */
@keyframes float-left {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15%, 10%) scale(1.1);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes float-right {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10%, 20%) scale(1.2);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes float-bottom {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-15%, -15%) scale(1.15);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* 5. 让前面的卡片（首屏大框）增加一点毛玻璃反光，融入背景 */
.hero-stage,
.hero-museum {
    background: rgba(3, 6, 18, 0.6) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 32px 120px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

/* =========================================================
   v6: Gallery contrast and tactile controls
   ========================================================= */

:root {
    --focus-ring: #8de8ff;
    --button-edge: rgba(190, 225, 255, 0.28);
    --button-fill: rgba(20, 32, 52, 0.72);
    --button-fill-hover: rgba(43, 67, 103, 0.88);
}

body {
    background: #070b14 !important;
}

.site-shell {
    background:
        radial-gradient(ellipse 72% 54% at 8% 12%, rgba(69, 74, 176, 0.38), transparent 67%),
        radial-gradient(ellipse 62% 48% at 92% 18%, rgba(15, 151, 181, 0.27), transparent 70%),
        radial-gradient(ellipse 58% 44% at 58% 86%, rgba(150, 49, 111, 0.20), transparent 72%),
        linear-gradient(145deg, #070a13 0%, #0d1422 48%, #070b14 100%) !important;
}

.site-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.035) 46%, transparent 68%);
    opacity: 0.9;
}

.ambient {
    opacity: 0.32 !important;
    filter: blur(170px) !important;
    animation: none !important;
}

.site-grid {
    opacity: 0.045 !important;
}

.site-header {
    border-bottom-color: rgba(181, 215, 255, 0.16) !important;
    background: rgba(7, 11, 20, 0.76) !important;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.24) !important;
}

.section-shell {
    position: relative;
    border-top-color: rgba(181, 215, 255, 0.12) !important;
}

.section-shell:nth-of-type(even) {
    background: linear-gradient(180deg, rgba(111, 146, 197, 0.035), rgba(255, 255, 255, 0.012) 50%, transparent);
}

.section-heading h2,
.section-heading p,
.section-heading span,
.hero-museum__intro h1,
.hero-museum__intro p,
.hero-museum__intro span,
.brand-button strong,
.gallery-summary span,
.contact-wordmark span,
.contact-card strong,
.back-to-top strong {
    color: #f3f7ff !important;
}

.section-heading p,
.brand-kicker,
.meta-line,
.contact-card p,
.back-to-top span {
    color: #91a8c7 !important;
}

.section-heading span,
.gallery-summary,
.collection-description,
.analysis-card p {
    color: #b8c8dc !important;
}

.collection-card,
.wallpaper-card {
    background: rgba(6, 11, 21, 0.78) !important;
    border-color: rgba(183, 216, 255, 0.18) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.025) inset !important;
    backdrop-filter: blur(10px) saturate(1.08) !important;
}

.collection-card:hover,
.wallpaper-card:hover {
    border-color: rgba(144, 224, 255, 0.72) !important;
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.52), 0 0 34px rgba(91, 196, 255, 0.16) !important;
}

.collection-body strong,
.collection-card .meta-line,
.collection-card .collection-description {
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.88) !important;
}

.collection-card .collection-description,
.collection-card .meta-line {
    color: rgba(235, 244, 255, 0.82) !important;
}

.brand-button,
.nav-pill,
.manage-button,
.mobile-menu-button,
.action-pill,
.filter-chip,
.back-to-top,
.hero-stage__nav,
.preview-toolbar button,
.preview-arrow,
.prompt-head button {
    transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.25, 1),
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease !important;
}

.nav-pill,
.manage-button,
.mobile-menu-button,
.action-pill,
.filter-chip,
.back-to-top,
.hero-stage__nav,
.preview-toolbar button,
.preview-arrow {
    color: #dce9fb !important;
    border-color: var(--button-edge) !important;
    background: linear-gradient(180deg, rgba(48, 70, 103, 0.74), var(--button-fill)) !important;
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.28) !important;
}

.nav-pill:hover,
.manage-button:hover,
.mobile-menu-button:hover,
.action-pill:hover,
.filter-chip:hover,
.back-to-top:hover,
.hero-stage__nav:hover,
.preview-toolbar button:hover,
.preview-arrow:hover {
    color: #ffffff !important;
    border-color: rgba(141, 232, 255, 0.70) !important;
    background: linear-gradient(180deg, rgba(64, 99, 145, 0.94), var(--button-fill-hover)) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34), 0 0 24px rgba(91, 205, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) scale(1.015);
}

.filter-chip--active {
    color: #07101c !important;
    border-color: #9beaff !important;
    background: linear-gradient(135deg, #a8efff, #88bfff) !important;
    box-shadow: 0 10px 28px rgba(86, 190, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
    transform: translateY(-2px);
}

button:active,
.nav-pill:active,
.manage-button:active,
.mobile-menu-button:active,
.action-pill:active,
.filter-chip:active,
.back-to-top:active,
.collection-card:active,
.wallpaper-card:active,
.hero-stage__nav:active,
.preview-toolbar button:active,
.preview-arrow:active {
    transform: translateY(1px) scale(0.975) !important;
    filter: brightness(0.92);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.34), inset 0 2px 5px rgba(0, 0, 0, 0.28) !important;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus-ring) !important;
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(141, 232, 255, 0.18) !important;
}

@media (hover: none) {
    .nav-pill,
    .manage-button,
    .mobile-menu-button,
    .action-pill,
    .filter-chip {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ambient {
        animation: none !important;
    }
}

/* v7: lightweight SplashCursor-inspired pointer feedback */
.cursor-splash {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
}

.cursor-splash__halo,
.cursor-splash__dot {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 999px;
    pointer-events: none;
    will-change: transform, opacity;
}

.cursor-splash__halo {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(166, 200, 255, 0.46);
    opacity: 0;
    background:
        radial-gradient(circle at 32% 34%, rgba(255, 255, 255, 0.62), transparent 12%),
        radial-gradient(circle, rgba(115, 87, 255, 0.20), rgba(255, 159, 252, 0.08) 48%, transparent 72%);
    box-shadow: 0 0 18px rgba(82, 39, 255, 0.22), inset 0 0 12px rgba(166, 200, 255, 0.12);
    transition: width 0.18s, height 0.18s, opacity 0.18s, border-color 0.18s;
    mix-blend-mode: screen;
}

.cursor-splash--active .cursor-splash__halo {
    opacity: 0.82;
}

.cursor-splash__dot {
    width: 13px;
    height: 13px;
    opacity: 0;
    background: radial-gradient(circle, #ffffff 0 8%, var(--cursor-color) 34%, transparent 72%);
    box-shadow: 0 0 15px var(--cursor-color);
    mix-blend-mode: screen;
}

.cursor-splash__dot--burst {
    width: 17px;
    height: 17px;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .cursor-splash {
        display: none !important;
    }
}

/* v8: clearer homepage hierarchy and detail affordance */
.hero-museum--circular {
    min-height: min(720px, calc(100vh - 118px)) !important;
    background:
        radial-gradient(ellipse 52% 56% at 72% 46%, rgba(68, 91, 145, 0.14), transparent 72%),
        linear-gradient(145deg, rgba(7, 11, 21, 0.96), rgba(12, 19, 32, 0.90)) !important;
}

.hero-museum--circular .hero-museum__word {
    top: clamp(86px, 9vw, 122px);
    color: rgba(153, 188, 235, 0.055) !important;
    font-size: clamp(86px, 14vw, 224px);
    opacity: 1;
}

.hero-museum__intro--minimal {
    top: clamp(126px, 14vw, 168px);
    width: min(340px, 28vw);
}

.hero-museum__intro--minimal h1 {
    max-width: 340px;
    font-size: clamp(34px, 3.45vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-museum__intro--minimal .hero-museum__intro-note {
    display: block;
    max-width: 290px;
    margin-top: 20px;
    color: #91a8c7 !important;
    font-size: 13px;
    line-height: 1.75;
}

.hero-museum__footer--minimal {
    align-items: end;
    grid-template-columns: 116px minmax(190px, 1fr) auto;
    gap: clamp(22px, 3vw, 54px);
    padding-top: 22px;
    border-top: 1px solid rgba(166, 200, 255, 0.12);
}

.hero-museum__footer--minimal .hero-series-count strong {
    font-size: clamp(42px, 4.4vw, 66px);
    line-height: 0.82;
}

.hero-museum__footer--minimal .hero-now-viewing {
    align-self: end;
}

.hero-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.circular-gallery-card {
    border-color: rgba(166, 200, 255, 0.20);
    cursor: grab;
}

.circular-gallery-card:not(.hero-deck-card--active) {
    cursor: pointer;
}

.circular-gallery.is-dragging .circular-gallery-card {
    cursor: grabbing;
}

.circular-gallery-card .hero-deck-card__caption {
    gap: 7px;
    padding: 72px 17px 17px;
    background: linear-gradient(to top, rgba(2, 5, 12, 0.92), rgba(2, 5, 12, 0.38) 55%, transparent);
}

.circular-gallery-card .hero-deck-card__caption small {
    display: inline-flex;
    align-items: center;
    width: max-content;
    color: #a6c8ff;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.circular-gallery-card:focus-visible {
    z-index: 1200 !important;
}

@media (min-width: 1181px) {
    .hero-museum--circular .hero-deck {
        left: 26%;
        right: 3%;
        transform: translate3d(var(--deck-shift-x, 0px), var(--deck-shift-y, 0px), 0) !important;
    }

    .hero-museum--circular .hero-stage__nav--left {
        left: 27%;
    }

    .hero-museum--circular .hero-stage__nav--right {
        right: 3.5%;
    }
}

@media (max-width: 1180px) and (min-width: 781px) {
    .hero-museum__intro--minimal {
        width: min(300px, 34vw);
    }

    .hero-museum__footer--minimal {
        grid-template-columns: 100px 1fr;
    }
}

@media (max-width: 780px) {
    .hero-museum--circular {
        min-height: 760px !important;
    }

    .hero-museum__intro--minimal {
        top: 76px;
        width: auto;
    }

    .hero-museum__intro--minimal .hero-museum__intro-note {
        max-width: 270px;
        margin-top: 12px;
        font-size: 12px;
    }

    .circular-gallery {
        top: 238px;
        bottom: 166px;
    }

    .hero-museum__footer--minimal {
        padding-top: 15px;
    }
}
