* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f5f5f5; color: #333; line-height: 1.8; font-size: 18px; }
.container { max-width: 800px; margin: 0 auto; padding: 20px 16px; background: #fff; min-height: 100vh; }
.breadcrumb { font-size: 14px; color: #999; margin-bottom: 16px; }
.breadcrumb a { color: #fae252; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
h1 { font-size: 24px; color: #1a1a1a; margin-bottom: 12px; border-bottom: 2px solid #fae252; padding-bottom: 10px; }
.footer { text-align: center; padding: 20px; margin-top: 20px; font-size: 13px; color: #aaa; border-top: 1px solid #eee; }
.meta-info { font-size: 14px; color: #888; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 16px; }
.meta-info span { white-space: nowrap; }
.latest-chapter { background: #fffef5; border: 1px solid #fae252; border-radius: 6px; padding: 10px 16px; margin-bottom: 20px; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.lc-label { color: #999; white-space: nowrap; }
.lc-name { color: #fae252; font-weight: bold; }
.section-title { font-size: 18px; font-weight: bold; color: #fae252; margin: 24px 0 12px; padding-left: 10px; border-left: 4px solid #fae252; }
.intro { background: #fafafa; padding: 16px; border-radius: 8px; color: #555; font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.content-preview { padding: 16px 0; font-size: 18px; line-height: 2; color: #333; white-space: pre-wrap; word-break: break-all; }
.read-full-btn { display: block; width: 100%; max-width: 400px; margin: 20px auto 30px; padding: 14px 0; background: linear-gradient(135deg, #fae252, #e8d24a); color: #333; font-size: 18px; font-weight: bold; text-align: center; border: none; border-radius: 8px; cursor: pointer; letter-spacing: 1px; transition: transform 0.2s, box-shadow 0.2s; }
.read-full-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(250, 226, 82, 0.4); }
.back-link { display: inline-block; margin-bottom: 16px; color: #fae252; text-decoration: none; font-size: 15px; }
.back-link:hover { text-decoration: underline; }
.chapter-list { list-style: none; counter-reset: chapter; padding: 0; margin-bottom: 20px; }
.chapter-list li { counter-increment: chapter; border-bottom: 1px dashed #eee; }
.chapter-list li a { display: block; padding: 10px 12px; color: #333; text-decoration: none; font-size: 15px; transition: background 0.2s, color 0.2s; }
.chapter-list li a::before { content: counter(chapter) ". "; color: #fae252; font-weight: bold; }
.chapter-list li a:hover { background: #fffef5; color: #fae252; }
.show-all-link { display: block; width: 100%; padding: 12px 0; margin: 4px 0 20px; background: #fffef5; color: #fae252; font-size: 15px; font-weight: bold; text-align: center; text-decoration: none; border: 1px dashed #fae252; border-radius: 6px; transition: background 0.2s; }
.show-all-link:hover { background: #fae252; color: #333; }
.chapter-meta { font-size: 14px; color: #888; margin-bottom: 24px; }
.chapter-content-wrap { position: relative; margin-bottom: 0; }
.chapter-content { font-size: 18px; line-height: 2; color: #333; white-space: pre-wrap; word-break: break-all; padding: 16px 0; }
.content-mask { position: relative; margin-top: -60px; height: 80px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)); pointer-events: none; }
.ellipsis-hint { text-align: center; color: #999; font-size: 16px; padding: 8px 0 16px; letter-spacing: 4px; }
.chapter-nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 20px; gap: 8px; }
.chapter-nav a { display: inline-block; padding: 10px 20px; background: #fffef5; color: #333; text-decoration: none; border-radius: 6px; font-size: 14px; border: 1px solid #fae252; transition: background 0.2s; white-space: nowrap; }
.chapter-nav a:hover { background: #fae252; }
.chapter-nav .nav-placeholder { width: 100px; }
.toc-meta { font-size: 14px; color: #888; margin-bottom: 20px; }
.back-btn { display: block; width: 100%; max-width: 300px; margin: 20px auto; padding: 12px 0; background: #fffef5; color: #fae252; font-size: 15px; font-weight: bold; text-align: center; text-decoration: none; border: 1px solid #fae252; border-radius: 6px; transition: background 0.2s; }
.back-btn:hover { background: #fae252; color: #333; }
.header { background: linear-gradient(135deg, #fae252, #e8d24a); color: #333; padding: 30px 16px; text-align: center; }
.header h1 { font-size: 28px; margin-bottom: 8px; letter-spacing: 2px; }
.header p { font-size: 14px; opacity: 0.85; }
.search-section { background: #fff; padding: 20px; margin: -20px 0 24px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); position: relative; z-index: 1; }
.search-box { display: flex; gap: 10px; }
.search-box input { flex: 1; padding: 14px 18px; font-size: 16px; border: 2px solid #e0e0e0; border-radius: 8px; outline: none; transition: border-color 0.3s; }
.search-box input:focus { border-color: #fae252; }
.search-box button { padding: 14px 32px; background: linear-gradient(135deg, #fae252, #e8d24a); color: #333; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; white-space: nowrap; transition: transform 0.2s; }
.search-box button:hover { transform: translateY(-1px); }
.section-heading { font-size: 20px; color: #1a1a1a; margin: 24px 0 16px; padding-left: 12px; border-left: 4px solid #fae252; }
.novel-count { font-size: 14px; color: #999; font-weight: normal; margin-left: 8px; }
.novel-list { list-style: none; }
.novel-card { background: #fff; border-radius: 8px; padding: 18px 20px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: box-shadow 0.3s, transform 0.2s; }
.novel-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(-1px); }
.novel-card a { text-decoration: none; color: #1a1a1a; font-size: 18px; font-weight: bold; display: block; margin-bottom: 6px; }
.novel-card a:hover { color: #fae252; }
.novel-card .card-meta { font-size: 13px; color: #999; margin-bottom: 8px; }
.novel-card .card-meta span { margin-right: 14px; }
.novel-card .card-meta a { display: inline; font-size: inherit; font-weight: inherit; color: inherit; text-decoration: none; }
.novel-card .card-meta a:hover { color: #fae252; text-decoration: underline; }
.novel-card .card-latest { font-size: 13px; color: #666; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: normal; }
.novel-card .card-latest .cl-label { color: #999; font-weight: normal; }
.novel-card .card-latest a.card-latest-link,
.novel-card .card-latest .card-latest-text { display: inline; font-size: inherit; font-weight: inherit; color: #666; text-decoration: none; }
.novel-card .card-latest a.card-latest-link:hover { color: #fae252; text-decoration: underline; }
.novel-card .card-intro { font-size: 14px; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-left: 1em; text-decoration: none; cursor: pointer; }
.novel-card a.card-intro:hover { color: #fae252; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 30px 0 10px; padding: 16px 0; }
.pagination a, .pagination span { display: inline-block; min-width: 40px; height: 40px; line-height: 40px; text-align: center; padding: 0 10px; border-radius: 6px; font-size: 14px; text-decoration: none; transition: all 0.2s; }
.pagination a { background: #fff; color: #333; border: 1px solid #ddd; }
.pagination a:hover { background: #fffef5; border-color: #fae252; color: #fae252; }
.pagination .current { background: #fae252; color: #333; font-weight: bold; border: 1px solid #fae252; }
.pagination .ellipsis { border: none; background: none; color: #999; min-width: 30px; padding: 0; }
.pagination .prev-next { font-size: 14px; padding: 0 14px; }
