/* 装备素材 channel_sucai / 特价服务器 channel_tejia —— 圆盘转盘
 * 由 sucai-wheel.js 在 .sucai-wheel-stage 内按每盘 10 个类目动态渲染转盘。
 * 仅在 .sucai-wheel-page 作用域生效，避免影响其他 CMS 频道页。
 */

/* ── 素材库入口：明亮转盘（不改页面背景） ── */
.sucai-library-page.sucai-wheel-page {
    --sucai-wheel-accent: #10b981;
    --sucai-wheel-accent-bright: #059669;
    --sucai-wheel-glow: rgba(16, 185, 129, 0.22);
}

.sucai-library-page.sucai-wheel-page .cms-page-title__icon {
    color: var(--sucai-wheel-accent-bright);
}

.sucai-library-page.sucai-wheel-page .sucai-wheel {
    filter:
        drop-shadow(0 14px 28px rgba(15, 23, 42, 0.14))
        drop-shadow(0 0 20px var(--sucai-wheel-glow));
}

.sucai-library-page.sucai-wheel-page .sucai-wheel__rim {
    fill: #1e293b;
    stroke: rgba(148, 163, 184, 0.22);
    stroke-width: 1.5;
}

.sucai-library-page.sucai-wheel-page .sucai-wheel__slices path {
    stroke: rgba(15, 23, 42, 0.55);
    stroke-width: 2.5;
}

.sucai-library-page.sucai-wheel-page .sucai-wheel__slice--filled:hover path,
.sucai-library-page.sucai-wheel-page .sucai-wheel__slice--filled:focus-visible path {
    filter: brightness(1.14) saturate(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
    transform: scale(1.025);
}

.sucai-library-page.sucai-wheel-page .sucai-wheel__label {
    fill: #ffffff;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.04em;
    stroke: rgba(15, 23, 42, 0.55);
    stroke-width: 0.85px;
    paint-order: stroke fill;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 0 12px rgba(0, 0, 0, 0.25);
}

.sucai-library-page.sucai-wheel-page .sucai-wheel__sparkle {
    fill: #fde68a;
    opacity: 0.85;
}

.sucai-library-page.sucai-wheel-page .sucai-wheel__center-bg {
    fill: #ffffff;
    stroke: rgba(16, 185, 129, 0.35);
    stroke-width: 2.5;
}

.sucai-library-page.sucai-wheel-page .sucai-wheel__center-glow {
    stroke: var(--sucai-wheel-accent);
    opacity: 0.7;
    filter: drop-shadow(0 0 8px var(--sucai-wheel-glow));
}

.sucai-library-page.sucai-wheel-page .sucai-wheel__center-text {
    fill: var(--sucai-wheel-accent-bright);
    font-size: 24px;
    font-weight: 900;
}

.sucai-library-page.sucai-wheel-page .sucai-wheel__center--linked:hover .sucai-wheel__center-bg,
.sucai-library-page.sucai-wheel-page .sucai-wheel__center--linked:focus-visible .sucai-wheel__center-bg {
    fill: #ecfdf5;
    stroke: var(--sucai-wheel-accent-bright);
}

.sucai-library-page.sucai-wheel-page .sucai-wheel__center--linked:hover .sucai-wheel__center-text,
.sucai-library-page.sucai-wheel-page .sucai-wheel__center--linked:focus-visible .sucai-wheel__center-text {
    fill: #047857;
}

.sucai-wheel-page .cms-page-header {
    margin-bottom: 8px;
}

/* 特价服务器入口：单盘居中，主题色略偏蓝 */
.tejia-wheel-page .sucai-wheel-stage {
    padding-top: 20px;
}

.tejia-wheel-page .sucai-wheel__center-text {
    fill: #2e5bff;
    font-size: 20px;
    letter-spacing: 0.12em;
}

.tejia-wheel-page .sucai-wheel__center-glow {
    stroke: #60a5fa;
}

.tejia-wheel-page .sucai-wheel__sparkle {
    fill: #2e5bff;
}

.sucai-wheel-stage {
    padding: 28px 16px 36px;
}

.sucai-wheel-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 48px 56px;
}

