/* ==================== 基础变量与重置 ==================== */
.status-bar-top,
.status-bar-bottom,
.status-bar-top *,
.status-bar-bottom * {
    box-sizing: border-box;
}

/* ==================== 隐藏思维链 ==================== */
think, cot {
    display: none !important;
}

/* ==================== 上方状态栏 - 机能面板 ==================== */
.status-bar-top {
    max-width: 780px;
    width: 100%;
    margin: 0 auto 28px;
    background: linear-gradient(145deg, #0b1016 0%, #111820 100%);
    border: 1px solid #1a2535;
    border-radius: 2px;
    padding: 2px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
    color: #c8dbe8;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.02);
}

.status-bar-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    z-index: 3;
    pointer-events: none;
    animation: border-glow 3s linear infinite;
}

@keyframes border-glow {
    0% {
        border-color: transparent;
        box-shadow: 0 0 0 rgba(0, 229, 255, 0);
    }
    25% {
        border-color: rgba(0, 229, 255, 0.4);
        box-shadow: 0 0 8px rgba(0, 229, 255, 0.2), inset 0 0 8px rgba(0, 229, 255, 0.1);
    }
    50% {
        border-color: rgba(0, 229, 255, 0.8);
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.3), inset 0 0 15px rgba(0, 229, 255, 0.15);
    }
    75% {
        border-color: rgba(0, 229, 255, 0.4);
        box-shadow: 0 0 8px rgba(0, 229, 255, 0.2), inset 0 0 8px rgba(0, 229, 255, 0.1);
    }
    100% {
        border-color: transparent;
        box-shadow: 0 0 0 rgba(0, 229, 255, 0);
    }
}

.status-bar-top::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 6px #ff0000, 0 0 12px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.3);
    animation: indicator-blink 1.5s ease-in-out infinite;
}

@keyframes indicator-blink {
    0%, 100% {
        opacity: 1;
        background: #ff3333;
        box-shadow: 0 0 6px #ff0000, 0 0 12px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.3);
    }
    50% {
        opacity: 0.2;
        background: #cc0000;
        box-shadow: 0 0 3px #ff0000, 0 0 6px rgba(255, 0, 0, 0.3), 0 0 10px rgba(255, 0, 0, 0.1);
    }
}

.status-row {
    display: contents;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(10, 16, 24, 0.8);
    border-bottom: 1px solid #1a2738;
    border-right: 1px solid #1a2738;
    font-size: 0.9rem;
    font-weight: 500;
    color: #b0c7db;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.25s;
}

.status-item:nth-child(2) { border-right: none; }
.status-item:nth-child(3) { border-bottom: none; }
.status-item:nth-child(4) { border-bottom: none; border-right: none; }

.status-item:hover {
    background: rgba(20, 35, 55, 0.9);
    box-shadow: inset 0 0 25px rgba(0, 180, 255, 0.08);
}

.icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(0, 200, 255, 0.5));
}

.status-bar-top .highlight {
    font-weight: 700;
    color: #ff4d6a;
    background: rgba(255, 60, 80, 0.12);
    padding: 3px 10px;
    border-radius: 2px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 70, 90, 0.25);
    text-shadow: 0 0 8px rgba(255, 50, 70, 0.4);
}

/* ==================== 正文区域 ==================== */
text {
    display: block;
    max-width: 780px;
    width: 100%;
    margin: 0 auto 28px;
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
    color: #c8d8e8;
    background: linear-gradient(160deg, #0c1219 0%, #101820 100%);
    padding: 28px 30px;
    border: 1px solid #1a2738;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.02);
}

text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 1px solid rgba(0, 229, 255, 0.5);
    border-left: 1px solid rgba(0, 229, 255, 0.5);
    pointer-events: none;
}

text::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.5);
    border-right: 1px solid rgba(0, 229, 255, 0.5);
    pointer-events: none;
}

text p {
    margin-bottom: 1.3em;
    font-size: 1.02rem;
    line-height: 1.75;
    letter-spacing: 0.3px;
    position: relative;
    color: #b8cfe0;
}

/* 六花对话 - 青色 */
rikka-talk {
    color: #00e5ff;
    font-weight: 600;
    background: transparent;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    letter-spacing: 0.5px;
}

/* 六花心理 - 暖橙灰 */
rikka-think {
    color: #c4a882;
    font-style: italic;
    font-weight: 400;
    background: transparent;
    opacity: 0.9;
    text-shadow: 0 0 4px rgba(200, 170, 130, 0.2);
}

/* 新条茜对话 - 亮粉色 */
akane-talk {
    color: #ff69b4;
    font-weight: 600;
    background: transparent;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    letter-spacing: 0.5px;
}

/* 新条茜心理 - 粉紫色 */
akane-think {
    color: #d8a0c8;
    font-style: italic;
    font-weight: 400;
    background: transparent;
    opacity: 0.9;
    text-shadow: 0 0 6px rgba(200, 140, 180, 0.3);
}

