/**
 * 设定集：三栏 · 低饱和粉紫底+菱格 · 中栏磨砂玻璃 · 右栏胶囊造型切换 · 移动端堆叠
 */
html {
    scroll-behavior: smooth;
}

.setting-collection-page {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 20px 20px 48px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #3e4549;
    background-color: #faf7fb;
    background-image:
        linear-gradient(165deg, rgba(252, 248, 255, 0.98) 0%, rgba(245, 238, 252, 0.97) 40%, rgba(255, 248, 250, 1) 100%),
        linear-gradient(rgba(200, 180, 220, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 180, 220, 0.09) 1px, transparent 1px);
    background-size: auto, 22px 22px, 22px 22px;
}

.setting-collection-page *,
.setting-collection-page *::before,
.setting-collection-page *::after {
    box-sizing: border-box;
}

.setting-collection-page .sc-wrap {
    max-width: 1720px;
    margin: 0 auto;
}

.setting-collection-page .sc-back {
    margin-bottom: 14px;
}

/* 手机顶栏：横向锚点 */
.setting-collection-page .sc-mobile-nav {
    display: none;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(220, 200, 230, 0.45);
    backdrop-filter: blur(10px);
}

.setting-collection-page .sc-mobile-nav__link {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #5c5a62;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(220, 200, 230, 0.5);
    background: rgba(255, 255, 255, 0.75);
}

.setting-collection-page .sc-mobile-nav__link:active {
    background: rgba(245, 230, 255, 0.9);
}

/* 三栏：右侧加宽以容纳胶囊 */
.setting-collection-page .sc-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(520px, 1fr) minmax(148px, 180px);
    gap: 22px 26px;
    align-items: start;
}

@media (max-width: 1280px) and (min-width: 1025px) {
    .setting-collection-page .sc-grid {
        grid-template-columns: minmax(240px, 280px) minmax(420px, 1fr) minmax(130px, 160px);
    }
}

@media (max-width: 1024px) {
    .setting-collection-page .sc-mobile-nav {
        display: flex;
    }

    .setting-collection-page .sc-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .setting-collection-page .sc-col-center {
        order: 1;
    }

    .setting-collection-page .sc-col-left {
        order: 2;
    }

    .setting-collection-page .sc-col-right {
        order: 3;
    }

    .setting-collection-page .sc-rail {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        max-height: none;
        padding-bottom: 6px;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .setting-collection-page .sc-thumb-item {
        flex: 0 0 auto;
        min-width: 168px;
        max-width: 200px;
    }

    .setting-collection-page .sc-rail-title {
        text-align: left;
        margin-bottom: 8px;
    }
}

/* 左侧信息卡 */
.setting-collection-page .sc-card {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 0;
    box-shadow: 0 2px 14px rgba(100, 80, 120, 0.07);
    border: 1px solid rgba(230, 210, 235, 0.5);
    backdrop-filter: blur(8px);
}

.setting-collection-page .sc-col-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.setting-collection-page .sc-card-head {
    margin-bottom: 0;
}

.setting-collection-page .sc-card--features {
    background: rgba(255, 252, 254, 0.92);
    border-color: rgba(255, 200, 215, 0.35);
}

.setting-collection-page .sc-card-head h2 {
    margin: 0 0 4px;
    font-size: 1.42rem;
    color: #5c6cac;
    font-weight: 600;
}

.setting-collection-page .sc-card-head .sc-sub {
    margin: 0;
    font-size: 0.85rem;
    color: #7d7a82;
}

.setting-collection-page .sc-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #9b5a6e;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(232, 168, 192, 0.35);
}

.setting-collection-page .sc-list {
    margin: 0;
    padding-left: 1.1em;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #546e7a;
}

.setting-collection-page .sc-list li {
    margin-bottom: 4px;
}

.setting-collection-page .sc-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-collection-page .sc-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #546e7a;
}

.setting-collection-page .sc-feature .sc-ico {
    flex-shrink: 0;
    font-size: 1rem;
}

.setting-collection-page .sc-notice {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.1), rgba(183, 28, 28, 0.06));
    border: 1px solid rgba(198, 40, 40, 0.22);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.setting-collection-page .sc-notice .sc-notice-ico {
    color: #c62828;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.setting-collection-page .sc-notice p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #5d4c47;
}

