/*
Theme Name: Pinxuan
Theme URI: https://example.com/pinxuan
Author: Pinxuan
Description: 品牌宣传主题 - 全屏滚动展示品牌视觉作品
Version: 1.0
Text Domain: pinxuan
*/

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #fff;
    background: #05070d;
}

.page-wrap {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: auto;
}

.page-wrap::-webkit-scrollbar {
    width: 0;
}

.screen {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transform: translateY(0) scale(1);
}

.screen.is-leaving {
    animation: screenLeave .9s cubic-bezier(.55, .02, .18, 1) both;
}

.screen.is-entering {
    animation: screenEnter 1.05s cubic-bezier(.16, 1, .3, 1) both;
}

.banner-screen {
    display: flex;
    align-items: center;
    padding: 0 9vw;
    isolation: isolate;
    background: #080a12;
}

.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.08);
}

.banner-screen.is-active .banner-img {
    animation: bannerZoom 7s ease forwards;
}

.banner-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 72% 48%, rgba(255, 178, 87, .16), transparent 30%),
        linear-gradient(90deg, rgba(3, 5, 12, .86), rgba(4, 7, 14, .44) 48%, rgba(4, 6, 12, .2));
}

.banner-copy {
    width: min(760px, 92vw);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    letter-spacing: .32em;
    text-transform: uppercase;
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
    opacity: 0;
    transform: translateY(26px);
}

.banner-screen.is-active .eyebrow {
    animation: fadeUp .8s ease .15s forwards;
}

.eyebrow::before {
    content: "";
    width: 46px;
    height: 1px;
    background: rgba(255, 255, 255, .72);
}

.headline {
    margin: 0;
    font-size: clamp(46px, 8vw, 112px);
    line-height: .98;
    letter-spacing: -.06em;
    font-weight: 900;
}

.headline span {
    display: block;
    opacity: 0;
    transform: translateY(76px) rotateX(42deg);
    transform-origin: left bottom;
    filter: blur(12px);
}

.banner-screen.is-active .headline span {
    animation-name: titleIn;
    animation-duration: .9s;
    animation-timing-function: cubic-bezier(.2, .8, .2, 1);
    animation-fill-mode: forwards;
}

.banner-screen.is-active .headline span:nth-child(2) {
    animation-delay: .18s;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .92);
    text-shadow: none;
}

.headline span:nth-child(3) {
    animation-delay: .35s;
    background: linear-gradient(90deg, #fff, #ffd68a, #ff7f5a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.banner-desc {
    max-width: 560px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(28px);
}

.banner-screen.is-active .banner-desc {
    animation: fadeUp .85s ease .72s forwards;
}

.scroll-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 42px;
    width: fit-content;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: 0;
}

.banner-screen.is-active .scroll-tip {
    animation: fadeUp .8s ease 1s forwards;
}

.scroll-tip i {
    width: 24px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 999px;
    position: relative;
}

.scroll-tip i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
    animation: mouseDot 1.4s ease-in-out infinite;
}

.gallery-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d2430;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .98), rgba(245, 247, 250, .96) 42%, rgba(235, 239, 244, .94)),
        linear-gradient(180deg, #f7f8fa, #eef1f5);
}

.gallery-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    border-radius: 50%;
    background: #1a2230;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: scale(0);
    transition: transform .22s cubic-bezier(.16, 1, .3, 1), opacity .15s ease;
}

.gallery-cursor.is-visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-cursor.is-on-card {
    transform: scale(1.5);
}

.gallery-copy {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    width: min(680px, 86vw);
    text-align: center;
    transform: translate(-50%, -46%) scale(.96);
    opacity: 0;
    filter: blur(8px);
    pointer-events: none;
}

.gallery-screen.is-active .gallery-copy {
    animation: centerTextIn 1s ease var(--text-delay, 6.2s) forwards;
}

.gallery-copy p {
    margin: 16px 0 0;
    letter-spacing: .12em;
    color: rgba(29, 36, 48, .58);
    font-size: 13px;
}

.gallery-copy.is-ready p {
    color: rgba(29, 36, 48, .72);
}

.gallery-copy h2 {
    margin: 0;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -.03em;
    color: rgba(29, 36, 48, .78);
}

.image-stage {
    position: relative;
    width: min(96vw, 1180px);
    height: min(92vh, 820px);
    margin-top: 1vh;
    perspective: 1600px;
    transform-style: preserve-3d;
    touch-action: none;
}

.fly-card {
    --sx: 0px;
    --sy: 0px;
    --circle-x: 0px;
    --circle-y: 0px;
    --fx: 0px;
    --fy: 0px;
    --reveal-r: 0deg;
    --reveal-s: 1;
    --delay: 0s;
    --circle-delay: 0s;
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(52px, 5.4vw, 74px);
    aspect-ratio: .76 / 1;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%) translate(var(--sx), var(--sy));
    opacity: 0;
    will-change: transform, opacity;
    transform-style: preserve-3d;
}

.gallery-screen.is-active .fly-card {
    opacity: 0;
    animation: scatterAppear .9s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: var(--delay);
}

/* ── Phase 2: 直接汇聚成圆环 ── */
.gallery-screen.is-circle-phase .fly-card {
    opacity: 1;
    animation: scatterToCirclePos 1.8s cubic-bezier(.2, .85, .18, 1) forwards;
    animation-delay: var(--circle-delay);
}

.gallery-screen.is-active .fly-card.is-circle {
    animation: none;
    opacity: 1;
    will-change: transform;
    cursor: pointer;
}

.gallery-screen.is-active .fly-card.is-circle:focus-visible {
    outline: 2px solid rgba(29, 36, 48, .45);
    outline-offset: 4px;
}

