/* book.zhangpu.cc 样式 - 简洁阅读风 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: #fafaf7;
    color: #2c2c2c;
    line-height: 1.8;
    font-size: 16px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* 密码门 */
.auth-box {
    max-width: 360px;
    margin: 80px auto;
    text-align: center;
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.auth-box h1 {
    margin-bottom: 8px;
    font-size: 24px;
}

.auth-box .hint {
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-box input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
}

.auth-box button {
    width: 100%;
    padding: 12px;
    background: #5a67d8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.auth-box button:hover { background: #4c51bf; }

.auth-box .error {
    color: #e53e3e;
    margin-top: 12px;
    font-size: 14px;
}

/* 头部 */
header {
    margin-bottom: 32px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.book-desc {
    color: #666;
    font-size: 14px;
}

.book-count {
    color: #888;
    font-size: 14px;
    margin-bottom: 16px;
}

.header-actions {
    float: right;
    display: flex;
    gap: 12px;
}

.header-actions a {
    color: #5a67d8;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.header-actions a:hover { background: #f5f5f5; }

/* 面包屑 */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #5a67d8;
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb .current { color: #555; }

/* 书列表 */
.book-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.book-card {
    display: block;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}

.book-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.book-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.book-card .book-desc {
    margin-bottom: 8px;
}

.book-card .book-meta {
    color: #999;
    font-size: 13px;
}

/* 进度信息 */
.progress-info {
    background: #f0f0f8;
    padding: 12px 16px;
    border-radius: 8px;
    color: #5a67d8;
    font-size: 14px;
    margin-top: 12px;
}

/* 章节目录 */
.chapter-list {
    list-style: none;
    counter-reset: chapter;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.chapter-list li {
    border-bottom: 1px solid #f0f0f0;
    counter-increment: chapter;
}

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

.chapter-list li a {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    color: #2c2c2c;
    text-decoration: none;
    font-size: 16px;
}

.chapter-list li a:hover { background: #f8f8f8; }

.chapter-list li .check {
    color: #48bb78;
    font-weight: bold;
    margin-right: 8px;
}

.chapter-list li .dot {
    color: #ccc;
    margin-right: 8px;
}

.chapter-list li.read a { color: #888; }

.chapter-list li.read .check {
    color: #48bb78;
}

/* 文章页 */
.article-container {
    max-width: 760px;
}

.article-content {
    background: white;
    padding: 32px 36px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.95;
}

.article-content p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.article-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* 文章导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #eee;
}

.article-nav a {
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #5a67d8;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.article-nav .nav-prev { text-align: left; }
.article-nav .nav-next { text-align: right; }
.article-nav .nav-toc { text-align: center; }

.article-nav a:hover {
    background: #f0f0f8;
}

/* 搜索 */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.search-form button {
    padding: 12px 24px;
    background: #5a67d8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.search-summary {
    margin-bottom: 16px;
    color: #555;
    font-size: 14px;
}

.search-summary strong { color: #5a67d8; }

.search-results {
    list-style: none;
    display: grid;
    gap: 12px;
}

.result-card {
    display: block;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.result-card:hover {
    background: #f8f8f8;
}

.result-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.result-meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

.result-meta strong { color: #e53e3e; }

.result-snippet {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.empty {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* 响应式 - 手机 */
@media (max-width: 640px) {
    body { font-size: 15px; }
    .container { padding: 20px 16px 60px; }
    .article-content { padding: 24px 20px; font-size: 16px; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav .nav-prev,
    .article-nav .nav-next { text-align: center; }
    header h1 { font-size: 22px; }
}