/* 中间：磨砂玻璃 + 画框立绘 */
.setting-collection-page .sc-stage {
    position: relative;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 32px rgba(120, 100, 140, 0.12);
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.setting-collection-page .sc-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200, 180, 220, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 180, 220, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.setting-collection-page .sc-stage-inner {
    position: relative;
    z-index: 1;
    min-height: min(78vh, 780px);
    display: flex;
    flex-direction: column;
    padding: 16px 12px 20px;
}

.setting-collection-page .sc-three-view {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 84px;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(212, 160, 184, 0.48);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
    z-index: 3;
}

.setting-collection-page .sc-three-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.setting-collection-page .sc-three-label {
    position: absolute;
    top: 102px;
    left: 14px;
    font-size: 0.7rem;
    color: #9e9e9e;
    background: rgba(255, 255, 255, 0.92);
    padding: 3px 8px;
    border-radius: 8px;
    z-index: 3;
}

.setting-collection-page .sc-main-fig {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 88px 12px 28px;
}

.setting-collection-page .sc-portrait-frame {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 252, 250, 0.45) 100%);
    border: 2px solid #d4a0b8;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.85) inset,
        0 0 0 2px rgba(212, 160, 184, 0.26),
        0 14px 40px rgba(100, 80, 90, 0.12);
}

.setting-collection-page .sc-main-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(80vh, 720px);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
    filter:
        drop-shadow(0 0 0 1px rgba(255, 255, 255, 0.95))
        drop-shadow(0 10px 28px rgba(80, 60, 70, 0.12));
}

.setting-collection-page .sc-hero-meta--corner {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: auto;
    top: auto;
    margin: 0;
    pointer-events: none;
}

.setting-collection-page .sc-hero-meta-inner {
    text-align: right;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(230, 210, 220, 0.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.setting-collection-page .sc-hero-meta-inner .sc-version-name {
    font-size: 0.76rem;
    font-weight: 600;
    color: #6b5b95;
    line-height: 1.35;
}

.setting-collection-page .sc-hero-meta-inner .sc-gen-info {
    font-size: 0.68rem;
    color: #8a858c;
    margin-top: 2px;
    line-height: 1.35;
}

.setting-collection-page .sc-hero-meta-inner .sc-artist {
    font-size: 0.68rem;
    color: #8a858c;
    margin-top: 4px;
    line-height: 1.35;
}

/* 右侧：标题 + 竖向胶囊 */
.setting-collection-page .sc-rail-title {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8b7a9a;
    text-align: center;
    letter-spacing: 0.08em;
}

.setting-collection-page .sc-rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 180, 220, 0.5) transparent;
}

.setting-collection-page .sc-rail::-webkit-scrollbar {
    width: 5px;
}

.setting-collection-page .sc-rail::-webkit-scrollbar-thumb {
    background: rgba(220, 170, 195, 0.48);
    border-radius: 6px;
}

.setting-collection-page .sc-thumb-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    margin: 0;
    cursor: pointer;
    border: 2px solid rgba(235, 205, 220, 0.58);
    border-radius: 999px;
    background: rgba(255, 252, 254, 0.72);
    font: inherit;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.setting-collection-page .sc-thumb-item:hover {
    opacity: 0.92;
}

.setting-collection-page .sc-thumb-item.is-active {
    opacity: 1;
    border-color: #e898b0;
    background: linear-gradient(135deg, rgba(255, 250, 252, 1) 0%, rgba(255, 236, 244, 0.97) 100%);
    box-shadow:
        0 0 0 2px rgba(232, 155, 185, 0.4),
        0 6px 18px rgba(210, 135, 165, 0.22);
}

.setting-collection-page .sc-thumb-label {
    flex: 1;
    font-size: 0.78rem;
    color: #6b6568;
    text-align: left;
    line-height: 1.25;
    word-break: break-all;
}

.setting-collection-page .sc-thumb-item.is-active .sc-thumb-label {
    color: #c45c7a;
    font-weight: 600;
}

