* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #f5f5f5; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border-radius: 8px; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; text-align: center; padding: 20px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
header h1 { font-size: 20px; font-weight: 700; letter-spacing: 2px; margin-bottom: 4px; }
header p { font-size: 13px; opacity: 0.9; }
.entrance-wrap { text-align: center; padding: 12px 16px; background: linear-gradient(180deg, #f5f5f5 0%, #fff 100%); }
.entrance-btn { display: inline-block; padding: 8px 36px; font-size: 15px; font-weight: 700; color: #fff; border-radius: 50px; background: linear-gradient(90deg, #ff0080, #ff8c00, #40e0d0, #8a2be2, #ff0080); background-size: 300% 300%; animation: rainbow 3s ease infinite; box-shadow: 0 4px 20px rgba(255,0,128,0.4), 0 0 40px rgba(138,43,226,0.3); border: 2px solid rgba(255,255,255,0.3); cursor: pointer; transition: transform 0.2s; }
.entrance-btn:hover { transform: scale(1.05); }
@keyframes rainbow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.search-wrap { background: #fff; padding: 16px; border-radius: 12px; margin: 16px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.search-form { display: flex; gap: 10px; }
.search-input { flex: 1; height: 40px; padding: 0 14px; font-size: 14px; border: 2px solid #e0e0e0; border-radius: 8px; outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: #667eea; }
.search-btn { height: 40px; padding: 0 24px; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; border-radius: 8px; cursor: pointer; transition: opacity 0.2s; }
.search-btn:hover { opacity: 0.9; }
.section { margin: 30px 0; }
.section-title { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 20px; padding-left: 12px; border-left: 4px solid #667eea; }
.comic-list { display: flex; flex-direction: column; gap: 16px; }
.comic-item { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.comic-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.comic-item .cover-wrap { flex: 0 0 80px; }
.comic-item .cover { width: 80px; height: 107px; object-fit: cover; display: block; }
.comic-item .info { flex: 1; padding: 10px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.comic-item .title { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comic-item .time { font-size: 11px; color: #999; margin-bottom: 4px; }
.comic-item .desc { font-size: 12px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; font-size: 14px; border-radius: 8px; background: #fff; color: #667eea; box-shadow: 0 2px 6px rgba(0,0,0,0.08); transition: all 0.2s; }
.pagination a:hover { background: #667eea; color: #fff; }
.pagination .current { background: #667eea; color: #fff; }
.pagination .disabled { color: #ccc; cursor: not-allowed; }
footer { background: #fff; border-top: 1px solid #eee; padding: 20px 0; margin-top: 40px; text-align: center; }
footer a { display: inline-block; margin: 0 15px; font-size: 14px; color: #667eea; }
footer a:hover { text-decoration: underline; }
@media (min-width: 768px) {
    .comic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .comic-item { flex-direction: column; }
    .comic-item .cover-wrap { flex: none; width: 100%; }
    .comic-item .cover { width: 100%; height: auto; aspect-ratio: 3/4; }
    .comic-item .info { padding: 16px; }
    .comic-item .title { font-size: 15px; }
    .comic-item .time { font-size: 12px; }
    .comic-item .desc { font-size: 13px; -webkit-line-clamp: 3; }
    .search-input { height: 44px; font-size: 15px; }
    .search-btn { height: 44px; padding: 0 32px; font-size: 15px; }
    header { padding: 24px 20px; }
    header h1 { font-size: 24px; }
    .section { margin: 40px 0; }
    .section-title { font-size: 24px; }
    .entrance-btn { padding: 10px 48px; font-size: 16px; }
}
@media (min-width: 1024px) {
    .comic-list { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .search-wrap { padding: 20px; }
}
@media (min-width: 1400px) {
    .comic-list { grid-template-columns: repeat(6, 1fr); }
}