html {
    background-color: #f1f0f5;
    scrollbar-width: thin;
    scrollbar-color: #3c3399 #e9e8f2;
}
html::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
html::-webkit-scrollbar-track {
    background: #e9e8f2;
    border-left: 1px solid rgba(60, 51, 153, 0.15);
}
html::-webkit-scrollbar-thumb {
    background: #3c3399;
    border-radius: 0;
}
html::-webkit-scrollbar-thumb:hover {
    background: #2a2370;
    border-left: 2px solid #9ef01a;
}
html::-webkit-scrollbar-thumb:active {
    background: #9ef01a;
}
#kitaSplashScreen {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
#kitaSplashScreen::before {
    content: ''; position: absolute; inset: 0;
    background-color: #f1f0f5;
    background-image: radial-gradient(rgba(60, 51, 153, 0.14) 1px, transparent 1px);
    background-size: 16px 16px;
    transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.06s, transform 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}
html.is-preview-splash-skip #kitaSplashScreen { display: none !important; }
html.site-ready #kitaSplashScreen { pointer-events: none; }
html.site-ready #kitaSplashScreen::before { opacity: 0; transform: scale(1.03); }
html.site-ready .kita-splash-title,
html.site-ready .kita-splash-bar,
html.site-ready .kita-splash-sub {
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.24s ease-out, transform 0.24s ease-out;
}
.kita-splash-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; }
.kita-splash-logo {
    position: relative; width: 44px; height: 44px; background: #3c3399;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 4px 4px 0 #a6a1cf;
    will-change: transform, opacity;
}
html:not(.is-preview-splash-skip):not(.is-repeat-splash):not(.splash-nav-landed) #navLogoBox { opacity: 0; }
html.splash-nav-landed #navLogoBox { opacity: 1; transition: opacity 0.18s ease-out; }
html.is-repeat-splash.site-ready #splashLogoBox { opacity: 0; transform: translateY(-6px); transition: opacity 0.28s ease-out, transform 0.28s ease-out; }
html.secret-glitch-mode #heroMainTitle,
html.secret-glitch-mode header nav a {
    position: relative;
}
html.secret-glitch-mode,
html.secret-glitch-mode body {
    overflow: hidden !important;
    touch-action: none;
}
html.secret-glitch-mode header {
    background-color: #ffffff !important;
}
html.secret-glitch-mode #navOrderBtn {
    position: relative; overflow: visible !important;
}
.sg-speck {
    position: absolute; pointer-events: none; z-index: 20;
}
html:not(.is-preview-splash-skip):not(.site-ready) #heroTitleRow,
html:not(.is-preview-splash-skip):not(.site-ready) #heroAvatarBox,
html:not(.is-preview-splash-skip):not(.site-ready) #heroBioCard,
html:not(.is-preview-splash-skip):not(.site-ready) #heroRightCardContainer,
html:not(.is-preview-splash-skip):not(.site-ready) #heroBgStandingContainer,
html:not(.is-preview-splash-skip):not(.site-ready) .overview-text-panel,
html:not(.is-preview-splash-skip):not(.site-ready) .overview-video-panel {
    opacity: 0; translate: 0 14px;
}
html.site-ready:not(.splash-entered) #heroTitleRow,
html.site-ready:not(.splash-entered) .overview-text-panel { opacity: 1; translate: 0 0; transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, translate 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s; }
html.site-ready:not(.splash-entered) #heroAvatarBox,
html.site-ready:not(.splash-entered) #heroBioCard { opacity: 1; translate: 0 0; transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, translate 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
html.site-ready:not(.splash-entered) #heroRightCardContainer,
html.site-ready:not(.splash-entered) .overview-video-panel { opacity: 1; translate: 0 0; transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.22s, translate 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.22s; }
html.site-ready:not(.splash-entered) #heroBgStandingContainer { opacity: 1; translate: 0 0; transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s, translate 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s; }
.kita-splash-core {
    width: 16px; height: 16px; background: #9ef01a;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.kita-splash-dot {
    position: absolute; top: -4px; right: -4px; width: 10px; height: 10px;
    background: #3c3399; border: 1.5px solid #f1f0f5;
    animation: kitaSplashDot 2s cubic-bezier(0.32, 0, 0.24, 1) forwards;
}
html.is-repeat-splash .kita-splash-dot,
html.is-repeat-splash .kita-splash-bar-fill {
    animation-duration: 1s;
}
html.is-repeat-splash .kita-splash-core {
    transition-duration: 0.14s;
}
.kita-splash-title {
    font-family: 'Outfit', 'Inter', sans-serif; font-weight: 900; font-size: 18px;
    letter-spacing: 0.12em; color: #3c3399;
}
.kita-splash-bar {
    width: 148px; height: 4px; background: rgba(60, 51, 153, 0.16);
    border: 1px solid rgba(60, 51, 153, 0.35); overflow: hidden;
}
.kita-splash-bar-fill {
    width: 100%; height: 100%; background: #3c3399; transform-origin: left center;
    animation: kitaSplashSlide 2s linear forwards;
}
.kita-splash-sub {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
    letter-spacing: 0.14em; color: #3c3399; opacity: 0.72;
}
@keyframes kitaSplashDot {
    0% { transform: translate3d(0, 0, 0); }
    16%, 25% { transform: translate3d(0, 42px, 0); }
    41%, 50% { transform: translate3d(-42px, 42px, 0); }
    66%, 75% { transform: translate3d(-42px, 0, 0); }
    91%, 100% { transform: translate3d(0, 0, 0); }
}
@keyframes kitaSplashSlide {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}
html, html[lang="zh-CN"], html[lang="zh-TW"], html[lang="ja"], body {
    font-family: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif !important;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
.font-display { font-family: 'Outfit', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', sans-serif !important; }
.font-mono { font-family: 'JetBrains Mono', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', monospace !important; }
h1, h2, h3, h4 {
    text-wrap: balance;
    overflow-wrap: break-word;
}
@media (min-width: 1024px) {
    section h2 {
        white-space: nowrap;
    }
}
.bg-halftone { background-image: radial-gradient(#3c3399 1.2px, transparent 1.2px); background-size: 16px 16px; }
.bg-halftone-dense { background-image: radial-gradient(#3c3399 1px, transparent 1px); background-size: 10px 10px; }
.kita-card { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) and (pointer: fine) {
    .kita-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0px #3c3399; }
}
@media (hover: none), (max-width: 1023px) {
    .kita-card:hover { transform: none !important; }
    .showcase-stage.is-expanded .tier-card.is-inactive:hover { transform: scale(0.95) !important; opacity: 0.88 !important; }
    .portfolio-item img,
    .group\/tile img { filter: none !important; }
    .group\/tile:hover img { transform: none !important; }
}
.hidden-item { display: none !important; }
.mg-green-step { transform-origin: center; will-change: transform; }
.mg-corner-move { position: absolute; width: 8.4px; height: 8.4px; top: -3px; right: -3px; will-change: top, right; }
.font-jp-refined {
    font-family: 'Outfit', 'Noto Sans JP', 'Inter', sans-serif !important;
    letter-spacing: 0.06em; font-weight: 800; -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) {
    .gpu-parallax { will-change: transform; transform: translate3d(0, 0, 0); backface-visibility: hidden; }
}
@media (max-width: 1023px), (hover: none) {
    .watermark-accel { transition: none !important; }
}
input[type="date"], select { -webkit-appearance: none; appearance: none; border-radius: 0; min-width: 0; max-width: 100%; box-sizing: border-box; }

/* 全局禁止图片和视频拖拽、选中及手机端长按保存 */
img, video {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ===== Live2D 橱窗：重叠错位自适应 + 视频黄金比例锁定 ===== */
:root {
    --tier-overlap: 45px;
}
@media (min-width: 1440px) {
    :root {
        --tier-overlap: clamp(45px, 6.5vw, 130px);
    }
}
.cards-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    height: 360px;
}
.tier-card {
    height: 100%;
    will-change: transform, opacity;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                opacity 0.35s ease;
}
.slide-drawer {
    display: none;
    opacity: 0;
    height: 360px;
    will-change: transform, opacity;
    transform: translateX(36px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease;
}
.showcase-stage.is-expanded {
    display: flex;
    align-items: stretch;
    gap: 20px;
}
.showcase-stage.is-expanded .cards-container {
    display: block;
    width: calc(345px + var(--tier-overlap));
    min-width: calc(345px + var(--tier-overlap));
    height: 540px;
    flex-shrink: 0;
}
.showcase-stage.is-expanded .tier-card {
    position: absolute;
    top: 0;
    width: 345px;
    height: 540px;
    box-shadow: none !important;
}
.showcase-stage.is-expanded #rigBadgeText,
.showcase-stage.is-expanded #fullBadgeText {
    font-size: 11px;
    padding: 3px 8px;
}
.showcase-stage.is-expanded #rigDurationText,
.showcase-stage.is-expanded #fullDurationText {
    font-size: 11px;
}
.showcase-stage.is-expanded .tier-card.is-active {
    left: var(--tier-overlap);
    z-index: 20;
    transform: translateX(0);
}
.showcase-stage.is-expanded .tier-card.is-inactive {
    left: 0px;
    z-index: 10;
    transform: translateX(0) scale(0.96);
    opacity: 0.85;
    cursor: pointer;
}
.showcase-stage.is-expanded .tier-card.is-inactive:hover {
    transform: translateX(-10px) scale(0.97);
    opacity: 1;
}
.showcase-stage.is-expanded .slide-drawer {
    display: flex;
    flex: 1;
    min-width: 0;
    height: 540px;
}
.showcase-stage.is-expanded .slide-drawer.is-visible {
    opacity: 1;
    transform: translateX(0);
}

body.is-preview-mode > header {
    display: none !important;
}
body.is-preview-mode *,
body.is-preview-mode *::before,
body.is-preview-mode *::after {
    transition: none !important;
    animation: none !important;
}
body.is-preview-mode .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}
body.is-preview-mode .kita-card:hover {
    transform: none !important;
}
body.is-preview-mode .group:hover #heroShowcasePlaceholder > div:first-child {
    transform: none !important;
    opacity: 1 !important;
    height: 3rem !important;
    margin-bottom: 0.75rem !important;
    border: 1px solid rgba(60, 51, 153, 0.4) !important;
}
body.is-preview-mode .group:hover #heroShowcasePlaceholderText {
    transform: none !important;
    letter-spacing: normal !important;
}
body.is-preview-mode .group:hover #kitaAvatarImg {
    transform: none !important;
}
body.is-preview-mode #heroRightCardContainer .relative.border-2.border-kita-indigo {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
}
body.is-preview-mode #heroShowcaseMediaBox {
    background-color: #f1f0f5 !important;
}
body.is-preview-mode .preview-media-slot {
    cursor: pointer !important;
    outline: 2px dashed rgba(60, 51, 153, 0.55);
    outline-offset: -2px;
}
body.is-preview-mode .preview-media-slot:hover {
    outline: 2px solid #9ef01a;
}
body.is-preview-mode .preview-media-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 25;
    background: #3c3399;
    color: #9ef01a;
    border: 1px solid #9ef01a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    pointer-events: none;
    line-height: 1.2;
}
body.is-preview-mode .overview-video-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(31, 30, 46, 0.25);
    z-index: 20;
    pointer-events: none;
}
body.is-preview-mode .overview-video-panel .preview-media-badge {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    background: rgba(60, 51, 153, 0.78);
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
}
body.is-preview-mode #featuredFallbackVideo {
    display: none !important;
}
body.is-preview-mode #featuredPreviewStage {
    background-color: #f1f0f5 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.is-preview-mode #featuredPreviewStage .preview-media-badge {
    position: static;
    background: transparent;
    border: none;
    color: #3c3399;
    font-size: 13px;
    padding: 0;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