.setting-collection-page .sc-thumb-frame {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(235, 205, 215, 0.65);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.setting-collection-page .sc-thumb-item.is-active .sc-thumb-frame {
    border-color: #d4a0b8;
    box-shadow: 0 2px 8px rgba(212, 155, 180, 0.38);
}

.setting-collection-page .sc-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

@media (max-width: 600px) {
    .setting-collection-page {
        padding: 12px 12px 36px;
    }

    .setting-collection-page .sc-stage-inner {
        min-height: min(68vh, 560px);
    }

    .setting-collection-page .sc-main-img {
        max-height: min(68vh, 520px);
    }
}

/* 夜间模式 */
body.night.setting-collection-page {
    color: #e0e0f0;
    background: #0a0a2a url('../../images/bg-night.svg') center/cover no-repeat;
}

body.night.setting-collection-page .sc-mobile-nav {
    background: rgba(35, 30, 55, 0.75);
    border-color: rgba(138, 92, 246, 0.35);
}

body.night.setting-collection-page .sc-mobile-nav__link {
    color: #c4b5fd;
    border-color: rgba(138, 92, 246, 0.4);
    background: rgba(25, 22, 48, 0.85);
}

body.night.setting-collection-page .sc-card {
    background: rgba(42, 42, 74, 0.75);
    border-color: rgba(138, 138, 255, 0.25);
}

body.night.setting-collection-page .sc-card--features {
    background: rgba(38, 35, 65, 0.82);
    border-color: rgba(180, 120, 160, 0.25);
}

body.night.setting-collection-page .sc-card-head h2 {
    color: #ffdd85;
}

body.night.setting-collection-page .sc-card-head .sc-sub,
body.night.setting-collection-page .sc-list,
body.night.setting-collection-page .sc-feature {
    color: #b0b0d8;
}

body.night.setting-collection-page .sc-section-title {
    color: #ffb3c6;
    border-bottom-color: rgba(138, 138, 255, 0.3);
}

body.night.setting-collection-page .sc-notice {
    background: linear-gradient(135deg, rgba(120, 40, 50, 0.45), rgba(80, 30, 40, 0.35));
    border-color: rgba(239, 83, 80, 0.35);
}

body.night.setting-collection-page .sc-notice p {
    color: #e8d0d4;
}

body.night.setting-collection-page .sc-notice .sc-notice-ico {
    color: #ff8a80;
}

body.night.setting-collection-page .sc-stage {
    background: rgba(30, 30, 52, 0.55);
    border-color: rgba(138, 138, 255, 0.2);
}

body.night.setting-collection-page .sc-three-view {
    border-color: rgba(230, 165, 195, 0.52);
    background: #1e1e36;
}

body.night.setting-collection-page .sc-three-label {
    color: #a0a0c8;
    background: rgba(30, 30, 52, 0.92);
}

body.night.setting-collection-page .sc-portrait-frame {
    background: rgba(25, 22, 48, 0.85);
    border-color: rgba(230, 165, 195, 0.58);
}

body.night.setting-collection-page .sc-hero-meta-inner {
    background: rgba(25, 22, 48, 0.9);
    border-color: rgba(138, 138, 255, 0.3);
}

body.night.setting-collection-page .sc-hero-meta-inner .sc-version-name {
    color: #fcd34d;
}

body.night.setting-collection-page .sc-hero-meta-inner .sc-gen-info,
body.night.setting-collection-page .sc-hero-meta-inner .sc-artist {
    color: #a5b4fc;
}

body.night.setting-collection-page .sc-rail-title {
    color: #c4b5fd;
}

body.night.setting-collection-page .sc-thumb-item {
    background: rgba(38, 28, 52, 0.78);
    border-color: rgba(200, 130, 175, 0.38);
}

body.night.setting-collection-page .sc-thumb-item.is-active {
    border-color: rgba(240, 165, 200, 0.52);
    background: rgba(70, 40, 65, 0.62);
    box-shadow: 0 0 0 2px rgba(240, 165, 200, 0.26);
}

body.night.setting-collection-page .sc-thumb-label {
    color: #a5b4fc;
}

body.night.setting-collection-page .sc-thumb-item.is-active .sc-thumb-label {
    color: #f9a8d4;
}

body.night.setting-collection-page .sc-thumb-frame {
    background: #2a2848;
    border-color: rgba(200, 150, 185, 0.4);
}

body.night.setting-collection-page .sc-thumb-item.is-active .sc-thumb-frame {
    border-color: rgba(240, 175, 205, 0.78);
    box-shadow: 0 2px 10px rgba(200, 120, 160, 0.38);
}

body.night.setting-collection-page .sc-main-img {
    filter:
        drop-shadow(0 0 0 1px rgba(30, 27, 55, 0.95))
        drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}
