/* 冥想与正念 — 子频道主题样式 */

:root {
    --bg: #faf7f2;
    --panel: #ffffff;
    --panel-soft: #f5f1e8;
    --shadow: 0 2px 12px rgba(60, 50, 30, 0.06);
    --shadow-strong: 0 6px 28px rgba(60, 50, 30, 0.08);

    --text: #3d3a35;
    --text-soft: #6e6a63;
    --text-mute: #a39e95;

    --olive: #8a9a5b;
    --olive-deep: #6f7d48;
    --olive-soft: #e8ecdc;
    --terracotta: #c97b5e;
    --terracotta-deep: #a8634a;
    --terracotta-soft: #f4e3da;

    --line: #e8e3d8;
    --line-soft: #f0ebe0;

    /* 链接色：常规蓝色，符合主流阅读习惯 */
    --link: #1a73e8;
    --link-hover: #0d47a1;
}

* { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.85;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Navbar ---- */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 100;
    background-color: rgba(250, 247, 242, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 28px;
}

.navbar-brand {
    color: var(--olive-deep);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1.5px;
}

.navbar-brand:hover { color: var(--terracotta-deep); }

/* ---- Page wrapper ---- */
.page {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 96px 28px 48px;
    box-sizing: border-box;
}

.page.wide { max-width: 920px; }

/* ---- Hero (index) ---- */
.hero {
    background-color: var(--panel);
    border-radius: 12px;
    padding: 36px 40px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--olive);
}

.hero h1 {
    margin: 0 0 12px 0;
    color: var(--text);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.4;
}

.hero .lead {
    margin: 0 0 16px 0;
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.85;
}

.hero .meta {
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 1.5px;
    font-family: "Courier New", monospace;
}