.sucai-wheel-layout__wheels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 48px 56px;
    flex: 1 1 640px;
}

.sucai-wheel-stage[data-wheel-count="1"] .sucai-wheel-layout__wheels {
    gap: 0;
}

.sucai-wheel-sidebar {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 132px;
    padding: 18px 14px;
    border-radius: 16px;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.18);
}

.sucai-wheel-sidebar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.sucai-wheel-sidebar__item:hover,
.sucai-wheel-sidebar__item:focus-visible {
    color: #2563eb;
    border-color: #93c5fd;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.sucai-wheel-sidebar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
    overflow: hidden;
}

.sucai-wheel-sidebar__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sucai-wheel-sidebar__name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

/* 已废弃：原奇数子栏目两盘之间的居中入口（layout 模式不再单独抽出中间项） */
.sucai-wheel-middle {
    flex: 0 0 auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 118px;
    min-height: 118px;
    padding: 16px 12px;
    border-radius: 50%;
    background: linear-gradient(165deg, #ffffff 0%, #eff6ff 100%);
    border: 2px solid #bfdbfe;
    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.14),
        inset 0 0 0 4px rgba(255, 255, 255, 0.85);
    color: #1e40af;
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.sucai-wheel-middle:hover,
.sucai-wheel-middle:focus-visible {
    color: #1d4ed8;
    border-color: #60a5fa;
    box-shadow:
        0 16px 32px rgba(37, 99, 235, 0.2),
        inset 0 0 0 4px rgba(255, 255, 255, 0.9);
    transform: scale(1.04);
    text-decoration: none;
}

.sucai-wheel-middle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    font-size: 20px;
    overflow: hidden;
}

.sucai-wheel-middle__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sucai-wheel-middle__name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.sucai-wheel-empty {
    text-align: center;
    color: #94a3b8;
    padding: 60px 16px;
    font-size: 15px;
}

.sucai-wheel {
    flex: 0 0 auto;
    width: min(460px, 100%);
    max-width: 100%;
    position: relative;
    filter: drop-shadow(0 14px 28px rgba(148, 163, 184, 0.28));
}

.sucai-wheel-stage[data-wheel-count="3"] .sucai-wheel,
.sucai-wheel-stage[data-wheel-count="4"] .sucai-wheel,
.sucai-wheel-stage[data-wheel-count="5"] .sucai-wheel,
.sucai-wheel-stage[data-wheel-count="6"] .sucai-wheel {
    width: min(400px, 100%);
}

.sucai-wheel__svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.sucai-wheel__rim {
    fill: #f1f5f9;
    opacity: 1;
}

.sucai-wheel__slices {
    transform-origin: 230px 230px;
    transform-box: view-box;
    animation: sucai-wheel-spin 48s linear infinite;
}

.sucai-wheel:has(.sucai-wheel__slice:hover) .sucai-wheel__slices,
.sucai-wheel:has(.sucai-wheel__slice:focus-visible) .sucai-wheel__slices {
    animation-play-state: paused;
}

@keyframes sucai-wheel-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.sucai-wheel--center-only .sucai-wheel__slices {
    animation: none;
}

.sucai-wheel:nth-child(even) .sucai-wheel__slices {
    animation-direction: reverse;
}

.sucai-wheel__slices path {
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linejoin: round;
    transition:
        transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1),
        filter 0.32s ease;
    transform-origin: center;
    transform-box: view-box;
}

.sucai-wheel__slice {
    cursor: pointer;
    outline: none;
}

.sucai-wheel__slice--filled:hover path,
.sucai-wheel__slice--filled:focus-visible path {
    filter: brightness(1.06) saturate(1.12);
    transform: scale(1.02);
}

