/* === 全局容器：极简日系白 === */
.reply-container {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(223, 230, 233, 0.5); /* 柔和的阴影 */
    color: #2d3436;
    line-height: 1.7;
}

/* === 顶部信息栏 === */
.header-info {
    background: #fdfdfd;
    border-left: 4px solid #74b9ff; /* 布洛妮娅蓝 */
    padding: 10px 15px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9em;
    color: #636e72;
    background-image: linear-gradient(to right, #f4f9ff, #ffffff);
}

.header-row {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-row:last-child { margin-bottom: 0; }

/* === 正文区域 === */
.main-content {
    font-size: 1.05em;
    color: #2d3436;
    text-align: justify;
    margin-bottom: 30px;
    padding: 0 5px;
}

/* === 分隔线 === */
.divider {
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      #e2e6ea 0,
      #e2e6ea 10px,
      transparent 10px,
      transparent 20px
    );
    margin: 20px 0;
    opacity: 0.6;
}

/* === 底部区域容器 === */
.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* === 状态面板通用 === */
.status-panel {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.panel-header {
    font-size: 0.85em;
    font-weight: bold;
    color: #b2bec3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f5f6fa;
    padding-bottom: 8px;
}

/* 玩家面板 (上方) */
.player-panel {
    border-top: 3px solid #6c5ce7; /* 监护人紫 */
}

.status-row {
    display: flex;
    flex-wrap: wrap; /* 支持分行 */
    gap: 10px;
    margin-bottom: 8px;
}

.stat-tag {
    background: #f1f3f5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    color: #57606f;
    border: 1px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    flex: 1 1 auto; /* 自适应宽度 */
}

/* 目标面板 (布洛妮娅) */
.target-panel {
    border-top: 3px solid #ff9ff3; /* 少女粉 */
}

.status-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.stat-box {
    flex: 1;
    text-align: center;
}

.stat-box .label {
    display: block;
    font-size: 0.75em;
    color: #95a5a6;
    margin-bottom: 5px;
}

.progress {
    height: 6px;
    background: #f0f2f5;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}

.bar { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.bar.blue { background: #74b9ff; } /* 依赖度 */
.bar.pink { background: #ff7675; } /* 充能值 */
.bar.yellow { background: #fdcb6e; } /* 常识 */

.stat-box .val {
    font-size: 0.8em;
    font-weight: bold;
    color: #636e72;
}

.status-text {
    font-size: 0.9em;
    color: #636e72;
    background: #fdfdfd;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #dfe6e9;
    line-height: 1.5;
}

/* === 记忆区 === */
.memory-section details {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.85em;
    color: #99aab5;
    transition: all 0.3s;
}

.memory-section details[open] {
    background: #f8f9fa;
    border-color: #d1d8dd;
    color: #2c3e50;
}

.memory-section summary {
    font-weight: bold;
    cursor: pointer;
    color: #636e72;
    outline: none;
    list-style: none; /* 隐藏默认三角 */
}
.memory-section summary::-webkit-details-marker { display: none; }
.memory-section summary::after {
    content: " 📂";
    font-size: 0.9em;
}

/* === 选项区域 === */
.choice-section {
    margin-top: 10px;
    background: #ffffff;
    border: 2px solid #74b9ff;
    border-radius: 12px;
    padding: 15px;
    position: relative;
}

.choice-title {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #74b9ff;
    color: white;
    padding: 2px 12px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.choice-grid {
    font-family: monospace; /* 等宽字体对齐选项 */
    font-size: 0.9em;
    color: #2d3436;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .reply-container { padding: 15px; }
    .status-grid { gap: 5px; }
    .header-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}