.gallery-screen.is-active .fly-card.is-circle .fly-card-inner {
    will-change: transform, box-shadow;
}

.fly-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
    background: transparent;
    border: 0;
    box-shadow: none;
    will-change: transform;
}

.fly-card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, .76);
    box-shadow: 0 16px 34px rgba(20, 30, 45, .16);
}

.fly-card-front,
.fly-card-back {
    position: absolute;
    inset: 0;
    border-radius: 9px;
    overflow: hidden;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, .86);
}

.fly-card-back {
    transform: rotateY(180deg);
}

.gallery-screen.is-active .fly-card-inner {
    animation: scatterAppearScale .9s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: var(--delay);
}

.gallery-screen.is-circle-phase .fly-card-inner {
    animation: circleInnerToTilt 1.8s cubic-bezier(.2, .85, .18, 1) forwards;
    animation-delay: var(--circle-delay);
}

.gallery-screen.is-active .fly-card.is-circle .fly-card-flipper {
    animation: none;
}

.fly-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.fly-card-front::after,
.fly-card-back::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,.42), transparent 46%, rgba(0,0,0,.08));
    pointer-events: none;
}

.series-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: #1d2430;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .99), rgba(245, 247, 250, .97) 44%, rgba(235, 239, 244, .95)),
        linear-gradient(180deg, #f7f8fa, #eef1f5);
}

.stack-stage {
    position: relative;
    width: 100%;
    height: min(92vh, 860px);
    margin: 0 auto;
    overflow: hidden;
}

.stack-cards {
    --band-rot: -4deg;
    position: absolute;
    inset: 5% 2% 30%;
    perspective: 2000px;
    perspective-origin: 46% 58%;
    transform-style: preserve-3d;
    transform: rotate(var(--band-rot));
    transform-origin: 48% 56%;
    pointer-events: none;
}

@property --hover-rise {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

@property --hover-lift-z {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

.stack-tile {
    --tx: 0px;
    --ty: 0px;
    --lift: 0px;
    --hover-rise: 0px;
    --hover-lift-z: 0px;
    --rot: 0deg;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --tile-opacity: .92;
    --tile-scale: 1;
    position: absolute;
    left: 50%;
    top: 52%;
    width: clamp(100px, 12vw, 260px);
    aspect-ratio: .72 / 1;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    transform-style: preserve-3d;
    transform-origin: 42% 88%;
    backface-visibility: hidden;
    transform:
        translate(-50%, -50%)
        translate3d(var(--tx), calc(var(--ty) + var(--hover-rise)), calc(var(--lift) + var(--hover-lift-z)))
        rotateY(var(--tilt-y))
        rotateX(var(--tilt-x))
        rotate(var(--rot))
        scale(var(--tile-scale));
    opacity: var(--tile-opacity);
    transition:
        transform .55s cubic-bezier(.2, .85, .25, 1),
        opacity .45s ease,
        box-shadow .45s ease,
        --hover-rise .42s cubic-bezier(.22, 1, .32, 1),
        --hover-lift-z .42s cubic-bezier(.22, 1, .32, 1);
    will-change: transform, opacity;
    pointer-events: none;
}

.stack-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transform: translateZ(4px);
}

.stack-tile.can-pointer {
    cursor: pointer;
}

.stack-tile.is-hovered,
.stack-tile:focus-visible {
    --hover-rise: -32px;
    --hover-lift-z: 0px;
    --tile-opacity: 1;
}

/* ── 3D thick card structure ── */
.stack-tile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
    transform: rotateX(-16deg) rotateY(-36deg);
    transition: transform .5s cubic-bezier(.16, .82, .28, 1);
    z-index: 0;
}

.stack-tile-edge {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background:
        linear-gradient(135deg, transparent 30%, rgba(0,0,0,.18) 75%),
        var(--edge-color, #888);
    transform: translateZ(-4px);
    pointer-events: none;
    transition: transform .5s cubic-bezier(.16, .82, .28, 1);
}

.stack-tile.is-hovered img,
.stack-tile:focus-visible img {
    transform: translateZ(4px);
}

.stack-tile.is-hovered .stack-tile-edge,
.stack-tile:focus-visible .stack-tile-edge {
    transform: translateZ(-4px);
}

.tile-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 40px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.tile-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, .62);
    backdrop-filter: blur(6px);
}

.tile-modal-panel {
    position: relative;
    z-index: 1;
    width: min(1080px, 96vw);
    max-height: min(88vh, 760px);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #f7f8fa;
    box-shadow: 0 40px 100px rgba(8, 12, 20, .35);
    transform: translateY(24px) scale(.96);
    transition: transform .42s cubic-bezier(.22, 1, .32, 1);
}

.tile-modal.is-open .tile-modal-panel {
    transform: translateY(0) scale(1);
}

.tile-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: rgba(29, 36, 48, .72);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(20, 30, 45, .12);
    transition: background .25s ease, transform .25s ease;
}

.tile-modal-close:hover {
    background: #fff;
    transform: scale(1.06);
}

.tile-modal-media {
    min-height: 320px;
    background: #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tile-modal-media img {
    width: 100%;
    height: 100%;
    max-height: min(88vh, 760px);
    object-fit: cover;
    display: block;
}

.tile-modal-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: clamp(28px, 4vw, 48px);
    color: #1d2430;
}

.tile-modal-index {
    margin: 0;
    font-size: 13px;
    letter-spacing: .2em;
    color: rgba(29, 36, 48, .45);
}

.tile-modal-copy h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.25;
    letter-spacing: -.03em;
    font-weight: 600;
    color: rgba(29, 36, 48, .88);
}

.tile-modal-copy p:last-child {
    margin: 0;
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.85;
    color: rgba(29, 36, 48, .58);
}

