/* =========================================================
   研习笔记
   首页列表 / 笔记列表 / 详情 / 撰写
   ========================================================= */

/* ---------- 首页 ---------- */
.section-row {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 20px 12px;
}
.section-row .section-title { margin: 0; }
.section-more {
    border: none; background: none; font-family: inherit; cursor: pointer;
    font-size: 12px; color: var(--text-light); padding: 2px 0;
}
.notes-card {
    margin: 0 20px 24px; background: #FFFFFF;
    border: 1px solid var(--border-color); border-radius: 16px;
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.notes-card-new {
    display: block; width: 100%; padding: 13px;
    border: none; border-top: 1px solid #F5F2EC;
    background: #FFFDF8; color: var(--accent-gold);
    font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}

.note-row {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid #F5F2EC;
    cursor: pointer; background: #FFFFFF;
}
.note-row:last-child { border-bottom: none; }
.note-row:active { background: #FBF9F5; }
.note-row-mark { width: 3px; height: 36px; border-radius: 2px; flex-shrink: 0; }
.note-row-main { flex: 1; min-width: 0; }
.note-row-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.note-row-title {
    font-size: 14.5px; font-weight: 600; color: var(--text-main);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.note-row-type {
    flex-shrink: 0; font-size: 9.5px; line-height: 1; padding: 3px 6px;
    border-radius: 4px; color: #FFFFFF;
}
.note-row-excerpt {
    margin-top: 5px; font-size: 11.5px; color: var(--text-light);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.note-row-date { flex-shrink: 0; font-size: 10.5px; color: var(--text-light); }

/* 空状态 */
.notes-empty { padding: 30px 20px 26px; text-align: center; }
.notes-empty-mark {
    width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 12px;
    background: rgba(185, 154, 107, 0.12); color: var(--accent-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-family: 'STKaiti', 'KaiTi', serif;
}
.notes-empty h4 { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.notes-empty p { font-size: 11.5px; color: var(--text-light); line-height: 1.7; }
.notes-empty-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.notes-empty button {
    border: none; border-radius: 16px; cursor: pointer;
    background: var(--accent-dark); color: #FFFFFF;
    font-family: inherit; font-size: 12px; font-weight: 600; padding: 8px 16px;
}
.notes-empty button.ghost {
    background: #FFFFFF; color: var(--text-sub); border: 1px solid var(--border-color);
}

/* ---------- 列表页 ---------- */
.notes-list-header {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 24px 20px 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-color) 100%);
}
.notes-list-header .back-btn {
    font-size: 22px; color: var(--accent-gold); background: none; border: none;
    font-family: inherit; line-height: 1; padding: 0 4px 0 0; cursor: pointer;
}
.notes-list-title { flex: 1; min-width: 0; }
.notes-list-title h1 { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.notes-list-title p { font-size: 11.5px; color: var(--text-light); margin-top: 6px; }
.notes-list-new {
    flex-shrink: 0; margin-top: 2px; border: none; border-radius: 16px; cursor: pointer;
    background: var(--accent-dark); color: #FFFFFF;
    font-family: inherit; font-size: 12px; font-weight: 600; padding: 7px 14px;
}
.notes-full-list {
    margin: 0 20px 24px; background: #FFFFFF; border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
}

/* ---------- 详情 ---------- */
.note-detail-header {
    display: flex; align-items: center; gap: 10px; padding: 22px 20px 12px;
}
.note-detail-header .back-btn {
    font-size: 22px; color: var(--accent-gold); background: none; border: none;
    font-family: inherit; line-height: 1; padding: 0 4px 0 0; cursor: pointer;
}
.note-detail-kicker {
    flex: 1; font-size: 12px; color: var(--text-light); letter-spacing: 2px;
}
.note-detail-edit {
    border: 1px solid var(--border-color); background: #FFFFFF;
    color: var(--text-sub); font-family: inherit; font-size: 12px;
    padding: 6px 14px; border-radius: 14px; cursor: pointer;
}
.note-detail-meta {
    display: flex; align-items: center; gap: 10px; padding: 0 20px 10px;
}
.detail-type {
    font-size: 10px; color: #FFFFFF; padding: 3px 8px; border-radius: 6px;
}
.note-detail-date { font-size: 11px; color: var(--text-light); }
.note-detail-title {
    padding: 0 20px; font-size: 22px; line-height: 1.5;
    font-weight: 700; letter-spacing: 1px; margin-bottom: 14px;
}
.note-detail-content {
    padding: 0 20px; font-size: 14.5px; line-height: 2; color: var(--text-main);
    white-space: pre-wrap; word-break: break-word; margin-bottom: 22px;
}
.note-detail-linked {
    display: none; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 20px 22px; padding: 14px 16px; cursor: pointer;
    background: #FBF9F5; border: 1px solid #F0EAE1; border-radius: 12px;
}
.linked-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.linked-label { font-size: 10px; color: var(--text-light); letter-spacing: 1px; }
.linked-text { font-size: 13px; color: var(--text-main); font-weight: 600; }
.linked-go { flex-shrink: 0; font-size: 12px; color: var(--accent-gold); font-weight: 600; }
.note-detail-delete {
    display: block; width: calc(100% - 40px); margin: 0 20px 16px;
    padding: 13px; border: 1px solid #F0DED8; border-radius: 12px;
    background: #FFFFFF; color: var(--accent-red);
    font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ---------- 撰写 ---------- */
.note-compose { display: none; }
#app.writing .bottom-nav { display: none; }
.note-compose.active { display: flex; flex-direction: column; height: 100%; padding-bottom: 0; overflow: hidden; }
.compose-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 20px 12px; border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.compose-cancel {
    border: none; background: none; font-family: inherit; font-size: 13px;
    color: var(--text-light); cursor: pointer; padding: 4px 0;
}
.compose-title { font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.compose-save {
    border: none; border-radius: 16px; cursor: pointer;
    background: var(--accent-dark); color: #FFFFFF;
    font-family: inherit; font-size: 12px; font-weight: 600; padding: 7px 16px;
}
.compose-body {
    flex: 1; overflow-y: auto; padding: 16px 20px 8px;
    display: flex; flex-direction: column; scrollbar-width: none;
}
.compose-body::-webkit-scrollbar { display: none; }
.compose-types { display: flex; gap: 8px; margin-bottom: 18px; }
.compose-types button {
    flex: 1; border: 1px solid var(--border-color); background: #FFFFFF;
    border-radius: 12px; padding: 9px 0; cursor: pointer;
    font-family: inherit; font-size: 12.5px; color: var(--text-sub);
    transition: all 0.2s;
}
.compose-types button.active {
    border-color: var(--accent-gold); background: #FFFDF8;
    color: var(--text-main); font-weight: 700;
}
.compose-title-input {
    width: 100%; border: none; outline: none; background: transparent;
    font-family: inherit; font-size: 21px; font-weight: 700; letter-spacing: 1px;
    color: var(--text-main); padding: 4px 0 12px;
}
.compose-title-input::placeholder { color: #C9C4BA; font-weight: 600; }
.compose-textarea {
    width: 100%; flex: 1; min-height: 300px; border: none; outline: none;
    background: transparent; resize: none; font-family: inherit;
    font-size: 14.5px; line-height: 2; color: var(--text-main); padding: 0 0 12px;
}
.compose-textarea::placeholder { color: #C9C4BA; }
.compose-link-hint {
    display: none; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: 10px; background: #FBF9F5;
    font-size: 11.5px; color: var(--text-sub); flex-shrink: 0;
}
.compose-link-hint svg { width: 14px; height: 14px; color: var(--accent-gold); flex-shrink: 0; }
.compose-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px 12px; border-top: 1px solid var(--border-color);
    flex-shrink: 0; background: #FFFFFF;
}
.compose-tools { display: flex; gap: 8px; }
.compose-tools button {
    border: 1px solid var(--border-color); background: #FFFFFF; border-radius: 10px;
    padding: 6px 14px; font-family: inherit; font-size: 12px;
    color: var(--text-sub); cursor: pointer;
}
.compose-count { font-size: 11px; color: var(--text-light); }
.compose-count b { color: var(--accent-gold); }

/* ---------- 推演笔记：关联盘面 ---------- */
.compose-board {
    display: none; margin-bottom: 16px; padding: 14px;
    background: #FBF9F5; border: 1px solid var(--border-color); border-radius: 14px;
}
.compose-board-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px; margin-bottom: 10px;
}
.board-title { font-size: 12.5px; font-weight: 700; color: var(--text-main); }
.board-title i {
    font-style: normal; font-size: 9.5px; color: var(--accent-red);
    background: rgba(177, 90, 74, 0.08); padding: 2px 5px; border-radius: 4px; margin-left: 4px;
}
.board-tip { font-size: 10.5px; color: var(--text-light); }
.board-list { display: flex; flex-direction: column; gap: 8px; max-height: 204px; overflow-y: auto; }
.board-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: #FFFFFF;
    border: 1px solid var(--border-color); border-radius: 10px; cursor: pointer;
}
.board-item.selected { border-color: var(--accent-gold); background: #FFFDF8; }
.board-mode {
    flex-shrink: 0; font-size: 9.5px; line-height: 1; color: #FFFFFF;
    background: var(--accent-gold); padding: 4px 6px; border-radius: 4px;
}
.board-main { flex: 1; min-width: 0; }
.board-main b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-main); }
.board-main span { display: block; font-size: 10.5px; color: var(--text-light); margin-top: 3px; }
.board-check {
    flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
    border: 1px solid var(--border-color); color: transparent;
    display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.board-item.selected .board-check { background: var(--accent-gold); border-color: var(--accent-gold); color: #FFFFFF; }

.compose-title-input:disabled, .compose-textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.compose-save:disabled { background: #C9C4BA; cursor: not-allowed; }

/* ---------- 盘面内容 ---------- */
.board-content {
    display: none; margin-top: 8px; padding: 0;
    background: transparent; border: none; border-radius: 0;
}
.bc-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 600; color: var(--text-main); margin-bottom: 10px;
}
.bc-head i { font-style: normal; color: var(--accent-gold); font-size: 11px; }
.bc-lines { display: flex; flex-direction: column; gap: 6px; }
.bc-line { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-sub); }
.bc-pos { width: 34px; color: var(--text-light); flex-shrink: 0; }
.bc-sym { font-family: 'Menlo', monospace; letter-spacing: 1px; color: var(--text-main); flex-shrink: 0; }
.bc-liuqin { width: 42px; flex-shrink: 0; }
.bc-zhi { width: 40px; flex-shrink: 0; }
.bc-mark {
    font-size: 9px; line-height: 1; color: var(--accent-gold);
    border: 1px solid var(--accent-gold); border-radius: 4px; padding: 1px 3px;
}
.bc-note { font-size: 10.5px; color: var(--text-light); line-height: 1.7; margin-top: 10px; }
.bc-pillars { display: flex; justify-content: space-around; margin: 2px 0 4px; }
.bc-pillar { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bc-gan, .bc-zhi { font-size: 16px; font-weight: 700; font-family: 'STKaiti', 'KaiTi', serif; }
.bc-label { font-size: 9.5px; color: var(--text-light); }
.bc-extra { display: flex; gap: 16px; margin-top: 10px; font-size: 11px; color: var(--text-sub); }

/* 新建盘面入口与表单 */
.board-add {
    border: none; background: none; color: var(--accent-gold);
    font-family: inherit; font-size: 11.5px; font-weight: 600;
    cursor: pointer; padding: 0;
}
.board-tip { display: block; margin-bottom: 10px; }
.bc-gender { display: flex; gap: 8px; margin-bottom: 14px; }
.bc-gender button {
    flex: 1; padding: 10px 0; cursor: pointer;
    border: 1px solid var(--border-color); background: #FFFFFF; border-radius: 10px;
    font-family: inherit; font-size: 13px; color: var(--text-sub);
}
.bc-gender button.active { border-color: var(--accent-gold); background: #FFFDF8; color: var(--text-main); font-weight: 700; }
.bc-tip { font-size: 10.5px; color: var(--text-light); line-height: 1.7; margin: -4px 0 12px; }

/* 新建盘面表单补充 */
.board-create-sheet textarea.modal-input {
    height: 76px; resize: none; line-height: 1.6; padding-top: 10px;
}
.board-create-sheet select.modal-input { appearance: none; -webkit-appearance: none; }
.bc-method-box { margin-bottom: 2px; }
.bc-subject {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin-bottom: 8px; font-size: 11.5px; color: var(--text-sub);
}
.bc-subject span { color: var(--text-light); }
.bc-subject b { font-weight: 600; color: var(--text-main); }
.bc-subject i {
    font-style: normal; font-size: 9.5px; color: var(--accent-gold);
    border: 1px solid rgba(185, 154, 107, 0.4); padding: 1px 5px; border-radius: 4px;
}
.bc-move {
    font-size: 9px; color: var(--accent-red);
    border: 1px solid rgba(177, 90, 74, 0.35); border-radius: 4px; padding: 0 3px;
}

.bc-liushen { width: 30px; flex-shrink: 0; color: var(--text-light); font-size: 10.5px; }
.bc-meta {
    font-size: 10.5px; color: var(--text-light); margin: 2px 0 8px;
    padding: 6px 8px; background: #FBF9F5; border-radius: 8px;
}
.bc-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 2px 14px; font-size: 13px; color: var(--text-main);
}
.bc-toggle-row .switch { transform: scale(0.9); }

/* ---------- 盘面图表 ---------- */
.board-top {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 20px 0;
}
.board-top .back-btn {
    font-size: 22px; color: var(--accent-gold); background: none; border: none;
    font-family: inherit; line-height: 1; padding: 0 4px 0 0; cursor: pointer;
}
.board-top span { font-size: 14px; font-weight: 700; letter-spacing: 1px; }

.board-chart { margin-top: 8px; }
.board-chart .guaxiang-container { padding: 0; }
.board-chart .sizhu-box { font-size: 14px; padding: 8px 4px; }
.board-chart .gua-desc { font-size: 12px; padding: 4px; }

.note-board {
    display: none; margin: 0 20px 20px; padding: 10px;
    background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.note-board .guaxiang-container { padding: 0; }
.note-board .sizhu-box { font-size: 14px; padding: 6px 2px; }
.note-board .gua-desc { font-size: 11.5px; padding: 2px; }
.note-board .yao-row { padding: 5px 0; }

/* ---------- 六爻盘面（本卦 / 变卦 双列） ---------- */
.ly-head {
    display: grid;
    grid-template-columns: 46px 32px 28px 30px 36px 28px 30px;
    column-gap: 5px; justify-content: start;
    margin: 2px 0 8px;
}
.ly-head span {
    display: flex; flex-direction: column; align-items: flex-start;
    text-align: left; font-size: 13.5px; font-weight: 700;
    color: var(--text-main); white-space: nowrap; line-height: 1.35;
}
.ly-head span:first-child { grid-column: 2 / 6; }
.ly-head span:last-child { grid-column: 6 / 8; }
.ly-head span i {
    font-style: normal; font-size: 10px; color: var(--text-light);
    font-weight: 400; margin-top: 1px;
}
.ly-table { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.ly-row {
    display: grid;
    grid-template-columns: 46px 32px 28px 30px 36px 28px 30px;
    column-gap: 5px; align-items: center;
    padding: 5px 0; justify-content: start;
}
.ly-fushen { text-align: left; padding-left: 1px; font-size: 12.5px; color: var(--accent-red); white-space: nowrap; }
.ly-liuqin { text-align: center; font-size: 14px; color: var(--text-sub); white-space: nowrap; }
.ly-dizhi { text-align: center; font-size: 15px; font-weight: 600; color: var(--text-main); }
.ly-shiying { text-align: center; }
.ly-yao { text-align: center; justify-self: center; line-height: 1; }
.ly-bian { text-align: center; font-size: 15px; font-weight: 600; color: var(--text-main); margin-left: 6px; }
.ly-liushen { text-align: left; padding-left: 2px; font-size: 12.5px; color: var(--text-sub); white-space: nowrap; }

/* ---------- 四柱盘面（紧凑网格） ---------- */
.note-sz-grid .sz-cell { padding: 5px 1px; min-height: 0; font-size: 12px; }
.note-sz-grid .sz-cell.head { font-size: 13px; min-height: 0; padding: 6px 1px; }
.note-sz-grid .sz-cell.label { font-size: 11.5px; }
.note-sz-grid .sz-gan, .note-sz-grid .sz-zhi { font-size: 20px; }
.note-sz-grid .sz-cang { font-size: 12px; gap: 2px; }
.note-sz-grid .sz-cangshen { font-size: 10px; }
.note-sz-grid .sz-nayin { font-size: 11px; }
.note-sz-grid .sz-shishen { font-size: 11.5px; }
.note-sz-grid .sz-kong { font-size: 12px; }
.sz-extra-line { text-align: center; font-size: 11px; color: var(--text-sub); margin-top: 8px; }
.note-board.sizhu-board { overflow: hidden; }

/* 盘面详情页 */
.board-page-body { padding: 6px 20px 24px; }
.board-wrap {
    background: #FFFFFF; border: 1px solid var(--border-color);
    border-radius: 14px; padding: 12px 10px; box-shadow: var(--shadow-sm);
}
.board-wrap .guaxiang-container { padding: 0; }
.board-wrap .sizhu-box { font-size: 13px; }
.board-empty { padding: 60px 20px; text-align: center; font-size: 12px; color: var(--text-light); }

/* 爻象在主卦与变卦之间可见 */
.ly-yao .yang {
    display: inline-block; width: 18px; height: 4px;
    background: var(--accent-dark); vertical-align: middle;
}
.ly-yao .yin {
    display: inline-block; width: 7px; height: 4px;
    background: var(--accent-dark); vertical-align: middle; margin: 0 1px;
}

/* 盘面页下方的笔记内容 */
.board-note {
    margin-top: 14px; background: #FFFFFF; border: 1px solid var(--border-color);
    border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm);
}
.board-note-head { display: flex; justify-content: space-between; align-items: center; }
.board-note-head span {
    font-size: 10.5px; color: var(--accent-gold); background: rgba(185,154,107,.12);
    padding: 3px 8px; border-radius: 6px;
}
.board-note-head time { font-size: 10px; color: var(--text-light); }
.board-note h3 { font-size: 16px; line-height: 1.5; margin: 10px 0 8px; }
.board-note p { font-size: 12.5px; line-height: 1.9; color: var(--text-sub); }
.board-note button {
    margin-top: 14px; border: 1px solid var(--border-color); background: #FFFFFF;
    color: var(--text-sub); font-family: inherit; font-size: 11.5px;
    padding: 7px 14px; border-radius: 16px; cursor: pointer;
}

.compose-draft {
    flex: 1; text-align: right; margin-right: 10px;
    font-size: 10px; color: var(--accent-green); letter-spacing: .5px;
}

/* 推演笔记编辑：盘面只读 */
.board-item.locked { cursor: default; }
.board-item.locked .board-lock-tag {
    margin-left: auto; flex-shrink: 0;
    font-size: 9px; color: var(--accent-green);
    background: rgba(74, 139, 92, 0.1); padding: 2px 7px; border-radius: 6px;
}
#compose-types button:disabled { opacity: .55; cursor: not-allowed; }

/* 新建推演笔记：只允许新建盘面 */
.board-create-empty {
    padding: 18px 12px; text-align: center;
    border: 1px dashed var(--border-color); border-radius: 12px; background: #FFFFFF;
}
.board-create-empty p { font-size: 11.5px; color: var(--text-light); margin-bottom: 10px; }
.board-create-empty button {
    border: 1px solid var(--accent-gold); background: #FFFFFF; color: var(--accent-gold);
    font-family: inherit; font-size: 12px; padding: 7px 16px; border-radius: 16px; cursor: pointer;
}

.note-detail-export {
    display: block; width: calc(100% - 40px); margin: 0 20px 10px;
    padding: 13px; border-radius: 14px; cursor: pointer;
    border: 1px solid var(--accent-gold); background: #FFFFFF;
    color: var(--accent-gold); font-family: inherit; font-size: 13px; font-weight: 600;
}

/* 盘面详细信息 */
.bd-info {
    margin-top: 8px; font-size: 10.5px; color: var(--text-light);
    line-height: 1.7; letter-spacing: .3px;
}
.bd-section { margin-top: 14px; }
.bd-section h4 {
    font-size: 11px; font-weight: 600; color: var(--accent-gold);
    margin-bottom: 7px; letter-spacing: 1px;
}
.bd-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bd-chip {
    display: inline-flex; flex-direction: column; align-items: center;
    min-width: 42px; padding: 5px 7px; border-radius: 7px;
    border: 1px solid #EEE8DD; background: #FFFFFF;
    font-size: 11px; color: var(--text-main); line-height: 1.3;
}
.bd-chip small { font-size: 8.5px; color: var(--text-light); }
.bd-chip.on { border-color: var(--accent-gold); background: #FFFDF8; }
.bd-shensha { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.bd-ss-col {
    border: 1px solid #F0EBE1; border-radius: 8px; padding: 6px 4px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: #FDFBF7;
}
.bd-ss-col b { font-size: 9.5px; color: var(--text-light); font-weight: 500; }
.bd-ss {
    font-size: 9.5px; color: var(--accent-green);
    background: rgba(74, 139, 92, .08); padding: 2px 5px; border-radius: 4px;
    white-space: nowrap;
}
.bd-ss.empty { color: var(--text-light); background: transparent; }

/* 与四柱命盘页一致的详情区块 */
.bd-detail {
    margin-bottom: 10px; padding: 8px 10px;
    background: #FDFBF7; border: 1px solid #F0EBE1; border-radius: 10px;
}
.bd-detail-row { display: flex; gap: 10px; font-size: 10.5px; line-height: 1.95; }
.bd-detail-row span { width: 42px; flex-shrink: 0; color: var(--text-light); }
.bd-detail-row b { font-weight: 500; color: var(--text-sub); }

.board-chart .dayun-scroll, .note-board .dayun-scroll { margin: 0; padding: 0 0 6px; }
.board-chart .liunian-grid, .note-board .liunian-grid { gap: 5px; }
.board-chart .xiaoyun-grid, .note-board .xiaoyun-grid { gap: 5px; }
.board-chart .shensha-grid, .note-board .shensha-grid { gap: 4px; }
.board-chart .dayun-item, .note-board .dayun-item { width: 56px; padding: 7px 3px; }
.board-chart .ln-item, .note-board .ln-item { padding: 6px 1px; }
.board-chart .xy-item, .note-board .xy-item { padding: 5px 1px; }

/* 简盘 / 细盘切换 */
.board-expand-row { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.board-expand-btn {
    border: 1px solid var(--border-color); background: #FFFFFF;
    color: var(--text-sub); font-family: inherit; font-size: 10px;
    padding: 4px 10px; border-radius: 12px; cursor: pointer;
}
.board-expand-btn span { font-size: 9px; margin-left: 2px; }
.board-detail-wrap .board-more-item { display: none; }
.board-detail-wrap.expanded .board-more-item { display: block; }

/* 关联盘面默认收起，用户主动展开 */
.bc-toggle { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.bc-toggle button {
    border: none; background: transparent;
    color: var(--text-light); font-family: inherit; font-size: 10px;
    padding: 2px 4px; cursor: pointer;
}
.bc-toggle button span { font-size: 9px; margin-left: 2px; }
.bc-collapse { display: none; }
.bc-collapse.show { display: block; }

.board-toggle-link {
    margin-left: auto; border: none; background: none; cursor: pointer;
    font-family: inherit; font-size: 9.5px; color: var(--accent-gold);
    white-space: nowrap; padding: 2px 0;
}
.board-item.locked .board-lock-tag { margin-left: 8px; }

/* 四柱大运 / 小运 / 神煞 分组 */
.board-main b { font-size: 13.5px; line-height: 1.45; }
.bd-dayun-section, .bd-xiaoyun-section, .bd-shensha-section {
    padding: 10px; background: #FDFBF7;
    border: 1px solid #F0EBE1; border-radius: 10px;
}
.bd-xiaoyun-section, .bd-shensha-section { margin-top: 10px; }
.bd-dayun-section .liunian-sub-title { margin-top: 10px; padding-top: 8px; }

/* 笔记图片：顶部整宽截图 */
.compose-images {
    display: none; flex-direction: column; gap: 10px;
    margin: 0 0 14px;
}
.compose-image {
    position: relative; width: 100%; border-radius: 10px;
    overflow: hidden; background: #F1ECE3;
}
.compose-image img { width: 100%; height: auto; display: block; cursor: pointer; }
.compose-image button {
    position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
    border: none; border-radius: 50%; cursor: pointer;
    background: rgba(30, 30, 30, 0.62); color: #FFFFFF;
    font-size: 15px; line-height: 26px; padding: 0;
}
.note-detail-images { display: none; flex-direction: column; gap: 10px; margin: 4px 20px 16px; }
.note-detail-images img {
    width: 100%; height: auto; border-radius: 12px;
    cursor: pointer; background: #F1ECE3; display: block;
}
.image-preview-mask {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(20, 18, 15, 0.9);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.image-preview-mask img { max-width: 100%; max-height: 100%; border-radius: 8px; }


/* 六爻盘面文字加粗 */
.ly-liuqin, .ly-dizhi, .ly-bian, .ly-liushen { font-weight: 700; }
.ly-head span i { font-weight: 600; }
.sizhu-box .kongwang { font-weight: 600; }
.ly-shiying .shi-ying { font-weight: 600; }