/* ---- Week list (index) ---- */
.week-list {
    background-color: var(--panel);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.week-list li {
    list-style: none;
    border-bottom: 1px solid var(--line-soft);
}

.week-list li:last-child { border-bottom: 0; }

.week-list a {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 32px;
    text-decoration: none;
    color: var(--text);
    transition: background-color 0.2s ease;
}

.week-list a:hover {
    background-color: var(--panel-soft);
}

.week-list a:hover .week-num {
    color: var(--terracotta);
}

.week-num {
    font-family: "Courier New", monospace;
    color: var(--olive);
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 600;
    min-width: 60px;
    flex-shrink: 0;
    padding-top: 4px;
    transition: color 0.2s ease;
}

.week-body { flex: 1; min-width: 0; }

.week-title {
    display: block;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.week-subtitle {
    display: block;
    color: var(--text-mute);
    font-size: 13px;
    font-family: "Courier New", monospace;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.week-desc {
    display: block;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

/* ---- Index footer ---- */
.intro-note {
    background-color: var(--terracotta-soft);
    border-radius: 12px;
    padding: 22px 28px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: var(--terracotta-deep);
    line-height: 1.8;
}

.intro-note strong { color: var(--terracotta-deep); font-weight: 600; }

/* ---- Article (week pages) ---- */
.article {
    background-color: var(--panel);
    border-radius: 12px;
    padding: 40px 48px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.article .breadcrumb {
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    font-family: "Courier New", monospace;
}

.article .breadcrumb a {
    color: var(--link);
    text-decoration: none;
}

.article .breadcrumb a:hover { color: var(--link-hover); }

.article h1 {
    margin: 0 0 8px 0;
    color: var(--text);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;
}

.article .subtitle {
    margin: 0 0 24px 0;
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.7;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 22px;
}

.article .meta-line {
    font-size: 12px;
    color: var(--text-mute);
    font-family: "Courier New", monospace;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.article .meta-line span { margin-right: 16px; }

.article h2 {
    margin: 36px 0 14px 0;
    color: var(--olive-deep);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line-soft);
}

.article h3 {
    margin: 28px 0 10px 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.article p {
    margin: 0 0 16px 0;
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.9;
}

.article ul, .article ol {
    margin: 0 0 18px 0;
    padding-left: 24px;
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.9;
}

.article li { margin-bottom: 8px; }

.article strong { color: var(--text); font-weight: 600; }

.article em { font-style: italic; color: var(--text-soft); }

.article code {
    font-family: "Courier New", monospace;
    background-color: var(--panel-soft);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 13.5px;
    color: var(--terracotta-deep);
}

.article pre {
    background-color: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 18px;
    margin: 0 0 18px 0;
    overflow-x: auto;
    line-height: 1.6;
}

.article pre code {
    background: none;
    padding: 0;
    font-size: 13.5px;
    color: var(--text);
}

.article blockquote {
    margin: 18px 0;
    padding: 12px 20px;
    border-left: 3px solid var(--olive);
    background-color: var(--olive-soft);
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
    border-radius: 0 6px 6px 0;
}

.article blockquote p:last-child { margin-bottom: 0; }

.article hr {
    border: none;
    border-top: 1px dashed var(--line);
    margin: 32px 0;
}

.article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 6px;
}

/* 正文内所有 a 标签统一蓝色常规样式 */
.article a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.article a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

/* ---- Footer nav (prev / next week) ---- */
.footer-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    margin-top: 36px;
    border-top: 1px solid var(--line-soft);
    font-size: 14px;
}

.footer-nav a {
    color: var(--link);
    text-decoration: none;
    display: block;
    padding: 12px 18px;
    border-radius: 8px;
    background-color: var(--panel-soft);
    flex: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-nav a:hover {
    background-color: var(--olive-soft);
    color: var(--link-hover);
}

.footer-nav .nav-label {
    display: block;
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 1.5px;
    font-family: "Courier New", monospace;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.footer-nav .nav-title {
    display: block;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
}

.footer-nav .next { text-align: right; }
.footer-nav .prev { text-align: left; }
.footer-nav .placeholder { visibility: hidden; }

/* ---- Video list (intro pages) ---- */
.video-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 18px 0;
}

.video-list li {
    padding: 14px 0;
    border-bottom: 1px dashed var(--line-soft);
    margin-bottom: 0;
}

.video-list li:last-child { border-bottom: none; }

.video-title {
    font-weight: 600;
    color: var(--text);
}

.video-duration {
    font-size: 12px;
    color: var(--text-mute);
    margin-left: 8px;
    font-family: "Courier New", monospace;
    letter-spacing: 0.5px;
}

.video-desc {
    color: var(--text-soft);
    font-size: 14.5px;
    margin: 6px 0 0 0;
    line-height: 1.8;
}

/* ---- Step blocks (getting-started) ---- */
.step {
    margin: 0 0 28px 0;
}

.step-label {
    display: inline-block;
    font-family: "Courier New", monospace;
    font-size: 11px;
    color: var(--olive-deep);
    background-color: var(--olive-soft);
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

/* ---- Site footer ---- */
.site-footer {
    text-align: center;
    color: var(--text-mute);
    font-size: 12.5px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
}

.site-footer a {
    color: var(--link);
    text-decoration: none;
    margin: 0 8px;
}

.site-footer a:hover { color: var(--link-hover); }

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .page { padding: 80px 16px 32px; }
    .page.wide { padding: 80px 16px 32px; }
    .hero { padding: 24px 22px; }
    .hero h1 { font-size: 23px; letter-spacing: 1px; }
    .article { padding: 24px 20px; }
    .article h1 { font-size: 22px; }
    .article h2 { font-size: 17px; }
    .article p, .article ul, .article ol { font-size: 14.5px; }
    .week-list a { padding: 16px 20px; gap: 16px; }
    .week-num { min-width: 50px; font-size: 12px; }
    .week-title { font-size: 15.5px; }
    .footer-nav { flex-direction: column; }
    .footer-nav .next { text-align: left; }
}
