@font-face {
    font-family: 'Ma Shan Zheng';
    src: url('fonts/MaShanZheng-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- 让卡片成为定位容器，防坍缩 --- */
.poetry-app[data-v-7e1fce0e] {
    position: relative !important;
    min-height: 380px !important;
    overflow: hidden !important;
    /* Background handled by JS-injected dual-layer divs */
}

/* --- 彻底隐藏 Vue 横排内容和残留装饰 --- */
.poetry-app[data-v-7e1fce0e] .poetry-content {
    display: none !important;
}
.poetry-app[data-v-7e1fce0e] .poetry-content::before,
.poetry-app[data-v-7e1fce0e] .poetry-content::after {
    display: none !important;
}

/* --- 彻底隐藏 Vue 按钮 --- */
.poetry-app[data-v-7e1fce0e] .el-button,
.poetry-app[data-v-7e1fce0e] .next-poetry,
.poetry-app[data-v-7e1fce0e] button:not(.poetry-btn) {
    display: none !important;
}

/* --- Scroll Text (竖排，贴右边缘) --- */
.poetry-scroll-text {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    max-width: 100%;

    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: normal;

    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'FangSong', 'fangsong', serif !important;
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 0.28em;
    line-height: 1.85;
    color: #2c2c2c;
    text-shadow: 1px 1px 4px rgba(255,255,255,0.5);

    z-index: 30;
    pointer-events: none;
}

/* --- Source (author — bottom-right above controls area) --- */
.poetry-source {
    position: absolute;
    bottom: 56px;
    right: 10px;

    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'FangSong', 'fangsong', serif;
    font-size: 1.1em;
    font-weight: 400;
    color: #666;
    text-align: right;
    z-index: 30;
    pointer-events: none;
    white-space: nowrap;
}

/* --- Controls — bottom center, media-player style --- */
.poetry-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.poetry-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.50);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.poetry-btn:hover {
    background: rgba(0,0,0,0.75);
}

/* --- 卡片模式隐藏翻页层 --- */
.poetry-app[data-v-54c864b5] .poetry-page-overlay,
.poetry-app[data-v-54c864b5] .poetry-flip-back,
.poetry-app[data-v-54c864b5] .poetry-flip-shadow {
    display: none !important;
}

/* ===========================================================
   clip-path 翻页层
   =========================================================== */

/* --- 翻页覆盖层(旧文字) --- */
.poetry-page-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;

    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: normal;

    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'FangSong', 'fangsong', serif;
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 0.28em;
    line-height: 1.85;
    color: #2c2c2c;
    text-shadow: 1px 1px 4px rgba(255,255,255,0.5);

    z-index: 30;
    pointer-events: none;
    overflow: hidden;
}

/* --- 纸背(卷起后露出的背面) --- */
.poetry-flip-back {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    background: #f0e6d6;
    border-radius: inherit;
    pointer-events: none;
}

/* --- 折痕阴影(沿对角线) --- */
.poetry-flip-shadow {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 35;
    pointer-events: none;
    opacity: 0;
    border-radius: inherit;
}

/* --- 翻页角部高光 --- */
.poetry-flip-hilight {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(255,255,255,0.60) 0%,
        rgba(255,255,255,0.15) 40%,
        transparent 70%
    );
    z-index: 36;
    pointer-events: none;
}