.profile-modal-panel {
    position: relative;
    width: min(980px, 94vw);
    max-height: min(86vh, 820px);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 248, 251, .98)),
        #f7f8fa;
    border: 1px solid rgba(19, 26, 39, .08);
    box-shadow: 0 38px 90px rgba(10, 16, 28, .28);
}

.profile-modal-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: clamp(18px, 2.8vw, 28px) clamp(18px, 3vw, 32px);
    background:
        radial-gradient(circle at top left, rgba(78, 121, 255, .16), transparent 42%),
        linear-gradient(135deg, #101828, #1d2b44 55%, #253a5a);
    color: #fff;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.profile-avatar svg {
    width: 30px;
    height: 30px;
}

.profile-hero-copy h3 {
    margin: 2px 0 6px;
    font-size: clamp(22px, 2.8vw, 30px);
    letter-spacing: -.03em;
}

.profile-hero-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .68);
}

.profile-hero-desc {
    margin: 0;
    max-width: 56ch;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .76);
}

.profile-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    box-shadow: 0 10px 22px rgba(10, 16, 28, .18);
}

.profile-modal-close:hover {
    background: rgba(255, 255, 255, .2);
    transform: scale(1.04);
}

.profile-modal-body {
    padding: clamp(18px, 2.5vw, 28px);
    background: #f6f8fb;
}

.profile-loading {
    min-height: 220px;
    display: grid;
    place-items: center;
    color: rgba(29, 36, 48, .42);
    font-size: 14px;
}

.profile-content {
    display: grid;
    gap: 20px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-stat {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(17, 24, 39, .08);
    box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.profile-stat-primary {
    background: linear-gradient(135deg, #1f4fff, #6f8dff);
    color: #fff;
    border-color: transparent;
}

.profile-stat-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: inherit;
    opacity: .72;
}

.profile-stat-value {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    color: inherit;
}

.profile-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.profile-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #111827;
}

.profile-section-subtitle {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(17, 24, 39, .42);
}

.profile-works-empty {
    padding: 28px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px dashed rgba(17, 24, 39, .12);
    color: rgba(17, 24, 39, .5);
}

.profile-works-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.profile-work-card {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(17, 24, 39, .08);
    box-shadow: 0 10px 26px rgba(16, 24, 40, .06);
}

.profile-work-thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e9edf4, #dfe6f1);
}

.profile-work-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-work-body {
    padding: 14px 14px 16px;
}

.profile-work-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.profile-work-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: rgba(17, 24, 39, .54);
}

.stack-header strong,
.stack-header .stack-count,
.stack-copy p {
    transition: opacity .28s ease, transform .28s ease;
}
.stack-ui.is-header-changing .stack-header strong,
.stack-ui.is-header-changing .stack-header .stack-count,
.stack-ui.is-header-changing .stack-copy p {
    opacity: 0;
    transform: translateY(6px);
}

.stack-ui {
    position: absolute;
    left: 50%;
    bottom: clamp(20px, 4vh, 44px);
    z-index: 30;
    width: min(900px, 94vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.stack-ui-mid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
    width: 100%;
}

.stack-ui-left {
    text-align: center;
}

.stack-header {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: clamp(22px, 2.4vw, 34px);
    letter-spacing: -.03em;
    color: rgba(29, 36, 48, .42);
}

.stack-header strong {
    font-weight: 500;
    color: rgba(29, 36, 48, .72);
}

.stack-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(29, 36, 48, .16);
    border-radius: 999px;
    font-size: 14px;
    color: rgba(29, 36, 48, .58);
}

.stack-copy {
    min-height: 52px;
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 8px;
}

.stack-copy p {
    margin: 0 auto;
    max-width: 520px;
    font-size: clamp(14px, 1.35vw, 17px);
    line-height: 1.75;
    color: rgba(29, 36, 48, .55);
    transition: opacity .4s ease, transform .4s ease;
}

.stack-ui.is-empty .stack-ui-mid {
    display: none;
}

.stack-ui.is-empty .stack-reveal-bar {
    display: none;
}

.stack-empty-msg {
    display: none;
    margin: 0;
    padding: 12px 0 4px;
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(29, 36, 48, .55);
    text-align: center;
}

.stack-ui.is-empty .stack-empty-msg {
    display: block;
}

.series-screen.is-active .stack-ui {
    animation: fadeUp .85s ease .2s both;
}

.stack-reveal-bar {
    position: absolute;
    left: 50%;
    bottom: 2%;
    transform: translateX(-50%);
    width: min(200px, 40vw);
    height: 3px;
    border-radius: 999px;
    background: rgba(29, 36, 48, .08);
    overflow: hidden;
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 25;
}

.series-screen.is-active .stack-reveal-bar {
    opacity: 1;
}

.stack-reveal-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: rgba(29, 36, 48, .35);
    transition: width .08s linear;
}

@keyframes bannerZoom {
    to { transform: scale(1); }
}