.sucai-wheel__label {
    fill: #334155;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.04em;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 0.7px;
    paint-order: stroke fill;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
    pointer-events: none;
    user-select: none;
}

.sucai-wheel--dense .sucai-wheel__label {
    font-size: 15px;
}

.sucai-wheel--extra-dense .sucai-wheel__label {
    font-size: 13px;
    letter-spacing: 0;
}

.sucai-wheel__sparkle {
    fill: #6366f1;
    font-size: 14px;
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
    animation: sucai-wheel-sparkle 2.6s ease-in-out infinite;
}

.sucai-wheel__slice:nth-child(2n) .sucai-wheel__sparkle {
    animation-delay: -1.3s;
}

@keyframes sucai-wheel-sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50%      { opacity: 0.75; transform: scale(1.1); }
}

.sucai-wheel__center {
    pointer-events: none;
}

.sucai-wheel__center--linked {
    pointer-events: all;
}

.sucai-wheel__center-link {
    cursor: pointer;
    outline: none;
}

.sucai-wheel__center--linked:hover .sucai-wheel__center-bg,
.sucai-wheel__center--linked:focus-visible .sucai-wheel__center-bg {
    fill: #eff6ff;
}

.sucai-wheel__center--linked:hover .sucai-wheel__center-text,
.sucai-wheel__center--linked:focus-visible .sucai-wheel__center-text {
    fill: #1d4ed8;
}

.sucai-wheel__center-bg {
    fill: #ffffff;
    stroke: #e2e8f0;
    stroke-width: 2;
}

.sucai-wheel__center-glow {
    fill: none;
    stroke: #93c5fd;
    stroke-width: 2;
    opacity: 0.65;
    filter: drop-shadow(0 0 6px rgba(147, 197, 253, 0.55));
    animation: sucai-wheel-center-glow 2.4s ease-in-out infinite;
}

@keyframes sucai-wheel-center-glow {
    0%, 100% { opacity: 0.45; stroke-width: 1.5; }
    50%      { opacity: 0.85; stroke-width: 2.5; }
}

.sucai-wheel__center-text {
    fill: #2563eb;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-shadow: none;
}

@media (max-width: 1100px) {
    .sucai-wheel-layout,
    .sucai-wheel-layout__wheels {
        gap: 32px;
    }

    .sucai-wheel-stage--with-sidebar .sucai-wheel-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 420px;
    }

    .sucai-wheel-sidebar__item {
        flex: 1 1 120px;
    }

    .sucai-wheel-stage--with-middle .sucai-wheel-middle {
        width: 100%;
        max-width: 200px;
        border-radius: 16px;
    }

    .sucai-wheel-stage--with-middle .sucai-wheel-layout__wheels {
        flex-direction: column;
        align-items: center;
    }

    .sucai-wheel {
        width: min(420px, 100%);
    }
    .sucai-wheel-stage[data-wheel-count="3"] .sucai-wheel,
    .sucai-wheel-stage[data-wheel-count="4"] .sucai-wheel,
    .sucai-wheel-stage[data-wheel-count="5"] .sucai-wheel,
    .sucai-wheel-stage[data-wheel-count="6"] .sucai-wheel {
        width: min(380px, 100%);
    }
    .sucai-wheel__label { font-size: 18px; }
    .sucai-wheel--dense .sucai-wheel__label { font-size: 15px; }
    .sucai-wheel__center-text { font-size: 20px; }
}

@media (max-width: 720px) {
    .sucai-wheel-stage {
        padding: 18px 8px 24px;
    }
    .sucai-wheel {
        width: min(360px, 100%);
    }
    .sucai-wheel__label { font-size: 16px; }
    .sucai-wheel--dense .sucai-wheel__label { font-size: 13px; }
    .sucai-wheel__center-text { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .sucai-wheel__slices,
    .sucai-wheel__slices path,
    .sucai-wheel__sparkle,
    .sucai-wheel__center-glow {
        animation: none !important;
        transition: none !important;
    }
}
