/* 古朴典雅 · 垂直线装信笺卡片 */
#custom-poem-card {
    /* 宣纸淡底色 */
    background-color: var(--card-bg, #fdfaf3);
    background-image: 
        linear-gradient(rgba(253, 250, 243, 0.96), rgba(253, 250, 243, 0.96)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23e6dfd3' fill-opacity='0.5' d='M8 0a1 1 0 0 1 1 1v6.586l.293-.293a1 1 0 1 1 1.414 1.414L8.414 11l2.293 2.293a1 1 0 0 1-1.414 1.414L7 12.414V15a1 1 0 1 1-2 0V8.414L2.707 10.707a1 1 0 1 1-1.414-1.414L3.586 7 1.293 4.707a1 1 0 1 1 1.414-1.414L5 5.586V1a1 1 0 0 1 1-1h2z'/%3E%3C/svg%3E");
    border: 1px solid #dfd3bc;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: var(--card-hover-shadow, 0 4px 12px rgba(0, 0, 0, 0.04));
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

/* 典雅的内部双衬线边框（笺纸复古设计，规避挤压变形） */
.poem-inner-border {
    border: 1px solid #c9a983;
    outline: 1px solid #c9a983;
    outline-offset: -4px;
    padding: 24px 20px;
    box-sizing: border-box;
    width: 100%;
}

/* 顶部独立一行的标题栏 */
.poem-header-title {
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-size: 0.9em;
    color: #7a6e57;
    letter-spacing: 4px;
    margin-bottom: 20px;
    opacity: 0.8;
    text-align: center;
}

/* 诗词核心内容排版区 */
.poem-main-body {
    padding: 5px 0 20px 0;
    text-align: center;
}

.poem-content {
    font-family: "Noto Serif SC", "Source Han Serif SC", "STKaiti", "Kaiti", serif;
    font-size: 1.35em;
    line-height: 1.8;
    color: #2c2519; /* 文人浓墨色 */
    margin: 0 auto 16px auto !important;
    letter-spacing: 1.5px;
    font-weight: 500;
    word-break: break-word;
}

.poem-info {
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-size: 0.88em;
    color: #6e614a;
    margin: 0 !important;
    text-align: center;
    opacity: 0.85;
}

/* 底部操作区分割线 */
.poem-footer-action {
    margin-top: 15px;
    text-align: center;
    border-top: 1px dashed #eadecc;
    padding-top: 15px;
}

/* 摆在最下方的、极其精致克制的古典按钮 */
.poem-btn-bottom {
    background: none;
    border: 1px solid #bfa483;
    color: #8b1e1f; /* 古典燕脂红 */
    padding: 4px 18px;
    font-size: 0.82em;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    outline: none;
}

.poem-btn-bottom:hover {
    background-color: #8b1e1f;
    color: #fdfaf3 !important;
    border-color: #8b1e1f;
}

/* --- 🌟 暗黑模式适配（依然完美融入金石拓本风骨） --- */
[data-theme='dark'] #custom-poem-card {
    background-color: #181714;
    background-image: none;
    border-color: #3a352c;
}

[data-theme='dark'] .poem-inner-border {
    border-color: #4a4338;
    outline-color: #4a4338;
}

[data-theme='dark'] .poem-header-title { color: #8a7e68; }
[data-theme='dark'] .poem-content { color: #dfd8cd; }
[data-theme='dark'] .poem-info { color: #8a7e68; }
[data-theme='dark'] .poem-footer-action { border-top-color: #3a352c; }

[data-theme='dark'] .poem-btn-bottom {
    border-color: #5a5142;
    color: #c94c4c;
}
[data-theme='dark'] .poem-btn-bottom:hover {
    background-color: #c94c4c;
    color: #181714 !important;
    border-color: #c94c4c;
}