/* ==================== 下方状态栏容器 ==================== */
.status-bar-bottom {
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
}

/* 通用卡片 */
.status-card {
    background: linear-gradient(160deg, #0c1219 0%, #101820 100%);
    border: 1px solid #1a2738;
    border-radius: 2px;
    overflow: visible;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.02);
    transition: all 0.3s;
    position: relative;
}

/* 每个卡片的红色指示灯 */
.status-card::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 7px;
    height: 7px;
    background: #ff3b3b;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 4px #ff0000, 0 0 8px rgba(255, 0, 0, 0.5);
    animation: card-indicator 2s ease-in-out infinite;
}

@keyframes card-indicator {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 4px #ff0000, 0 0 8px rgba(255, 0, 0, 0.5);
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 2px #ff0000, 0 0 4px rgba(255, 0, 0, 0.2);
    }
}

/* 面板开启发光 */
.status-card[open] {
    border-color: #00b8d4;
    box-shadow: 0 0 20px rgba(0, 180, 220, 0.15), 0 6px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* summary 标题栏 */
.status-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 15px 45px 15px 22px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #8db3d0;
    background: rgba(8, 14, 22, 0.9);
    border-bottom: 1px solid #1a2838;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

/* 标题栏底部流光 */
.status-card summary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    animation: summary-flow 3s linear infinite;
}

@keyframes summary-flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-card summary::-webkit-details-marker {
    display: none;
}

.status-card summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 14px;
    font-size: 0.9rem;
    transition: transform 0.25s;
    color: #00b8d4;
    text-shadow: 0 0 8px rgba(0, 180, 220, 0.6);
}

.status-card[open] summary::before {
    transform: rotate(90deg);
}

.status-card summary:hover {
    background: rgba(15, 24, 36, 0.95);
    color: #b0d4ec;
}

.status-card[open] summary {
    border-bottom-color: #00b8d4;
    background: rgba(12, 22, 35, 0.95);
    color: #c0dff0;
}

/* 内容区域 */
.profile-content {
    padding: 20px 24px;
    font-size: 0.9rem;
    color: #c8dff0;
    background: rgba(6, 11, 18, 0.7);
}

.profile-content p {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: #c8dff0;
}

/* 数据标签 */
.label {
    font-weight: 600;
    color: #d0e4f8;
    background: rgba(0, 180, 220, 0.12);
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    border: 1px solid rgba(0, 180, 220, 0.25);
    text-transform: uppercase;
    text-shadow: 0 0 3px rgba(0, 200, 255, 0.2);
}

/* 数值高亮 */
.value {
    font-weight: 700;
    color: #ff5c72;
    background: rgba(255, 60, 80, 0.12);
    padding: 3px 10px;
    border-radius: 2px;
    border: 1px solid rgba(255, 60, 80, 0.25);
    text-shadow: 0 0 6px rgba(255, 50, 70, 0.4);
}

/* profile-content 内的 highlight */
.profile-content .highlight {
    font-weight: 600;
    color: #ff6b7a;
    background: transparent;
    padding: 0;
    border: none;
    text-shadow: 0 0 6px rgba(255, 100, 120, 0.3);
    letter-spacing: 0.3px;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #1a3045, transparent);
    margin: 16px 0;
}

/* 列表样式 */
.clothing-list, .body-state-list {
    list-style: none;
    margin-top: 4px;
    padding-left: 6px;
}

.clothing-list li, .body-state-list li {
    font-size: 0.86rem;
    padding: 5px 0 5px 18px;
    position: relative;
    border-bottom: 1px solid #15222f;
    color: #b0cde0;
}

.clothing-list li::before {
    content: '▹';
    color: #00e5ff;
    position: absolute;
    left: 0;
    text-shadow: 0 0 4px rgba(0, 229, 255, 0.5);
}

.body-state-list li::before {
    content: '▪';
    color: #ff6b7a;
    position: absolute;
    left: 0;
    text-shadow: 0 0 4px rgba(255, 80, 100, 0.5);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1a3045, transparent);
    margin: 16px 0;
}

/* ==================== 回家线索 - 带框标签 + 进度条 ==================== */
.progress-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px 0;
    padding: 0;
}

.progress-label {
    font-weight: 600;
    color: #d0e4f8;
    background: rgba(0, 180, 220, 0.12);
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    border: 1px solid rgba(0, 180, 220, 0.25);
    text-transform: uppercase;
    text-shadow: 0 0 3px rgba(0, 200, 255, 0.2);
    white-space: nowrap;
}

