/* ============ 转盘界面 ============ */
/* ========== 转盘区域（普通流，不覆盖 Header） ========== */
.wheel-section {
    width: 100%;
    min-height: 100vh;          /* 改为占满视口，但可超出 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 从顶部开始排列，不再强制居中 */
    padding: 20px 0 40px;        /* 底部留足空间 */
    box-sizing: border-box;
    overflow-y: auto;            /* 允许竖直滚动 */
    -webkit-overflow-scrolling: touch;
}

.wheel-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheelCanvas {
    display: block;
    max-width: 100%;
    height: auto;        /* 保持比例，但物理尺寸由 JS 控制 */
    cursor: grab;
}

#wheelCanvas:active {
    cursor: grabbing;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 36px;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    z-index: 10;
}

.wheel-controls {
    margin-top: 30px;
    display: flex;
    gap: 30px;
}

/* 左右布局（高度自适应，占满剩余空间） */
#category-layout-container {
    display: flex;
    min-height: calc(100vh - 100px);
}

.layout-left {
    flex: 1;
    overflow: hidden;
}

.layout-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.layout-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(10,15,30,0.9);
}

/* 其余卡片、按钮样式保持不变（.magic-btn, .northstar-single-card 等） */
.magic-btn {
    background: linear-gradient(135deg, #00dfd8, #007cf0);
    border: none; border-radius: 50px; padding: 12px 36px;
    color: white; font-size: 18px; cursor: pointer; box-shadow: 0 4px 20px rgba(0,223,216,0.4);
    transition: transform 0.2s;
}
.magic-btn:hover { transform: scale(1.05); }
.magic-btn.small { padding: 8px 24px; font-size: 16px; }

.card-stage {
    text-align: center; margin-bottom: 30px;
}
.northstar-single-card {
    background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
    padding: 40px; min-width: 320px; max-width: 450px;
    text-align: left; color: #eee;
    margin-top: 20px;
}
.northstar-single-card h2 {
    font-family: 'Cinzel', serif; font-size: 28px; color: #00dfd8; margin-bottom: 15px;
    text-align: center;
}
.card-controls {
    width: 100%; max-width: 450px; margin-top: 20px;
}
.card-controls .modern-search-input {
    width: 100%; padding: 10px 15px; border-radius: 20px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white;
}
.filter-chips-container {
    margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px;
}

.filter-chips-container::-webkit-scrollbar { display: none; }

#wheel-selection-info p {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

/* 搜索框与缘动按钮同行 */
.search-and-random {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 450px;
}

.search-and-random .modern-search-input {
    flex: 1;
    width: auto;               /* 清除原 width:0 */
    opacity: 1;                /* 强制显示 */
    padding: 10px 15px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-and-random .modern-search-input:focus {
    outline: none;
    border-color: #00dfd8;
}

.search-and-random .magic-btn.small {
    white-space: nowrap;
    flex-shrink: 0;
}
