/* ================================
   基础样式
   ================================ */

/* CSS 变量定义 */
:root {
    --paper: #f8f0e0;
    --text: #2e241f;
    --accent: #ab3b3a;
    --border-ink: #2e241f;
    --star: #ab3b3a;
    --border: rgba(46, 36, 31, 0.2);
    --border-wood: rgba(139, 125, 107, 0.2);

    --content-font-size: 1.1rem;
    /* 两行文字之间的间距：1.7 - 1 = 0.7em */
    --content-line-height: 1.7;

    /* 段落 <p> 间距（与 <br> - BR_SPACING_HEIGHT 一致） */
    --paragraph-spacing: 0.5em;
    /* 空行行高 */
    --empty-line-height: 0.5;
    /* 水平线间距 */
    --hr-spacing: 1.2em;

    /* 标题间距 */
    --heading-margin-top: 1.5rem;
    --heading-margin-bottom: 0.75rem;
    --heading-line-height: 1.3;
}

/* 基础样式 */
body {
    background-color: var(--paper);
    color: var(--text);
    margin: 0;
    display: flex;
    justify-content: center;
}

[v-cloak] {
    display: none !important;
}

/* 全局按钮样式 */
button {
    cursor: pointer;
}

/* 移动端触摸反馈 - 印章效果 */
@media (hover: none) and (pointer: coarse) {
    button.border-b-2:active {
        transform: scale(0.96);
        opacity: 0.7;
    }

    .post-title:active {
        transform: scale(0.98);
        opacity: 0.75;
    }
}
