/* =========================================================
   首页：历法卡片、每日研习、笔记、会员、古籍、导师
   源文件行号：64-168
   ========================================================= */

/* ================= 首页专属样式 ================= */
.home-header {
    padding: 30px 20px 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-color) 100%);
}
.greeting { font-size: 24px; font-weight: 700; letter-spacing: 2px; margin-bottom: 6px; }
.sub-greeting { font-size: 13px; color: var(--text-sub); }

/* 历法卡片：浅色宣纸质感 */
.calendar-dark-card {
    margin: 0 20px 24px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 16px; padding: 20px; color: var(--text-main);
    box-shadow: var(--shadow-sm); position: relative;
    display: flex; justify-content: space-between; align-items: center;
}
.cal-ganzhi-grid { display: flex; gap: 16px; }
.cal-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cal-char { font-size: 24px; font-weight: 700; font-family: 'STKaiti', 'KaiTi', 'Noto Serif SC', serif; }
.cal-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.cal-right-block { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px; }
.cal-time { font-size: 18px; font-weight: 600; letter-spacing: 1px; color: var(--text-sub); text-align: right; line-height: 1.3; }
.cal-arrow { width: 20px; height: 20px; color: var(--text-light); }

/* 五行颜色 */
.c-huo { color: #E85D53; }
.c-tu { color: #D4AA6D; }
.c-mu { color: #5DA86C; }
.c-jin { color: #999690; }
.c-shui { color: #5A8BD1; }

.section-title {
    font-size: 16px; font-weight: 700; margin: 0 20px 12px;
    display: flex; align-items: center;
}
.section-title::before { content: '◆'; font-size: 10px; color: var(--accent-gold); margin-right: 8px; }

/* 每日研习 */
.daily-scroll { display: flex; gap: 12px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.daily-scroll::-webkit-scrollbar { display: none; }
.daily-card {
    flex-shrink: 0; width: 160px; background: #FFFFFF; border-radius: 14px; padding: 0;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 0;
}
.dc-cover { position: relative; height: 94px; overflow: hidden; flex-shrink: 0; }
.dc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-format-pill {
    position: absolute; left: 8px; top: 8px;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 7px; border-radius: 5px;
    font-size: 9.5px; font-weight: 600; line-height: 1;
}
.dc-format-pill svg { width: 10px; height: 10px; }
.dc-format-pill.video { background: rgba(20, 19, 17, 0.55); color: #FFFFFF; }
.dc-format-pill.article { background: rgba(255, 255, 255, 0.92); color: var(--accent-dark); }
.dc-duration {
    position: absolute; right: 8px; bottom: 7px;
    font-size: 9.5px; color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.dc-body { padding: 10px 12px 44px; display: flex; flex-direction: column; flex: 1; }
.dc-tags { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.dc-tag { font-size: 9.5px; color: var(--accent-gold); background: rgba(185,154,107,0.1); padding: 2px 6px; border-radius: 4px; display: inline-block; align-self: flex-start;}
.dc-title { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; line-height: 1.4; }
.dc-desc { font-size: 11.5px; color: var(--text-sub); line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dc-arrow {
    position: absolute; right: 10px; bottom: 10px;
    width: 27px; height: 27px; border-radius: 50%;
    border: 1px solid var(--border-color); background: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-dark); z-index: 2;
}
.dc-arrow svg { width: 16px; height: 16px; }
.daily-card.locked .dc-arrow { color: var(--text-light); border-color: #EFEAE0; }

/* 笔记模块 */
.notes-widget { margin: 0 20px 24px; }
.nw-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.nw-header h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; }
.nw-header h3::before { content: '◆'; font-size: 10px; color: var(--accent-gold); margin-right: 8px; }
.nw-new { font-size: 12px; color: #fff; background: var(--accent-dark); display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 6px 12px; border-radius: 16px; font-weight: 600; box-shadow: 0 2px 6px rgba(62, 58, 54, 0.2); }
.nw-new span { font-size: 14px; line-height: 1; font-weight: bold; }

.nw-list { background: #FFFFFF; border-radius: 14px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); overflow: hidden; }
.nw-item { padding: 14px 16px; border-bottom: 1px solid #F5F2EC; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.nw-item:last-child { border-bottom: none; }
.nw-item-left { display: flex; align-items: center; }
.nw-item-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.nw-item-type { font-size: 10px; padding: 2px 6px; border-radius: 4px; color: #fff; margin-left: 8px; }
.type-normal { background: #999690; }
.type-liuyao { background: #C29A4E; }
.type-sizhu { background: #4A8B5C; }
.type-guji { background: #3A5F8A; }
.nw-item-date { font-size: 11px; color: var(--text-light); }

/* 会员滑动区 */
.vip-scroll { display: flex; gap: 12px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.vip-scroll::-webkit-scrollbar { display: none; }
.vip-card { flex-shrink: 0; width: 140px; border-radius: 14px; padding: 16px; background: linear-gradient(135deg, #FDFBF7, #F5F2EC); border: 1px solid #E8DFD1; position: relative; cursor: pointer; display: flex; flex-direction: column; }
.vip-tag { font-size: 10px; color: var(--vip-text); background: var(--vip-gradient); padding: 2px 6px; border-radius: 4px; display: inline-block; margin-bottom: 8px; font-weight: bold; align-self: flex-start; }
.vip-title { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; line-height: 1.4; flex: 1; }
.vip-btn { font-size: 12px; color: var(--accent-gold); font-weight: 600; margin-top: 8px; display: flex; align-items: center; }
.vip-card-single { width: 100%; }
.vip-desc { font-size: 12px; color: var(--text-sub); line-height: 1.6; margin-bottom: 10px; }

/* 古籍原文馆 */
.book-scroll { display: flex; gap: 12px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.book-scroll::-webkit-scrollbar { display: none; }
.book-card {
    flex-shrink: 0; width: 100px; height: 130px; border-radius: 8px;
    background: linear-gradient(135deg, #2C3E2E, #1A2A1C); color: #fff;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); cursor: pointer; position: relative;
    padding: 10px; text-align: center; border-left: 4px solid #D4B87E;
}
.book-card::before { content: '易'; position: absolute; right: -5px; bottom: -10px; font-size: 50px; font-family: 'STKaiti', serif; opacity: 0.1; pointer-events: none; }
.book-title { font-size: 15px; font-weight: 700; letter-spacing: 1px; writing-mode: vertical-rl; text-orientation: upright; margin-bottom: 8px;}
.book-author { font-size: 10px; opacity: 0.7; }

/* 导师推荐 */
.tutor-scroll { display: flex; gap: 12px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.tutor-scroll::-webkit-scrollbar { display: none; }
.tutor-card { flex-shrink: 0; width: 140px; background: #FFFFFF; border-radius: 12px; padding: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; text-align: center; }
.tutor-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; margin-bottom: 8px; }
.tutor-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tutor-desc { font-size: 11px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* ================= 首页改版：头部 / 体验条 / 快捷入口 ================= */
.home-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.home-header-text { flex: 1; min-width: 0; }
.home-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--accent-gold); color: #FFFFFF; border: 2px solid #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 10px rgba(185, 154, 107, 0.28); margin-top: 2px;
}
.home-date-line { font-size: 12px; color: var(--text-light); margin-top: 8px; letter-spacing: 0.5px; }

.trial-strip {
    display: flex; align-items: center; gap: 12px;
    margin: 0 20px 16px; padding: 12px 14px; border-radius: 14px;
    background: linear-gradient(135deg, #33312E, #1A1816); color: #F2D89E;
    border: 1px solid rgba(212, 184, 126, 0.28);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.trial-strip[hidden] { display: none; }
.trial-icon {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    background: var(--vip-gradient); color: var(--vip-text);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
}
.trial-text { flex: 1; min-width: 0; }
.trial-text b { display: block; font-size: 13px; margin-bottom: 3px; letter-spacing: 0.5px; }
.trial-text span { font-size: 11px; color: rgba(255, 255, 255, 0.62); }
.trial-text i { font-style: normal; color: #F2D89E; font-weight: 700; }
.trial-strip button {
    flex-shrink: 0; border: none; border-radius: 16px; cursor: pointer;
    background: var(--vip-gradient); color: var(--vip-text);
    font-family: inherit; font-size: 12px; font-weight: 700; padding: 7px 13px;
}

.home-quick { display: flex; gap: 10px; padding: 0 20px; margin-bottom: 22px; }
.home-quick button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 6px; border-radius: 14px; cursor: pointer;
    background: #FFFFFF; border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm); font-family: inherit; font-size: 12px;
    color: var(--text-sub);
}
.home-quick button.primary { background: var(--accent-dark); border-color: var(--accent-dark); color: #F2D89E; }
.home-quick svg { width: 20px; height: 20px; }

/* 日历卡片补充：农历行 */
.cal-lunar { font-size: 11px; color: var(--text-light); margin-top: 10px; letter-spacing: 0.5px; }
.calendar-dark-card { flex-wrap: wrap; }
.calendar-dark-card .cal-right-block { gap: 8px; }

/* 每日研习：会员锁 */
.daily-card .lock-tag {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 9px; line-height: 1; padding: 3px 6px; border-radius: 8px;
    background: rgba(62, 58, 54, 0.06); color: var(--text-light);
    border: 1px solid var(--border-color);
}
.daily-card.locked .dc-title { color: var(--text-sub); }
.daily-card.locked .dc-arrow { color: var(--text-light); }
.daily-card.locked .dc-desc { color: var(--text-light); }

/* 有权限时不显示会员锁 */
.daily-card:not(.locked) .lock-tag { display: none; }

/* 研习会员广告位（紧凑横幅，可由后台开关隐藏） */
.member-banner {
    position: relative; overflow: hidden; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 20px 24px; padding: 13px 15px;
    border-radius: 14px;
    background:
        radial-gradient(120px 80px at 96% -20%, rgba(213, 184, 130, 0.28), transparent 70%),
        linear-gradient(135deg, #33402F 0%, #202A20 100%);
    border: 1px solid rgba(213, 184, 130, 0.3);
    box-shadow: 0 6px 16px rgba(31, 40, 30, 0.16);
}
.member-banner::after {
    content: ''; position: absolute; inset: 4px; border-radius: 10px;
    border: 1px solid rgba(213, 184, 130, 0.12); pointer-events: none;
}
.member-banner-copy { position: relative; z-index: 1; flex: 1; min-width: 0; }
.member-banner-kicker {
    display: flex; align-items: center; gap: 6px;
    font-size: 9px; letter-spacing: 1.8px; color: #D5B882; margin-bottom: 5px;
}
.member-banner-kicker i {
    font-style: normal; letter-spacing: 0; font-size: 8.5px;
    color: rgba(246, 238, 223, 0.55);
    border: 1px solid rgba(213, 184, 130, 0.26);
    padding: 1px 6px; border-radius: 8px;
}
.member-banner-title {
    font-size: 15px; font-weight: 600; color: #F6EEDF;
    letter-spacing: 0.5px; line-height: 1.35;
}
.member-banner-desc {
    font-size: 9.5px; color: rgba(246, 238, 223, 0.48);
    margin-top: 3px; letter-spacing: 0.3px;
}
.member-banner-cta {
    position: relative; z-index: 1; flex-shrink: 0;
    display: flex; align-items: center; gap: 3px;
    padding: 8px 12px; border-radius: 16px;
    background: linear-gradient(135deg, #E7CE9F 0%, #C9A66C 100%);
    color: #2B2419; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.member-banner-cta em { font-style: normal; font-size: 12px; line-height: 1; }
