.urban-panel {
    background-color: #ffd2ff; /* 比body略浅的深紫黑，形成层次感 */
    border: 1px solid #4a0f4a; /* 深紫色边框，增加细节 */
    box-shadow: 0 0 15px rgba(200, 0, 200, 0.3), 0 0 30px rgba(100, 0, 100, 0.2); /* 邪魅的紫红色光晕 */
    border-radius: 8px;
    padding: 30px;
    max-width: 800px; /* 限制内容宽度 */
    width: 100%;
    margin-bottom: 50px; /* 为页脚留出空间 */
    position: relative;
    overflow: hidden; /* 隐藏超出边界的阴影或其他效果 */
}

/* 装饰性纹理或滤镜 */
.urban-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(120, 0, 120, 0.05) 0%, transparent 70%), 
                repeating-linear-gradient(45deg, rgba(70, 0, 70, 0.03) 0%, rgba(70, 0, 70, 0.03) 1px, transparent 1px, transparent 20px);
    pointer-events: none; /* 确保不影响内容交互 */
    opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
    color: #ff99ff; /* 鲜艳的紫粉色，吸引注意力 */
    text-shadow: 0 0 5px rgba(255, 153, 255, 0.5); /* 霓虹效果 */
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

p {
    margin-bottom: 1em;
}

hr {
    border: none;
    border-top: 1px dashed #6a0d6a; /* 虚线分隔符，增加科技感/破碎感 */
    margin: 30px 0;
    box-shadow: 0 0 5px rgba(200, 0, 200, 0.2);
}

.aus {
    color: #a0c0ff; /* 男方对白：冷光蓝色，体现克制下的侵略 */
    font-weight: bold;
}

.aes {
    color: #ffb0e0; /* 女方对白：娇嫩粉色，体现羞耻与堕落 */
    font-weight: bold;
}

/* 状态栏特别样式 */
.urban-panel > div:first-of-type { /* 假设时间/环境/状态栏是第一个div */
    background-color: #1a0a1a;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95em;
    border: 1px solid #4a0f4a;
    box-shadow: inset 0 0 8px rgba(200, 0, 200, 0.2);
    text-align: center;
}
.urban-panel > div:first-of-type span {
    display: inline-block;
    margin: 0 10px;
}
.urban-panel > div:first-of-type .status-value { /* 如果状态值有特定class */
    color: #ff99ff;
    font-weight: bold;
}

/* Details/Summary (折叠面板) 样式 */
details {
    background-color: #380d38; /* 折叠面板背景，比主面板更深 */
    border: 1px solid #5a0f5a;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
}

details[open] {
    background-color: #4a0f4a; /* 打开时颜色略变，更突出 */
    border-color: #6a0d6a;
    box-shadow: 0 0 10px rgba(255, 153, 255, 0.2);
}

summary {
    cursor: pointer;
    padding: 15px 20px;
    font-weight: bold;
    color: #ff99ff; /* 摘要文字颜色 */
    text-shadow: 0 0 3px rgba(255, 153, 255, 0.5);
    list-style: none; /* 移除默认的箭头 */
    position: relative;
    outline: none; /* 移除点击时的焦点框 */
}

summary::-webkit-details-marker,
summary::marker {
    display: none; /* 彻底隐藏默认标记 */
}

/* 自定义summary的展开/折叠图标 */
summary::before {
    content: '▶'; /* 默认图标 */
    position: absolute;
    left: 10px;
    color: #ff99ff;
    transition: transform 0.2s ease-in-out;
}

details[open] summary::before {
    content: '▼'; /* 展开时的图标 */
    transform: rotate(0deg); /* 确保旋转正确 */
}

details > div {
    padding: 10px 20px 20px 30px; /* 调整内边距，为自定义图标留空间 */
    border-top: 1px dashed #6a0d6a;
}

/* 强调文字，如核心数值 */
details div strong {
    color: #ffb0e0; /* 例如：私处、姿势等强调词 */
}
details div .value { /* 如果数值有特定的类 */
    color: #a0c0ff;
    font-weight: bold;
}

/* 特定部分，如可用指令的列表 */
details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

details ul li {
    background-color: #2c0b2c;
    border: 1px solid #4a0f4a;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

details ul li:hover {
    background-color: #3a0d3a;
    border-color: #6a0d6a;
    cursor: pointer;
}

details ul li::before {
    content: '•'; /* 使用一个圆点或菱形作为列表标记 */
    color: #ff99ff;
    margin-right: 10px;
    font-size: 1.2em;
    line-height: 1;
}

/* 记忆表格样式 */
details table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.85em;
}

details th, details td {
    border: 1px solid #4a0f4a;
    padding: 8px 12px;
    text-align: left;
    white-space: pre-wrap; /* 允许内容自动换行 */
}

details th {
    background-color: #380d38;
    color: #ff99ff;
    font-weight: normal;
}

details td {
    background-color: #2c0b2c;
}

details tr:hover td {
    background-color: #3a0d3a;
}

/* 记忆区的特殊标题 */
details .memory-section-title { /* 例如：⚜️ [STM]短期记忆区 ⚜️ */
    color: #a0c0ff;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    display: block;
}

/* 页脚 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #1a0a1a; /* 与body背景相同或更深 */
    color: #6a0d6a; /* 柔和的深紫色 */
    font-size: 0.8em;
    border-top: 1px solid #4a0f4a;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

footer a {
    color: #ff99ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #a0c0ff;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .urban-panel {
        padding: 20px;
        border-radius: 0; /* 小屏幕上可能不需要圆角，或设置为更小 */
        border-left: none;
        border-right: none;
        max-width: 100%;
    }

    summary {
        padding: 12px 15px;
    }

    details > div {
        padding: 8px 15px 15px 20px;
    }
}