/* =========================================
   Theme: 晨光与救赎 (Morning Light & Salvation)
   Vibe: 青春日记、治愈、重来的希望
========================================= */

/* 顶部状态栏：像清晨带着露水的操场 */
.tb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px;
    background: linear-gradient(135deg, #e0f2fe 0%, #fffbeb 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.15);
}

.ti {
    background: rgba(255, 255, 255, 0.85);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    color: #5c4a3d;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    border: 1px solid #fdfbf7;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* 正文区域：带有青春日记本的折痕感 */
.mt {
    padding: 18px 20px;
    background: #fdfcf9;
    border-left: 4px solid #ffd166; /* 温暖的阳光黄 */
    border-radius: 0 12px 12px 0;
    margin-bottom: 25px;
    color: #4a4036;
    font-size: 1.05em;
    line-height: 1.8;
    box-shadow: 2px 4px 12px rgba(255, 209, 102, 0.08);
    position: relative;
}

.mt::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 10px;
    font-size: 3em;
    color: rgba(255, 209, 102, 0.2);
    font-family: serif;
}

/* 折叠面板基础：像精心保管的同学录 */
.sb {
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid #f0eadd;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sb:hover {
    box-shadow: 0 6px 16px rgba(135, 206, 235, 0.12);
    border-color: #bae6fd;
    transform: translateY(-1px);
}

/* 折叠标题：充满希望的交互 */
.st {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: bold;
    color: #6b5b4e;
    background: linear-gradient(to right, #faf9f6, #f0f7fb);
    list-style: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.st::-webkit-details-marker {
    display: none;
}

.st::before {
    content: '✨';
    margin-right: 10px;
    font-size: 1.1em;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 2px rgba(255, 209, 102, 0.6));
}

.sb[open] .st::before {
    transform: rotate(90deg) scale(1.1);
}

.sb[open] .st {
    border-bottom: 1px dashed #e6dfd3;
    color: #38bdf8; /* 展开后变成希望的蓝色 */
    background: #fdfcf9;
}

/* 内部网格与信息行 */
.ug, .nc {
    padding: 16px 20px;
}

.ir {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #f0eadd;
    align-items: center;
    transition: background 0.2s;
}

.ir:hover {
    background: linear-gradient(90deg, transparent, rgba(240, 247, 251, 0.5), transparent);
}

.ir:last-child {
    border-bottom: none;
}

.il {
    font-size: 0.9em;
    color: #8c7b6e;
    font-weight: bold;
}

.iv {
    font-size: 0.9em;
    color: #5c4a3d;
    text-align: right;
    max-width: 75%;
    line-height: 1.5;
}

/* 章节小标题：青春的分割线 */
.rt {
    text-align: center;
    font-size: 0.85em;
    font-weight: bold;
    color: #7dd3fc;
    margin: 18px 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rt::before, .rt::after {
    content: '';
    height: 1px;
    width: 40px;
    background: linear-gradient(90deg, transparent, #7dd3fc, transparent);
}

/* 人际关系卡片 */
.rk {
    background: #faf9f6;
    border: 1px solid #f0eadd;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.rk:hover {
    transform: translateX(5px);
    border-left: 3px solid #38bdf8;
    background: #ffffff;
    box-shadow: 2px 4px 10px rgba(56, 189, 248, 0.08);
}

.rh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0eadd;
}

.rn {
    font-weight: bold;
    color: #4a4036;
    font-size: 1.1em;
}

.rb {
    font-size: 0.75em;
    padding: 3px 10px;
    border-radius: 12px;
    background: #fff3cd;
    color: #d97706;
    font-weight: bold;
}

.rl {
    font-size: 0.85em;
    color: #786d63;
    margin-bottom: 5px;
    line-height: 1.5;
}

.rl.fi {
    color: #0284c7; /* 印象用深一点的蓝色，代表男主的清醒认知 */
    font-style: italic;
}

/* NPC头部信息与标签 */
.nh {
    text-align: center;
    margin-bottom: 15px;
}

.nr {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.nn {
    font-size: 1.3em;
    font-weight: bold;
    color: #4a4036;
}

.ng, .na {
    font-size: 0.75em;
    color: #999;
    background: #f1f0eb;
    padding: 2px 8px;
    border-radius: 10px;
}

.ni {
    font-size: 0.85em;
    color: #38bdf8;
    font-weight: 500;
}

.nt {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.nx {
    font-size: 0.75em;
    padding: 4px 12px;
    border-radius: 15px;
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    transition: all 0.3s;
    cursor: default;
}

.nx:hover {
    background: #38bdf8;
    color: white;
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

/* 推荐行动选项：充满拯救力量的按钮 */
.al {
    list-style: none;
    padding: 12px 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ax {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9em;
    cursor: pointer;
    border: 1px solid #e6dfd3;
    background: #ffffff;
    color: #5c4a3d;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 500;
}

/* 按钮悬浮时的流光效果 */
.ax::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.ax:hover::before {
    left: 100%;
}

.ax:hover {
    border-color: #ffd166;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 209, 102, 0.25);
    color: #d97706;
    padding-left: 22px; /* 悬浮时文字微微右移，产生交互感 */
}

/* 记忆回廊表格美化 (针对Markdown生成的表格) */
details.sb table {
    width: calc(100% - 30px);
    margin: 15px auto;
    border-collapse: collapse;
    font-size: 0.8em;
    box-shadow: 0 0 0 1px #f0eadd;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

details.sb th {
    background: #faf9f6;
    color: #8c7b6e;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e6dfd3;
}

details.sb td {
    padding: 10px;
    border-bottom: 1px dashed #f0eadd;
    color: #5c4a3d;
    line-height: 1.4;
}

details.sb tr:last-child td {
    border-bottom: none;
}

details.sb tr:hover td {
    background: #fdfcf9;
}