/* 泛目录站 - 主样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f4f5f7; color: #333; line-height: 1.6; }
a { color: #1a73e8; text-decoration: none; }
a:hover { color: #1557b0; text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.header { background: #1a1a2e; color: #fff; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-size: 22px; font-weight: bold; }
.logo a { color: #fff; text-decoration: none; }
.nav { display: flex; gap: 24px; }
.nav a { color: #ccc; font-size: 14px; text-decoration: none; }
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; font-weight: 600; border-bottom: 2px solid #1a73e8; }
.search-box { margin: 0 16px; }
.search-box form { display: flex; }
.search-box input { padding: 6px 12px; border: 1px solid #444; border-radius: 4px 0 0 4px; background: #fff; color: #333; font-size: 13px; width: 160px; outline: none; }
.search-box button { padding: 6px 12px; border: none; border-radius: 0 4px 4px 0; background: #1a73e8; color: #fff; font-size: 14px; cursor: pointer; line-height: 1; }
.search-box button:hover { background: #1557b0; }

/* Main layout */
.main { display: flex; gap: 24px; margin-top: 24px; min-height: calc(100vh - 180px); }
.content { flex: 1; }
.sidebar { width: 280px; flex-shrink: 0; }

/* Content list */
.content-list { display: flex; flex-direction: column; gap: 12px; }
.content-item { display: flex; gap: 16px; background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.content-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.page-title { font-size: 22px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #1a73e8; }
.item-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.item-info { flex: 1; }
.item-info h2, .item-info h3 { font-size: 16px; margin-bottom: 6px; }
.item-info h2 a, .item-info h3 a { color: #1a1a2e; }
.item-desc { color: #666; font-size: 13px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { color: #999; font-size: 12px; display: flex; gap: 16px; }

/* Breadcrumb */
.breadcrumb { padding: 8px 0; color: #999; font-size: 13px; }
.breadcrumb a { color: #666; }

/* Detail */
.detail-article { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.detail-article h1 { font-size: 24px; margin-bottom: 12px; color: #1a1a2e; }
.detail-thumb { text-align: center; margin-bottom: 16px; }
.detail-thumb img { max-width: 240px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.detail-meta { display: flex; gap: 20px; color: #888; font-size: 13px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.detail-content { font-size: 15px; line-height: 1.8; }
.detail-content p { margin-bottom: 12px; }

/* Download */
.watch-section { margin: 20px 0; padding: 16px; background: #fff5f5; border-radius: 8px; border: 1px solid #ffe0e0; }
.watch-section h3 { font-size: 16px; margin-bottom: 12px; color: #e60012; }
.watch-btn { display: inline-block; padding: 12px 48px; background: linear-gradient(135deg,#ff4d4d,#e60012); color: #fff; font-size: 18px; font-weight: 700; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 15px rgba(230,0,18,.35); transition: transform .2s; }
.watch-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,0,18,.5); color: #fff; text-decoration: none; }
.download-section { margin: 20px 0; padding: 16px; background: #f0f7ff; border-radius: 8px; }
.download-section h3 { font-size: 16px; margin-bottom: 12px; color: #1a73e8; }
.download-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.download-list li a { display: inline-block; padding: 8px 16px; background: #1a73e8; color: #fff; border-radius: 4px; font-size: 13px; text-decoration: none; }
.download-list li a:hover { background: #1557b0; }
.related-section { margin-top: 24px; padding: 16px; background: #f9fafb; border-radius: 8px; }
.related-section h3 { font-size: 16px; margin-bottom: 12px; color: #1a1a2e; }
.related-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.related-list li { flex: 0 0 calc(50% - 4px); }
.related-list li a { color: #333; font-size: 14px; display: block; padding: 8px 12px; background: #fff; border-radius: 4px; border: 1px solid #eee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-list li a:hover { border-color: #1a73e8; color: #1a73e8; }

/* Sidebar */
.widget { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.widget h3 { font-size: 15px; margin-bottom: 10px; color: #1a1a2e; padding-bottom: 8px; border-bottom: 2px solid #1a73e8; }
.widget ul { list-style: none; }
.widget ul li { padding: 6px 0; border-bottom: 1px dashed #eee; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #555; font-size: 13px; }
.widget ul li a:hover { color: #1a73e8; }

/* Footer */
.footer { background: #1a1a2e; color: #999; text-align: center; padding: 24px 0; margin-top: 32px; font-size: 13px; }
.footer-links { margin-top: 8px; }
.footer-links a { color: #ccc; margin: 0 10px; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Pagination */
.pagination { margin-top: 24px; padding: 16px 0; text-align: center; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination .current { padding: 6px 14px; border-radius: 4px; font-size: 14px; border: 1px solid #ddd; background: #fff; color: #1a73e8; text-decoration: none; }
.pagination .current { background: #1a73e8; color: #fff; border-color: #1a73e8; font-weight: 600; }
.pagination a:hover { background: #e8f0fe; border-color: #1a73e8; }
.pagination .page-first, .pagination .page-last { }
.pagination .page-ellipsis { padding: 6px 8px; color: #999; border: none; background: none; }
.page-jump { margin-top: 12px; text-align: center; color: #999; font-size: 13px; }
.page-jump input { width: 50px; height: 26px; text-align: center; border: 1px solid #ddd; border-radius: 3px; margin: 0 4px; }
.page-jump .page-go { padding: 2px 10px; background: #1a73e8; color: #fff; border-radius: 3px; cursor: pointer; font-size: 12px; text-decoration: none; }
.page-jump .page-go:hover { background: #1557b0; }

/* Search page */
.search-page { max-width: 800px; margin: 0 auto; }
.search-header { padding: 32px 0 24px; border-bottom: 1px solid #e8e8e8; margin-bottom: 24px; }
.search-form-large { display: flex; }
.search-input-large { flex: 1; padding: 12px 16px; border: 2px solid #1a73e8; border-radius: 8px 0 0 8px; font-size: 16px; outline: none; }
.search-btn-large { padding: 12px 32px; border: none; border-radius: 0 8px 8px 0; background: #1a73e8; color: #fff; font-size: 16px; cursor: pointer; }
.search-btn-large:hover { background: #1557b0; }
.search-info { margin-top: 16px; color: #666; font-size: 14px; }
.search-results { display: flex; flex-direction: column; gap: 16px; }
.search-item { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.search-item h3 { font-size: 18px; margin-bottom: 6px; }
.search-item h3 a { color: #1a0dab; }
.search-item h3 a:hover { text-decoration: underline; }
.search-desc { color: #555; font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
.search-meta { color: #999; font-size: 12px; display: flex; gap: 16px; }
.search-empty { text-align: center; padding: 60px 20px; color: #999; }
.search-empty b { color: #c00; }
.search-hint { margin-top: 12px; font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
    .header .container { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px; }
    .logo { font-size: 18px; flex: 0 0 auto; }
    .search-box { flex: 1; margin: 0; min-width: 0; }
    .search-box input { flex: 1; width: auto; min-width: 0; }
    .search-box button { flex-shrink: 0; }
    .nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 8px; padding: 4px 0; text-align: center; }
    .nav a { font-size: 12px; white-space: nowrap; padding: 4px 2px; background: rgba(255,255,255,.08); border-radius: 4px; }
    .main { flex-direction: column; }
    .content { width: 100%; }
    .sidebar { width: 100%; }
    .pagination { gap: 4px; }
    .pagination a, .pagination .current { padding: 5px 10px; font-size: 13px; }
    .detail-thumb img { max-width: 160px; }
    .search-page { padding: 0 10px; }
    .search-form-large { flex-direction: column; gap: 8px; }
    .search-btn-large { border-radius: 8px; }
    .search-input-large { border-radius: 8px; }
}