#portfolioGrid.is-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 6px 8px 10px 2px;
    margin-top: -6px;
}
#portfolioGrid.is-carousel .portfolio-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
}
@media (min-width: 640px) {
    #portfolioGrid.is-carousel { gap: 1.75rem; }
    #portfolioGrid.is-carousel .portfolio-item { flex: 0 0 calc(50% - 0.875rem); }
}
@media (min-width: 1024px) {
    #portfolioGrid.is-carousel .portfolio-item { flex: 0 0 calc(33.3333% - 1.1667rem); }
}
body.is-preview-mode [contenteditable="true"] {
    outline: 1.5px dashed #3c3399;
    outline-offset: 3px;
    cursor: text;
    transition: background-color 0.2s;
}
body.is-preview-mode #tierCard-full [contenteditable="true"],
body.is-preview-mode footer [contenteditable="true"] {
    outline-color: rgba(255, 255, 255, 0.85);
}
body.is-preview-mode [contenteditable="true"]:focus {
    outline: 2px solid #9ef01a;
    background-color: rgba(158, 240, 26, 0.14);
}

@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .showcase-stage.is-expanded {
        flex-direction: column;
    }
    .showcase-stage.is-expanded .cards-container {
        width: 100%;
        min-width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .showcase-stage.is-expanded .tier-card {
        position: relative;
        left: 0 !important;
        width: 100%;
        height: auto;
        transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }
    .showcase-stage.is-expanded .tier-card.is-inactive {
        order: 1;
        z-index: 10;
        transform: scale(0.95);
        opacity: 0.88;
        margin-bottom: -145px;
    }
    .showcase-stage.is-expanded .tier-card.is-active {
        order: 2;
        z-index: 20;
        transform: none;
        box-shadow: 0 10px 24px rgba(31, 30, 46, 0.16) !important;
    }
    .showcase-stage.is-expanded .slide-drawer {
        width: 100%;
        height: auto;
        flex-direction: column;
        margin-top: 1.25rem;
    }
}

