:root {
    --bg: #f4f6f9;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #157AFF;
    --primary-soft: rgba(21, 122, 255, .12);
    --danger: #dc2626;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(90vw, 1600px); max-width: none; margin: 0 auto; padding: 0 16px; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { font-weight: 700; font-size: 20px; color: var(--primary); display: inline-flex; align-items: center; }
.brand-logo-wrap { display: inline-flex; align-items: center; position: relative; min-height: 32px; }
.brand-logo { height: 32px; width: auto; max-width: 260px; object-fit: contain; }
.brand-logo-light { display: none; }
.brand-logo-dark { display: block; }
.topbar-home {
    position: fixed;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
}
.topbar-home:not(.is-scrolled) .brand,
.topbar-home:not(.is-scrolled) .nav a,
.topbar-home:not(.is-scrolled) .user-trigger,
.topbar-home:not(.is-scrolled) .nav-experience-btn {
    color: #fff;
}
.topbar-home:not(.is-scrolled) .brand-logo-dark { display: none; }
.topbar-home:not(.is-scrolled) .brand-logo-light { display: block; }
.topbar-home:not(.is-scrolled) .nav a.active {
    background: transparent;
    color: var(--primary);
}
.topbar-home:not(.is-scrolled) .nav a:hover {
    background: transparent;
    color: #fff;
}
.topbar-home:not(.is-scrolled) .user-trigger {
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.08);
}
.topbar-home.is-scrolled {
    background: rgba(255,255,255,.75);
    border-bottom-color: rgba(226,232,240,.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(15,23,42,.12);
}
.topbar-home.is-scrolled .brand { color: var(--primary); }
.topbar-home.is-scrolled .nav a { color: var(--muted); }
.topbar-home.is-scrolled .nav a.active,
.topbar-home.is-scrolled .nav a:hover {
    background: transparent;
    color: var(--primary);
}
.topbar-home.is-scrolled .user-trigger {
    color: var(--text);
    border-color: var(--line);
    background: #fff;
}
.topbar-home.is-scrolled .brand-logo-light { display: none; }
.topbar-home.is-scrolled .brand-logo-dark { display: block; }

.nav-wrap { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); }
.nav a:hover { background: transparent; color: var(--primary); }
.nav a.active { background: transparent; color: var(--primary); font-weight: 600; }
.nav-experience-btn {
    white-space: nowrap;
    border-radius: 99px;
    padding: 8px 20px;
    border: 1px solid #157AFF !important;
    background: linear-gradient(135deg, #157AFF, #157AFF) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(21, 122, 255, .25);
}
.nav-experience-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}
.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-toggle img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(24%) sepia(85%) saturate(3370%) hue-rotate(216deg) brightness(95%) contrast(95%);
}
.mobile-nav-toggle span {
    color: #157AFF;
    font-size: 22px;
    line-height: 1;
}
.mobile-nav-toggle:hover { opacity: .85; }
.mobile-nav-overlay { display: none; }
.topbar.mobile-nav-open { z-index: 240; }

