/* ================================================================
   喵呜·造界 + 喵呜·文游
   游戏风格：深色沉浸、暗紫渐变、琥珀金点缀
   ================================================================ */

.wenyou-studio-screen,
.wenyou-screen {
    --wy-bg:        #0b0a14;
    --wy-bg2:       #121120;
    --wy-surface:   rgba(255,255,255,0.05);
    --wy-surface2:  rgba(255,255,255,0.08);
    --wy-border:    rgba(255,255,255,0.10);
    --wy-accent:    #c9184a;
    --wy-accent2:   #7b2ff7;
    --wy-gold:      #f4c430;
    --wy-text:      #e8e0f0;
    --wy-text2:     #9e96b8;
    --wy-text3:     #6b6383;
    --wy-radius:    14px;
    --wy-radius-sm: 8px;
}

/* ================================================================
   喵呜·造界 - 整体布局
   ================================================================ */

.wenyou-studio-screen {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0e0b1e 0%, #160d2a 40%, #1a0d1e 100%);
    color: var(--wy-text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
}

/* ── 重置所有被 CharacterStudio 污染的 studio-* 公共类 ── */
.wenyou-studio-screen .studio-primary-btn,
.wenyou-studio-screen .studio-empty-cta,
.wenyou-studio-screen .studio-analyze-btn,
.wenyou-studio-screen .studio-compose-btn {
    flex: 0 0 auto !important;
    min-height: unset !important;
    width: auto !important;
    background: linear-gradient(135deg, #c9184a, #7b2ff7) !important;
    border-radius: 999px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(201,24,74,0.4) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    align-self: center !important;
}
.wenyou-studio-screen .studio-publish-btn {
    flex: unset !important;
    width: 100% !important;
    min-height: unset !important;
    background: linear-gradient(135deg, #c9184a, #7b2ff7) !important;
    border-radius: var(--wy-radius) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 14px !important;
    box-shadow: 0 4px 20px rgba(201,24,74,0.35) !important;
}
.wenyou-studio-screen .studio-bottom-primary {
    flex: 1 !important;
    background: linear-gradient(135deg, var(--wy-accent), var(--wy-accent2)) !important;
    border-color: transparent !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 12px rgba(201,24,74,0.3) !important;
}
.wenyou-studio-screen .studio-bottom-btn {
    min-height: unset !important;
    border-radius: 999px !important;
}
/* 列表项不被 CharacterStudio 的 padding 等覆盖 */
.wenyou-studio-screen .studio-list-item {
    background: var(--wy-surface) !important;
    border: 1px solid var(--wy-border) !important;
    border-radius: var(--wy-radius-sm) !important;
    padding: 10px !important;
}
/* 步骤点 */
.wenyou-studio-screen .studio-step-dot {
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
}

.wenyou-studio-screen .studio-home {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* 顶部导航 */
.studio-nav {
    display: flex;
    align-items: center;
    padding: 12px 16px 10px;
    background: rgba(10,8,20,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--wy-border);
    flex-shrink: 0;
}
.studio-nav-back {
    width: 36px; height: 36px; border: none;
    background: var(--wy-surface); color: var(--wy-text); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; cursor: pointer; flex-shrink: 0;
}
.studio-nav-title { flex: 1; text-align: center; }
.studio-nav-brand {
    font-size: 16px; font-weight: 700;
    background: linear-gradient(90deg, #c9184a, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}
.studio-nav-action-btn {
    width: 36px; height: 36px;
    border: 1px solid rgba(201,24,74,0.4);
    background: rgba(201,24,74,0.12);
    color: var(--wy-accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; cursor: pointer; flex-shrink: 0;
}

/* 加载 */
.studio-loading-center {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px; color: var(--wy-text2); font-size: 13px;
}
.studio-loading-center i { font-size: 24px; color: var(--wy-accent2); }

/* 空状态 */
.studio-empty-state {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 40px 24px; text-align: center;
}
.studio-empty-icon {
    width: 80px; height: 80px; border-radius: 24px;
    background: linear-gradient(135deg, rgba(201,24,74,0.15), rgba(123,47,247,0.15));
    border: 1px solid rgba(201,24,74,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: var(--wy-accent); margin-bottom: 20px;
}
.studio-empty-title { font-size: 18px; font-weight: 700; color: var(--wy-text); margin-bottom: 8px; }
.studio-empty-desc {
    font-size: 13px; color: var(--wy-text2); line-height: 1.7;
    max-width: 240px; margin-bottom: 28px;
}
.studio-primary-btn,
.studio-empty-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border: none; border-radius: 999px;
    background: linear-gradient(135deg, #c9184a, #7b2ff7);
    color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 20px rgba(201,24,74,0.4); letter-spacing: 0.3px;
}
.studio-primary-btn:disabled { opacity: 0.45; pointer-events: none; }

/* 草稿列表 */
.studio-draft-list {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 14px;
}
.studio-section-header {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; font-weight: 600; color: var(--wy-text2);
    text-transform: uppercase; letter-spacing: 1px; padding-bottom: 4px;
}
.studio-new-mini-btn {
    display: flex; align-items: center; gap: 5px; padding: 6px 12px;
    border: 1px solid rgba(201,24,74,0.4); background: rgba(201,24,74,0.1);
    color: var(--wy-accent); border-radius: 999px; font-size: 12px; font-weight: 600;
    cursor: pointer; text-transform: none; letter-spacing: 0;
}
.studio-draft-card {
    border-radius: var(--wy-radius); overflow: hidden;
    background: var(--wy-surface2); border: 1px solid var(--wy-border);
    min-height: 130px; cursor: pointer; position: relative; transition: transform 0.15s;
}
.studio-draft-card:active { transform: scale(0.98); }
.studio-draft-card-inner {
    padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
    min-height: 130px;
    background: linear-gradient(180deg, transparent, rgba(10,8,20,0.7));
}
.studio-draft-status-badge {
    display: inline-flex; align-items: center; padding: 2px 8px;
    border-radius: 999px; font-size: 10px; font-weight: 600; width: fit-content;
}
.studio-draft-status-badge.draft {
    background: rgba(244,196,48,0.15); color: var(--wy-gold);
    border: 1px solid rgba(244,196,48,0.3);
}
.studio-draft-status-badge.published {
    background: rgba(34,197,94,0.15); color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
}
.studio-draft-name { font-size: 17px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.studio-draft-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.studio-draft-tag {
    padding: 2px 7px; background: rgba(123,47,247,0.2);
    border: 1px solid rgba(123,47,247,0.3); border-radius: 999px;
    font-size: 10px; color: #b48fff;
}
.studio-draft-impression {
    font-size: 12px; color: rgba(232,224,240,0.6); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.studio-draft-footer {
    margin-top: auto; display: flex; align-items: center;
    justify-content: space-between; padding-top: 6px;
}
.studio-draft-time { font-size: 11px; color: var(--wy-text3); }
.studio-draft-delete {
    width: 28px; height: 28px; border: none;
    background: rgba(239,68,68,0.1); color: rgba(239,68,68,0.7);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 11px; cursor: pointer;
}

/* 编辑器布局 */
.studio-editor { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }

/* 封面英雄区 */
.studio-hero {
    position: relative; height: 130px; flex-shrink: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #4a1942 50%, #c9184a 100%);
    overflow: hidden;
}
.studio-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,8,20,0.2) 0%, rgba(10,8,20,0.65) 100%);
}
.studio-hero-bar {
    position: relative; z-index: 1; display: flex;
    align-items: center; padding: 12px 14px 6px; gap: 10px;
}
.studio-hero-back,
.studio-hero-save {
    width: 34px; height: 34px; border: none;
    background: rgba(0,0,0,0.3); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; cursor: pointer; flex-shrink: 0; backdrop-filter: blur(8px);
}
.studio-hero-save:disabled { opacity: 0.35; }
.studio-hero-title {
    flex: 1; font-size: 15px; font-weight: 700; color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.studio-hero-step-info { position: relative; z-index: 1; padding: 0 16px 12px; }
.studio-kicker { font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; }

/* 步骤指示器 */
.studio-step-tabs {
    display: flex; padding: 10px 14px 6px;
    background: rgba(10,8,20,0.7); flex-shrink: 0;
    overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--wy-border);
}
.studio-step-tabs::-webkit-scrollbar { display: none; }
.studio-step-tab {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 0 10px 6px; cursor: pointer; flex-shrink: 0; position: relative;
}
.studio-step-tab::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--wy-accent); border-radius: 999px;
    transition: width 0.2s;
}
.studio-step-tab.active::after { width: 70%; }
.studio-step-dot {
    width: 22px; height: 22px; border-radius: 50%;
    border: 1.5px solid var(--wy-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: var(--wy-text3); background: var(--wy-surface);
    transition: all 0.2s;
}
.studio-step-tab.active .studio-step-dot {
    border-color: var(--wy-accent); color: var(--wy-accent);
    background: rgba(201,24,74,0.15);
}
.studio-step-tab.done .studio-step-dot {
    border-color: #4ade80; color: #4ade80; background: rgba(34,197,94,0.12);
}
.studio-step-label { font-size: 9px; color: var(--wy-text3); white-space: nowrap; }
.studio-step-tab.active .studio-step-label { color: var(--wy-accent); }
.studio-step-tab.done  .studio-step-label { color: #4ade80; }

/* 步骤引导 */
.studio-step-guide {
    padding: 12px 18px 8px; background: rgba(123,47,247,0.06);
    border-bottom: 1px solid var(--wy-border); flex-shrink: 0;
}
.studio-guide-title { font-size: 14px; font-weight: 700; color: var(--wy-text); margin-bottom: 4px; }
.studio-guide-desc  { font-size: 12px; color: var(--wy-text2); line-height: 1.6; }

/* 步骤内容区 */
.studio-step-content {
    flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 120px;
    display: block;
}
/* 各区块之间的间距 */
.studio-step-content > * + * {
    margin-top: 16px;
}

/* 表单基础 */
.studio-field-group { display: flex; flex-direction: column; gap: 8px; }
.studio-field-row   { display: flex; gap: 12px; }
.studio-field-half  { flex: 1; min-width: 0; }
.studio-field-label {
    font-size: 13px; font-weight: 600; color: var(--wy-text2);
    display: flex; align-items: center; gap: 6px;
}
.studio-field-label-row { display: flex; align-items: center; justify-content: space-between; }
.studio-field-label-row .studio-field-label { margin: 0; }
.studio-field-opt      { font-size: 11px; color: var(--wy-text3); font-weight: 400; }
.studio-field-required { font-size: 11px; color: var(--wy-accent); font-weight: 400; }
.studio-field-hint     { font-size: 11px; color: var(--wy-text3); line-height: 1.5; margin-top: -4px; }

.studio-input,
.studio-textarea {
    width: 100%; background: rgba(255,255,255,0.06);
    border: 1px solid var(--wy-border); border-radius: var(--wy-radius-sm);
    padding: 10px 12px; color: var(--wy-text); font-size: 14px; line-height: 1.6;
    outline: none; resize: none; font-family: inherit; box-sizing: border-box;
    transition: border-color 0.15s;
}
.studio-input:focus,
.studio-textarea:focus {
    border-color: rgba(123,47,247,0.5); background: rgba(255,255,255,0.08);
}
.studio-input::placeholder,
.studio-textarea::placeholder { color: var(--wy-text3); }
.studio-input-sm    { font-size: 13px; padding: 7px 10px; flex: 1; min-width: 0; }
.studio-textarea-sm { font-size: 12px; padding: 7px 10px; }

/* 封面图 */
.studio-cover-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.studio-cover-thumb {
    aspect-ratio: 1; border-radius: 8px; overflow: hidden;
    position: relative; background: var(--wy-surface);
}
.studio-cover-thumb img { width: 100%; height: 100%; object-fit: cover; }
.studio-cover-remove {
    position: absolute; top: 3px; right: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,0.65); color: #fff; border: none;
    font-size: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.studio-cover-add {
    aspect-ratio: 1; border-radius: 8px; border: 1.5px dashed rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--wy-text3); cursor: pointer; background: var(--wy-surface);
}

/* 题材标签 */
.studio-tag-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.studio-tag-btn {
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--wy-border); background: var(--wy-surface);
    color: var(--wy-text2); font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.studio-tag-btn.active {
    background: rgba(123,47,247,0.2); border-color: rgba(123,47,247,0.5);
    color: #b48fff; font-weight: 600;
}
.studio-tag-btn:hover:not(.active) {
    border-color: var(--wy-accent2, #8b5cf6); color: var(--wy-text); transform: translateY(-1px);
}

/* 列表项 */
.studio-list-item {
    background: var(--wy-surface); border: 1px solid var(--wy-border);
    border-radius: var(--wy-radius-sm); padding: 10px;
    display: flex; flex-direction: column; gap: 7px;
}
.studio-list-item-row { display: flex; gap: 7px; align-items: center; }
.studio-list-item-del {
    width: 28px; height: 28px; border: none;
    background: rgba(239,68,68,0.08); color: rgba(239,68,68,0.6);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 11px; cursor: pointer; flex-shrink: 0;
}
.studio-list-empty { text-align: center; font-size: 12px; color: var(--wy-text3); padding: 10px 0; }
.studio-add-mini-btn {
    display: flex; align-items: center; gap: 4px; padding: 5px 11px;
    border: 1px solid rgba(123,47,247,0.4); background: rgba(123,47,247,0.1);
    color: #b48fff; border-radius: 999px; font-size: 11px; font-weight: 600; cursor: pointer;
}
.studio-add-mini-btn:disabled { opacity: 0.4; pointer-events: none; }

/* 角色预设 */
.studio-role-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.studio-preset-btn {
    padding: 6px 11px; border-radius: 999px;
    border: 1px solid var(--wy-border); background: var(--wy-surface);
    color: var(--wy-text2); font-size: 11px; cursor: pointer; transition: all 0.15s;
}
.studio-preset-btn.active {
    background: rgba(201,24,74,0.15); border-color: rgba(201,24,74,0.4); color: #ff7096;
}

/* 分析中 */
.studio-analyzing {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 14px; padding: 40px 24px; text-align: center;
}
.studio-analyzing-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: radial-gradient(circle, rgba(123,47,247,0.25), rgba(201,24,74,0.15));
    border: 1.5px solid rgba(123,47,247,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--wy-accent2);
}
.studio-analyzing-title { font-size: 16px; font-weight: 700; color: var(--wy-text); }
.studio-analyzing-detail { font-size: 13px; color: var(--wy-text2); }
.studio-progress-bar {
    width: 200px; height: 4px; background: var(--wy-surface2);
    border-radius: 999px; overflow: hidden;
}
.studio-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--wy-accent), var(--wy-accent2));
    border-radius: 999px; transition: width 0.4s ease;
}

/* 分析前引导 */
.studio-pre-analysis {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 20px; padding: 40px 24px; text-align: center;
}
.studio-pre-analysis-desc { font-size: 13px; color: var(--wy-text2); line-height: 1.8; max-width: 280px; }
.studio-analyze-btn,
.studio-compose-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px;
    border: none; border-radius: 999px;
    background: linear-gradient(135deg, var(--wy-accent2), var(--wy-accent));
    color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 20px rgba(123,47,247,0.4);
}
.studio-analyze-btn:disabled,
.studio-compose-btn:disabled { opacity: 0.45; pointer-events: none; }

/* 分析结果 */
.studio-analysis-header {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: -6px;
}
.studio-analysis-ready-badge {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600;
    border: 1px solid; padding: 3px 9px; border-radius: 999px;
}
.studio-reanalyze-btn {
    padding: 5px 11px; border: 1px solid var(--wy-border);
    background: var(--wy-surface); color: var(--wy-text2);
    border-radius: 999px; font-size: 11px; cursor: pointer;
}
/* ── AI扩写原文折叠 ──────────────────────────────── */
.studio-narrative-expansion {
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid rgba(201, 24, 74, 0.25);
    background: rgba(123, 47, 247, 0.06);
}
.studio-narrative-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #c9184a;
    cursor: pointer;
    user-select: none;
    border-radius: 12px;
}
.studio-narrative-toggle:active { opacity: 0.7; }
.studio-narrative-text {
    max-height: 260px;
    overflow-y: auto;
    padding: 12px 16px 14px;
    font-size: 12.5px;
    line-height: 1.75;
    color: rgba(255,255,255,0.75);
    white-space: pre-wrap;
    word-break: break-word;
    border-top: 1px solid rgba(201, 24, 74, 0.15);
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 24, 74, 0.4) transparent;
}
.studio-narrative-text::-webkit-scrollbar { width: 4px; }
.studio-narrative-text::-webkit-scrollbar-track { background: transparent; }
.studio-narrative-text::-webkit-scrollbar-thumb {
    background: rgba(201, 24, 74, 0.4);
    border-radius: 2px;
}

