/* 句子岛 - 全站样式，响应式，无第三方 CDN */
:root {
    --color-bg: #faf9f7;
    --color-card: #fff;
    --color-text: #1a1a1a;
    --color-muted: #666;
    --color-accent: #2c5f4f;
    --color-accent-light: #3d7a68;
    --color-border: #e8e6e3;
    --font-sans: "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-serif: "Noto Serif SC", "Source Han Serif CN", serif;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --radius: 8px;
    --wrap: min(1200px, 96vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.wrap {
    width: var(--wrap);
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部 */
.site-header {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}
.logo:hover { color: var(--color-accent-light); }
.nav a {
    margin-left: 1.2rem;
    color: var(--color-muted);
    text-decoration: none;
}
.nav a:hover { color: var(--color-accent); }

/* 面包屑 */
.breadcrumb {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { margin: 0 6px; }

/* 主内容 */
.main { padding: 24px 0 48px; min-height: 50vh; }

/* 首页 Hero 轮播 */
.hero {
    background: linear-gradient(135deg, #2c5f4f 0%, #1e4035 100%);
    color: #fff;
    padding: 48px 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero .sentence {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
}
.hero .dots {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.hero .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .2s;
}
.hero .dots span.active { background: #fff; }

/* 区块标题 */
.section-title {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

/* 句子卡片列表 */
.juzi-list { list-style: none; padding: 0; margin: 0; }
.juzi-list li {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}
.juzi-list li a { text-decoration: none; color: inherit; display: block; }
.juzi-list .content {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 8px;
}
.juzi-list .meta {
    font-size: 0.9rem;
    color: var(--color-muted);
}
.juzi-list .meta a { color: var(--color-accent); }

/* 详情页沉浸 */
.juzi-detail-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 40px 32px;
    max-width: 720px;
    margin: 0 auto 24px;
    box-shadow: var(--shadow);
}
.juzi-detail-card .content {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.juzi-detail-card .meta { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 16px; }
.juzi-detail-card .meta a { color: var(--color-accent); }
.juzi-detail-card .stats { font-size: 0.9rem; color: var(--color-muted); }
/* 品读模块 */
.explain-box {
    background: #f5f4f2;
    border-left: 4px solid var(--color-accent);
    padding: 20px 24px;
    margin-top: 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.98rem;
    line-height: 1.75;
}
.explain-box h3 { margin-top: 0; font-size: 1rem; color: var(--color-accent); }

/* 分页 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    background: var(--color-card);
}
.pagination a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination .current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* 页脚 */
.site-footer {
    padding: 24px 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

/* 作者/书籍页简介 */
.author-intro, .book-intro { margin-bottom: 24px; }
.author-intro h1, .book-intro h1 { font-size: 1.5rem; margin-bottom: 8px; }
.intro-text { color: var(--color-muted); font-size: 0.95rem; line-height: 1.7; }
.intro-meta { font-size: 0.9rem; color: var(--color-muted); margin-top: 12px; }

/* 关于我们 */
.about-page.safe-html { max-width: 720px; }
.about-page.safe-html p { margin-bottom: 1em; }

/* 移动端 */
@media (max-width: 768px) {
    .nav a { margin-left: 0.8rem; }
    .hero { padding: 32px 16px; }
    .juzi-detail-card { padding: 24px 16px; }
    .juzi-detail-card .content { font-size: 1.2rem; }
}