@keyframes titleIn {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mouseDot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

@keyframes screenLeave {
    0% { transform: translateY(0) scale(1); filter: blur(0); opacity: 1; }
    100% { transform: translateY(-4vh) scale(.985); filter: blur(5px); opacity: .35; }
}

@keyframes screenEnter {
    0% { transform: translateY(7vh) scale(1.035); filter: blur(10px); opacity: .4; }
    100% { transform: translateY(0) scale(1); filter: blur(0); opacity: 1; }
}

@keyframes scatterAppear {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes scatterAppearScale {
    0% { filter: blur(5px); }
    100% { filter: blur(0); }
}

@keyframes scatterToCirclePos {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translate(var(--sx), var(--sy)) rotate(var(--reveal-r)) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translate(var(--circle-x), var(--circle-y)) rotate(0deg) scale(.9);
    }
}

@keyframes circleInnerToTilt {
    0% { }
    100% { transform: rotate(var(--circle-r)); }
}

@keyframes centerTextIn {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(.96);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 768px) {
    .banner-screen {
        padding: 0 24px;
    }

    .gallery-copy h2 {
        font-size: 18px;
    }

    .image-stage {
        width: 132vw;
        height: 72vh;
        transform: scale(.82);
    }

    .fly-card {
        width: 58px;
    }

    .stack-stage {
        height: 100vh;
    }

    .stack-tile {
        width: clamp(72px, 20vw, 180px);
    }

    .stack-cards {
        inset: 6% 0 40%;
    }

    .stack-header {
        font-size: clamp(18px, 3.6vw, 28px);
    }

    .stack-copy p {
        font-size: clamp(13px, 3vw, 16px);
    }

    .stack-ui {
        bottom: clamp(12px, 3vh, 28px);
        gap: 10px;
    }

    .stack-empty-msg {
        font-size: clamp(14px, 3.2vw, 17px);
    }

    .tile-modal {
        padding: clamp(10px, 2vw, 20px);
    }

    .tile-modal-panel {
        grid-template-columns: 1fr;
        max-height: 92vh;
        border-radius: 14px;
    }

    .tile-modal-media {
        min-height: 200px;
        max-height: 44vh;
    }

    .tile-modal-media img {
        max-height: 44vh;
    }

    .tile-modal-copy {
        padding: clamp(18px, 3vw, 28px);
        gap: 10px;
    }

    .tile-modal-copy h2 {
        font-size: clamp(18px, 4.5vw, 28px);
    }

    .tile-modal-close {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .stack-cards {
        inset: 2% 0 44%;
        --band-rot: -2deg;
    }

    .stack-tile {
        width: clamp(56px, 24vw, 110px);
    }

    .stack-tile-inner {
        transform: rotateX(-6deg) rotateY(-18deg);
    }

    .stack-header {
        font-size: clamp(15px, 4vw, 18px);
        gap: 8px;
    }

    .stack-count {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 12px;
    }

    .stack-copy p {
        font-size: clamp(12px, 3.2vw, 14px);
        max-width: 92%;
    }

    .stack-ui {
        gap: 6px;
        bottom: clamp(6px, 2vh, 14px);
    }

    .stack-copy {
        min-height: 40px;
    }

    .stack-empty-msg {
        font-size: clamp(13px, 3.5vw, 15px);
        padding: 8px 0 2px;
    }

    .stack-reveal-bar {
        width: min(120px, 50vw);
        bottom: 1%;
        height: 2px;
    }

    .tile-modal {
        padding: 6px;
    }

    .tile-modal-panel {
        border-radius: 10px;
        max-height: 96vh;
    }

    .tile-modal-media {
        min-height: 160px;
        max-height: 38vh;
    }

    .tile-modal-media img {
        max-height: 38vh;
    }

    .tile-modal-copy {
        padding: 14px 16px 18px;
        gap: 6px;
    }

    .tile-modal-copy h2 {
        font-size: clamp(17px, 5vw, 22px);
    }

    .tile-modal-copy p:last-child {
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .tile-modal-index {
        font-size: 11px;
    }

    .tile-modal-close {
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .tile-modal-close:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .screen.is-leaving,
    .screen.is-entering,
    .banner-screen.is-active .banner-img,
    .banner-screen.is-active .eyebrow,
    .banner-screen.is-active .headline span,
    .banner-screen.is-active .banner-desc,
    .banner-screen.is-active .scroll-tip,
    .gallery-screen.is-active .fly-card,
    .gallery-screen.is-active .fly-card-inner,
    .gallery-screen.is-circle-phase .fly-card,
    .gallery-screen.is-circle-phase .fly-card-inner,
    .gallery-screen.is-active .gallery-copy,
    .series-screen.is-active .stack-ui {
        animation: none !important;
    }

    .banner-screen.is-active .headline span,
    .banner-screen.is-active .eyebrow,
    .banner-screen.is-active .banner-desc,
    .banner-screen.is-active .scroll-tip,
    .gallery-screen.is-active .gallery-copy {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .stack-tile {
        transition-duration: .01ms;
    }

    .stack-tile-inner,
    .stack-tile-front,
    .stack-tile-edge {
        transition-duration: .01ms !important;
    }

    .stack-tile.is-hovered,
    .stack-tile:focus-visible {
        --hover-rise: 0px;
        --hover-lift-z: 0px;
    }

    .stack-tile.is-hovered .stack-tile-inner,
    .stack-tile:focus-visible .stack-tile-inner {
        transform: rotateX(-16deg) rotateY(-36deg);
    }

    .stack-tile.is-hovered img,
    .stack-tile:focus-visible img {
        transform: translateZ(4px);
    }

    .stack-tile.is-hovered .stack-tile-edge,
    .stack-tile:focus-visible .stack-tile-edge {
        transform: translateZ(-4px);
    }

    .tile-modal-panel {
        transition-duration: .01ms;
    }

    .community-screen.is-active .community-header {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* ── Community Screen (第4屏：作品社区分享) ── */
.community-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #1d2430;
    /* Sky-to-water gradient */
    background-color: #dae8f0;
    background-image:
        linear-gradient(175deg,
            #fce8d0 0%, #f5d6b8 6%, #e8c8b0 14%,
            #d4c0c0 22%, #c0c8d8 32%, #b8d4e8 42%,
            #c8e0f0 55%, #daeaf4 70%, #eaf4f9 85%, #f4f8fb 100%
        ),
        radial-gradient(ellipse 60% 40% at 80% 15%, rgba(255,200,120,.25), transparent 60%),
        radial-gradient(ellipse 50% 35% at 15% 20%, rgba(255,180,140,.15), transparent 50%);
}

.community-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 15% at 45% 100%, rgba(80,200,255,.22) 0%, rgba(50,150,220,.08) 35%, transparent 55%),
        radial-gradient(ellipse 50% 30% at 20% 100%, rgba(100,210,255,.12) 0%, transparent 45%),
        radial-gradient(ellipse 50% 30% at 75% 100%, rgba(90,200,250,.10) 0%, transparent 45%),
        linear-gradient(135deg, transparent 40%, rgba(255,255,240,.06) 50%, transparent 60%);
}

.community-screen::after {
    content: "";
    position: absolute;
    left: -5%; right: -5%; bottom: 0;
    height: 25%;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(180deg,
            transparent 0%, rgba(60,160,220,.06) 15%, rgba(50,140,210,.12) 30%,
            rgba(40,120,200,.18) 50%, rgba(30,100,190,.25) 70%,
            rgba(25,85,175,.32) 85%, rgba(20,70,160,.38) 100%
        );
}

/* ── Sparkle particles ── */
.community-screen .sparkle {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    background: rgba(255,255,240,.85);
    box-shadow: 0 0 8px 3px rgba(255,255,200,.35);
}
@keyframes sparkleFloat {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    15% { opacity: .9; transform: translateY(0) scale(1); }
    85% { opacity: .5; }
    100% { transform: translateY(-120px) scale(0.3); opacity: 0; }
}
@keyframes sparkleFloat2 {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: .7; transform: translateY(0) scale(0.8); }
    80% { opacity: .35; }
    100% { transform: translateY(-90px) scale(0.2); opacity: 0; }
}
@keyframes sparkleFloat3 {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    10% { opacity: .6; transform: translateY(0) scale(0.6); }
    90% { opacity: .25; }
    100% { transform: translateY(-150px) scale(0.15); opacity: 0; }
}
/* ── Sun glow ── */
.community-screen .sun-glow {
    position: absolute;
    top: 3%;
    right: 12%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(255,220,150,.45) 0%, rgba(255,200,120,.18) 30%, transparent 60%);
    animation: sunPulse 6s ease-in-out infinite alternate;
}
@keyframes sunPulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.18); opacity: 1; }
}