.studio-analysis-block {
    background: var(--wy-surface); border: 1px solid var(--wy-border);
    border-radius: var(--wy-radius-sm); overflow: hidden;
    border-left: 3px solid var(--block-accent, var(--wy-border));
}
.studio-analysis-block.warn {
    border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.06);
    border-left-color: #f59e0b;
}
.studio-analysis-block-title {
    padding: 9px 12px; font-size: 12px; font-weight: 700; color: var(--wy-text2);
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--wy-border);
}
.studio-analysis-block-title i { color: var(--block-accent, var(--wy-accent2)); }
.studio-analysis-block.warn .studio-analysis-block-title { color: #f59e0b; }
/* 分析头部类型标签 */
.studio-analysis-type-tag {
    font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
    flex-shrink: 0;
}
.studio-analysis-field {
    padding: 8px 12px; font-size: 12px; color: var(--wy-text); line-height: 1.75;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    word-break: break-word; white-space: pre-wrap;
}
.studio-analysis-field:last-child { border-bottom: none; }
.studio-analysis-key {
    display: block; color: var(--wy-accent2); font-size: 11px;
    font-weight: 600; margin-bottom: 3px;
}
.studio-analysis-val { display: block; }
/* 开场/体系描述等长文字段，限制高度并支持内部滚动 */
.studio-analysis-field.field-long {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 47, 247, 0.4) transparent;
}
.studio-analysis-field.field-long::-webkit-scrollbar { width: 3px; }
.studio-analysis-field.field-long::-webkit-scrollbar-thumb {
    background: rgba(123, 47, 247, 0.4);
    border-radius: 2px;
}

