@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Roboto:wght@400;700&display=swap');

:root {
    --bg-color: #111111;
    --primary-color: #e056fd;     /* 淫靡紫 */
    --secondary-color: #00ffff;   /* 赛博青 */
    --accent-pink: #ff2a6d;       /* 肉欲粉 */
    --text-color: #e0e0e0;
    --border-glow: 0 0 8px var(--primary-color), 0 0 16px var(--primary-color);
    --border-glow-secondary: 0 0 8px var(--secondary-color), 0 0 16px var(--secondary-color);
    --grade-s: #ffd700;
    --grade-a: #ff4500;
    --grade-b: #9932cc;
    --grade-c: #1e90ff;
    --grade-d: #32cd32;
    --grade-f: #8b0000;
}

/* 全局赛博肉欲氛围 */
body {
    background: radial-gradient(circle at center, #1a0022 0%, #000000 70%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
}

.container {
    background: rgba(15, 5, 25, 0.92);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px var(--primary-color),
                inset 0 0 40px rgba(224, 86, 253, 0.15);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 42, 109, 0.03) 10px,
        rgba(255, 42, 109, 0.03) 20px
    );
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

h1 {
    font-size: 2.8em;
    background: linear-gradient(90deg, #e056fd, #00ffff, #ff2a6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--primary-color);
    letter-spacing: 4px;
}

/* Tab强化 */
.tab-button {
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tab-button.active {
    color: #fff;
    text-shadow: 0 0 15px var(--accent-pink);
    transform: scale(1.05);
}

.tab-button.active::after {
    background: linear-gradient(to right, var(--primary-color), var(--accent-pink));
    height: 4px;
}

/* 世界观与正文区域 */
.tab-content {
    background: rgba(10, 0, 20, 0.6);
    border: 1px solid rgba(224, 86, 253, 0.3);
    padding: 20px;
    border-radius: 8px;
}

/* ==================== 状态栏专属美化（核心强化） ==================== */

details {
    background: rgba(20, 5, 35, 0.85);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

details[open] {
    box-shadow: 0 0 25px var(--primary-color), 
                0 0 40px rgba(224, 86, 253, 0.4);
    border-color: var(--primary-color);
}

summary {
    background: linear-gradient(90deg, #1a0033, #330022);
    padding: 14px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25em;
    cursor: pointer;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-pink);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '◉';
    color: var(--secondary-color);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 当前情况栏 */
summary:contains("当前情况") {
    background: linear-gradient(90deg, #220011, #001122);
}

/* 你的鸡巴档案 - 专属高光 */
details summary:contains("你的鸡巴档案") {
    background: linear-gradient(90deg, #330011, #220033);
    border-bottom: 3px solid var(--grade-s);
}

details[open] summary:contains("你的鸡巴档案") {
    box-shadow: inset 0 0 25px rgba(255, 215, 0, 0.4);
}

/* NPC肉体档案 - 肉欲粉强化 */
details summary:contains("肉体档案") {
    background: linear-gradient(90deg, #440022, #220011);
    border-bottom: 3px solid var(--accent-pink);
}

/* 记忆回廊 */
details summary:contains("星记忆回廊") {
    background: linear-gradient(90deg, #001122, #002233);
}

/* 状态栏内部内容 */
details > div, details > p {
    padding: 18px;
    background: rgba(10, 0, 15, 0.85);
    line-height: 1.75;
    font-size: 15.5px;
    color: #ddd;
}

/* 等级文字特效 */
.rating-s { 
    color: var(--grade-s); 
    text-shadow: 0 0 15px #ffd700, 0 0 25px #ffaa00;
    animation: myth-pulse 1.5s infinite;
}

.rating-a { color: var(--grade-a); text-shadow: 0 0 15px #ff4500; }
.rating-b { color: #00ffff; text-shadow: 0 0 12px #00ffff; }
.rating-c { color: #1e90ff; }
.rating-d { color: #32cd32; }
.rating-f { color: #8b0000; text-decoration: line-through; text-shadow: 0 0 8px #8b0000; }

@keyframes myth-pulse {
    0%, 100% { text-shadow: 0 0 15px #ffd700, 0 0 25px #ffaa00; }
    50% { text-shadow: 0 0 25px #ffd700, 0 0 40px #ff5500; }
}

/* 进度条风格发情度/储备量 */
.progress-bar {
    height: 8px;
    background: linear-gradient(to right, var(--accent-pink), var(--secondary-color));
    border-radius: 4px;
    margin: 8px 0;
    box-shadow: 0 0 12px var(--accent-pink);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    width: 6px;
    height: 12px;
    background: white;
    box-shadow: 0 0 15px white;
    animation: liquid-flow 3s linear infinite;
}

@keyframes liquid-flow {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(400px); }
}

/* 行动建议美化 */
.action-suggestions {
    margin-top: 25px;
    display: grid;
    gap: 12px;
}

.action-suggestions div {
    background: linear-gradient(135deg, #1a0033, #330022);
    border: 1px solid var(--accent-pink);
    padding: 16px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05em;
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.3);
}

.action-suggestions div:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #ffd700;
    box-shadow: 0 0 25px var(--primary-color);
    color: white;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .container { margin: 10px; padding: 15px; }
    details { margin: 12px 0; }
    summary { padding: 12px 16px; font-size: 1.1em; }
}