/* ============================================================
   prepare.css · 开播准备页（顶部可编辑区 + 底部功能栏 + 开始直播）
   参考截图 IMG_0651
   ============================================================ */

/* ============ 顶部可编辑区（居中） ============ */
.prepare-header {
    position: absolute;
    top: 132px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* 修改封面：圆角缩略图 + 标签 */
.cover-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: opacity 200ms ease, transform 160ms ease;
}

.cover-btn:active {
    opacity: 0.7;
    transform: scale(0.96);
}

.cover-thumb {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2a2f45, #1a1e30);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.cover-label {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

/* 直播间标题（大字，可编辑） */
.room-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 180ms ease;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-title:active {
    background: rgba(255, 255, 255, 0.08);
}

/* 修改主题（副标题文案入口） */
.room-topic {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    transition: color 180ms ease, background 180ms ease;
}

.room-topic:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ============ 底部功能栏 + 开始直播 ============ */
.prepare-bottom {
    position: absolute;
    inset: 0;
    z-index: 20;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

/* 三个功能项：美化 · 翻转镜头 · 更多（等宽排布） */
.prepare-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 126px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 32px;
    margin: 0;
    pointer-events: auto;
}

.prepare-action {
    flex: 0 0 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: opacity 200ms ease;
}

.prepare-action:active {
    opacity: 0.6;
}

.pa-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 20, 22, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-icon svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255, 255, 255, 0.92);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pa-icon svg .beauty-eye,
.pa-icon svg .beauty-sparkle {
    fill: rgba(255, 255, 255, 0.92);
    stroke: none;
}

.pa-label {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
    white-space: nowrap;
}

/* 开始直播主 CTA（品牌色磨砂玻璃 + 渐变描边，与抽屉/胶囊同源质感） */
.start-btn {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 25px;
    width: auto;
    height: 52px;
    border: none;
    border-radius: 26px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--brand-1) 92%, transparent) 0%,
        color-mix(in srgb, var(--brand-2) 80%, transparent) 100%);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 color-mix(in srgb, var(--brand-1) 40%, transparent),
        0 8px 28px var(--brand-shadow);
    transition: transform 140ms ease, box-shadow 200ms ease;
    font-family: inherit;
    overflow: hidden;
    pointer-events: auto;
}

/* 渐变描边（mask 抠 1.2px 边，与 quality-item.active / brand-chip 一致） */
.start-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 1.2px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.start-btn:active {
    transform: scale(0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 4px 14px var(--brand-shadow-soft);
}

.start-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}