/* 世界卡预览 */
.studio-world-card-preview { border: 1px solid var(--wy-border); border-radius: var(--wy-radius); overflow: hidden; }
.studio-world-card-cover {
    height: 120px; background: linear-gradient(135deg, #1a1a2e, #4a1942); position: relative;
}
.studio-world-card-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,8,20,0.8) 100%);
}
.studio-world-card-name {
    position: absolute; bottom: 28px; left: 14px;
    font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.studio-world-card-tagline {
    position: absolute; bottom: 10px; left: 14px; right: 14px;
    font-size: 11px; color: rgba(255,255,255,0.7);
}
.studio-world-card-body { padding: 12px 14px; }
.studio-world-card-intro { font-size: 12px; color: var(--wy-text2); line-height: 1.7; margin-bottom: 10px; }
.studio-world-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.studio-world-card-tag {
    padding: 3px 9px; border-radius: 999px; font-size: 11px;
    background: rgba(123,47,247,0.15); border: 1px solid rgba(123,47,247,0.25); color: #b48fff;
}
.studio-world-card-tag.diff {
    background: rgba(244,196,48,0.12); border-color: rgba(244,196,48,0.3); color: var(--wy-gold);
}

/* 开场白预览 */
.studio-opening-preview {
    background: var(--wy-surface); border: 1px solid var(--wy-border);
    border-radius: var(--wy-radius-sm); padding: 14px;
}
.studio-opening-label {
    font-size: 12px; font-weight: 600; color: var(--wy-text2); margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.studio-opening-text {
    font-size: 13px; color: var(--wy-text); line-height: 1.9; font-style: italic;
    border-left: 2px solid var(--wy-accent2); padding-left: 12px; margin-bottom: 12px;
    max-height: 240px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(123,47,247,0.4) transparent;
    white-space: pre-wrap; word-break: break-word;
}
.studio-opening-text::-webkit-scrollbar { width: 3px; }
.studio-opening-text::-webkit-scrollbar-thumb { background: rgba(123,47,247,0.4); border-radius: 2px; }
.studio-opening-choices-label { font-size: 11px; color: var(--wy-text3); margin-bottom: 7px; }
.studio-opening-choice-item {
    font-size: 12px; color: var(--wy-text2); padding: 6px 10px; margin-bottom: 5px;
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.03); border-radius: 8px;
    border: 1px solid var(--wy-border);
}
.studio-opening-choice-item i { color: var(--wy-accent); font-size: 10px; flex-shrink: 0; }

/* 游戏设置 */
.studio-settings-block {
    background: var(--wy-surface); border: 1px solid var(--wy-border);
    border-radius: var(--wy-radius-sm); overflow: hidden;
}
.studio-settings-label {
    padding: 9px 12px; font-size: 12px; font-weight: 700; color: var(--wy-text2);
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--wy-border);
}
.studio-settings-row {
    display: flex; align-items: flex-start; padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04); gap: 12px;
}
.studio-settings-row:last-child { border-bottom: none; }
.studio-settings-key {
    font-size: 12px; color: var(--wy-text2); flex-shrink: 0;
    width: 56px; padding-top: 5px;
}
.studio-settings-options { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.studio-settings-opt {
    padding: 5px 13px; border-radius: 999px; border: 1px solid var(--wy-border);
    background: transparent; color: var(--wy-text2); font-size: 12px; cursor: pointer;
    transition: all 0.15s; white-space: nowrap;
}
.studio-settings-opt:active { opacity: 0.7; }
.studio-settings-opt.active {
    background: rgba(201,24,74,0.15); border-color: rgba(201,24,74,0.4);
    color: #ff7096; font-weight: 600;
}

/* 世界详情折叠块 */
.studio-world-detail-block {
    border-radius: var(--wy-radius-sm);
    border: 1px solid var(--wy-border);
    background: var(--wy-surface);
    overflow: hidden;
}
.studio-world-detail-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 13px; font-size: 13px; font-weight: 600;
    color: var(--wy-text2); cursor: pointer; user-select: none;
    background: rgba(255,255,255,0.03);
}
.studio-world-detail-toggle:active { opacity: 0.7; }
.studio-world-detail-body {
    max-height: 400px; overflow-y: auto; padding: 4px 0;
    scrollbar-width: thin; scrollbar-color: rgba(123,47,247,0.4) transparent;
}
.studio-world-detail-body::-webkit-scrollbar { width: 3px; }
.studio-world-detail-body::-webkit-scrollbar-thumb { background: rgba(123,47,247,0.4); border-radius: 2px; }
.studio-world-detail-section {
    padding: 10px 13px; border-top: 1px solid var(--wy-border);
}
.studio-world-detail-section:first-child { border-top: none; }
.studio-world-detail-sec-title {
    font-size: 12px; font-weight: 700; color: var(--wy-accent2);
    margin-bottom: 6px;
}
.studio-world-detail-sec-body {
    font-size: 12px; color: var(--wy-text); line-height: 1.75;
    white-space: pre-wrap; word-break: break-word;
}