.community-screen .water-ripple-1 {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 12%;
    pointer-events: none;
    z-index: 1;
    opacity: .28;
    background: repeating-linear-gradient(90deg, transparent 0px, rgba(120,220,255,.10) 2px, transparent 5px, rgba(80,200,240,.07) 8px, transparent 11px, rgba(100,210,255,.08) 14px, transparent 17px);
    animation: waterFlow 3.5s linear infinite;
}
.community-screen .water-ripple-2 {
    position: absolute;
    left: 0; right: 0;
    pointer-events: none;
    z-index: 1;
    bottom: 6%; height: 8%; opacity: .18;
    animation: waterFlow 5.2s linear infinite reverse;
    background: repeating-linear-gradient(90deg, transparent 0px, rgba(100,210,255,.08) 3px, transparent 7px, rgba(70,180,240,.06) 11px, transparent 15px);
}
.community-screen .water-ripple-3 {
    position: absolute;
    left: 0; right: 0;
    pointer-events: none;
    z-index: 1;
    bottom: 13%; height: 5%; opacity: .12;
    animation: waterFlow 4.0s linear infinite;
    background: repeating-linear-gradient(90deg, transparent 0px, rgba(140,230,255,.06) 4px, transparent 10px, rgba(100,200,250,.05) 16px, transparent 22px);
}
@keyframes waterFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(24px); }
}

/* ── Pool shimmer ── */
.community-pool::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(135deg, transparent 35%, rgba(180,230,255,.05) 45%, rgba(200,240,255,.08) 50%, rgba(180,230,255,.05) 55%, transparent 65%);
    animation: shimmerSweep 7s ease-in-out infinite;
}
@keyframes shimmerSweep {
    0% { transform: translateX(-80%); }
    100% { transform: translateX(180%); }
}

/* ── Community decorative rings ── */
.community-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(440px, 70vw);
    height: min(440px, 70vw);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    border: 1px solid rgba(60, 160, 220, .12);
    background:
        radial-gradient(circle at 40% 35%, rgba(80, 200, 255, .06) 0%, transparent 55%),
        radial-gradient(circle at 65% 70%, rgba(60, 160, 220, .04) 0%, transparent 50%);
    box-shadow:
        0 0 60px rgba(60, 160, 220, .06) inset,
        0 0 30px rgba(80, 200, 255, .04);
    animation: ringPulse 4s ease-in-out infinite alternate;
}
.community-ring-2 {
    width: min(520px, 82vw);
    height: min(520px, 82vw);
    animation-delay: -2s;
    animation-duration: 5s;
    border-color: rgba(60, 160, 220, .06);
    background: none;
    box-shadow: 0 0 80px rgba(80, 200, 255, .03) inset;
}
@keyframes ringPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: .6; }
    100% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

.community-header {
    position: absolute;
    top: clamp(24px, 3.5vh, 44px);
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.community-screen.is-active .community-header {
    animation: fadeUp .85s ease .15s forwards;
}

.community-header h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: rgba(29, 36, 48, .88);
}

.community-header p {
    margin: 8px 0 0;
    font-size: clamp(13px, 1.2vw, 16px);
    color: rgba(29, 36, 48, .45);
    letter-spacing: .06em;
}

.community-pool {
    position: relative;
    width: min(88vw, 1000px);
    height: min(68vh, 580px);
    margin-top: clamp(48px, 7vh, 72px);
    border-radius: 24px;
    background: rgba(255, 255, 255, .3);
    border: 1px solid rgba(29, 36, 48, .08);
    overflow: hidden;
    z-index: 1;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .95) inset,
        0 20px 50px rgba(29, 36, 48, .06);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}