.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 6px 10px; cursor: pointer; }
.user-trigger img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-vip-icon {
    width: 14px;
    height: 14px;
    background-color: #f59e0b;
    -webkit-mask-image: var(--vip-icon);
    mask-image: var(--vip-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}
.user-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.user-menu.open .user-dropdown { display: block; }
.user-dropdown a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.user-dropdown a:last-child { border-bottom: 0; }
.user-dropdown a:hover { color: var(--primary); background: var(--primary-soft); }
.user-dropdown-link-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--menu-icon);
    mask-image: var(--menu-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.hero { margin-top: 18px; padding: 28px; border-radius: 18px; background: linear-gradient(140deg, #157AFF 0%, #157AFF 55%, #157AFF 100%); color: #fff; box-shadow: var(--shadow); }
.hero h1 { margin: 0 0 8px; }
.hero p { margin: 0; opacity: .95; }
.back-to-top-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border: 1px solid #157AFF;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.back-to-top-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(24%) sepia(85%) saturate(3370%) hue-rotate(216deg) brightness(95%) contrast(95%);
}
.back-to-top-btn.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top-btn:hover { background: rgba(21, 122, 255, .12); }
.customer-service-btn {
    bottom: 70px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.customer-service-btn:hover {
    background: rgba(21, 122, 255, .12);
    transform: translateY(-1px);
}
.customer-service-popup {
    position: fixed;
    right: 74px;
    bottom: 70px;
    z-index: 1000;
    width: min(240px, calc(100vw - 96px));
    padding: 8px;
    border: 1px solid #157AFF;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, .16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.98);
    transform-origin: right bottom;
    transition: opacity .2s ease, transform .2s ease;
}
.customer-service-popup.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.customer-service-popup img {
    width: 100%;
    height: auto;
    max-height: min(62vh, 360px);
    object-fit: contain;
    border-radius: 10px;
    display: block;
}
.customer-service-empty {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    padding: 8px;
}
body.share-page .customer-service-btn {
    bottom: 122px;
}
body.share-page .customer-service-popup {
    bottom: 122px;
}
.share-sound-btn {
    position: fixed;
    right: 18px;
    bottom: 70px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border: 1px solid #157AFF;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.share-sound-btn:hover { background: rgba(21, 122, 255, .12); transform: translateY(-1px); }
.share-sound-btn.is-playing {
    border-color: #157AFF;
    background: rgba(21, 122, 255, .14);
}
.share-sound-btn.is-paused {
    border-color: #d1d5db;
    background: #f8fafc;
}
.share-sound-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: grayscale(1) brightness(.66);
}
.share-sound-btn.is-playing img {
    filter: brightness(0) saturate(100%) invert(24%) sepia(85%) saturate(3370%) hue-rotate(216deg) brightness(95%) contrast(95%);
}
.share-sound-btn.is-paused img {
    filter: grayscale(1) brightness(.66);
}
.home-carousel .carousel-track img,
.home-carousel .carousel-track video { height: 320px; object-fit: cover; }
.home-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.home-feature-card,
.home-client-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}
.home-feature-card img,
.home-client-card img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; margin-bottom: 8px; }
.home-feature-card h3,
.home-client-card strong { margin: 0 0 6px; display: block; }
.home-feature-card p,
.home-client-card span { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.home-cases-shell { display: grid; grid-template-columns: 46px 1fr 46px; gap: 10px; align-items: center; }
.home-cases-stage { min-height: 260px; position: relative; }
.home-case-item { display: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.home-case-item.active { display: grid; grid-template-columns: minmax(220px, 40%) 1fr; }
.home-case-item img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.home-case-text { padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.home-case-text h3 { margin: 0; }
.home-case-text p { margin: 0; color: var(--muted); line-height: 1.6; }
.home-message-form { display: flex; flex-direction: column; gap: 8px; }
.home-page-main { padding-top: 0; overflow-x: clip; }
.live-page-main { background: #fff; }
.live-page-main .home-module,
.live-page-main .home-module-live { background: #fff; }
.home-hero-carousel {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}
.home-hero-carousel .home-carousel {
    height: 100vh;
    border: 0;
    border-radius: 0;
    margin: 0;
}
.home-hero-carousel .carousel-track { height: 100%; }
.home-hero-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
}
.home-hero-carousel .home-hero-slide img,
.home-hero-carousel .home-hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 clamp(20px, 6vw, 110px);
    color: #fff;
    text-align: left;
    background: linear-gradient(180deg, rgba(2, 6, 23, .45), rgba(2, 6, 23, .35));
}
.home-hero-copy {
    width: min(660px, 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 0;
}
.home-hero-overlay h1,
.home-hero-overlay h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 62px);
    line-height: 1.16;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}
.home-hero-overlay p {
    margin: 0;
    max-width: 620px;
    font-size: clamp(14px, 2vw, 19px);
    line-height: 1.75;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.home-hero-cta {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 132px;
    padding: 10px 22px;
    border: 1px solid #157AFF !important;
    border-radius: 99px;
    background: linear-gradient(135deg, #157AFF, #157AFF) !important;
    box-shadow: 0 14px 28px rgba(21, 122, 255, .28);
}
.home-hero-cta:hover { filter: brightness(1.04); }
.home-hero-carousel .carousel-dots {
    bottom: 28px;
    z-index: 3;
}
.home-hero-carousel .carousel-dot {
    width: 11px;
    height: 11px;
    background: rgba(255, 255, 255, .55);
}
.home-hero-carousel .carousel-dot.active {
    background: #fff;
}
.home-module {
    border-top: 1px solid #e2e8f0;
    background: #fff;
    padding: clamp(54px, 8vw, 92px) 0;
}
.home-module-inner {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.home-module-head {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.home-module-title {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: .5px;
}
.home-module-subtitle {
    margin: 12px 0 0;
    color: #64748b;
    line-height: 1.8;
    font-size: 15px;
}
.home-module-about { border-top: 0; }
.home-module-cases { background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
.home-module-advantages { background: linear-gradient(180deg, #eaf3ff 0%, #f5f9ff 58%, #ffffff 100%); }
.home-module-advantages .home-module-title { color: #1e3a8a; }
.home-module-advantages .home-module-subtitle { color: #475569; }
.home-module-clients { background: #f8fafc; }
.home-module-scenarios { background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
.home-module-contact { background: #ffffff; }
.home-about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(18px, 2.4vw, 34px);
    align-items: center;
}
.home-about-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    line-height: 1.95;
    color: #334155;
    font-size: 16px;
}
.home-about-text p { margin: 0; }
.home-about-text p + p { margin-top: 10px; }
.home-about-text ul,
.home-about-text ol { margin: 10px 0 0; padding-left: 20px; }
.home-about-text li + li { margin-top: 6px; }
.home-about-text h1,
.home-about-text h2,
.home-about-text h3,
.home-about-text h4,
.home-about-text h5,
.home-about-text h6 { margin: 0 0 10px; color: #0f172a; }
.home-about-text img,
.home-about-text video {
    border-radius: 12px;
    margin-top: 12px;
}
.home-about-media {
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .12);
    background: #e2e8f0;
}
.home-about-media img,
.home-about-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}
.home-contact-layout {
    display: grid;
    grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
    gap: 16px;
}
.home-contact-panel {
    border: 0;
    border-radius: 14px;
    background: transparent;
    padding: 18px 16px;
}
.home-contact-panel h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #1e3a8a;
}
.home-contact-content {
    text-align: left;
    color: #334155;
    line-height: 1.85;
}
.home-client-logo-card,
.home-adv-body {
    text-align: center;
}
.home-scenario-content,
.home-case-body {
    text-align: left;
}
.home-contact-form {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
    gap: 10px;
}
.home-contact-form .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.home-contact-form .row > div { min-width: 0; }
.home-contact-form textarea { min-height: 126px; }
.home-contact-panel-muted {
    border-color: #e2e8f0;
    background: #f8fafc;
}
.home-contact-panel-muted p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}
.home-contact-submit {
    width: max-content;
    min-width: 128px;
    border-radius: 999px;
    padding-inline: 20px;
}
.home-scenario-shell {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: center;
    width: min(90vw, 1500px);
    max-width: 100%;
    margin: 0 auto;
}
.home-scenario-nav {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 20;
}
.home-scenario-nav::before {
    display: block;
    color: #157AFF;
    font-size: 34px;
    line-height: 1;
}
.home-scenario-nav.prev::before { content: '\2039'; }
.home-scenario-nav.next::before { content: '\203A'; }
.home-scenario-nav:hover { background: transparent; opacity: .82; }
.home-scenario-stage {
    position: relative;
    min-height: clamp(420px, 46vw, 520px);
    perspective: 1200px;
    overflow: visible;
    touch-action: pan-y;
}
.home-scenario-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(240px, 24vw, 360px);
    border-radius: 0;
    overflow: hidden;
    border: 0;
    background: #0f172a;
    box-shadow: 0 22px 42px rgba(15, 23, 42, .22);
    transition: transform .35s ease, opacity .3s ease, filter .3s ease, z-index .3s ease;
    transform-origin: center center;
    cursor: pointer;
}
.home-scenario-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
}
.home-scenario-media img { width: 100%; height: 100%; object-fit: cover; }
.home-scenario-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 52px 22px 22px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, .7) 52%, rgba(2, 6, 23, .92) 100%);
}
.home-scenario-content h3 { margin: 0; color: #fff; font-size: 24px; line-height: 1.3; text-shadow: 0 2px 10px rgba(2, 6, 23, .45); }
.home-scenario-content p { margin: 8px 0 0; color: rgba(255, 255, 255, .92); line-height: 1.7; font-size: 15px; text-shadow: 0 1px 8px rgba(2, 6, 23, .4); }
.home-scenario-card[data-scene-pos="center"] { z-index: 8; opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1.08); }
.home-scenario-card[data-scene-pos="left1"] { z-index: 6; opacity: .9; transform: translateX(calc(-50% - min(24vw, 320px))) translateY(calc(-50% + 24px)) scale(.9); }
.home-scenario-card[data-scene-pos="left2"] { z-index: 4; opacity: .68; transform: translateX(calc(-50% - min(35vw, 470px))) translateY(calc(-50% + 42px)) scale(.78); filter: saturate(.86); }
.home-scenario-card[data-scene-pos="right1"] { z-index: 6; opacity: .9; transform: translateX(calc(-50% + min(24vw, 320px))) translateY(calc(-50% + 24px)) scale(.9); }
.home-scenario-card[data-scene-pos="right2"] { z-index: 4; opacity: .68; transform: translateX(calc(-50% + min(35vw, 470px))) translateY(calc(-50% + 42px)) scale(.78); filter: saturate(.86); }
.home-scenario-card[data-scene-pos="hidden"] { z-index: 1; opacity: 0; transform: translateX(-50%) translateY(calc(-50% + 52px)) scale(.68); pointer-events: none; }
.tutorial-flow { display: flex; flex-direction: column; gap: 14px; }
.tutorial-main-title {
    margin: 0;
    font-size: clamp(28px, 4.4vw, 48px);
    line-height: 1.2;
    color: #0f172a;
}
.tutorial-sub-title {
    margin: 0;
    font-size: clamp(15px, 1.9vw, 20px);
    line-height: 1.8;
    color: #475569;
}
.tutorial-image-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f8fafc;
}
.tutorial-image-wrap img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.news-card {
    border: 1px solid #dbe5f2;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}
.news-card-link { display: block; color: inherit; }
.news-card-cover { width: 100%; aspect-ratio: 16 / 9; background: #e2e8f0; }
.news-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 14px; }
.news-card-body h3 { margin: 0; font-size: 20px; color: #0f172a; line-height: 1.35; }
.news-card-body p { margin: 10px 0 0; color: #64748b; line-height: 1.7; min-height: 48px; }
.news-card-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #334155;
    font-size: 13px;
}
.news-list-main {
    width: 100%;
    max-width: none;
    padding: 0;
}
.news-list-card {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}
.news-detail-card {
    max-width: 980px;
    margin: 0 auto;
}
.news-detail-main {
    width: 100%;
    max-width: none;
    padding: 0 16px;
}
.news-detail-main .news-detail-card {
    width: min(980px, 100%);
    margin: 0 auto;
}
.news-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #157AFF;
    color: #fff;
    border: 0;
    text-decoration: none;
}
.news-back-btn:hover {
    background: #157AFF;
    color: #fff;
}
.news-detail-title { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.22; color: #0f172a; }
.news-detail-time { margin-top: 8px; color: #64748b; font-size: 14px; }
.news-detail-cover { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #e2e8f0; }
.news-detail-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.news-detail-content { margin-top: 18px; color: #334155; line-height: 1.9; }
.news-detail-content p { margin: 0; }
.news-detail-content p + p { margin-top: 12px; }
.news-detail-content img { max-width: 100%; border-radius: 12px; margin: 12px 0; }
.home-adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.home-adv-card {
    position: relative;
    min-height: 240px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .28);
    background: linear-gradient(140deg, #157AFF, #157AFF);
    background-size: cover;
    background-position: center;
}
.home-adv-mask {
    display: none;
}
.home-adv-body {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #fff;
    z-index: 1;
}
.home-adv-body h3 { margin: 0; font-size: 19px; color: #157AFF; }
.home-adv-body p { margin: 7px 0 0; font-size: 13px; line-height: 1.6; color: #111827; opacity: 1; }
.home-client-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(100px, auto);
    gap: 12px;
    align-content: start;
    max-height: calc(100px * 5 + 12px * 4);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}
.home-client-logo-card {
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-client-logo-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}
.home-client-logo-card img {
    max-width: 100%;
    max-height: 46px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.home-client-logo-card span {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}
.home-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.home-case-card {
    display: block;
    border: 1px solid #dbe5f2;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .09);
    color: inherit;
}
.home-case-card:hover {
    transform: translateY(-2px);
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .14);
}
.home-case-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
}
.home-case-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-case-body { padding: 14px; }
.home-case-body h3 { margin: 0; font-size: 18px; color: #0f172a; }
.home-case-body p { margin: 8px 0 0; color: #64748b; line-height: 1.7; font-size: 14px; }
.home-module-live { background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
.home-live-list {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 3vw, 30px);
}
.home-live-empty {
    border: 1px dashed #157AFF;
    background: rgba(21, 122, 255, .08);
    color: #334155;
    text-align: center;
    padding: 24px 16px;
}
.home-live-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    border: 0;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}
.home-live-card.is-text-left .home-live-body { order: 1; }
.home-live-card.is-text-left .home-live-media { order: 2; }
.home-live-card.is-image-left .home-live-media { order: 1; }
.home-live-card.is-image-left .home-live-body { order: 2; }
.home-live-media {
    width: 100%;
    min-height: 240px;
    background: #e2e8f0;
}
.home-live-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-live-body {
    padding: clamp(16px, 2vw, 28px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
.home-live-body h3 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px);
    color: #0f172a;
    line-height: 1.25;
}
.home-live-body p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
    font-size: 15px;
}

.card { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h3 { margin: 0 0 10px; }
.section { margin: 18px 0; }
.section-title { font-size: 20px; margin: 0 0 14px; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.admin-section-head .section-title { margin: 0; }
.admin-section-head-btn { white-space: nowrap; }
.p16 { padding: 16px; }
.p20 { padding: 20px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 220px; }
.dashboard-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.dashboard-stat-row > * { min-width: 0; }
.dashboard-stat-card {
    border: 1px solid #157AFF;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    padding: 12px;
}
.dashboard-stat-card h3 { color: #334155; margin-bottom: 6px; font-size: 13px; }
.dashboard-stat-card > div { font-size: clamp(18px, 1.5vw, 24px); font-weight: 800; color: #0f172a; line-height: 1.2; }
.dashboard-stat-card.tone-blue { background: linear-gradient(140deg, #f4f9ff 0%, #e7f1ff 100%); border-color: #cfe0ff; }
.dashboard-stat-card.tone-cyan { background: linear-gradient(140deg, #f3fdff 0%, #e5f8ff 100%); border-color: #cbeefa; }
.dashboard-stat-card.tone-amber { background: linear-gradient(140deg, #fffaf1 0%, #fff1dc 100%); border-color: #fde4ba; }
.dashboard-stat-card.tone-green { background: linear-gradient(140deg, #f2fff8 0%, #e2faec 100%); border-color: #c9eed9; }
.admin-console-card {
    border: 1px solid #157AFF;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
.admin-console-card > h3 { color: #334155; }
.admin-console-card > div { font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1.15; }
.admin-console-card.tone-blue { background: linear-gradient(140deg, #f4f9ff 0%, #e7f1ff 100%); border-color: #cfe0ff; }
.admin-console-card.tone-cyan { background: linear-gradient(140deg, #f3fdff 0%, #e5f8ff 100%); border-color: #cbeefa; }
.admin-console-card.tone-amber { background: linear-gradient(140deg, #fffaf1 0%, #fff1dc 100%); border-color: #fde4ba; }
.admin-console-card.tone-green { background: linear-gradient(140deg, #f2fff8 0%, #e2faec 100%); border-color: #c9eed9; }
.admin-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 12px;
    align-items: start;
}
.admin-dashboard-main .row { margin: 0; }
.admin-dashboard-side {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
    padding: 14px;
}
.admin-dashboard-side h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #334155;
}
.admin-dashboard-path-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-dashboard-path-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
}
.admin-dashboard-path-label {
    margin-bottom: 4px;
    font-size: 12px;
    color: #64748b;
}
.admin-dashboard-path-item code {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: #0f172a;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.admin-dashboard-path-hint {
    margin: 10px 0 0;
    font-size: 12px;
}

.btn { border: 1px solid var(--line); background: #fff; color: var(--text); padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.danger { background: #fff; color: var(--danger); border-color: #fca5a5; }
.btn.nav-experience-btn,
.btn.home-hero-cta {
    border-radius: 999px !important;
}
.btn.tech-blue {
    background: linear-gradient(135deg, #157AFF 0%, #157AFF 100%);
    border-color: #157AFF;
    color: #fff;
    box-shadow: 0 10px 20px rgba(21, 122, 255, .28);
}
.btn.tech-blue:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.settings-save-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
}

input, textarea, select {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 14px; color: var(--text); background: #fff;
}
input[type="file"] {
    width: 100%;
    border: 1px solid #157AFF;
    border-radius: 10px;
    background: linear-gradient(165deg, #f8fbff 0%, #eef5ff 100%);
    padding: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}
input[type="file"]:hover {
    border-color: #157AFF;
    background: linear-gradient(165deg, #f4f9ff 0%, #eaf2ff 100%);
}
input[type="file"]:focus-visible {
    outline: 2px solid rgba(21, 122, 255, .24);
    outline-offset: 1px;
}
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    margin-right: 10px;
    border: 1px solid #157AFF;
    border-radius: 8px;
    background: linear-gradient(135deg, #157AFF, #157AFF);
    color: #fff;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}
input[type="file"]:hover::file-selector-button,
input[type="file"]:hover::-webkit-file-upload-button {
    filter: brightness(1.05);
}
textarea { min-height: 110px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); margin: 6px 0 4px; }
.pill-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.pill-toggle-text { font-size: 14px; color: var(--text); }
.pill-toggle-btn {
    position: relative;
    width: 52px;
    height: 28px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #e5e7eb;
    color: transparent;
    cursor: pointer;
    font-size: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    transition: all .2s ease;
}
.pill-toggle-btn::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
    transition: transform .2s ease;
}
.pill-toggle-btn.is-on {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.pill-toggle-btn.is-on::before { transform: translateX(24px); }
.pill-toggle-btn:focus-visible {
    outline: 2px solid rgba(21, 122, 255, .35);
    outline-offset: 2px;
}

.alert { border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.ok {
    position: fixed;
    left: 50%;
    top: 74px;
    transform: translate(-50%, 0);
    width: fit-content;
    max-width: calc(100vw - 24px);
    margin: 0;
    background: linear-gradient(135deg, #ecfdf5, #dcfce7);
    color: #166534;
    border: 1px solid #86efac;
    box-shadow: 0 14px 30px rgba(22, 163, 74, .20);
    z-index: 1200;
    opacity: 1;
    transition: opacity .5s ease, transform .5s ease;
}
.alert.ok.is-fadeout { opacity: 0; transform: translate(-50%, -8px); pointer-events: none; }
.copy-toast {
    position: fixed;
    left: 50%;
    top: 74px;
    transform: translate(-50%, -8px);
    width: fit-content;
    max-width: calc(100vw - 24px);
    background: linear-gradient(135deg, #ecfdf5, #dcfce7);
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 14px 30px rgba(22, 163, 74, .20);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
.save-success-popup {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.save-success-popup.show {
    opacity: 1;
    pointer-events: auto;
}
.save-success-popup-card {
    min-width: 240px;
    max-width: min(460px, calc(100vw - 32px));
    background: linear-gradient(165deg, #ffffff 0%, #f6faff 100%);
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, .28);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--line);
}
.save-success-popup-title {
    font-size: 16px;
    font-weight: 700;
    color: #157AFF;
    line-height: 1.45;
}
.save-success-popup-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}
.save-success-popup-actions .btn {
    min-width: 108px;
}
.muted { color: var(--muted); }
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 1080px; }
.admin-table th,
.admin-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.admin-table thead th { background: #f8fafc; color: #475569; font-weight: 700; position: sticky; top: 0; z-index: 1; }
.admin-table tbody tr:hover { background: #f8fbff; }
.admin-action-row { display: inline-flex; align-items: center; gap: 8px; }
.admin-action-row form { margin: 0; }
.admin-fn-btn { border-radius: 999px; padding: 5px 12px; font-weight: 600; }
.admin-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}
.admin-tag-role-admin { background: #fee2e2; color: #b91c1c; }
.admin-tag-role-user { background: #e0f2fe; color: #0c4a6e; }
.admin-tag-vip { background: #fef3c7; color: #92400e; }
.admin-tag-free { background: #e2e8f0; color: #334155; }
.admin-tag-on { background: #dcfce7; color: #166534; }
.admin-tag-off { background: #fee2e2; color: #991b1b; }
.admin-tag-level-free { background: #e2e8f0; color: #334155; }
.admin-tag-level-vip { background: rgba(21, 122, 255, .14); color: #157AFF; }
.admin-tag-level-admin { background: #ddd6fe; color: #5b21b6; }
.admin-tag-lock { background: #f1f5f9; color: #475569; }
.admin-user-storage { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.admin-user-storage .muted { font-size: 12px; }
.admin-tag-type-image { background: rgba(21, 122, 255, .14); color: #157AFF; }
.admin-tag-type-cover { background: #ede9fe; color: #6d28d9; }
.admin-tag-type-avatar { background: #cffafe; color: #155e75; }
.admin-tag-type-bgm { background: #fee2e2; color: #b91c1c; }
.admin-tag-type-audio_material { background: #fef3c7; color: #92400e; }
.admin-tag-type-orphan { background: #ffe4e6; color: #be123c; }
.admin-resource-filters {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-resource-filter-item {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-resource-filter-item label {
    font-size: 12px;
    color: var(--muted);
}
.admin-resource-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 84px; }
.admin-resource-preview img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.admin-resource-preview video { width: 220px; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.admin-resource-preview audio { width: 220px; max-width: 100%; }
.admin-resource-batch-bar {
    margin: 10px 0 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.admin-resource-batch-bar label { font-size: 12px; color: var(--muted); }
.admin-resource-batch-bar select { width: auto; min-width: 132px; }
.admin-resource-table td, .admin-resource-table th { white-space: nowrap; }
.admin-resource-table td:nth-child(4) { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.admin-resource-table td:nth-child(9) { max-width: 260px; white-space: normal; word-break: break-word; }
.admin-tag-media-image { background: rgba(21, 122, 255, .14); color: #157AFF; }
.admin-tag-media-video { background: #fee2e2; color: #b91c1c; }
.admin-tag-media-audio { background: #fef3c7; color: #92400e; }
.admin-tag-usage-cover { background: #ede9fe; color: #6d28d9; }
.admin-tag-usage-content { background: #dcfce7; color: #166534; }
.admin-tag-usage-avatar { background: #cffafe; color: #155e75; }
.admin-tag-usage-banner { background: #ffedd5; color: #9a3412; }
.admin-tag-usage-temporary { background: #f1f5f9; color: #334155; }
.admin-tag-usage-other { background: #e2e8f0; color: #475569; }
.admin-tag-status-normal { background: #dcfce7; color: #166534; }
.admin-tag-status-pending { background: #fef3c7; color: #92400e; }
.admin-tag-status-rejected { background: #fee2e2; color: #991b1b; }
.admin-tag-status-deleted { background: #e2e8f0; color: #475569; }
.admin-resource-edit-modal { width: min(92vw, 760px); max-width: 760px; }
.admin-resource-edit-preview {
    margin-bottom: 10px;
    min-height: 120px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.admin-resource-edit-preview img { max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; }
.admin-resource-edit-preview video { width: min(100%, 420px); border-radius: 8px; background: #000; }
.admin-resource-edit-preview audio { width: min(100%, 420px); }
.admin-log-table td { padding-top: 16px; padding-bottom: 16px; line-height: 1.7; }
.admin-log-detail { max-width: 560px; white-space: normal !important; word-break: break-word; color: #475569; }
.admin-message-contact { max-width: 220px; white-space: normal !important; word-break: break-all; color: #475569; }
.admin-message-content { max-width: 360px; white-space: normal !important; word-break: break-word; line-height: 1.6; color: #334155; }
.admin-message-status-form { display: inline-flex; align-items: center; gap: 8px; }
.admin-message-status-form select { width: auto; min-width: 112px; }
.admin-message-status-form .btn { white-space: nowrap; }
.admin-message-actions { display: inline-flex; align-items: center; }

.layout { display: flex; gap: 16px; margin-top: 18px; align-items: stretch; min-height: calc(100vh - 120px); height: calc(100dvh - 96px); overflow: hidden; }
.layout > .sidebar,
.layout > .main { align-self: stretch; }
.sidebar { width: 250px; position: sticky; top: 78px; min-height: calc(100vh - 96px); height: calc(100dvh - 96px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; flex-shrink: 0; display: flex; flex-direction: column; }
.side-title { padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; background: #f8fafc; }
.side-menu { overflow-y: auto; }
.side-menu a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.side-menu a.active, .side-menu a:hover { color: var(--primary); background: var(--primary-soft); }
.admin-side-menu .admin-menu-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
}
.admin-side-menu .admin-menu-link .admin-menu-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--menu-icon);
    mask-image: var(--menu-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.workspace-sidebar .workspace-menu-link { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.workspace-sidebar .workspace-menu-link .workspace-menu-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--menu-icon);
    mask-image: var(--menu-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.workspace-sidebar .workspace-menu-link span { white-space: nowrap; }
.main { flex: 1; min-width: 0; min-height: calc(100vh - 120px); max-height: calc(100dvh - 96px); height: calc(100dvh - 96px); overflow-y: auto; }

.admin-login-shell {
    min-height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}
.admin-login-page {
    background: linear-gradient(120deg, #dff5ff 0%, #e9fff7 38%, #d8f0ff 72%, #defce9 100%);
    background-size: 220% 220%;
    animation: admin-login-bg-shift 14s ease-in-out infinite;
}
.admin-login-page .admin-login-shell::before {
    content: '';
    position: absolute;
    width: min(72vw, 880px);
    height: min(72vw, 880px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(148, 233, 227, .26) 0%, rgba(148, 233, 227, 0) 70%);
    filter: blur(8px);
    z-index: 0;
}
.admin-login-page .admin-login-shell { position: relative; overflow: hidden; }
.admin-login-card {
    width: min(500px, 100%);
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(4px);
}
.admin-login-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.admin-login-actions .btn {
    width: 100%;
    text-align: center;
}

.auth-login-method-switch {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.auth-login-switch-btn {
    flex: 1;
    padding: 10px 16px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-login-switch-btn.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.auth-login-switch-btn:hover:not(.active) {
    background: #f3f4f6;
}

.auth-login-switch-btn:focus-visible {
    outline: 2px solid rgba(21, 122, 255, .28);
    outline-offset: -2px;
}

.auth-page-form div[class*="row"] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-page-form div[class*="row"] > input {
    flex: 1 1 auto;
    min-width: 0;
}

.auth-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.auth-code-row > input {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
}

#getSmsCodeBtn,
#getCodeBtn {
    flex: 0 0 auto;
    min-width: 110px;
    white-space: nowrap;
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

#getSmsCodeBtn:hover:not(:disabled),
#getCodeBtn:hover:not(:disabled) {
    filter: brightness(1.05);
}

#getSmsCodeBtn:disabled,
#getCodeBtn:disabled {
    opacity: .78;
    cursor: not-allowed;
    filter: none;
}

@keyframes admin-login-bg-shift {
    0% { background-position: 0% 40%; }
    50% { background-position: 100% 60%; }
    100% { background-position: 0% 40%; }
}

body.page-workspace { overflow: hidden; }
.workspace-shell { display: flex; height: calc(100dvh - 58px); width: 100vw; max-width: 100%; overflow: hidden; }
.workspace-sidebar { width: 260px; background: var(--panel); border-right: 1px solid var(--line); overflow-y: hidden; flex-shrink: 0; display: flex; flex-direction: column; }
.workspace-sidebar .side-menu { flex: 1; overflow-y: auto; }
.workspace-storage-panel {
    margin: auto 14px 14px;
    border: 1px solid #157AFF;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}
.workspace-storage-head { font-size: 13px; color: #475569; margin-bottom: 8px; }
.workspace-storage-track { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.workspace-storage-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #157AFF 0%, #157AFF 45%, #157AFF 100%);
}
.workspace-storage-meta { margin-top: 8px; display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: #334155; }
.workspace-main { flex: 1; min-width: 0; overflow-y: auto; background: var(--bg); }
.workspace-main-inner { padding: 16px 20px 22px; min-height: 100%; }
.workspace-mobile-bar { display: none; margin-bottom: 10px; }
.workspace-overlay { display: none; }

.dashboard-shell { display: flex; flex-direction: column; gap: 14px; }
.dashboard-summary-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.dashboard-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dashboard-kpi-card {
    border-radius: 14px;
    border: 1px solid #157AFF;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    background: linear-gradient(140deg, #f8fbff 0%, #157AFF 100%);
}
.dashboard-kpi-card h3 { margin: 0; font-size: 13px; color: #334155; }
.dashboard-kpi-card p { margin: 6px 0 0; font-size: 11px; color: #64748b; }
.dashboard-kpi-card.tone-blue { background: linear-gradient(140deg, #f1f7ff 0%, #e5f0ff 100%); border-color: #cfe0ff; }
.dashboard-kpi-card.tone-cyan { background: linear-gradient(140deg, #f1fcff 0%, #e3f8ff 100%); border-color: #bdeefb; }
.dashboard-kpi-card.tone-amber { background: linear-gradient(140deg, #fff9ed 0%, #fff2d8 100%); border-color: #fde4b5; }
.dashboard-kpi-card.tone-violet { background: linear-gradient(140deg, #f7f3ff 0%, #efe7ff 100%); border-color: #e2d4ff; }
.dashboard-kpi-card.tone-green { background: linear-gradient(140deg, #f0fff7 0%, #dffbe8 100%); border-color: #bfeecf; }
.dashboard-kpi-card.tone-rose { background: linear-gradient(140deg, #fff4f5 0%, #ffe8ea 100%); border-color: #ffd1d8; }
.dashboard-kpi-value {
    margin-top: 6px;
    font-weight: 800;
    font-size: clamp(18px, 1.55vw, 26px);
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: .2px;
}
.dashboard-kpi-value span { margin-left: 3px; font-size: 13px; font-weight: 700; color: #475569; }
.dashboard-kpi-time { font-size: clamp(15px, 1.2vw, 20px); line-height: 1.25; }
.dashboard-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dashboard-chart-card {
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.dashboard-chart-card.tone-blue { border-color: #cfe0ff; background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%); }
.dashboard-chart-card.tone-cyan { border-color: #c7ecf8; background: linear-gradient(180deg, #ffffff 0%, #f2fbff 100%); }
.dashboard-chart-card.tone-amber { border-color: #fde4b5; background: linear-gradient(180deg, #ffffff 0%, #fff8ee 100%); }
.dashboard-chart-card.tone-green { border-color: #c9eed9; background: linear-gradient(180deg, #ffffff 0%, #f1fcf6 100%); }
.dashboard-chart-card.tone-violet { border-color: #e2d4ff; background: linear-gradient(180deg, #ffffff 0%, #f7f3ff 100%); }
.dashboard-chart-card.tone-rose { border-color: #ffd1d8; background: linear-gradient(180deg, #ffffff 0%, #fff4f6 100%); }
.dashboard-chart-card h3,
.dashboard-quick-card h3,
.dashboard-list-card h3,
.dashboard-table-card h3 { margin: 0 0 10px; }
.dashboard-chart-canvas {
    width: 100%;
    height: 230px;
    display: block;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.dashboard-chart-canvas.is-pie { height: 250px; }
.dashboard-chart-note { margin: 8px 0 0; font-size: 12px; color: #64748b; line-height: 1.45; }
.dashboard-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dashboard-quick-grid .btn { width: 100%; text-align: center; }
.dashboard-quick-tip { margin-top: 10px; }
.dashboard-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dashboard-list { display: flex; flex-direction: column; gap: 8px; }
.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.dashboard-list-item:hover { border-color: #157AFF; background: #f8fbff; }
.dashboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #157AFF;
    background: #e8f1ff;
    flex-shrink: 0;
}
.dashboard-list-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dashboard-list-main strong { font-size: 14px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-list-main span { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-mini-table { min-width: 760px; }

.album-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.album-search-form {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: min(100%, 300px);
}
.album-search-form input {
    width: 100%;
    min-height: 42px;
    height: 42px;
    padding: 0 48px 0 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.album-search-form input:focus {
    border-color: #157AFF;
    box-shadow: 0 0 0 3px rgba(21, 122, 255, .16);
    background: #fff;
}
.album-search-icon-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 999px;
    padding: 0;
    border: 0;
    background: linear-gradient(135deg, #157AFF, #3b82f6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.album-search-icon-btn:hover {
    background: linear-gradient(135deg, #1268d8, #2563eb);
}
.album-search-icon-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    pointer-events: none;
    filter: brightness(0) invert(1);
}
.image-manage-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.image-manage-right { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.image-manage-right .batch-actions { flex: 0 0 auto; }
.image-manage-right .album-search-form {
    flex: 0 1 clamp(190px, 24vw, 280px);
    width: clamp(190px, 24vw, 280px);
}
.batch-actions { position: relative; }
.batch-actions > summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    padding: 8px 12px;
    line-height: 1.2;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.batch-actions > summary::before {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: url('../../svg/Batch-Management.svg');
    mask-image: url('../../svg/Batch-Management.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.batch-actions > summary::-webkit-details-marker { display: none; }
.batch-actions[open] > summary { border-color: #9ca3af; background: #e5e7eb; color: #111827; }
.image-manage-right .batch-actions > summary {
    background: transparent;
    border-color: #157AFF;
    color: #157AFF;
    border-radius: 999px;
    font-weight: 700;
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.image-manage-right .batch-actions[open] > summary,
.image-manage-right .batch-actions > summary:hover {
    background: transparent;
    border-color: #157AFF;
    color: #157AFF;
}
.batch-actions-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.batch-actions-row { display: flex; align-items: center; gap: 8px; }
.batch-actions-row .btn { white-space: nowrap; }
.batch-actions-row select { min-width: 0; }
.batch-actions-row-target select { width: 100%; flex: 1; }
.batch-actions-row-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.batch-actions-row-buttons .btn { width: 100%; justify-content: center; }
.batch-selected-tip { font-size: 12px; color: var(--muted); }
.category-create-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.category-create-form input {
    width: 180px;
    border-radius: 999px;
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
}
.category-row { display: flex; gap: 8px; flex-wrap: wrap; }
.category-sort-form-hidden { display: none; }
.category-item { position: relative; display: inline-flex; align-items: center; }
.category-item::before,
.category-item::after {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: 3px;
    border-radius: 3px;
    background: #157AFF;
    opacity: 0;
    transform: scaleY(.6);
    transition: opacity .16s ease, transform .16s ease;
    pointer-events: none;
}
.category-item::before { left: -6px; }
.category-item::after { right: -6px; }
.category-item.drag-over-before::before,
.category-item.drag-over-after::after {
    opacity: 1;
    transform: scaleY(1);
}
.category-item-draggable { cursor: grab; }
.category-item-draggable .category-chip-draggable { cursor: pointer; user-select: none; }
.category-drag-handle {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-right: 2px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    touch-action: none;
}
.category-drag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #157AFF;
    box-shadow: 0 0 0 3px rgba(21, 122, 255, .16);
}
.category-item-draggable.is-dragging .category-drag-handle { cursor: grabbing; }
.category-item-draggable.is-dragging { opacity: .62; cursor: grabbing; }
.category-item-draggable.is-dragging .category-chip {
    box-shadow: 0 6px 16px rgba(21, 122, 255, .2);
    border-color: #157AFF;
    background: rgba(21, 122, 255, .14);
}
.category-item-draggable.is-dragging .category-delete-form { visibility: hidden; }
.category-row.is-category-sorting .category-item-draggable:not(.is-dragging) { opacity: .9; }
.category-row.is-category-sorting.drop-at-end::after {
    content: '';
    width: 3px;
    height: 26px;
    border-radius: 3px;
    background: #157AFF;
    align-self: center;
}
.category-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .1s ease, opacity .14s ease;
}
.category-chip:active { transform: scale(.985); }
.category-chip.active, .category-chip:hover { color: var(--primary); border-color: #157AFF; background: rgba(21, 122, 255, .12); }
.category-chip.has-delete { padding-right: 32px; }
.category-chip-label { line-height: 1.2; }
.category-delete-form {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    margin: 0;
}
.category-delete-btn {
    width: 20px;
    min-width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff1f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.category-delete-btn img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    filter: invert(23%) sepia(79%) saturate(2854%) hue-rotate(338deg) brightness(92%) contrast(100%);
}
.category-delete-btn:hover { background: #ffe4e6; border-color: #fda4af; }

.album-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.virtual-grid-host { width: 100%; }
.virtual-grid-spacer { width: 100%; height: 0; pointer-events: none; }
.virtual-grid-window { contain: layout paint; }
.album-status-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.album-create-card { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #157AFF; background: #f8fbff; cursor: pointer; text-align: center; }
.album-create-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(21, 122, 255, .16); color: #157AFF; font-size: 38px; line-height: 56px; margin-bottom: 8px; }
.album-create-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.album-card { overflow: hidden; }
.album-card-cover-wrap { position: relative; }
.album-cover { height: 180px; width: 100%; object-fit: cover; background: #eef2ff; }
.album-cover.lazy-progressive { background: linear-gradient(135deg, #157AFF, #f8fafc); }
.album-countdown { position: absolute; left: 10px; top: 10px; z-index: 3; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; }
.album-countdown.is-expired { background: rgba(239, 68, 68, .9); color: #fff; }
.album-expired-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(220, 38, 38, .92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.album-delete-countdown {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    padding: 7px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(254, 226, 226, .95), rgba(254, 202, 202, .95));
    color: #991b1b;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}
.album-member-badge { position: absolute; right: 10px; top: 10px; z-index: 3; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.album-member-badge.is-free {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .95);
    color: #334155;
}
.album-member-badge.is-vip {
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 58%, #b45309 100%);
    border: 0;
    color: #fff7e6;
    box-shadow: 0 6px 16px rgba(217, 119, 6, .28);
}
.album-meta { padding: 12px; }
.album-meta h3 { margin: 0 0 8px; }
.album-stat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; color: #157AFF; background: rgba(21, 122, 255, .12); border-radius: 999px; padding: 4px 8px; }
.icon-chip { display: inline-flex; align-items: center; gap: 6px; }
.icon-chip img { width: 14px; height: 14px; }
.icon-chip strong { font-size: 12px; font-weight: 600; color: #1e3a8a; }
.album-card-footer { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.album-author { display: flex; align-items: center; gap: 8px; }
.album-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.album-actions { display: flex; align-items: center; gap: 6px; }
.album-actions form { margin: 0; }
.album-action-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}
.album-action-icon img { width: 16px; height: 16px; object-fit: contain; }
.album-action-icon:hover { border-color: #157AFF; background: rgba(21, 122, 255, .12); }
.album-action-icon.is-danger { border-color: #fecaca; background: #fff1f2; }
.album-action-icon.is-danger:hover { border-color: #fca5a5; background: #ffe4e6; }
.data-board-shell { display: flex; flex-direction: column; gap: 12px; }
.data-board-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.data-board-chart-canvas {
    width: 100%;
    height: 240px;
    display: block;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.data-board-chart-canvas.is-pie { height: 260px; }
.data-board-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.data-board-kpi-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 52%, #f7faff 100%);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.data-board-kpi-card h3 {
    margin: 0;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    max-width: 56%;
}
.data-board-kpi-card > div {
    margin-top: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    color: #157AFF;
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    word-break: break-word;
}
.data-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.data-board-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}
.data-board-card h3 { margin: 0 0 10px; font-size: 16px; color: #1f2937; }
.data-board-device-card { grid-column: 2; }
.data-board-device-legend {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.data-board-device-legend-item {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
}
.data-board-device-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}
.data-board-device-legend-value {
    color: #64748b;
    font-variant-numeric: tabular-nums;
}
.data-board-table-wrap { width: 100%; overflow-x: auto; }
.data-board-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.data-board-table th,
.data-board-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}
.data-board-table th { color: #475569; background: #f8fafc; }
.data-board-image-cell { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.data-board-image-cell img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.data-board-image-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-close-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: #334155;
}
.modal-close-icon-btn img { width: 16px; height: 16px; object-fit: contain; }
.modal-close-icon-btn:not(.upload-modal-minimize-btn):not(.upload-modal-restore-btn) img { display: none; }
.modal-close-icon-btn:not(.upload-modal-minimize-btn):not(.upload-modal-restore-btn)::before {
    content: '';
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url('../../svg/Close.svg');
    mask-image: url('../../svg/Close.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.modal-close-icon-btn:hover { border-color: #157AFF; background: rgba(21, 122, 255, .12); }
.modal-close-icon-btn.is-danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
}
.modal-close-icon-btn.is-danger:hover {
    border-color: #fda4af;
    background: #ffe4e6;
}
.create-album-cover-upload {
    margin-top: 2px;
    border: 1px dashed #157AFF;
    border-radius: 12px;
    background: linear-gradient(165deg, #f8fbff 0%, #eef5ff 100%);
    padding: 12px;
}
.create-album-cover-input {
    width: 100%;
    border-color: #157AFF;
}
.create-album-cover-input::file-selector-button {
    margin-right: 10px;
    border-color: #157AFF;
}
.create-album-cover-input:hover::file-selector-button { filter: brightness(1.05); }
.create-album-cover-tip {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}
.create-album-cover-preview { margin-top: 12px; }
.create-album-cover-preview .upload-preview-card {
    width: min(100%, 340px);
    height: auto;
    border-radius: 12px;
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}
.create-album-cover-preview .upload-preview-card img,
.create-album-cover-preview .upload-preview-card video {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    background: #fff;
}
.create-album-cover-preview .upload-preview-remove {
    top: 8px;
    right: 8px;
}
.create-album-submit { width: 100%; margin-top: 10px; }

.album-settings-shell { display: flex; gap: 14px; align-items: stretch; min-height: calc(100vh - 170px); }
.album-settings-shell > .album-tabs,
.album-settings-shell > .album-settings-main { align-self: stretch; }
.album-tabs { width: 180px; position: sticky; top: 84px; min-height: calc(100vh - 108px); height: auto; overflow: auto; }
.album-tabs a { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.album-tabs a.active, .album-tabs a:hover { background: var(--primary-soft); color: var(--primary); }
.album-settings-main { flex: 1; min-width: 0; min-height: calc(100vh - 170px); }

.album-editor-shell { display: flex; height: calc(100vh - 58px); width: 100vw; max-width: 100%; overflow: hidden; }
.album-editor-sidebar { width: 220px; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; flex-shrink: 0; }
.album-editor-side-head { padding: 12px; border-bottom: 1px solid var(--line); }
.album-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}
.album-back-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.album-back-link:hover { color: var(--primary); }
.album-tabs-plain { width: 100%; min-height: auto; height: auto; position: static; }
.album-tabs-plain a { border-bottom: 1px solid var(--line); }
.album-tabs .album-tab-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .1s ease, opacity .14s ease;
}
.album-tabs .album-tab-link:active { transform: scale(.985); }
.album-tabs .album-tab-link .album-tab-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--tab-icon);
    mask-image: var(--tab-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.album-tabs .album-tab-link span { white-space: nowrap; }
.album-editor-main { flex: 1; min-width: 0; overflow-y: auto; background: var(--bg); }
.album-editor-main-inner { padding: 14px 18px 20px; min-height: 100%; }
.album-editor-mobile-bar { display: none; margin-bottom: 10px; }
.album-editor-overlay { display: none; }

.share-link-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-link-row input { flex: 1; min-width: 240px; }
.share-link-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.share-link-block { border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; padding: 10px 12px; }
.share-link-block > label { display: block; margin-bottom: 8px; font-weight: 600; color: #1f2937; }
.share-link-copy-hint { margin-top: 6px; font-size: 12px; }
.share-download-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    align-items: start;
}
.share-download-main { min-width: 0; }
.share-watermark-side {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
}
.share-watermark-side .upload-preview-row { margin-top: 6px; }
.share-watermark-current { justify-content: flex-end; }
.share-download-form .settings-save-btn { grid-column: 1 / -1; }

.image-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.image-upload-tile { border: 1px dashed #157AFF; background: rgba(21, 122, 255, .08); color: #157AFF; border-radius: 12px; min-height: 220px; cursor: pointer; font-size: 16px; }
.image-upload-tile { display: flex; align-items: center; justify-content: center; text-align: center; }
.image-tile { position: relative; }
.image-square { width: 100%; aspect-ratio: 1 / 1; background: #eceff3; border-radius: 12px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.image-square img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.image-square img.lazy-progressive,
.upload-unified-card img.lazy-progressive { background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.lazy-progressive { transition: opacity .28s ease, filter .28s ease, transform .28s ease; will-change: opacity, filter, transform; }
.lazy-progressive.lazy-loading { opacity: .72; filter: blur(12px); transform: scale(1.02); }
.lazy-progressive.lazy-loaded,
.lazy-progressive.lazy-error { opacity: 1; filter: none; transform: none; }
.image-name { margin-top: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-delete-corner-form { position: absolute; top: 8px; right: 8px; z-index: 4; }
.image-delete-corner-btn {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .76);
    color: #fff;
    font-size: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.image-delete-corner-btn::before {
    content: '';
    width: 11px;
    height: 11px;
    background-color: currentColor;
    -webkit-mask-image: url('../../svg/Close.svg');
    mask-image: url('../../svg/Close.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.image-delete-corner-btn:hover { background: rgba(220, 38, 38, .92); }
.image-overlay-actions {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 8px;
    justify-content: center;
    opacity: 0;
    transition: .2s;
}
.image-overlay-actions form { margin: 0; display: inline-flex; }
.image-square:hover .image-overlay-actions { opacity: 1; }
.image-action-icon-btn {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 10px;
    background: rgba(255, 255, 255, .95);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform .15s ease, color .2s ease, border-color .2s ease, background-color .2s ease;
    backdrop-filter: blur(2px);
}
.image-action-icon-btn:hover {
    transform: translateY(-1px);
    color: #157AFF;
    border-color: rgba(21, 122, 255, .45);
    background: rgba(255, 255, 255, .98);
}
.image-action-icon {
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask-image: var(--action-icon);
    mask-image: var(--action-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.image-action-pin { color: #64748b; }
.image-action-pin.is-active {
    color: #157AFF;
    border-color: rgba(21, 122, 255, .5);
    background: rgba(219, 234, 254, .92);
}
.image-action-delete,
.image-action-download {
    color: #64748b;
    border-color: rgba(148, 163, 184, .45);
}
.image-action-delete:hover,
.image-action-download:hover {
    color: #157AFF;
    border-color: rgba(21, 122, 255, .45);
    background: rgba(255, 255, 255, .98);
}
@media (hover: none) {
    .image-overlay-actions { opacity: 1; }
}
.image-select-box { position: absolute; z-index: 3; left: 8px; top: 8px; width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; }
.image-select-box input { width: 14px; height: 14px; margin: 0; }
.image-pin-badge {
    position: absolute;
    z-index: 3;
    left: 34px;
    top: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.4;
    color: #fff;
    background: rgba(21, 122, 255, .92);
    border: 1px solid rgba(255, 255, 255, .65);
    pointer-events: none;
}
.upload-preview-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.upload-preview-card { width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; position: relative; }
.upload-preview-card img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-card video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.upload-preview-card video::-webkit-media-controls { display: none !important; }
.upload-preview-card.beauty-audio-card { width: 260px; height: auto; min-height: 56px; padding: 10px 28px 10px 10px; }
.upload-preview-card.beauty-audio-card audio { width: 100%; height: 36px; display: block; }
.upload-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 5;
}
.upload-preview-remove::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: currentColor;
    -webkit-mask-image: url('../../svg/Close.svg');
    mask-image: url('../../svg/Close.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.upload-preview-remove:hover { background: rgba(220, 38, 38, .9); }
.beauty-existing-delete-btn { z-index: 2; }
.image-manage-action-btn {
    background: #157AFF;
    color: #fff;
    border-color: #157AFF;
    border-radius: 100px;
    min-height: 40px;
    height: 40px;
    padding: 0 18px;
}
.image-manage-action-btn:hover {
    background: #157AFF;
    border-color: #157AFF;
    color: #fff;
}
.image-manage-right .album-search-form input {
    min-height: 42px;
    height: 42px;
    padding-right: 48px;
}
.upload-unified-wrap { margin-top: 12px; }
.upload-unified-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.upload-unified-grid {
    --upload-preview-size: 96px;
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--upload-preview-size));
    grid-auto-rows: var(--upload-preview-size);
    justify-content: flex-start;
    gap: 10px;
    max-height: none;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 6px;
}
.upload-unified-card { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f8fafc; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.upload-unified-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-unified-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    font-size: 11px;
    color: #f8fafc;
    padding: 14px 6px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .78) 100%);
    pointer-events: none;
}
.upload-unified-delete-form { position: absolute; inset: 0; pointer-events: none; }
.upload-unified-delete-form .upload-preview-remove { pointer-events: auto; }
.upload-unified-card.is-pending { border-style: dashed; border-color: #157AFF; background: rgba(21, 122, 255, .08); }
.album-beauty-form { display: block; }
.album-beauty-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 12px;
    align-items: start;
}
.album-beauty-sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
}
.beauty-subnav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
    padding: 8px;
}
.beauty-subnav-link {
    display: block;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 12px;
    color: #334155;
    font-weight: 600;
    transition: .2s;
}
.beauty-subnav-link:hover {
    background: #eef4ff;
    border-color: #157AFF;
    color: #157AFF;
}
.beauty-subnav-link.active {
    background: #eaf2ff;
    border-color: #157AFF;
    color: #157AFF;
}
.album-beauty-main {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.beauty-group { border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; padding: 12px; }
.beauty-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.beauty-group-title { margin: 0; font-size: 16px; color: #1f2937; }
.beauty-group-hint { margin: 6px 0 10px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.beauty-audio-preview {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.beauty-audio-preview audio {
    width: 100%;
    max-width: 100%;
}
.album-skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.album-skin-option {
    position: relative;
    display: block;
    cursor: pointer;
}
.album-skin-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.album-skin-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.album-skin-option:hover .album-skin-card {
    border-color: #157AFF;
    box-shadow: 0 8px 18px rgba(59, 130, 246, .14);
    transform: translateY(-1px);
}
.album-skin-option input:checked + .album-skin-card {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(21, 122, 255, .18);
}
.album-skin-swatches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
}
.album-skin-swatch {
    display: block;
}
.album-skin-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.album-skin-meta strong {
    font-size: 13px;
    line-height: 1.3;
    color: #1f2937;
}
.album-skin-meta small {
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
}
.album-beauty-actions { display: flex; justify-content: flex-end; margin-top: 2px; grid-column: 1 / -1; }
.album-beauty-actions .btn { width: 100%; }
.album-beauty-guide { border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; padding: 12px; position: sticky; top: 84px; align-self: start; }
.album-beauty-guide-media { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; min-height: 180px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
.album-beauty-guide-media img { width: 100%; height: auto; display: block; object-fit: contain; }
.album-beauty-form .upload-preview-card img,
.album-beauty-form .upload-preview-card video,
.album-beauty-guide-media img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
.admin-album-manage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.admin-album-manage-card { border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; padding: 12px; }
.admin-album-manage-card h3 { margin: 0 0 10px; font-size: 16px; }
.admin-album-manage-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #475569; }
.admin-album-manage-toggle-row { margin-top: 10px; }
.admin-site-setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.admin-site-setting-card { border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; padding: 12px; margin-top: 12px; }
.admin-site-setting-card h3 { margin: 0 0 10px; font-size: 16px; }
.admin-site-setting-card-full { margin-top: 12px; }
.admin-album-row-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-album-row-actions form { margin: 0; }
.admin-album-edit-form { max-width: 920px; }
.admin-album-cover-clear { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: #475569; }
.album-permission-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    max-width: 920px;
}
.album-permission-form-wide {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
}
.permission-group {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
    padding: 12px;
}
.permission-group.permission-group-compact {
    padding: 10px 12px;
}
.permission-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.permission-group-title {
    margin: 0 0 10px;
    font-size: 16px;
    color: #1f2937;
}
.album-permission-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}
.album-ai-retouch-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
}
.album-ai-retouch-inline .pill-toggle-row {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}
.album-ai-retouch-inline .settings-save-btn {
    width: auto;
    min-width: 76px;
    margin-top: 0;
    padding: 8px 12px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.admin-home-editor { display: flex; flex-direction: column; gap: 14px; }
.admin-home-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfdff; }
.admin-home-group-title { margin: 0 0 10px; font-size: 18px; }
.admin-home-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.admin-home-group-head .admin-home-group-title { margin-bottom: 0; }
.admin-home-group-head .btn.small:disabled { opacity: .6; cursor: not-allowed; }
.admin-home-limit-hint { margin: -2px 0 8px; font-size: 12px; color: var(--muted); }
.admin-home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
.admin-repeater-modal-content { width: min(720px, 96vw); }
.admin-repeater-modal-body {
    max-height: min(62vh, 680px);
    overflow-y: auto;
    padding-right: 4px;
}
.admin-repeater-modal-body .admin-home-item {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}
.admin-repeater-modal-body [data-repeater-remove] { display: none; }
.admin-home-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
/* 图片直播：添加卡片不使用阴影 */
#liveSettingCards .admin-home-item,
#liveCards .admin-home-item {
    border: 0 !important;
    box-shadow: none !important;
}
.admin-home-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.admin-home-item-actions { display: inline-flex; align-items: center; gap: 8px; }
.admin-home-item h4 { margin: 0; font-size: 14px; color: #334155; }
.admin-home-item-head .pill-toggle-btn { flex-shrink: 0; }
.admin-home-group-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}
.admin-news-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-news-toolbar .btn { padding: 6px 10px; font-size: 13px; }
.admin-news-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-news-modal-content { width: min(900px, 96vw); }
.admin-news-editor {
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    overflow: auto;
    line-height: 1.8;
}
.admin-news-editor:focus { outline: 2px solid rgba(21, 122, 255, .25); outline-offset: 1px; }
.admin-news-cover-preview { width: 140px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; margin-top: 8px; }
.admin-news-cover-preview img { width: 100%; height: 90px; object-fit: cover; }
.admin-album-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; min-width: 980px; }
.admin-album-table thead th {
    color: #334155;
    font-size: 13px;
    letter-spacing: .2px;
    padding: 10px 14px;
    border-bottom: 1px solid #dbe5f2;
    background: #f8fafc;
}
.admin-album-table tbody td {
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.admin-album-table tbody td:first-child {
    border-left: 1px solid #e2e8f0;
    border-radius: 12px 0 0 12px;
}
.admin-album-table tbody td:last-child {
    border-right: 1px solid #e2e8f0;
    border-radius: 0 12px 12px 0;
}
.admin-album-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.admin-album-status.normal { background: #16a34a; }
.admin-album-status.expired { background: #ea580c; }
.admin-album-status.banned { background: #dc2626; }
.admin-album-status-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.admin-album-status-form select {
    min-width: 88px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0 8px;
    background: #fff;
    flex-shrink: 0;
}
.admin-album-status-form .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.auth-page { position: relative; min-height: calc(100vh - 130px); display: flex; align-items: center; justify-content: center; }
.auth-overlay { position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(130deg, rgba(21,122,255,.18), rgba(14,165,233,.12)); }
.auth-dialog { position: relative; width: min(520px, 100%); z-index: 2; box-shadow: var(--shadow); }
.auth-split-page { min-height: calc(100vh - 120px); display: flex; align-items: center; padding: max(8px, env(safe-area-inset-top)) 0 14px; }
.auth-split-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(280px, .92fr);
    background: #fff;
}
.auth-split-visual { background: #f8fafc; padding: 12px; }
.auth-page-carousel { margin: 0; border: 0; border-radius: 12px; overflow: hidden; height: 100%; min-height: 430px; }
.auth-page-carousel .carousel-track { height: 100%; }
.auth-page-carousel .carousel-track img { height: 100%; min-height: 430px; object-fit: cover; }
.auth-split-panel { display: flex; align-items: center; justify-content: center; padding: 18px; }
.auth-split-panel-inner { width: min(360px, 100%); }
.auth-page-form { display: flex; flex-direction: column; gap: 8px; }
.auth-page-submit { margin-top: 10px; width: 100%; }
.auth-page-forgot-row {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.auth-page-switch-row { margin-top: 12px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.auth-page-switch-row:not(.is-login) {
    justify-content: space-between;
    width: 100%;
}
.auth-page-switch-row.is-login {
    justify-content: space-between;
    width: 100%;
}
.auth-register-agreement-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}
.auth-agreement-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
}
.auth-agreement-check input {
    margin: 0;
    width: 14px;
    height: 14px;
    accent-color: #157AFF;
}
.auth-agreement-link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}
.auth-page-register-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-page-switch-link { color: #157AFF; font-size: 14px; line-height: 1.4; }
.auth-page-switch-link:hover { color: #157AFF; text-decoration: underline; }
.auth-forgot-link {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.access-gate-shell {
    max-width: 560px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 16px;
}
.access-gate-shell .card { width: 100%; }
.access-gate-form { display: flex; flex-direction: column; gap: 10px; }
.access-gate-form .btn { width: 100%; margin-top: 2px; }

.profile-avatar-preview { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.upgrade-banner-img {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 12px;
    object-fit: contain;
    display: block;
}

.modal { display: none; position: fixed; inset: 0; z-index: 120; background: rgba(15, 23, 42, .52); align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.nav-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .18);
    backdrop-filter: blur(1.5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}
.nav-loading-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.nav-loading-box {
    width: min(260px, 88vw);
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.nav-loading-text {
    font-size: 13px;
    color: #334155;
    font-weight: 600;
    letter-spacing: .1px;
}
body.is-nav-pending { cursor: progress; }
a.is-nav-pending {
    opacity: .62 !important;
    transform: scale(.985);
    pointer-events: none;
}
button.is-nav-pending,
input[type="submit"].is-nav-pending {
    opacity: .62 !important;
    pointer-events: none;
}
.workspace-main-inner,
.album-editor-main-inner,
.main {
    transition: filter .18s ease, opacity .18s ease;
}
body.is-nav-loading .workspace-main-inner,
body.is-nav-loading .album-editor-main-inner,
body.is-nav-loading .main {
    filter: blur(1.4px);
    opacity: .86;
    pointer-events: none;
}
.modal-content { width: min(560px, 100%); background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); max-height: 85vh; overflow: auto; }
.confirm-blue-modal-content {
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(165deg, #ffffff 0%, #f6faff 100%);
    box-shadow: 0 24px 50px rgba(15, 23, 42, .28);
    padding: 18px;
}
.confirm-blue-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #157AFF;
}
.confirm-blue-modal-message {
    margin-top: 10px;
    color: #334155;
    line-height: 1.7;
    word-break: break-word;
}
.confirm-blue-modal-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.confirm-blue-modal-actions .btn {
    min-width: 92px;
}
.create-album-loading-content {
    width: min(320px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 20px;
    text-align: center;
    overflow: hidden;
}
.create-album-loading-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #dbeafe;
    border-top-color: #157AFF;
    animation: create-album-loading-spin .8s linear infinite;
}
.create-album-loading-text { font-size: 16px; font-weight: 600; color: #1e293b; }
.beauty-save-progress-wrap {
    width: min(280px, 72vw);
    max-width: calc(100% - 24px);
    margin: 8px auto 0;
}
.beauty-save-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.beauty-save-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #157AFF, #157AFF);
    transition: width .2s ease;
}
.beauty-save-progress-text {
    margin-top: 8px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
}
@keyframes create-album-loading-spin { to { transform: rotate(360deg); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.auth-modal-content { width: min(400px, 100%); padding-bottom: 28px; }
.auth-modal-content .modal-close-icon-btn {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #334155;
}
.auth-modal-content .modal-close-icon-btn:hover {
    border: 0;
    background: transparent;
    opacity: .88;
}
.auth-modal-content .modal-close-icon-btn::before {
    width: 18px;
    height: 18px;
}
.auth-modal-form { display: flex; flex-direction: column; gap: 8px; }
.auth-forgot-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.auth-forgot-code-row > input {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
}
.auth-forgot-code-row .btn {
    min-width: 112px;
    white-space: nowrap;
}
.auth-modal-submit { margin-top: 8px; }
.auth-agreement-modal-content { width: min(620px, 100%); }
.auth-agreement-content {
    margin-top: 8px;
    max-height: min(58vh, 520px);
    overflow: auto;
    line-height: 1.8;
    color: #1e293b;
    white-space: normal;
    word-break: break-word;
}
.auth-modal-main-btn { width: 100%; }
.auth-modal-switch-row { margin-top: 12px; display: flex; justify-content: center; padding-bottom: 4px; }
.auth-modal-switch-link {
    color: #157AFF;
    font-size: 14px;
    line-height: 1.4;
    border: 0;
    background: transparent;
    padding: 0;
}
.auth-modal-switch-link:hover { color: #157AFF; text-decoration: underline; }
.upload-modal-content { width: min(760px, 100%); }
.upload-modal-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.upload-modal-minimize-btn img,
.upload-modal-restore-btn img {
    display: inline-flex;
    width: 14px;
    height: 14px;
    object-fit: contain;
}
.upload-modal-mini-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.upload-modal-restore-btn {
    flex: 0 0 auto;
    border-color: #157AFF;
    background: rgba(21, 122, 255, .12);
}
.upload-modal-restore-btn img {
    filter: brightness(0) saturate(100%) invert(30%) sepia(95%) saturate(1700%) hue-rotate(212deg) brightness(94%) contrast(96%);
}
.upload-modal-restore-btn:hover {
    border-color: #157AFF;
    background: rgba(21, 122, 255, .16);
}
.upload-modal-mini-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.upload-simple-modal {
    width: min(860px, 96vw);
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    overflow: hidden;
}
#uploadImagesModal.upload-modal-minimized {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    pointer-events: none;
    z-index: 140;
}
#uploadImagesModal.upload-modal-minimized .upload-simple-modal {
    position: fixed;
    right: 14px;
    bottom: 14px;
    width: min(280px, calc(100vw - 20px));
    max-height: none;
    border-radius: 12px;
    padding: 10px 12px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .2);
    pointer-events: auto;
}
#uploadImagesModal.upload-modal-minimized .modal-header,
#uploadImagesModal.upload-modal-minimized .upload-simple-form {
    display: none;
}
#uploadImagesModal.upload-modal-minimized .upload-modal-mini-bar {
    display: flex;
}
.upload-simple-form { display: flex; flex-direction: column; gap: 12px; max-height: calc(85vh - 78px); min-height: 0; overflow: auto; padding-right: 4px; }
.upload-simple-form.is-uploading-phase { overflow: hidden; }
.upload-simple-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.upload-toolbar-field { min-width: 220px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.upload-toolbar-field select { width: 100%; }
.upload-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.upload-toolbar-actions .btn { white-space: nowrap; min-width: 120px; }
.upload-hidden-input { display: none; }
.upload-drop-preview-area {
    margin-top: 10px;
    border: 1px dashed #157AFF;
    border-radius: 12px;
    background: #f8fbff;
    min-height: clamp(240px, 40vh, 460px);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.upload-drop-preview-area:hover,
.upload-drop-preview-area.is-dragover {
    border-color: #157AFF;
    background: rgba(21, 122, 255, .08);
    transform: translateY(-1px);
}
.upload-drop-preview-area:focus-visible {
    outline: 2px solid rgba(21, 122, 255, .45);
    outline-offset: 2px;
}
.upload-drop-preview-area.has-files {
    align-items: stretch;
    justify-content: stretch;
    cursor: default;
    overflow: hidden;
}
.upload-drop-preview-area.has-files.is-uploading-phase {
    min-height: 0;
    flex: 1 1 auto;
    height: clamp(220px, calc(85vh - 230px), 520px);
}
.upload-drop-zone {
    margin-top: 0;
    width: 100%;
    min-height: 180px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: #157AFF;
    pointer-events: none;
}
.upload-drop-zone strong { font-size: 14px; font-weight: 700; }
.upload-drop-zone span { font-size: 12px; color: #475569; }
.upload-drop-preview-area.has-files .upload-drop-zone { display: none; }
.upload-preview-pane { display: none; width: 100%; min-height: 100%; }
.upload-drop-preview-area.has-files .upload-preview-pane { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.upload-drop-preview-area.has-files .upload-unified-grid {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    align-content: start;
}
.upload-drop-preview-area.has-files .upload-progress-list-wrap { display: none; }
.upload-drop-preview-area.has-files.is-uploading-phase .upload-preview-pane {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.upload-drop-preview-area.has-files.is-uploading-phase .upload-unified-grid { display: none; }
.upload-drop-preview-area.has-files.is-uploading-phase .upload-progress-list-wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    border-top: 0;
    padding-top: 0;
    overflow: hidden;
}
.upload-drop-preview-area.has-files.is-uploading-phase .upload-progress-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-bottom: 6px;
}
.upload-work-modal { width: min(1180px, 96vw); padding: 0; overflow: hidden; }
.upload-work-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.upload-work-title { font-size: 30px; font-weight: 700; }
.upload-work-mode { display: flex; gap: 16px; flex-wrap: wrap; margin-left: 12px; }
.upload-work-radio { color: #4b5563; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.upload-work-radio input { width: 18px; height: 18px; }
.upload-work-close { margin-left: auto; }
.upload-work-close .btn { min-width: 42px; font-size: 18px; line-height: 1; }
.upload-work-body { display: flex; min-height: 70vh; }
.upload-work-left { width: 300px; border-right: 1px solid var(--line); padding: 18px 16px; background: #f9fafb; display: flex; flex-direction: column; gap: 12px; }
.upload-work-left-title { font-size: 18px; font-weight: 700; color: #157AFF; }
.upload-work-left select { font-size: 14px; }
.upload-work-left .btn { width: 100%; font-size: 14px; padding: 10px 12px; }
.upload-work-right { flex: 1; min-width: 0; padding: 16px 20px; display: flex; flex-direction: column; }
.upload-work-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.upload-work-tabs { display: flex; gap: 14px; flex-wrap: wrap; }
.upload-work-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: #6b7280; font-size: 17px; padding: 8px 0; cursor: pointer; }
.upload-work-tabs button.active { color: #157AFF; border-bottom-color: #157AFF; font-weight: 700; }
.upload-work-toolbar .btn { font-size: 16px; padding: 9px 18px; border-radius: 12px; }
.upload-modal-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.upload-progress-wrap { margin-top: 10px; }
.upload-progress-wrap-top { margin-top: 0; }
.upload-progress-track { height: 10px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.upload-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #157AFF, #157AFF); transition: width .2s ease; }
.upload-progress-text { margin-top: 6px; font-size: 13px; color: var(--muted); }
.upload-progress-list-wrap { margin-top: 0; border-top: 1px solid var(--line); padding-top: 10px; flex: 0 0 auto; }
.upload-progress-list-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.upload-progress-list { max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
.upload-progress-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; box-shadow: 0 4px 10px rgba(15, 23, 42, .06); }
.upload-progress-item.uploading { border-color: #157AFF; background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%); }
.upload-progress-item.success { border-color: #86efac; background: linear-gradient(165deg, #ffffff 0%, #f3fff7 100%); }
.upload-progress-item.failed { border-color: #fecaca; background: linear-gradient(165deg, #ffffff 0%, #fff7f7 100%); }
.upload-progress-item-main { display: flex; align-items: center; gap: 10px; }
.upload-progress-item-thumb {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #157AFF;
    background: #e2e8f0;
}
.upload-progress-item-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.upload-progress-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 0; }
.upload-progress-item-name { flex: 1; min-width: 0; font-size: 12px; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-progress-item-track { height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.upload-progress-item-bar { height: 100%; width: 0%; transition: width .2s ease; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.upload-progress-item-bar.pending { background: #cbd5e1; }
.upload-progress-item-bar.uploading { background: linear-gradient(90deg, #157AFF, #157AFF); }
.upload-progress-item-bar.success { background: #22c55e; }
.upload-progress-item-bar.failed { background: #ef4444; }
.upload-table-wrap { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: auto; min-height: clamp(240px, 42vh, 460px); max-height: 62vh; }
.upload-table { width: 100%; border-collapse: collapse; min-width: 660px; }
.upload-table th, .upload-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.upload-table thead th { background: #f8fafc; color: #6b7280; position: sticky; top: 0; z-index: 1; }
.upload-file-name { display: flex; align-items: center; gap: 8px; max-width: 360px; }
.upload-file-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.upload-status.pending { background: #e5e7eb; color: #4b5563; }
.upload-status.uploading { background: rgba(21, 122, 255, .16); color: #157AFF; }
.upload-status.success { background: #dcfce7; color: #166534; }
.upload-status.failed { background: #fee2e2; color: #991b1b; }
.upload-empty-row td { text-align: center; color: #9ca3af; padding: 26px 12px; }

.masonry { column-count: 4; column-gap: 12px; }
.masonry .img-card { break-inside: avoid; margin-bottom: 12px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.list-view { display: flex; flex-direction: column; gap: 10px; }
.list-view .img-card { display: flex; gap: 10px; align-items: center; }
.list-view .img-card img { width: 140px; height: 90px; object-fit: cover; }
.img-caption { padding: 8px 10px; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.img-media { position: relative; }
.share-file-fallback {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 12px;
    text-align: center;
    background: #f8fafc;
    color: #334155;
}
.share-file-fallback:hover {
    background: #eef4ff;
    color: #157AFF;
}
.share-file-fallback img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    opacity: .86;
}
.share-file-fallback span {
    font-size: 13px;
    line-height: 1.45;
}
.wm-layer { position: absolute; opacity: .4; pointer-events: none; }
.wm-center .wm-layer { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.wm-right-bottom .wm-layer { right: 8px; bottom: 8px; }
.wm-left-bottom .wm-layer { left: 8px; bottom: 8px; }

.lightbox { position: fixed; inset: 0; background: rgba(3, 7, 18, .86); display: none; align-items: center; justify-content: center; z-index: 999; }
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 90vw; max-height: 86vh; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 78vh; border-radius: 12px; margin: 0 auto; }
.lightbox-bar { margin-top: 10px; display: flex; justify-content: center; gap: 10px; }
.lightbox-note { margin-top: 8px; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.92); }
.close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #fff;
    background: rgba(255,255,255,.18);
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.close-btn::before {
    content: '\00D7';
    display: inline-block;
    line-height: 1;
}

.carousel { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--line); }
.carousel-track { display: flex; transition: transform .35s ease; }
.carousel img, .carousel video { width: 100%; height: 240px; object-fit: cover; flex: 0 0 100%; }
.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}
.carousel-dot {
    width: 28px;
    height: 12px;
    border-radius: 9999px;
    border: 0;
    background: rgba(255, 255, 255, .45);
    padding: 0;
    cursor: pointer;
}
.carousel-dot.active {
    background: #157AFF;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, .18);
}
.banner { margin: 12px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.banner img { width: 100%; max-height: 240px; object-fit: cover; }

.open-ad {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: #000;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}
.open-ad-inner {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.open-ad-inner img,
.open-ad-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.open-ad-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: center;
    padding: 0 20px;
}
.open-ad-enter-btn {
    min-width: 180px;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.share-shell { width: min(96vw, 760px); margin: 0 auto; padding: 14px 12px 30px; box-sizing: border-box; overflow-x: hidden; }
.share-shell .container { width: 100%; max-width: 100%; padding: 0; }
.share-top-media { margin: 0; }
.share-top-media .carousel { margin-bottom: 0; border-radius: 20px 20px 0 0; border-bottom: 0; }
.share-top-media .carousel img,
.share-top-media .carousel video { height: 280px; }
.share-hero { min-height: 280px; border-radius: 20px 20px 0 0; background-size: cover; background-position: center; color: #fff; padding: 20px 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; box-shadow: var(--shadow); }
.share-hero-tag { width: max-content; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(2px); font-size: 14px; font-weight: 700; }
.share-hero h1 { margin: 0; font-size: 42px; line-height: 1.18; letter-spacing: 1px; }
.share-hero p { margin: 0; opacity: .9; letter-spacing: 2px; font-size: 12px; }
.share-summary { background: #fff; border-radius: 0 0 22px 22px; padding: 16px 18px 18px; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 0; }
.share-summary h2 { margin: 0; font-size: 36px; line-height: 1.2; word-break: break-word; overflow-wrap: anywhere; }
.share-summary-desc { margin: 10px 0 0; color: var(--muted); line-height: 1.6; word-break: break-word; overflow-wrap: anywhere; }
.share-summary-stats { margin-top: 10px; display: flex; gap: 24px; color: #3b82f6; font-size: 30px; flex-wrap: wrap; }
.share-summary-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.share-summary-actions .btn { border-radius: 999px; padding: 8px 14px; }
.share-summary-actions .share-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.1;
}
.share-summary-actions .share-mini-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-image: var(--icon);
    mask-image: var(--icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    flex-shrink: 0;
}
.share-author { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.share-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.share-author > div { min-width: 0; }
.share-author-card {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: var(--shadow);
}
.share-author-card .share-author { margin-top: 0; }
.share-author-card .share-author img { width: 34px; height: 34px; }
.share-top-ad { margin-top: 12px; }
.share-bottom-ad { margin-top: 14px; }
.share-content-grid { margin-top: 12px; }
.share-switch { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.share-switch-left, .share-switch-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-switch-left, .share-switch-right, .category-row { min-width: 0; }
.share-switch a { padding: 8px 2px; color: #4b5563; font-weight: 700; border-bottom: 2px solid transparent; }
.share-switch a.active { color: #111827; border-bottom-color: #3b82f6; }
.share-filter { margin-top: 10px; }
.share-gallery { margin-top: 8px; width: 100%; max-width: 100%; }
.share-gallery.masonry { column-count: 2; column-gap: 10px; }
.share-gallery .img-card { border-radius: 10px; margin-bottom: 10px; }
.share-gallery .lazy-photo { background: #f1f5f9; transition: opacity .2s ease; }
.share-gallery .lazy-photo:not(.lazy-loaded) { opacity: .75; }
.share-gallery .lazy-photo.lazy-loaded { opacity: 1; }
.share-gallery .img-caption { flex-wrap: wrap; }
.share-gallery .img-caption span { overflow-wrap: anywhere; }
.share-rank-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 4;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .22);
}
.share-rank-badge.top1 { background: #f59e0b; }
.share-rank-badge.top2 { background: #16a34a; }
.share-rank-badge.top3 { background: #64748b; }
.share-hot-caption {
    justify-content: flex-start;
    color: #334155;
    font-weight: 600;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.share-gallery.list-view .hot-card { display: block; }
.share-gallery.list-view .hot-card .img-media img {
    width: 100%;
    height: auto;
    max-height: none;
}

@media (min-width: 1180px) {
    body.share-page {
        background:
            radial-gradient(1200px 500px at 20% -80px, rgba(59, 130, 246, .16), transparent 70%),
            radial-gradient(1200px 500px at 85% -120px, rgba(20, 184, 166, .12), transparent 72%),
            #eef2ff;
    }
    .share-shell {
        width: min(96vw, 1540px);
        padding: 18px 18px 42px;
    }
    .share-top-media .carousel {
        border-radius: 24px 24px 0 0;
        box-shadow: 0 22px 44px rgba(15, 23, 42, .16);
    }
    .share-top-media .carousel img,
    .share-top-media .carousel video {
        height: min(62vh, 620px);
    }
    .share-summary {
        border-radius: 0 0 24px 24px;
        padding: 22px 24px 20px;
    }
    .share-summary h2 {
        font-size: clamp(34px, 4.2vw, 56px);
        line-height: 1.12;
    }
    .share-summary-desc {
        max-width: 900px;
        font-size: 16px;
    }
    .share-summary-stats {
        gap: 28px;
        font-size: 32px;
    }
    .share-summary-stats small {
        font-size: 14px;
        color: #475569;
    }
    .share-content-grid {
        margin-top: 16px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
        gap: 16px;
        align-items: start;
    }
    .share-feed-column {
        min-width: 0;
    }
    .share-side-column {
        position: sticky;
        top: 82px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
    }
    .share-author-card {
        border-radius: 14px;
        padding: 12px;
    }
    .share-bottom-ad {
        margin-top: 0;
        border-radius: 14px;
    }
}

.footer { margin: 30px 0 20px; color: var(--muted); text-align: center; font-size: 13px; }
.site-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}
.site-footer > div {
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .masonry { column-count: 3; }
    .share-gallery.masonry { column-count: 2; }
}
@media (max-width: 1280px) {
    .album-beauty-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
    .album-beauty-sidebar { grid-column: 1 / -1; position: static; top: auto; }
    .beauty-subnav { flex-direction: row; flex-wrap: wrap; }
    .beauty-subnav-link { flex: 1 1 calc(50% - 6px); text-align: center; }
}
@media (max-width: 860px) {
    .layout { flex-direction: column; height: auto; min-height: 0; overflow: visible; }
    .sidebar { width: 100%; position: static; height: auto; }
    .main { min-height: auto; max-height: none; overflow: visible; }
    .admin-dashboard-layout { grid-template-columns: 1fr; }
    .workspace-shell { height: calc(100dvh - 58px); min-height: 0; overflow: hidden; position: relative; }
    .workspace-sidebar { position: fixed; left: 0; top: 58px; bottom: 0; z-index: 220; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
    .workspace-shell.sidebar-open .workspace-sidebar { transform: translateX(0); }
    .workspace-main { overflow-y: auto; }
    .workspace-main-inner { padding: 12px; }
    .workspace-mobile-bar { display: block; }
    .workspace-overlay { display: block; position: fixed; inset: 58px 0 0 0; background: rgba(15,23,42,.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 210; }
    .workspace-shell.sidebar-open .workspace-overlay { opacity: 1; pointer-events: auto; }
    .album-editor-shell { height: calc(100dvh - 58px); min-height: 0; overflow: hidden; position: relative; }
    .album-editor-sidebar { position: fixed; left: 0; top: 58px; bottom: 0; z-index: 230; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
    .album-editor-shell.sidebar-open .album-editor-sidebar { transform: translateX(0); }
    .album-editor-main { min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
    .album-editor-main-inner { padding: 12px; min-height: 100%; }
    .album-editor-mobile-bar { display: flex; gap: 8px; }
    .album-editor-overlay { display: block; position: fixed; inset: 58px 0 0 0; background: rgba(15,23,42,.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 220; }
    .album-editor-shell.sidebar-open .album-editor-overlay { opacity: 1; pointer-events: auto; }
    .album-tabs { width: 100%; position: static; height: auto; }
    .album-settings-main { min-height: auto; }
    .album-settings-shell { flex-direction: column; }
    .masonry { column-count: 2; }
    .admin-section-head { flex-wrap: wrap; }
    .upload-work-body { flex-direction: column; min-height: auto; }
    .upload-simple-toolbar { flex-direction: column; align-items: stretch; }
    .upload-toolbar-actions { width: 100%; justify-content: flex-end; }
    .auth-split-shell { grid-template-columns: 1fr; }
    .auth-page-carousel,
    .auth-page-carousel .carousel-track img { min-height: 220px; }
    .auth-split-panel { padding: 16px; }
    .admin-site-setting-grid { grid-template-columns: 1fr; }
    .upload-work-left { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
    .upload-work-title { font-size: 24px; }
    .upload-work-mode { margin-left: 0; }
    .upload-work-radio { font-size: 16px; }
    .upload-work-tabs button { font-size: 18px; }
    .upload-work-toolbar .btn { font-size: 16px; }
    .upload-table th, .upload-table td { font-size: 14px; padding: 10px; }
    .upload-status { font-size: 12px; }
    .upload-drop-preview-area { min-height: clamp(220px, 48vh, 460px); }
    .upload-unified-grid { --upload-preview-size: 88px; min-height: 0; max-height: none; }
    .upload-drop-preview-area.has-files.is-uploading-phase { height: clamp(220px, calc(85vh - 250px), 440px); }
    .upload-drop-preview-area.has-files.is-uploading-phase .upload-preview-pane { height: 100%; }
    .upload-progress-list { max-height: 150px; }
    .upload-unified-card img { height: 100%; }
    .upload-table-wrap { min-height: 220px; max-height: 56vh; }
    .image-manage-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .image-manage-right .batch-actions,
    .image-manage-right .album-search-form { flex: 0 0 auto; }
    .batch-actions-panel { right: auto; left: 0; min-width: min(320px, calc(100vw - 32px)); }
    .dashboard-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-chart-grid { grid-template-columns: 1fr; }
    .dashboard-data-grid { grid-template-columns: 1fr; }
    .share-top-media .carousel { border-radius: 16px 16px 0 0; }
    .share-top-media .carousel img,
    .share-top-media .carousel video { height: 220px; }
    .share-hero { min-height: 240px; border-radius: 16px 16px 0 0; }
    .share-hero h1 { font-size: 34px; }
    .share-summary { border-radius: 0 0 18px 18px; }
    .share-summary h2 { font-size: 30px; }
    .share-summary-stats { font-size: 24px; }
    .home-carousel .carousel-track img,
    .home-carousel .carousel-track video { height: 220px; }
    .home-hero-carousel { min-height: 100vh; }
    .home-hero-carousel .home-carousel { height: 100vh; }
    .home-hero-carousel .home-carousel .carousel-track img,
    .home-hero-carousel .home-carousel .carousel-track video { height: 100%; }
    .home-hero-overlay { padding: 0 clamp(16px, 4vw, 28px); }
    .home-hero-copy { margin-top: 0; }
    .home-module { padding: 52px 0; }
    .home-module-inner { gap: 20px; }
    .home-about-layout { grid-template-columns: 1fr; }
    .home-contact-layout { grid-template-columns: 1fr; }
    .home-contact-form .row { grid-template-columns: 1fr; }
    .home-client-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-case-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .home-live-card { grid-template-columns: minmax(0, 1fr); }
    .home-live-media { min-height: 220px; }
    .home-scenario-stage { min-height: 430px; }
    .home-scenario-card { width: clamp(220px, 23vw, 320px); }
    .home-scenario-card[data-scene-pos="left1"] { transform: translateX(calc(-50% - min(22vw, 280px))) translateY(calc(-50% + 20px)) scale(.9); }
    .home-scenario-card[data-scene-pos="left2"] { transform: translateX(calc(-50% - min(34vw, 420px))) translateY(calc(-50% + 34px)) scale(.79); }
    .home-scenario-card[data-scene-pos="right1"] { transform: translateX(calc(-50% + min(22vw, 280px))) translateY(calc(-50% + 20px)) scale(.9); }
    .home-scenario-card[data-scene-pos="right2"] { transform: translateX(calc(-50% + min(34vw, 420px))) translateY(calc(-50% + 34px)) scale(.79); }
    .admin-home-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .album-beauty-layout { grid-template-columns: 1fr; }
    .album-beauty-main { grid-template-columns: 1fr; }
    .album-beauty-sidebar { position: static; top: auto; }
    .album-beauty-guide { position: static; }
    .admin-album-manage-grid { grid-template-columns: 1fr; }
    .album-permission-form { grid-template-columns: 1fr; max-width: 100%; }
    .data-board-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .data-board-chart-grid { grid-template-columns: 1fr; }
    .data-board-grid { grid-template-columns: 1fr; }
    .data-board-device-card { grid-column: auto; }
    .home-cases-shell { grid-template-columns: 1fr; }
    .home-cases-shell > .btn { width: 100%; }
    .home-case-item.active { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .topbar-inner { flex-wrap: nowrap; gap: 10px; min-height: 56px; }
    .mobile-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .topbar-home:not(.is-scrolled) .mobile-nav-toggle img { filter: brightness(0) invert(1); }
    .topbar-home:not(.is-scrolled) .mobile-nav-toggle span { color: #fff; }
    .nav-wrap {
        position: fixed;
        top: 0;
        right: 0;
        bottom: auto;
        width: min(82vw, 320px);
        height: 100dvh;
        max-height: 100dvh;
        min-height: 100dvh;
        margin-left: 0;
        padding: 72px 14px calc(18px + env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        background: #fff;
        border-left: 1px solid var(--line);
        box-shadow: none;
        transform: translateX(100%);
        transition: transform .24s ease;
        overflow-y: auto;
        z-index: 235;
    }
    .topbar.mobile-nav-open .nav-wrap {
        transform: translateX(0);
        box-shadow: -18px 0 32px rgba(15, 23, 42, .18);
    }
    .nav { flex-direction: column; gap: 8px; }
    .nav a {
        display: block;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 10px;
        color: #334155;
        background: #fff;
    }
    .topbar-home .nav-wrap .nav a { color: #334155; }
    .topbar-home .nav-wrap .nav a:hover { color: #157AFF; }
    .topbar-home .nav-wrap .nav a.active { background: rgba(21, 122, 255, .08); }
    .nav a.active {
        border-color: #157AFF;
        color: #157AFF;
        background: rgba(21, 122, 255, .08);
    }
    .user-menu { width: 100%; }
    .user-trigger {
        width: 100%;
        justify-content: flex-start;
        border-radius: 10px;
    }
    .topbar-home .nav-wrap .user-trigger {
        color: var(--text);
        border-color: var(--line);
        background: #fff;
    }
    .user-dropdown {
        position: static;
        right: auto;
        top: auto;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        border-radius: 10px;
        border: 1px solid var(--line);
        box-shadow: none;
    }
    .nav-experience-btn {
        width: 100%;
        text-align: center;
    }
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .46);
        z-index: 230;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    .topbar.mobile-nav-open + .mobile-nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    body.mobile-nav-lock { overflow: hidden; }
    .image-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .image-pin-badge { left: 32px; font-size: 10px; padding: 2px 6px; }
    .album-search-form { width: 100%; }
    .album-search-form input { width: 100%; }
    .image-manage-right .album-search-form { width: min(58vw, 220px); }
    .dashboard-stat-row { grid-template-columns: 1fr; }
    .dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-quick-grid { grid-template-columns: 1fr; }
    .dashboard-chart-canvas { height: 210px; }
    .dashboard-chart-canvas.is-pie { height: 240px; }
    .data-board-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .data-board-chart-canvas { height: 220px; }
    .data-board-chart-canvas.is-pie { height: 240px; }
    .batch-actions { width: auto; }
    .batch-actions > summary { width: auto; text-align: center; }
    .batch-actions-panel { position: static; margin-top: 6px; min-width: 0; width: 100%; }
    .share-link-row input { min-width: 100%; }
    .share-download-form { grid-template-columns: 1fr; }
    .share-watermark-current { justify-content: flex-start; }
    .masonry { column-count: 1; }
    .share-shell { width: 100%; max-width: 100%; padding: 10px 10px 20px; }
    .back-to-top-btn { right: 12px; }
    .customer-service-btn { right: 12px; bottom: 64px; }
    .customer-service-popup {
        right: 64px;
        bottom: 64px;
        width: min(220px, calc(100vw - 88px));
    }
    body.share-page .customer-service-btn { bottom: 114px; }
    body.share-page .customer-service-popup { bottom: 114px; }
    .share-sound-btn { right: 12px; bottom: 64px; }
    .share-top-media .carousel { border-radius: 14px 14px 0 0; }
    .share-top-media .carousel img,
    .share-top-media .carousel video { height: 180px; }
    .share-hero { min-height: 210px; border-radius: 0; }
    .share-hero h1 { font-size: 26px; }
    .share-summary { border-radius: 0 0 14px 14px; margin: 0; border-top: 0; padding: 12px; }
    .share-summary h2 { font-size: 22px; line-height: 1.3; }
    .share-summary-stats { font-size: 18px; gap: 14px; }
    .share-summary-actions .btn { flex: 1 1 calc(50% - 5px); text-align: center; padding: 9px 8px; }
    .share-summary-actions .share-mini-btn { flex: 0 0 auto; padding: 6px 10px; font-size: 12px; }
    .share-switch { padding: 0; gap: 8px; }
    .share-switch-left, .share-switch-right { gap: 8px; }
    .share-filter { margin: 8px 10px 0; }
    .share-shell .category-row.section { margin: 8px 0 0; }
    .share-gallery { padding: 0; }
    .share-gallery.grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .share-gallery.masonry { column-count: 2; column-gap: 8px; }
    .share-gallery.list-view .img-card { display: block; }
    .share-gallery.list-view .img-card img { width: 100%; height: auto; max-height: none; }
    .share-gallery .img-card { margin-bottom: 8px; }
    .home-hero-carousel { min-height: 100vh; }
    .home-hero-carousel .home-carousel { height: 100vh; }
    .home-hero-overlay { padding: 0 14px; }
    .home-hero-copy { margin-top: 0; gap: 12px; }
    .home-hero-overlay h1,
    .home-hero-overlay h2 { font-size: 28px; }
    .home-hero-overlay p { font-size: 14px; line-height: 1.6; }
    .home-hero-cta { width: auto; min-width: 120px; padding: 10px 18px; }
    .home-hero-carousel .carousel-dots { bottom: 22px; }
    .home-module { padding: 44px 0; }
    .home-module-title { font-size: 22px; }
    .home-about-media { min-height: 200px; }
    .home-about-media img,
    .home-about-media video { min-height: 200px; }
    .home-contact-form { padding: 14px; }
    .home-contact-submit { width: 100%; }
    .home-client-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-case-grid { grid-template-columns: 1fr; }
    .home-case-item {
        border-radius: 16px;
        border: 1px solid #dbe5f2;
        box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
    }
    .home-case-item img { min-height: 190px; }
    .home-case-text {
        padding: 14px;
        gap: 6px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }
    .home-case-text h3 { font-size: 18px; line-height: 1.35; }
    .home-case-text p { font-size: 13px; line-height: 1.7; color: #475569; }
    .home-live-media { min-height: 180px; }
    .home-live-body { padding: 14px; }
    .home-live-body h3 { font-size: 20px; }
    .home-live-body p { font-size: 14px; line-height: 1.7; }
    .home-scenario-shell { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 8px; width: 90vw; }
    .home-scenario-nav { width: 30px; height: 30px; border: 0; border-radius: 0; background: transparent; font-size: 0; }
    .home-scenario-nav::before { font-size: 30px; }
    .home-scenario-stage { min-height: 420px; overflow: hidden; }
    .home-scenario-card {
        width: min(360px, 90vw);
        border-radius: 18px;
        background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
        border: 1px solid #cfe0f7;
        box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
    }
    .home-scenario-media { aspect-ratio: 4 / 3; min-height: 220px; }
    .home-scenario-content {
        position: static;
        padding: 12px 14px 14px;
        background: linear-gradient(180deg, rgba(15, 23, 42, .76) 0%, rgba(15, 23, 42, .96) 100%);
        text-align: center;
    }
    .home-scenario-content h3 {
        color: #fff;
        font-size: 18px;
        line-height: 1.35;
    }
    .home-scenario-content p {
        margin-top: 6px;
        color: rgba(255, 255, 255, .9);
        font-size: 13px;
        line-height: 1.65;
        word-break: break-word;
    }
    .home-scenario-card[data-scene-pos="left1"],
    .home-scenario-card[data-scene-pos="right1"],
    .home-scenario-card[data-scene-pos="left2"],
    .home-scenario-card[data-scene-pos="right2"] { opacity: .16; transform: translateX(-50%) translateY(calc(-50% + 28px)) scale(.82); }
    .home-scenario-card[data-scene-pos="hidden"] { opacity: 0; transform: translateX(-50%) translateY(calc(-50% + 36px)) scale(.76); }
    .admin-home-cards { grid-template-columns: 1fr; }
    .pill-toggle-row { flex-wrap: wrap; }
    .album-ai-retouch-inline {
        flex-direction: row;
        align-items: center;
    }
    .album-ai-retouch-inline .pill-toggle-row { margin-top: 0; }
    .album-ai-retouch-inline .settings-save-btn { width: auto; min-width: 84px; }
    .album-beauty-actions { justify-content: stretch; }
    .album-beauty-actions .btn { width: 100%; }
    .auth-page-switch-row,
    .auth-page-switch-row.is-login {
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        gap: 8px;
    }
    .auth-register-agreement-row,
    .auth-page-forgot-row,
    .auth-page-register-row {
        min-width: 0;
        margin-top: 0;
        gap: 6px;
    }
    .auth-register-agreement-row { flex: 1 1 auto; }
    .auth-page-register-row { flex: 0 0 auto; }
    .auth-agreement-check { gap: 6px; font-size: 13px; }
    .auth-page-switch-row .auth-page-switch-link,
    .auth-page-switch-row .muted { font-size: 13px; white-space: nowrap; }
    #forgotPasswordModal.modal,
    #userAgreementModal.modal {
        align-items: flex-start;
        padding: 12px;
    }
    #forgotPasswordModal .auth-modal-content,
    #userAgreementModal .auth-agreement-modal-content {
        width: min(100%, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
        margin-top: max(10px, env(safe-area-inset-top));
    }
    #forgotPasswordModal .auth-forgot-code-row { flex-wrap: wrap; }
    #forgotPasswordModal .auth-forgot-code-row .btn {
        width: 100%;
        min-width: 0;
    }
}