.progress-bar {
    flex: 1;
    min-width: 120px;
    height: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #1a3045;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #006994, #00b8d4, #00e5ff);
    border-radius: 2px;
    position: relative;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ==================== 新条茜卡片专属风格 ==================== */
.akane-card[open] {
    border-color: #ff69b4 !important;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.15), 0 6px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.akane-card[open] summary {
    border-bottom-color: #ff69b4 !important;
    color: #ffb6d9 !important;
}

.akane-card .value {
    color: #ff69b4 !important;
    background: rgba(255, 105, 180, 0.12) !important;
    border-color: rgba(255, 105, 180, 0.25) !important;
    text-shadow: 0 0 6px rgba(255, 105, 180, 0.4) !important;
}

.akane-card .highlight {
    color: #ff69b4 !important;
    text-shadow: 0 0 6px rgba(255, 105, 180, 0.3) !important;
}

/* ==================== 命运之书记忆区（使用memory-card类名精准定位） ==================== */
.memory-card {
    background: linear-gradient(160deg, #0c1219 0%, #101820 100%) !important;
}

.memory-card > p {
    padding: 8px 24px !important;
    margin: 4px 0 !important;
    color: #e8f4ff !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    letter-spacing: 0.3px !important;
    text-shadow: 0 0 4px rgba(220, 240, 255, 0.3) !important;
    display: block !important;
}

.memory-card > p b {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
    letter-spacing: 0.5px !important;
}

/* 核心记忆金色效果 */
.memory-card > p:first-of-type b {
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important;
}

.memory-card > p,
.memory-card > p * {
    color: #e8f4ff !important;
}

.memory-card > p b,
.memory-card > p b * {
    color: #ffffff !important;
}

.memory-card > p:first-of-type b {
    color: #ffd700 !important;
}

.memory-card > hr {
    margin: 12px 24px !important;
    border-color: #1a3045 !important;
}

.memory-card > p span {
    color: #e8f4ff !important;
}

/* ==================== 行动抉择 ==================== */
.status-bar-bottom > details:last-of-type[open] {
    background: rgba(6, 12, 20, 0.95) !important;
    border: 1px solid #1a3045 !important;
    padding: 8px 0 !important;
}

.status-bar-bottom > details:last-of-type[open] > summary {
    background: rgba(10, 18, 28, 0.95) !important;
    border-bottom: 1px solid #00b8d4 !important;
    color: #00e5ff !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5) !important;
}

.status-bar-bottom > details:last-of-type[open] .profile-content p {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 8px 0 !important;
    padding: 14px 18px !important;
    background: rgba(10, 18, 28, 0.8) !important;
    border: 1px solid #1a2a3d !important;
    border-radius: 2px !important;
    font-weight: 500 !important;
    color: #b0c8de !important;
    letter-spacing: 0.4px !important;
    transition: all 0.25s !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

.status-bar-bottom > details:last-of-type[open] .profile-content p::before {
    content: attr(data-option);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    background: rgba(0, 180, 220, 0.08) !important;
    border: 1px solid #1a3045 !important;
    border-radius: 2px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #00e5ff !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
    transition: all 0.25s !important;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5) !important;
    position: static !important;
    margin: 0 !important;
}

.status-bar-bottom > details:last-of-type[open] .profile-content p::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.08), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.status-bar-bottom > details:last-of-type[open] .profile-content p:hover::after {
    left: 200%;
}

.status-bar-bottom > details:last-of-type[open] .profile-content p:hover {
    background: rgba(15, 28, 45, 0.95) !important;
    border-color: #00b8d4 !important;
    box-shadow: 0 0 18px rgba(0, 180, 220, 0.2), inset 0 0 20px rgba(0, 200, 255, 0.03) !important;
    transform: translateX(4px) !important;
    color: #d0e4f5 !important;
}

.status-bar-bottom > details:last-of-type[open] .profile-content p:hover::before {
    background: rgba(0, 200, 255, 0.15) !important;
    color: #ffffff !important;
    text-shadow: 0 0 14px rgba(0, 255, 255, 0.8) !important;
    border-color: #00b8d4 !important;
}

.status-bar-bottom > details:last-of-type[open] .profile-content p:nth-of-type(1) {
    border-left: 3px solid #ff4d6a !important;
}
.status-bar-bottom > details:last-of-type[open] .profile-content p:nth-of-type(2) {
    border-left: 3px solid #00b8d4 !important;
}
.status-bar-bottom > details:last-of-type[open] .profile-content p:nth-of-type(3) {
    border-left: 3px solid #4ecdc4 !important;
}
.status-bar-bottom > details:last-of-type[open] .profile-content p:nth-of-type(4) {
    border-left: 3px solid #a78bfa !important;
}

.status-bar-bottom > details:last-of-type[open] .profile-content p:nth-of-type(1)::after {
    background: linear-gradient(90deg, transparent, rgba(255, 70, 90, 0.1), transparent);
}

/* ==================== 响应式 ==================== */
@media (max-width: 600px) {
    .status-bar-top {
        grid-template-columns: 1fr;
    }
    .status-item {
        border-right: none;
    }
    text {
        padding: 18px 16px;
    }
    .status-card summary {
        padding: 12px 45px 12px 16px;
        font-size: 0.82rem;
    }
    .profile-content {
        padding: 16px;
    }
    .memory-card > p {
        padding: 6px 16px !important;
    }
    .progress-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .progress-bar {
        width: 100%;
    }
}