.community-screen.is-active .community-pool {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .1s;
}

.community-pool::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 55%, rgba(232, 118, 48, .04), transparent 58%),
        radial-gradient(ellipse at 50% 60%, rgba(200, 215, 240, .1), transparent 60%);
    pointer-events: none;
}

.community-bubble {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    transition: transform .45s cubic-bezier(.22, 1, .32, 1),
                filter .4s ease;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 8px 14px rgba(72, 130, 160, .14))
            drop-shadow(0 2px 6px rgba(29, 36, 48, .06));
}

/* 水珠：左上高光点（非描边） */
.community-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .2) 12%, transparent 28%),
        radial-gradient(circle at 68% 72%, rgba(60, 120, 150, .12) 0%, transparent 45%);
    pointer-events: none;
    z-index: 3;
    opacity: .9;
}

/* 水珠：底部弧面与边缘折射（无白边） */
.community-bubble::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: none;
    box-shadow:
        inset 0 -12px 20px rgba(50, 100, 130, .18),
        inset 0 4px 12px rgba(255, 255, 255, .25);
    pointer-events: none;
    z-index: 2;
}

.community-bubble img,
.community-bubble .bubble-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
    box-shadow:
        0 6px 16px rgba(72, 130, 160, .12),
        inset 0 -10px 18px rgba(40, 90, 120, .15),
        inset 0 6px 14px rgba(255, 255, 255, .2);
    transition: box-shadow .4s ease, transform .45s cubic-bezier(.22, 1, .32, 1);
    position: relative;
    z-index: 1;
    backface-visibility: hidden;
}

/* Avatar image: center solid, edges fade to transparent */
.community-bubble .bubble-avatar {
    -webkit-mask-image: radial-gradient(circle at center, black 25%, transparent 68%);
    mask-image: radial-gradient(circle at center, black 25%, transparent 68%);
}

.community-bubble .bubble-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(11px, .9vw, 15px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .01em;
    color: rgba(35, 75, 95, .82);
    background:
        radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .55) 0%, transparent 32%),
        radial-gradient(ellipse 90% 70% at 50% 88%, rgba(80, 140, 170, .22) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(200, 230, 245, .55) 0%, rgba(140, 190, 215, .35) 55%, rgba(100, 160, 190, .4) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    text-shadow: 0 1px 2px rgba(255, 255, 255, .35);
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

.community-bubble:hover {
    z-index: 10;
    filter: drop-shadow(0 12px 22px rgba(72, 130, 160, .2))
            drop-shadow(0 4px 10px rgba(29, 36, 48, .08));
}

.community-bubble:hover img,
.community-bubble:hover .bubble-fallback {
    transform: scale(1.2);
    box-shadow:
        0 10px 22px rgba(72, 130, 160, .18),
        inset 0 -12px 20px rgba(40, 90, 120, .2),
        inset 0 8px 16px rgba(255, 255, 255, .28);
}

.community-bubble-tip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(.92);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(29, 36, 48, .8);
    font-size: 12px;
    white-space: nowrap;
    padding: 8px 16px 9px;
    border-radius: 10px;
    border: 1px solid rgba(29, 36, 48, .06);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s cubic-bezier(.22,1,.32,1);
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
    letter-spacing: .02em;
}

.community-bubble-tip span {
    color: rgba(29, 36, 48, .35);
    font-size: 11px;
}

.community-bubble:hover .community-bubble-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* ── Community cursor bubble ── */
.community-pool {
    cursor: none;
}
.community-cursor {
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: -32px 0 0 -32px;
    background: radial-gradient(circle at 35% 30%, rgba(79,124,255,.65), rgba(50,90,220,.4));
    box-shadow: 0 4px 20px rgba(79,124,255,.25), inset 0 -6px 12px rgba(0,0,0,.08), inset 0 4px 8px rgba(255,255,255,.32);
    pointer-events: none;
    z-index: 20;
    border: 2px solid rgba(255,255,255,.6);
    backdrop-filter: blur(2px);
    transition: none;
    will-change: transform;
}

@media (max-width: 768px) {
    .community-pool {
        width: 94vw;
        height: 62vh;
        border-radius: 18px;
    }
    .community-header h2 {
        font-size: clamp(20px, 4.5vw, 28px);
    }
    .community-header p {
        font-size: clamp(12px, 2.4vw, 14px);
    }
}

@media (max-width: 480px) {
    .community-pool {
        width: 96vw;
        height: 54vh;
        border-radius: 14px;
        margin-top: 24px;
    }
    .community-header h2 {
        font-size: clamp(16px, 5.5vw, 22px);
    }
    .community-header p {
        font-size: 11px;
    }
}

/* ── Community actions (个人中心 + 分享) ── */
.community-actions {
    position: absolute;
    bottom: clamp(18px, 3.5vh, 36px);
    left: 50%;
    margin-left: -150px;
    transform: translateX(-50%);
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.community-screen.is-active .community-actions {
    animation: fadeUp .6s ease .4s forwards;
    pointer-events: auto;
}

.community-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px 13px;
    border: 1px solid rgba(29, 36, 48, .14);
    border-radius: 999px;
    background: #fff;
    color: #1d2430;
    font-size: 15px;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease, box-shadow .35s ease, border-color .3s ease;
    box-shadow: 0 4px 16px rgba(29, 36, 48, .06);
    font-family: inherit;
}

.community-action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.community-action-btn:hover {
    background: #f7f8fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29, 36, 48, .1);
    border-color: rgba(29, 36, 48, .22);
}