@media (max-width: 1023px) {
    .group:hover #heroShowcasePlaceholderText {
        --tw-scale-x: 1.12 !important;
        --tw-scale-y: 1.12 !important;
        letter-spacing: 0.01em !important;
    }
}

/* ===== 约稿页顶部总览：占满首屏（左侧对齐内容区 + 右侧 50% 贴边视频 + 左侧模糊边缘渐变） ===== */
.commission-overview-section {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}
.overview-content-wrap {
    width: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
}
.overview-text-panel {
    width: 100%;
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.overview-video-panel {
    width: 100%;
    height: 340px;
    position: relative;
    overflow: hidden;
    contain: layout paint style;
    background-color: #ffffff;
}
.overview-video-mask {
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 10%, #000 24%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 10%, #000 24%, #000 100%);
}
#overviewIntroVideo {
    opacity: 0.48;
}
.overview-video-halftone {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(60, 51, 153, 0.38) 2.2px, transparent 2.8px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.58) 38%, transparent 82%);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.58) 38%, transparent 82%);
}
.overview-video-blur-edge {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 72px;
    pointer-events: none;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.25) 55%, rgba(255, 255, 255, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
}
@media (min-width: 768px) {
    .commission-overview-section {
        min-height: calc(100vh - 117px);
        flex-direction: row;
        align-items: stretch;
    }
    .overview-content-wrap {
        min-height: calc(100vh - 117px);
    }
    .overview-text-panel {
        width: 50%;
        padding: 3.5rem 2.5rem 3.5rem 0;
    }
    .overview-video-panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 50%;
        height: 100%;
    }
    .overview-video-mask {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 10%, #000 26%, #000 100%);
        mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 10%, #000 26%, #000 100%);
    }
    .overview-video-blur-edge {
        inset: 0 auto 0 0;
        width: 120px;
        height: 100%;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: linear-gradient(to right, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 35%, transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 35%, transparent 100%);
    }
}