/* 微调 */
.studio-tune-section { display: flex; flex-direction: column; gap: 10px; }
.studio-tune-label {
    font-size: 12px; font-weight: 600; color: var(--wy-text2);
    display: flex; align-items: center; gap: 6px;
}
.studio-tune-type-badge {
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-left: auto;
}
.studio-tune-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.studio-tune-btn {
    padding: 7px 13px; border-radius: 999px;
    border: 1px solid var(--btn-accent, var(--wy-border));
    background: var(--wy-surface);
    color: var(--btn-accent, var(--wy-text2));
    font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.studio-tune-btn:hover:not(:disabled) {
    opacity: 0.85; transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
.studio-tune-btn:disabled { opacity: 0.4; pointer-events: none; }
.studio-tune-custom {
    border-style: dashed; display: flex; align-items: center; gap: 5px;
    border-color: var(--wy-border) !important;
    background: transparent !important; color: var(--wy-text2) !important;
}
.studio-refining-hint {
    font-size: 12px; color: var(--wy-text2); display: flex; align-items: center; gap: 7px; padding: 4px 0;
}

/* 发布 */
.studio-publish-section {
    padding-top: 4px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.studio-publish-btn {
    width: 100%; padding: 14px; border: none; border-radius: var(--wy-radius);
    background: linear-gradient(135deg, var(--wy-accent), var(--wy-accent2));
    color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 20px rgba(201,24,74,0.35);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.studio-publish-btn:disabled { opacity: 0.5; pointer-events: none; }
.studio-published-hint { font-size: 13px; color: #4ade80; display: flex; align-items: center; gap: 5px; }

/* 底部导航 */
.studio-bottom-nav {
    display: flex; gap: 10px; padding: 10px 16px 10px;
    background: rgba(10,8,20,0.9); border-top: 1px solid var(--wy-border);
    backdrop-filter: blur(12px); flex-shrink: 0;
}
.studio-bottom-btn {
    display: flex; align-items: center; gap: 6px; padding: 11px 18px;
    border-radius: 999px; border: 1px solid var(--wy-border);
    background: var(--wy-surface); color: var(--wy-text2); font-size: 14px;
    cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.studio-bottom-prev { flex-shrink: 0; }
.studio-bottom-primary {
    flex: 1; justify-content: center;
    background: linear-gradient(135deg, var(--wy-accent), var(--wy-accent2));
    border-color: transparent; color: #fff; font-weight: 700;
    box-shadow: 0 3px 12px rgba(201,24,74,0.3);
}
.studio-bottom-btn:disabled { opacity: 0.4; pointer-events: none; }
.studio-step-done-hint {
    flex: 1; text-align: center; font-size: 13px; color: #4ade80;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}


/* ================================================================
   喵呜·文游 - 广场
   ================================================================ */

.wenyou-screen {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #0b0a14 0%, #120d24 60%, #0e0b1e 100%);
    color: var(--wy-text); display: flex; flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
}
.wenyou-gallery { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.wenyou-topbar {
    display: flex; align-items: center; padding: 12px 16px 10px;
    background: rgba(10,8,20,0.85); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--wy-border); flex-shrink: 0;
}
.wenyou-topbar-back {
    width: 36px; height: 36px; border: none;
    background: var(--wy-surface); color: var(--wy-text); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; cursor: pointer; flex-shrink: 0;
}
.wenyou-topbar-title { flex: 1; text-align: center; }
.wenyou-brand {
    font-size: 16px; font-weight: 700;
    background: linear-gradient(90deg, #7b2ff7, #c9184a);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 0.5px;
}
.wenyou-gallery-tabs { display: flex; padding: 10px 16px 0; gap: 4px; flex-shrink: 0; }
.wenyou-gallery-tab {
    flex: 1; padding: 9px; border: none; background: transparent;
    color: var(--wy-text3); font-size: 13px; font-weight: 600;
    cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s;
}
.wenyou-gallery-tab.active { color: var(--wy-text); border-bottom-color: var(--wy-accent2); }

.wenyou-search-bar {
    display: flex; align-items: center; margin: 12px 14px 0;
    background: var(--wy-surface2); border: 1px solid var(--wy-border);
    border-radius: 999px; padding: 0 14px; flex-shrink: 0;
}
.wenyou-search-icon { color: var(--wy-text3); font-size: 13px; flex-shrink: 0; }
.wenyou-search-input {
    flex: 1; background: transparent; border: none; outline: none;
    padding: 9px 10px; color: var(--wy-text); font-size: 13px;
}
.wenyou-search-input::placeholder { color: var(--wy-text3); }

.wenyou-sort-row { display: flex; gap: 8px; padding: 10px 14px 0; flex-shrink: 0; }
.wenyou-sort-btn {
    display: flex; align-items: center; gap: 5px; padding: 5px 13px;
    border-radius: 999px; border: 1px solid var(--wy-border);
    background: transparent; color: var(--wy-text3); font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.wenyou-sort-btn.active {
    background: rgba(123,47,247,0.15); border-color: rgba(123,47,247,0.4);
    color: #b48fff; font-weight: 600;
}

.wenyou-loading-center {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px; color: var(--wy-text2); font-size: 13px;
}
.wenyou-loading-center i { font-size: 22px; color: var(--wy-accent2); }

.wenyou-empty-state {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 40px 24px; text-align: center;
}
.wenyou-empty-icon {
    width: 72px; height: 72px; border-radius: 22px;
    background: linear-gradient(135deg, rgba(123,47,247,0.15), rgba(201,24,74,0.12));
    border: 1px solid rgba(123,47,247,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--wy-accent2); margin-bottom: 18px;
}
.wenyou-empty-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.wenyou-empty-desc { font-size: 13px; color: var(--wy-text2); line-height: 1.7; max-width: 240px; margin-bottom: 24px; }
.wenyou-empty-cta {
    display: inline-flex; align-items: center; gap: 7px; padding: 11px 24px;
    border: none; border-radius: 999px;
    background: linear-gradient(135deg, var(--wy-accent2), var(--wy-accent));
    color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}

/* 瀑布流 */
.wenyou-masonry {
    flex: 1; overflow-y: auto; padding: 12px 10px 80px;
    display: flex; gap: 8px; align-items: flex-start;
}
.wenyou-masonry-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.wenyou-world-card {
    border-radius: var(--wy-radius); overflow: hidden;
    background: var(--wy-surface2); border: 1px solid var(--wy-border);
    cursor: pointer; transition: transform 0.15s;
}
.wenyou-world-card:active { transform: scale(0.97); }
.wenyou-world-card-cover {
    width: 100%; aspect-ratio: 3/2;
    background: linear-gradient(135deg, #1a1a2e, #4a1942);
    background-size: cover; background-position: center; position: relative;
}
.wenyou-world-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,8,20,0.75) 100%);
}
.wenyou-world-card-diff {
    position: absolute; top: 6px; right: 6px; padding: 2px 7px; border-radius: 999px;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
    font-size: 9px; font-weight: 700; color: var(--wy-gold);
}
.wenyou-world-card-body { padding: 9px 10px 10px; }
.wenyou-world-card-name { font-size: 13px; font-weight: 700; color: var(--wy-text); margin-bottom: 4px; }
.wenyou-world-card-tagline {
    font-size: 11px; color: var(--wy-text2); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 6px;
}
.wenyou-world-card-meta { display: flex; gap: 10px; font-size: 10px; color: var(--wy-text3); }
.wenyou-world-card-meta i { margin-right: 3px; }
.wenyou-load-more { text-align: center; padding: 14px; font-size: 13px; color: var(--wy-text2); cursor: pointer; }
.wenyou-loading-more { text-align: center; padding: 14px; color: var(--wy-text3); }

/* 我的存档 */
.wenyou-adventure-list {
    flex: 1; overflow-y: auto; padding: 12px 14px 80px;
    display: flex; flex-direction: column; gap: 10px;
}
.wenyou-adventure-card {
    border-radius: var(--wy-radius); min-height: 110px;
    background: var(--wy-surface2); border: 1px solid var(--wy-border);
    background-size: cover; background-position: center;
    cursor: pointer; position: relative; overflow: hidden; transition: transform 0.15s;
}
.wenyou-adventure-card:active { transform: scale(0.98); }
.wenyou-adventure-card-inner { padding: 12px 14px; }
.wenyou-adv-world-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.wenyou-adv-location {
    font-size: 11px; color: rgba(255,255,255,0.65);
    display: flex; align-items: center; gap: 5px; margin-bottom: 10px;
}
.wenyou-adv-hp-bar { height: 3px; background: rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.wenyou-adv-hp-fill { height: 100%; background: #4ade80; border-radius: 999px; }
.wenyou-adv-footer { display: flex; justify-content: space-between; }
.wenyou-adv-turns,
.wenyou-adv-time { font-size: 11px; color: rgba(255,255,255,0.5); }

/* 世界详情弹窗 */
.wenyou-detail-overlay {
    position: absolute; inset: 0; z-index: 50;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
    display: flex; align-items: flex-end;
}
.wenyou-detail-sheet {
    width: 100%; max-height: 88%; background: #12101f;
    border-radius: 20px 20px 0 0; border-top: 1px solid var(--wy-border);
    overflow: hidden; display: flex; flex-direction: column;
}
.wenyou-detail-cover {
    height: 180px; background: linear-gradient(135deg, #1a1a2e, #4a1942);
    background-size: cover; background-position: center;
    position: relative; flex-shrink: 0;
}
.wenyou-detail-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
}
.wenyou-detail-close {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
    border: none; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; cursor: pointer; z-index: 1;
}
.wenyou-detail-name {
    position: absolute; bottom: 34px; left: 16px;
    font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.wenyou-detail-tagline {
    position: absolute; bottom: 14px; left: 16px; right: 40px;
    font-size: 12px; color: rgba(255,255,255,0.7);
}
.wenyou-detail-body { padding: 16px; overflow-y: auto; flex: 1; }
.wenyou-detail-meta-row {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 12px;
}
.wenyou-detail-diff-badge {
    padding: 3px 9px; border-radius: 999px;
    background: rgba(244,196,48,0.15); border: 1px solid rgba(244,196,48,0.3);
    color: var(--wy-gold); font-size: 11px; font-weight: 700;
}
.wenyou-detail-genre {
    padding: 3px 8px; border-radius: 999px;
    background: rgba(123,47,247,0.15); border: 1px solid rgba(123,47,247,0.25);
    color: #b48fff; font-size: 11px;
}
.wenyou-detail-stat { font-size: 12px; color: var(--wy-text3); display: flex; align-items: center; gap: 4px; }
.wenyou-detail-intro { font-size: 13px; color: var(--wy-text2); line-height: 1.8; margin-bottom: 14px; }
.wenyou-detail-opening-label {
    font-size: 12px; font-weight: 700; color: var(--wy-text2); margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.wenyou-detail-opening {
    font-size: 12px; color: rgba(232,224,240,0.7); line-height: 1.9; font-style: italic;
    border-left: 2px solid var(--wy-accent2); padding-left: 10px; margin-bottom: 18px;
}
.wenyou-start-game-btn {
    width: 100%; padding: 14px; border: none; border-radius: var(--wy-radius);
    background: linear-gradient(135deg, var(--wy-accent2), var(--wy-accent));
    color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 20px rgba(123,47,247,0.4);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.wenyou-start-game-btn:active { opacity: 0.88; transform: scale(0.99); }


/* ================================================================
   游戏沉浸界面
   ================================================================ */

.wenyou-game {
    position: absolute; inset: 0;
    background: var(--mood-bg, #0b0a14);
    display: flex; flex-direction: column; overflow: hidden;
    transition: background 0.6s ease;
}
.wenyou-game-loading {
    position: absolute; inset: 0; z-index: 10;
    background: rgba(10,8,20,0.95);
    display: flex; align-items: center; justify-content: center;
}
.wenyou-game-loading-inner {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    color: var(--wy-text2); font-size: 14px;
}
.wenyou-game-loading-inner i { font-size: 28px; color: var(--wy-accent2); }

/* 场景顶栏 */
.game-scene-bar {
    display: flex; align-items: center; padding: 10px 12px;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mood-border, rgba(75,123,236,0.3));
    flex-shrink: 0; gap: 10px; transition: border-color 0.5s;
}
.game-exit-btn,
.game-status-toggle {
    width: 32px; height: 32px; border: none; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.game-scene-info { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.game-scene-location {
    font-size: 12px; font-weight: 700; color: var(--mood-accent, #4b7bec);
    display: flex; align-items: center; gap: 5px; transition: color 0.5s;
}
.game-scene-location i { font-size: 10px; opacity: 0.7; }
.game-scene-atmosphere {
    font-size: 10px; color: rgba(255,255,255,0.45);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 状态面板 */
.game-status-panel {
    background: rgba(0,0,0,0.45); border-bottom: 1px solid var(--mood-border, rgba(75,123,236,0.2));
    padding: 10px 14px; display: flex; flex-direction: column; gap: 7px;
    flex-shrink: 0; backdrop-filter: blur(8px);
}
.game-status-hp { display: flex; align-items: center; gap: 8px; }
.game-status-label {
    font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4);
    width: 22px; flex-shrink: 0; text-transform: uppercase;
}
.game-status-hp-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.game-status-hp-fill { height: 100%; border-radius: 999px; transition: width 0.4s ease, background 0.4s ease; }
.game-status-hp-num { font-size: 11px; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.game-status-row {
    display: flex; align-items: center; gap: 7px; font-size: 11px; color: rgba(255,255,255,0.5);
}
.game-status-row i { font-size: 10px; color: var(--mood-accent, #4b7bec); }
.game-status-effects { display: flex; gap: 6px; flex-wrap: wrap; }
.game-status-effect-tag {
    padding: 2px 8px; border-radius: 999px;
    background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
    color: #f59e0b; font-size: 10px;
}
.game-status-inventory { display: flex; align-items: flex-start; gap: 8px; }
.game-status-items { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.game-item-tag {
    padding: 2px 8px; border-radius: 999px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6); font-size: 10px;
}

/* NPC 弹卡 */
.game-npc-panel {
    display: flex; flex-direction: column; gap: 6px; padding: 8px 12px;
    background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--mood-border, rgba(75,123,236,0.2));
    flex-shrink: 0;
}
.game-npc-card {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(255,255,255,0.05); border-radius: 10px; padding: 9px 10px; position: relative;
}
.game-npc-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(123,47,247,0.2); border: 1px solid rgba(123,47,247,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #b48fff; flex-shrink: 0;
}
.game-npc-info { flex: 1; }
.game-npc-name { font-size: 12px; font-weight: 700; color: var(--wy-text); margin-bottom: 2px; }
.game-npc-state { font-size: 11px; color: var(--wy-text2); margin-bottom: 3px; }
.game-npc-line { font-size: 11px; color: rgba(255,255,255,0.5); font-style: italic; }
.game-npc-dismiss {
    position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4);
    font-size: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* 叙事滚动区 */
.game-narrative-scroll {
    flex: 1; overflow-y: auto; padding: 16px 14px 8px;
    display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth;
}
.game-narrative-scroll::-webkit-scrollbar { width: 2px; }
.game-narrative-scroll::-webkit-scrollbar-track { background: transparent; }
.game-narrative-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 999px; }

.game-gm-bubble { max-width: 100%; animation: wyFadeInUp 0.25s ease; }
.game-gm-text { font-size: 14px; line-height: 2; color: var(--wy-text); letter-spacing: 0.2px; }
.game-gm-text p { margin: 0 0 0.8em; padding: 0; }
.game-gm-text p:last-child { margin-bottom: 0; }

.game-player-bubble { display: flex; justify-content: flex-end; animation: wyFadeInUp 0.2s ease; }
.game-player-text {
    display: inline-flex; align-items: flex-start; gap: 8px; max-width: 85%;
    padding: 9px 13px; background: rgba(201,24,74,0.15);
    border: 1px solid rgba(201,24,74,0.25);
    border-radius: 14px 14px 2px 14px;
    font-size: 13px; color: #ffb3c1; line-height: 1.6;
}
.game-player-icon { font-size: 10px; color: var(--wy-accent); margin-top: 3px; flex-shrink: 0; }

/* 打字动画 */
.game-typing { display: flex; align-items: center; gap: 5px; padding: 10px 0; }
.game-typing-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--mood-accent, #4b7bec); opacity: 0.4;
    animation: wyTypingBounce 1.2s ease-in-out infinite;
}
.game-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.game-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes wyTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* 游戏结束 */
.game-over-banner {
    text-align: center; padding: 24px 20px;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--wy-radius); animation: wyFadeInUp 0.4s ease;
}
.game-over-title {
    font-size: 20px; font-weight: 800; color: #ef4444; margin-bottom: 8px; letter-spacing: 2px;
}
.game-over-reason { font-size: 13px; color: var(--wy-text2); line-height: 1.7; }

/* 快捷选项 */
.game-choices { padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.game-choice-btn {
    display: flex; align-items: center; gap: 8px; padding: 9px 14px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--mood-border, rgba(75,123,236,0.2));
    border-radius: 10px; color: rgba(255,255,255,0.75);
    font-size: 13px; cursor: pointer; text-align: left; transition: all 0.15s;
}
.game-choice-btn:active {
    background: rgba(255,255,255,0.08); border-color: var(--mood-accent, #4b7bec); color: #fff;
}
.game-choice-btn:disabled { opacity: 0.4; pointer-events: none; }
.game-choice-btn i { font-size: 10px; color: var(--mood-accent, #4b7bec); flex-shrink: 0; }

/* 输入区 */
.game-input-area {
    padding: 8px 12px 10px;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--mood-border, rgba(75,123,236,0.2));
    flex-shrink: 0; transition: border-color 0.5s;
}
.game-input-toolbar { display: flex; gap: 8px; margin-bottom: 8px; }
.game-tool-btn {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4); font-size: 12px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.game-tool-btn:disabled { opacity: 0.3; pointer-events: none; }
.game-input-row { display: flex; gap: 8px; align-items: flex-end; }
.game-input-box {
    flex: 1; background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
    padding: 10px 13px; color: var(--wy-text); font-size: 14px; line-height: 1.5;
    resize: none; outline: none; font-family: inherit; max-height: 100px;
    transition: border-color 0.15s;
}
.game-input-box:focus { border-color: var(--mood-accent, #4b7bec); background: rgba(255,255,255,0.09); }
.game-input-box::placeholder { color: rgba(255,255,255,0.25); }
.game-input-box:disabled { opacity: 0.5; }
.game-send-btn {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; border: none;
    background: linear-gradient(135deg, var(--wy-accent2), var(--wy-accent));
    color: #fff; font-size: 14px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 10px rgba(123,47,247,0.4); transition: all 0.15s;
}
.game-send-btn:disabled { opacity: 0.35; pointer-events: none; }
.game-send-btn:not(:disabled):active { transform: scale(0.93); }
.game-input-hint { font-size: 10px; color: rgba(255,255,255,0.2); text-align: right; margin-top: 4px; }

/* 游戏结束操作 */
.game-over-actions {
    padding: 12px 14px 12px;
    background: rgba(0,0,0,0.5); border-top: 1px solid rgba(239,68,68,0.2); flex-shrink: 0;
}
.game-over-exit-btn {
    width: 100%; padding: 13px; border-radius: var(--wy-radius);
    background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444; font-size: 14px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ============================================================
   造界 - 游戏类型选择器（内嵌于世界卡面，2列紧凑版）
   ============================================================ */
.studio-gametype-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.studio-gametype-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 12px;
    border-radius: var(--wy-radius);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
}
.studio-gametype-btn .fas { font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.studio-gametype-label { font-size: 13px; font-weight: 700; color: var(--wy-text); line-height: 1; }
.studio-gametype-tagline { font-size: 11px; color: var(--wy-text-muted); }
.studio-gametype-btn.active .studio-gametype-label { color: #fff; }

/* ============================================================
   造界 - 独立类型选择步骤（九宫格版）
   ============================================================ */
.studio-type-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.studio-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.studio-type-cell {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--wy-radius);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: transparent;
    transition: border-color 0.2s ease, transform 0.15s ease;
}
.studio-type-cell:active { transform: scale(0.96); }
.studio-type-cell.active {
    border-color: var(--gt-accent, #8b5cf6);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* 双层背景图 */
.studio-type-cell-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}
/* 底层：普通/选中状态背景（纹理，铺满） */
.studio-type-cell-bg-base { z-index: 0; background-size: cover; }
/* 上层：类型图片（带文字，完整显示） */
.studio-type-cell-bg-img  { z-index: 1; background-size: 65%; }
.studio-type-cell:hover .studio-type-cell-bg-img { transform: scale(1.03); }

/* 选中时高亮边框 */
.studio-type-cell-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 18px 10px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
    border-radius: 0 0 10px 10px;
    pointer-events: none;
    text-align: center;
}
.studio-type-cell-label-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.studio-type-cell-label-tag {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
    letter-spacing: 0.3px;
}
.studio-type-cell-active-ring {
    position: absolute;
    inset: 0;
    border: 2.5px solid;
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
    opacity: 0.85;
}

/* 选中右上角勾 */
.studio-type-cell-check {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 4;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.studio-type-cell-check .fas { font-size: 9px; color: #fff; }

/* 底部描述栏 */
.studio-type-desc-bar {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--wy-radius-sm);
    background: rgba(255,255,255,0.04);
    border-left: 2px solid rgba(255,255,255,0.2);
    font-size: 12px;
    color: var(--wy-text2);
    line-height: 1.5;
    transition: border-color 0.2s ease;
}
.studio-type-desc-bar .fas { flex-shrink: 0; margin-top: 1px; font-size: 13px; }

/* 世界卡面里的旧内嵌描述（不再使用，保留兼容）*/
.studio-gametype-desc {
    margin-top: 8px;
    font-size: 12px;
    color: var(--wy-text-muted);
    padding: 8px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    border-left: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.studio-gametype-desc .fas { margin-top: 1px; color: var(--wy-accent2); flex-shrink: 0; }

/* 游戏设置里的类型徽章 */
.studio-settings-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================
   文游游戏界面 - 通用状态面板新样式
   ============================================================ */
.wenyou-studio-screen .game-status-panel,
.wenyou-screen .game-status-panel {
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 位置行 */
.game-status-location {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--wy-text-muted);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.game-status-location .fas { font-size: 11px; opacity: 0.7; }

/* section 标签 */
.game-status-sec-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    min-width: 42px;
}

/* 进度条行 */
.game-status-bar-row {
    display: flex; align-items: center; gap: 8px;
}
.game-status-bar {
    flex: 1; height: 5px; border-radius: 3px;
    background: rgba(255,255,255,0.1); overflow: hidden;
}
.game-status-bar-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.4s ease, background 0.4s ease;
}
.game-status-bar-num {
    font-size: 11px; color: rgba(255,255,255,0.6);
    min-width: 36px; text-align: right;
}

/* 键值对（属性/资源/势力） */
.game-status-attrs { display: flex; align-items: flex-start; gap: 8px; }
.game-status-kv {
    display: flex; flex-wrap: wrap; gap: 4px;
}
.game-status-kv-item {
    font-size: 11px; color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.06);
    border-radius: 4px; padding: 2px 6px;
    display: flex; gap: 3px;
}
.game-status-kv-item em { color: #fff; font-style: normal; font-weight: 600; }

/* 好感度（每角色一条） */
.game-status-affections { display: flex; flex-direction: column; gap: 5px; }
.game-status-affection-row {
    display: flex; align-items: center; gap: 8px;
}
.game-status-affection-name {
    font-size: 11px; color: rgba(255,255,255,0.6);
    min-width: 48px; flex-shrink: 0;
}
.game-status-affection-bar { flex: 1; }

/* 标签云（状态/嫌疑人/盟友/敌人） */
.game-status-tags-row { display: flex; align-items: flex-start; gap: 8px; }
.game-status-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.game-status-tag {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}
.game-status-tag.game-status-tag-enemy {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}

/* 列表型（背包/线索/物资/记忆） */
.game-status-list-row { display: flex; align-items: flex-start; gap: 8px; }
.game-status-list { display: flex; flex-wrap: wrap; gap: 4px; }

/* 单值型（心情/金币） */
.game-status-value-row { display: flex; align-items: center; gap: 8px; }
.game-status-value {
    font-size: 13px; color: var(--wy-text);
    display: flex; align-items: center; gap: 5px;
}

/* Vue 过渡动画 */
.slide-down-enter-active, .slide-down-leave-active { transition: all 0.2s ease; }
.slide-down-enter-from, .slide-down-leave-to { transform: translateY(-100%); opacity: 0; }
.slide-up-enter-active, .slide-up-leave-active { transition: all 0.2s ease; }
.slide-up-enter-from, .slide-up-leave-to { transform: translateY(20px); opacity: 0; }
.fade-enter-active, .fade-leave-active { transition: opacity 0.2s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

@keyframes wyFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