.community-action-btn:active {
    transform: translateY(0) scale(.97);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px 13px;
    border: 0;
    border-radius: 999px;
    background: #1d2430;
    color: #fff;
    font-size: 15px;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease, box-shadow .35s ease;
    box-shadow: 0 4px 16px rgba(29, 36, 48, .2);
    font-family: inherit;
}

.share-btn:hover {
    background: #2a3342;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(29, 36, 48, .22);
}

.share-btn:active {
    transform: translateY(0) scale(.97);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ── Insert Screen (第4屏：占位) ── */
.insert-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #1d2430;
    background-color: #b8d8e8;
    background-image:
        linear-gradient(175deg,
            #c8e0f0 0%, #b8d8ea 10%,
            #a8d0e8 22%, #90c0e0 35%,
            #80b8d8 48%, #78b0d0 60%,
            #88c0e0 72%, #a0d0e8 85%, #b8e0f0 100%
        ),
        radial-gradient(ellipse 60% 35% at 50% 100%, rgba(60, 180, 220, .12), transparent 50%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(255,255,255,.15), transparent 50%);
}
/* ── Insert Screen ring + 4 dots ── */
.insert-ring-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}
.insert-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from -90deg,
        rgba(255,255,255,.5) 0deg,
        rgba(255,255,255,.5) calc(var(--fill-deg, 0deg)),
        transparent calc(var(--fill-deg, 0deg))
    );
    -webkit-mask: radial-gradient(circle, transparent calc(50% - 7px), #000 calc(50% - 7px), #000 calc(50% - 1.5px), transparent calc(50% - 1.5px));
    mask: radial-gradient(circle, transparent calc(50% - 7px), #000 calc(50% - 7px), #000 calc(50% - 1.5px), transparent calc(50% - 1.5px));
    z-index: 0;
}
.insert-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.3);
    box-shadow:
        0 0 40px rgba(255,255,255,.04) inset,
        0 0 20px rgba(100,200,255,.04);
}
.insert-ring::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    pointer-events: none;
}

/* Step indicator */
.insert-step-label {
    font-size: clamp(13px, 1vw, 16px);
    letter-spacing: .15em;
    color: rgba(255,255,255,.5);
    margin-bottom: 6px;
    font-weight: 500;
}

.insert-ring-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    box-shadow: 0 0 12px rgba(255,255,255,.2);
}
.insert-ring-dot-top    { left: 50%; top: 3.5px; transform: translate(-50%, -50%); }
.insert-ring-dot-bottom { left: 50%; bottom: 3.5px; transform: translate(-50%, 50%); }
.insert-ring-dot-left   { top: 50%; left: 3.5px; transform: translate(-50%, -50%); }
.insert-ring-dot-right  { top: 50%; right: 3.5px; transform: translate(50%, -50%); }

.insert-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: min(640px, 90vw);
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
}

.insert-screen.is-active .insert-content {
    animation: fadeUp .85s ease .2s forwards;
}

.insert-title {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: rgba(29, 36, 48, .85);
}

.insert-desc {
    margin: 0;
    font-size: clamp(15px, 1.4vw, 20px);
    color: rgba(29, 36, 48, .45);
    line-height: 1.7;
    letter-spacing: .04em;
}

/* ── Share Modal ── */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 40px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.share-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 18, .7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.share-modal-panel {
    position: relative;
    z-index: 1;
    width: min(800px, 94vw);
    max-height: min(90vh, 700px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(29, 36, 48, .1);
    box-shadow: 0 24px 80px rgba(29, 36, 48, .15);
    color: #1d2430;
    transform: translateY(24px) scale(.96);
    transition: transform .42s cubic-bezier(.22, 1, .32, 1);
    overflow: hidden;
}

.share-modal.is-open .share-modal-panel {
    transform: translateY(0) scale(1);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 32px) 0;
}

.share-modal-header h3 {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    color: #1d2430;
    letter-spacing: -.02em;
}

.share-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: rgba(29, 36, 48, .55);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, transform .25s ease;
    flex-shrink: 0;
}

.share-modal-close:hover {
    background: #fff;
    color: #1d2430;
    transform: scale(1.06);
}

.share-modal-body {
    padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px);
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-modal-body::-webkit-scrollbar {
    width: 4px;
}
.share-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.share-modal-body::-webkit-scrollbar-thumb {
    background: rgba(29, 36, 48, .15);
    border-radius: 999px;
}

.share-upload-area {
    position: relative;
    width: 100%;
    min-height: 120px;
    border-radius: 14px;
    border: 1.5px dashed rgba(29, 36, 48, .2);
    background: #f5f6f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .3s ease, background .3s ease;
    overflow: hidden;
    padding: 16px;
    box-sizing: border-box;
}

.share-upload-area:hover {
    border-color: rgba(29, 36, 48, .35);
    background: #eef0f3;
}

.share-upload-area.has-images {
    border-color: transparent;
    background: transparent;
    cursor: pointer;
    min-height: auto;
    padding: 0;
}

.share-upload-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
}

.share-upload-area.has-images .share-upload-hint {
    display: none;
}

.share-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(29, 36, 48, .08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-upload-icon svg {
    width: 20px;
    height: 20px;
    stroke: rgba(29, 36, 48, .55);
    fill: none;
}

.share-upload-icon svg path,
.share-upload-icon svg polyline,
.share-upload-icon svg line {
    stroke: rgba(29, 36, 48, .55);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share-upload-hint p {
    margin: 0;
    font-size: 13px;
    color: rgba(29, 36, 48, .55);
    letter-spacing: .02em;
}

.share-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.share-upload-area.has-images::after {
    content: '+ 添加更多图片';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin-top: 10px;
    border: 1.5px dashed rgba(29, 36, 48, .18);
    border-radius: 12px;
    background: #f5f6f8;
    font-size: 13px;
    color: rgba(29, 36, 48, .5);
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color .3s ease;
}

.share-upload-area.has-images:hover::after {
    border-color: rgba(29, 36, 48, .35);
}

.share-preview-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.share-upload-area.has-images .share-preview-grid {
    display: grid;
}

.share-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #eef0f3;
    border: 1px solid rgba(29, 36, 48, .1);
    animation: previewIn .3s cubic-bezier(.22,1,.32,1) both;
}

@keyframes previewIn {
    0% { opacity: 0; transform: scale(.85); }
    100% { opacity: 1; transform: scale(1); }
}

.share-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.share-preview-item .share-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    z-index: 2;
}

