/* ===== 魔法羊皮卷 · 粉色墨色版 · 主线故事专用美化 ===== */
/* 风格：古旧玫瑰书页 · 深粉墨底 · 花瓣装饰 · 浪漫叙事 */
/* 适用于主线故事、剧情摘要等折叠块 */

details {
    background: #fdf2f4;                /* 淡粉纸底 */
    border: 2px solid #8a4a5a;
    border-radius: 6px 18px 6px 18px;
    margin: 16px 0;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 12px rgba(80, 20, 40, 0.25),
        inset 0 0 30px rgba(138, 74, 90, 0.1);
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', 'Times New Roman', 'KaiTi', '楷体', serif;
}

/* 纸张纹理 */
details::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(138, 74, 90, 0.03) 3px,
        rgba(138, 74, 90, 0.03) 6px
    );
    pointer-events: none;
    z-index: 0;
}

/* 装饰花瓣点 */
details::after {
    content: "";
    position: absolute;
    bottom: 8px; right: 12px;
    width: 30px; height: 30px;
    background: radial-gradient(circle, rgba(138, 74, 90, 0.15) 1px, transparent 1px);
    background-size: 6px 6px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

details[open] {
    border-color: #6a3a4a;
    box-shadow:
        0 6px 18px rgba(80, 20, 40, 0.35),
        inset 0 0 40px rgba(138, 74, 90, 0.15);
}

summary {
    cursor: pointer;
    padding: 14px 22px;
    font-size: 0.92rem;
    color: #fdf2f4;
    user-select: none;
    list-style: none;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(160deg, #8a4a5a, #6a3a4a);
    border-radius: 6px 16px 6px 16px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 4px rgba(0,0,0,0.3);
    border-bottom: 1px solid #9a5a6a;
    text-transform: uppercase;
}

summary:hover {
    background: linear-gradient(160deg, #9a5a6a, #8a4a5a);
    text-shadow: 0 0 8px rgba(255, 200, 215, 0.7);
}

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

summary::before {
    content: "🌸";
    font-size: 1rem;
    filter: drop-shadow(0 0 3px rgba(255,200,215,0.5));
    animation: petalFloat 3s ease-in-out infinite;
}

@keyframes petalFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(3deg); }
    75% { transform: translateY(2px) rotate(-3deg); }
}

details[open] summary {
    border-radius: 6px 16px 0 0;
    border-bottom-color: #9a5a6a;
}

/* ---------- 故事内容区 ---------- */
details div, details .panel, details .story-content {
    color: #4a1a2a;
    padding: 20px 22px;
    line-height: 1.9;
    font-size: 0.88rem;
    background: rgba(253, 242, 244, 0.85);
    backdrop-filter: blur(2px);
    border-top: 1px dashed #9a5a6a;
    border-radius: 0 0 6px 16px;
    position: relative;
    z-index: 1;
    text-align: justify;
    text-indent: 2em;
}

details div p:first-child,
details .story-content p:first-child {
    text-indent: 0;
}

/* 首字下沉 */
.story-dropcap::first-letter {
    font-size: 2.5em;
    float: left;
    line-height: 0.8;
    margin-right: 6px;
    color: #8a4a5a;
    font-weight: bold;
}

/* 强调文字 */
.story-em {
    color: #7a3a4a;
    font-style: italic;
    border-bottom: 1px dotted #aa7a8a;
}

/* 分割线 */
.divider-story {
    height: 2px;
    background: linear-gradient(90deg, transparent, #8a4a5a, #c0a0aa, #8a4a5a, transparent);
    margin: 18px 0;
    position: relative;
}
.divider-story::after {
    content: "✿";
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    color: #8a4a5a;
    font-size: 0.8rem;
    background: #fdf2f4;
    padding: 0 6px;
}

/* 标记 */
.story-meta {
    font-size: 0.75rem;
    color: #9a6a7a;
    text-align: right;
    margin-top: 10px;
    font-style: italic;
}