/* themes/default/css/page-detail.css - V71.0 样式固化版 */

/* === 信纸容器 === */
.detail-paper { 
    background: #fff; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    /* 底部留出 100px，确保内容不被绝对定位的操作栏遮挡 */
    padding: 30px 20px 100px 20px; 
    margin-top: 15px; 
    position: relative; 
    
    background-image: linear-gradient(to right, var(--c-primary), var(--c-secondary)); 
    background-size: 100% 4px; background-repeat: no-repeat; background-position: top; 
    overflow: hidden; min-height: 65vh; 
    display: flex; flex-direction: column; align-items: center;
}

/* 底部青山纹理 - 翠绿色 */
.mountain-deco { 
    position: absolute; bottom: 0; left: 0; width: 100%; height: 150px; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 500 150' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,150 L0,40 Q130,10 260,80 T500,60 L500,150 Z' fill='%232B6E75' fill-opacity='0.08'/%3E%3Cpath d='M0,150 L0,90 Q150,40 300,110 T500,80 L500,150 Z' fill='%23589A9E' fill-opacity='0.15'/%3E%3C/svg%3E"); 
    background-repeat: no-repeat; background-position: bottom; background-size: 100% 100%; 
    pointer-events: none; z-index: 0; 
}

/* 头部 */
.detail-header-box { text-align: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(43, 110, 117, 0.15); position: relative; z-index: 2; width: 100%; }
.detail-title { font-family: "LXGW WenKai Screen", serif; font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: bold; color: var(--c-primary); line-height: 1.3; margin-bottom: 10px; }
.detail-meta { color: #7A8C8F; font-size: 0.9rem; display: flex; justify-content: center; gap: 10px; }
.author-link { color: var(--c-secondary); font-weight: bold; }

/* 正文 */
.verse-container { width: 100%; position: relative; z-index: 2; padding-bottom: 10px; }
.align-left { text-align: left; } .align-center { text-align: center; } .align-right { text-align: right; }
.align-justify { text-align: justify; text-align-last: justify; -moz-text-align-last: justify; }
.align-justify::after { content: ""; display: inline-block; width: 100%; }
.verse-p { 
    font-family: "LXGW WenKai Screen", serif; margin: 0 0 12px 0; padding: 0 5px; text-indent: 0 !important; 
    font-size: clamp(1.1rem, 2.2vw, 1.25rem); line-height: 1.8; letter-spacing: 0.02em; 
    color: #1F2D30 !important; /* 墨色 */
    text-align: inherit; text-wrap: balance; overflow-wrap: break-word; word-break: normal; display: block;
}

/* 操作栏 - 绝对定位沉底 */
.action-bar-inline {
    position: absolute; bottom: 30px; left: 0; width: 100%;
    display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 15px; 
    z-index: 10; background: none; 
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; 
}
.action-bar-inline::-webkit-scrollbar { display: none; }

.text-btn { 
    background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
    padding: 8px 16px; border-radius: 30px; border: 1px solid rgba(43, 110, 117, 0.15); 
    color: #7A8C8F; font-size: 0.9rem; font-weight: 500;
    display: flex; flex-direction: row; align-items: center; gap: 6px; 
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.text-btn:hover, .text-btn.active { color: #fff; background: var(--c-primary); border-color: var(--c-primary); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(43,110,117,0.25); }
.text-btn i { font-size: 1.1rem; color: var(--c-primary); }
.text-btn:hover i, .text-btn.active i { color: #fff; }
#favBtn.active { color: #CF4636; background: #FFF5F5; border-color: #FFD7D7; }
#favBtn.active i { color: #CF4636; }

/* 扩展卡片 */
.section-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 20px; border-left: 4px solid var(--c-secondary); position: relative; z-index: 1; }
.section-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; color: var(--c-primary); }
.note-content, .appreciation-content { font-size: 1rem; color: #444 !important; line-height: 1.8; text-align: justify; }
.appreciation-box { border-left-color: var(--c-gold); background: #FFFEFA; }
.appreciation-title { color: #8C7B40; }
.bio-box { border-left-color: var(--c-primary); background: #F4F9F9; }
.bio-wrapper { position: relative; }
.bio-content { font-size: 0.95rem; color: #444 !important; line-height: 1.7; text-align: justify; overflow: hidden; transition: max-height 0.3s ease; }
.bio-content.collapsed { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; max-height: 7.2em; }
.bio-toggle { text-align: center; font-size: 0.85rem; color: var(--c-primary); cursor: pointer; margin-top: 8px; font-weight: bold; opacity: 0.8; }