.share-preview-item .share-remove-btn:hover {
    background: rgba(200, 60, 60, .85);
}

.share-preview-count {
    display: none;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(29, 36, 48, .45);
    padding: 2px 0 0;
}

.share-upload-area.has-images .share-preview-count {
    display: block;
}

.submit-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    font-size: 12px;
    font-weight: 400;
}

.share-btn-submit.is-loading {
    opacity: .6;
    pointer-events: none;
}

.share-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
}

.share-loading.is-active {
    display: flex;
}

.share-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(29, 36, 48, .1);
    border-top-color: #1d2430;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.share-loading p {
    margin: 0;
    font-size: 14px;
    color: rgba(29, 36, 48, .55);
}

.share-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-field label {
    font-size: 13px;
    color: rgba(29, 36, 48, .75);
    letter-spacing: .04em;
}

.share-field textarea {
    width: 100%;
    min-height: 100px;
    max-height: 200px;
    padding: 12px 16px;
    border: 1px solid rgba(29, 36, 48, .15);
    border-radius: 12px;
    background: #fff;
    color: #1d2430;
    font-size: 14px;
    line-height: 1.7;
    font-family: inherit;
    resize: vertical;
    transition: border-color .3s ease, background .3s ease;
    box-sizing: border-box;
}

.share-field textarea::placeholder {
    color: rgba(29, 36, 48, .35);
}

.share-field textarea:focus {
    outline: none;
    border-color: rgba(29, 36, 48, .35);
    background: #fafbfc;
}

.share-field .char-count {
    align-self: flex-end;
    font-size: 12px;
    color: rgba(29, 36, 48, .4);
    letter-spacing: .02em;
}

.share-modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px);
}

.share-modal-footer .share-btn-submit {
    flex: 1;
    padding: 13px 24px;
    border: 0;
    border-radius: 12px;
    background: #1d2430;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .35s ease, background .3s ease;
    font-family: inherit;
}

.share-modal-footer .share-btn-submit:hover {
    background: #2a3342;
    box-shadow: 0 8px 24px rgba(29, 36, 48, .2);
    transform: translateY(-1px);
}

.share-modal-footer .share-btn-submit:active {
    transform: translateY(0) scale(.98);
}

.share-modal-footer .share-btn-submit:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.share-modal-footer .share-btn-cancel {
    padding: 13px 22px;
    border: 1px solid rgba(29, 36, 48, .18);
    border-radius: 12px;
    background: #fff;
    color: rgba(29, 36, 48, .65);
    font-size: 15px;
    cursor: pointer;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
    font-family: inherit;
}

.share-modal-footer .share-btn-cancel:hover {
    background: #f5f6f8;
    color: #1d2430;
    border-color: rgba(29, 36, 48, .28);
}

.share-modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 32px;
    text-align: center;
}

.share-modal-success.show {
    display: flex;
}

.share-modal-success .success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1d2430;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.share-modal-success h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2430;
}

.share-modal-success p {
    margin: 0;
    font-size: 14px;
    color: rgba(29, 36, 48, .55);
    line-height: 1.6;
}

/* ── Profile Modal (个人中心) ── */
.profile-modal-panel {
    max-width: min(800px, 94vw);
}

.profile-modal-body {
    max-height: min(72vh, 560px);
    overflow-y: auto;
}

.profile-loading,
.profile-error {
    text-align: center;
    padding: 40px 20px;
    color: rgba(29, 36, 48, .45);
    font-size: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: 14px;
    background: #f5f6f8;
    border: 1px solid #eef0f2;
}

.profile-stat-value {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    color: #1d2430;
    line-height: 1.1;
}

.profile-stat-label {
    font-size: 12px;
    color: rgba(29, 36, 48, .5);
    letter-spacing: .02em;
    text-align: center;
}

.profile-section-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(29, 36, 48, .75);
    letter-spacing: .04em;
}

.profile-works-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-works-empty {
    text-align: center;
    padding: 32px 16px;
    color: rgba(29, 36, 48, .35);
    font-size: 14px;
}

.profile-work-card {
    padding: 16px;
    border-radius: 14px;
    background: #f5f6f8;
    border: 1px solid #eef0f2;
}

.profile-work-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.profile-work-date {
    color: rgba(29, 36, 48, .4);
}

.profile-work-status {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.profile-status--approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.profile-status--pending {
    background: #fff8e1;
    color: #f57c00;
}

.profile-status--rejected {
    background: #ffebee;
    color: #c62828;
}

.profile-work-likes {
    margin-left: auto;
    color: rgba(29, 36, 48, .55);
    font-weight: 600;
}

.profile-work-text {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.75;
    color: #1d2430;
}

.profile-work-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-work-images img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e8ebf0;
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    .community-actions {
        flex-direction: column;
        width: min(92vw, 320px);
    }
    .community-action-btn,
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    .share-btn {
        padding: 10px 22px 11px;
        font-size: 13px;
        gap: 8px;
    }
    .share-upload-area {
        min-height: 110px;
    }
    .share-modal-footer {
        flex-direction: column-reverse;
    }
    .share-modal-footer .share-btn-cancel {
        text-align: center;
    }
}