/* ===== 主页作品集补充：核心绑定与物理表现 4 列网格 ===== */
.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ===== 主页作品集增强：主推错位扁平布局 + 交互按键模拟 + 制作过程三步条 ===== */
.featured-case-card {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}
.featured-case-info-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.featured-case-info {
    width: 100%;
    padding: 1.5rem;
    background-color: rgba(241, 240, 245, 0.9);
    border: 1px solid color-mix(in srgb, var(--demo-primary, #3c3399) 18%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.featured-case-media {
    width: 100%;
    position: relative;
}
.featured-frame-card {
    position: relative;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1.5px solid var(--demo-primary, #3c3399);
    padding: 0.75rem;
    transition: border-color 0.3s ease, opacity 0.22s ease, filter 0.22s ease;
}
#live2dDemo.is-switching .featured-case-info > * {
    opacity: 0;
    transition: opacity 0.16s ease;
}
.featured-frame-ghost {
    position: absolute;
    inset: -1.5px;
    pointer-events: none;
    z-index: 30;
    will-change: mask-position, -webkit-mask-position;
    -webkit-mask-image: linear-gradient(105deg, transparent 0%, transparent 36%, #000 56%);
    mask-image: linear-gradient(105deg, transparent 0%, transparent 36%, #000 56%);
    -webkit-mask-size: 280% 100%;
    mask-size: 280% 100%;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
}
.featured-frame-ghost.is-wiping {
    animation: kitaGhostWipeOut 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes kitaGhostWipeOut {
    0% {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
    100% {
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }
}
@keyframes kitaTextSweepIn {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translateX(-8px);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0% 0 0);
        transform: translateX(0);
    }
}
#live2dDemo.is-switch-enter .featured-case-info > * {
    animation: kitaTextSweepIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#live2dDemo.is-switch-enter .featured-case-info > *:nth-child(1) { animation-delay: 0ms; }
#live2dDemo.is-switch-enter .featured-case-info > *:nth-child(2) { animation-delay: 55ms; }
#live2dDemo.is-switch-enter .featured-case-info > *:nth-child(3) { animation-delay: 110ms; }
#live2dDemo.is-switch-enter .featured-case-info > *:nth-child(4) { animation-delay: 165ms; }
#live2dDemo.is-switch-enter .featured-case-info > *:nth-child(5) { animation-delay: 215ms; }
#live2dDemo.is-switch-enter .featured-case-info > *:nth-child(6) { animation-delay: 260ms; }
.demo-bg-primary {
    background-color: var(--demo-primary, #3c3399) !important;
    transition: background-color 0.3s ease;
}
.demo-bg-accent {
    background-color: var(--demo-accent, #9ef01a) !important;
    transition: background-color 0.3s ease;
}
.demo-text-primary {
    color: var(--demo-primary, #3c3399) !important;
    transition: color 0.3s ease;
}
.demo-tag {
    color: var(--demo-primary, #3c3399) !important;
    border-color: color-mix(in srgb, var(--demo-primary, #3c3399) 35%, transparent) !important;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.diamond-switcher-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 0.5rem;
}
.diamond-switcher-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(60, 51, 153, 0.78);
    text-transform: uppercase;
    text-align: center;
}
.diamond-switcher-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.65rem;
}
.diamond-avatar-btn {
    position: relative;
    width: 48px;
    height: 48px;
    transform: rotate(45deg);
    border: 2px solid var(--demo-primary, #3c3399);
    background-color: #ffffff;
    box-shadow: 4px 4px 0px color-mix(in srgb, var(--demo-primary, #3c3399) 35%, transparent);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.diamond-avatar-btn:hover {
    transform: rotate(45deg) translate(-2px, -2px) scale(1.06);
    box-shadow: 6px 6px 0px var(--demo-primary, #3c3399);
}
.diamond-avatar-btn.is-active {
    border-color: var(--demo-accent, #9ef01a);
    box-shadow: 0 0 0 2px var(--demo-primary, #3c3399), 5px 5px 0px var(--demo-primary, #3c3399);
    transform: rotate(45deg) scale(1.08);
}
.diamond-avatar-btn img,
.diamond-avatar-btn .diamond-avatar-fallback {
    width: 100%;
    height: 100%;
    transform: rotate(-45deg) scale(1.42);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-preview-stage {
    position: relative;
    height: 440px;
    overflow: hidden;
    contain: layout paint style;
    touch-action: pan-y;
    background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--demo-primary, #3c3399) 55%, #12111d) 0%, #1f1e2e 100%);
}
.featured-preview-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}
.featured-sample-watermark {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    opacity: 0.8;
}
.featured-sample-track {
    width: 100%;
    padding: 0 12%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
    font-size: clamp(1.5rem, 3.4vw, 2.35rem);
    line-height: 1;
    color: var(--demo-primary, #5b4fd8);
    text-shadow: 0 1px 6px rgba(15, 14, 28, 0.35);
}
.featured-sample-track .is-lime {
    color: var(--demo-accent, #9ef01a);
}
.featured-preview-stage[data-hotkey="shy"] video {
    filter: saturate(1.22) hue-rotate(-8deg);
    transform: scale(1.03);
}
.featured-preview-stage[data-hotkey="sparkle"] video {
    filter: brightness(1.08) contrast(1.06);
    transform: scale(1.04);
}
.featured-preview-stage[data-hotkey="physics"] video {
    animation: kitaPhysicsSway 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes kitaPhysicsSway {
    0% { transform: scale(1.02) rotate(0deg); }
    30% { transform: scale(1.05) rotate(-1.8deg) translateX(-6px); }
    65% { transform: scale(1.04) rotate(1.4deg) translateX(5px); }
    100% { transform: scale(1.02) rotate(0deg); }
}
.hotkey-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding-top: 0.75rem;
    width: 100%;
}
.hotkey-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.35rem 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(9.5px, 0.78vw, 11px);
    font-weight: 700;
    color: var(--demo-primary, #3c3399);
    background-color: #f1f0f5;
    border: 1px solid color-mix(in srgb, var(--demo-primary, #3c3399) 35%, transparent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hotkey-btn:hover {
    background-color: var(--demo-primary, #3c3399);
    color: #ffffff;
    border-color: var(--demo-primary, #3c3399);
}
.hotkey-btn.is-active {
    background-color: var(--demo-primary, #3c3399);
    color: var(--demo-accent, #9ef01a);
    border-color: var(--demo-primary, #3c3399);
}
@media (max-width: 639px) {
    .hotkey-bar {
        gap: 0.2rem;
        overflow: hidden;
    }
    .hotkey-btn {
        flex: 1 1 0%;
        min-width: 0;
        padding: 0.42rem 0.15rem;
        font-size: clamp(7.5px, 2.25vw, 10px);
        letter-spacing: -0.03em;
        min-height: 34px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.process-strip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.process-step-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.process-step-line {
    flex: 1;
    height: 1px;
    background-color: rgba(60, 51, 153, 0.25);
}
.process-step-visual {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}
.spec-col-item {
    border-top: 2px solid #3c3399;
    padding-top: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
@media (min-width: 768px) {
    .process-strip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.25rem;
    }
}
@media (min-width: 1024px) {
    .featured-case-card {
        flex-direction: row-reverse;
        align-items: flex-start;
        gap: 3.5rem;
    }
    .featured-case-info-col {
        width: 46%;
        margin-top: 2.75rem;
    }
    .featured-case-info {
        width: 100%;
        padding: 2rem;
    }
    .featured-case-media {
        width: 54%;
        margin-top: 0;
    }
    .featured-preview-stage {
        height: 520px;
    }
}

/* ===== 全局几何装饰（点阵、十字线、方块、圆）与下拉动效 ===== */
.scroll-deco {
    will-change: transform;
    pointer-events: none;
    user-select: none;
}
.scroll-parallax-box {
    will-change: transform;
}
.kita-deco-cross {
    position: absolute;
    width: 18px;
    height: 18px;
}
.kita-deco-cross::before,
.kita-deco-cross::after {
    content: '';
    position: absolute;
    background-color: rgba(60, 51, 153, 0.45);
}
.kita-deco-cross::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 1.5px;
    transform: translateY(-50%);
}
.kita-deco-cross::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1.5px;
    transform: translateX(-50%);
}
.kita-deco-circle {
    position: absolute;
    border-radius: 9999px !important;
}
.kita-deco-square {
    position: absolute;
}
.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
@keyframes kitaFloatSlow {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
}
@keyframes kitaSpinStep {
    0%, 20% { transform: rotate(0deg); }
    25%, 45% { transform: rotate(90deg); }
    50%, 70% { transform: rotate(180deg); }
    75%, 95% { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}
.kita-float-slow {
    animation: kitaFloatSlow 6s ease-in-out infinite;
}
.kita-spin-step {
    animation: kitaSpinStep 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.kita-desktop-only {
    display: none;
}
#live2dDemo, #portfolio, #capabilities, #commission-entry {
    contain: layout style;
}
@media (min-width: 768px) {
    .kita-desktop-only {
        display: block;
    }
}
.live2d-side-guide {
    display: block;
    margin-bottom: 0.55rem;
    pointer-events: none;
    user-select: none;
}
.live2d-side-guide-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
}
.live2d-side-guide-line {
    display: none;
}
.live2d-side-guide-item {
    font-family: 'JetBrains Mono', 'Noto Sans JP', 'Noto Sans SC', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--demo-primary, #3c3399);
    opacity: 0.85;
    white-space: nowrap;
}
@media (min-width: 1024px) {
    .live2d-side-guide {
        position: absolute;
        left: -42px;
        top: 0;
        bottom: 0;
        width: 30px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .live2d-side-guide-track {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 560px;
        transform: translate(-50%, -50%) rotate(-90deg);
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 12px;
    }
    .live2d-side-guide-line {
        display: block;
        height: 1px;
        flex: 1;
        background: linear-gradient(to right, color-mix(in srgb, var(--demo-primary, #3c3399) 40%, transparent), rgba(166, 161, 207, 0.25));
    }
    .live2d-side-guide-item {
        font-size: 10px;
        letter-spacing: 0.08em;
        opacity: 0.78;
    }
}

/* ===== 页脚常驻社交矩阵 & 快捷联系入口 ===== */
.footer-social-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Noto Sans SC', 'Noto Sans JP', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social-btn:hover {
    background: #9ef01a;
    color: #1f1e2e;
    border-color: #9ef01a;
    transform: translateY(-1px);
}
.footer-social-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.footer-social-btn.is-email {
    border-color: rgba(158, 240, 26, 0.55);
    background: rgba(158, 240, 26, 0.12);
    color: #e9ffd0;
}
.footer-social-btn.is-email:hover {
    background: #9ef01a;
    color: #1f1e2e;
    border-color: #9ef01a;
}
.footer-bottom-divider {
    margin-top: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}



