* { margin: 0; padding: 0; box-sizing: border-box; }
html.no-scroll { overflow: hidden; }
html { scroll-padding-top: 76px; }
html.smooth-scroll { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f4f8;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.6;
    padding-top: 56px;
}
a { text-decoration: none; color: inherit; }

.header { background: #fff; border-bottom: 1px solid #eee; position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 56px; }
.header-inner { max-width: 1200px; margin: 0 auto; height: 56px; display: flex; align-items: center; }
.logo { font-size: 20px; font-weight: 700; margin-right: 40px; color: #e74c3c; display: flex; align-items: center; gap: 8px; }
.logo img { height: 40px; }
.nav { flex: 1; display: flex; gap: 28px; }
.nav a { color: #666; font-size: 14px; transition: color 0.2s; }
.nav a:hover { color: #e74c3c; }
.btn-apply { background: #e74c3c; color: #fff; padding: 8px 18px; font-size: 13px; border: none; cursor: pointer; border-radius: 2px; transition: background 0.2s; }
.btn-apply:hover { background: #c0392b; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #666; }

.hero { text-align: center; position: relative; z-index: 1; height: 200px; background: #1a1a2e; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-link { position: absolute; inset: 0; z-index: 1; }
.hero-text { position: relative; z-index: 2; margin-top: -80px; }
.hero h1 { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero p { color: rgba(255,255,255,0.95); font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

.search-wrap { max-width: 1200px; margin: -80px auto 24px; background: #fff; border-top: 3px solid #e74c3c; border-radius: 2px; position: relative; z-index: 10; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: box-shadow 0.3s; }
.search-wrap:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.search-nav { display: flex; border-bottom: 1px solid #f0f0f0; padding: 0 12px; overflow-x: auto; }
.search-nav button { padding: 14px 16px; background: none; border: none; color: #999; font-size: 13px; cursor: pointer; position: relative; white-space: nowrap; }
.search-nav button::after { content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 2px; background: #e74c3c; transform: scaleX(0); transition: transform 0.2s; }
.search-nav button:hover { color: #666; }
.search-nav button.active { color: #e74c3c; font-weight: 600; }
.search-nav button.active::after { transform: scaleX(1); }
.search-input { display: flex; padding: 12px; gap: 8px; }
.search-input input { flex: 1; padding: 12px 16px; border: 1px solid #eee; background: #fafafa; font-size: 14px; outline: none; border-radius: 2px; }
.search-input input:focus { border-color: #e74c3c; background: #fff; }
.search-input button { padding: 12px 28px; background: #e74c3c; color: #fff; border: none; font-size: 14px; cursor: pointer; border-radius: 2px; }
.search-input button:hover { background: #c0392b; }
.search-stats { padding: 10px 14px; background: #fafafa; display: flex; justify-content: space-between; align-items: center; font-size: 12px; border-top: 1px solid #f0f0f0; flex-wrap: wrap; gap: 8px; }
.search-stats strong { color: #e74c3c; font-weight: 600; }
.search-stats a { color: #e74c3c; }
.rec-wrapper { flex: 1 1 0; min-width: 0; overflow: hidden; height: 20px; line-height: 20px; }
.rec-item { height: 20px; line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rec-badge { display: inline-block; background: #e74c3c; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; font-weight: 600; }
.rec-link { color: #666; font-size: 12px; text-decoration: none; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; max-width: calc(100% - 40px); }
.stats-sep { margin: 0 6px; color: #ddd; }
.stats-left, .stats-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stats-item { display: flex; align-items: center; gap: 3px; }
.stats-label { color: #aaa; }
.stats-dot { width: 3px; height: 3px; background: #ddd; border-radius: 50%; }

.main { max-width: 1200px; margin: 24px auto; display: flex; gap: 12px; align-items: flex-start; position: relative; }
.sidebar-recommended { width: 260px; flex-shrink: 0; position: sticky; top: 76px; }
.sidebar-recommended-header { background: #fff; padding: 12px 20px; font-size: 14px; font-weight: 600; border-bottom: 1px solid #f0f0f0; border-radius: 2px 2px 0 0; }
.sidebar-recommended-inner { background: #fff; border-radius: 0 0 2px 2px; overflow: hidden; height: 300px; position: relative; }
.recommended-list { transition: transform 0.5s ease; }
.sidebar { width: 88px; flex-shrink: 0; position: sticky; top: 76px; max-height: calc(100vh - 96px); border-radius: 2px; z-index: 50; }
.sidebar-inner { background: #fff; border-radius: 2px; overflow-y: auto; max-height: calc(100vh - 96px); }
.sidebar a { display: block; padding: 10px 0; color: #666; font-size: 13px; text-align: center; border-left: 2px solid transparent; transition: all 0.2s; }
.sidebar a:hover { color: #e74c3c; }
.sidebar a.active { color: #e74c3c; border-left-color: #e74c3c; font-weight: 600; background: #fff5f5; }

.content { flex: 1; }
.breadcrumb { background: #fff; border-radius: 2px; padding: 12px 20px; margin-bottom: 12px; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; transition: color 0.2s; }
.breadcrumb a:hover { color: #e74c3c; }
.breadcrumb span { margin: 0 8px; color: #ccc; }
.section { background: #fff; padding: 20px; margin-bottom: 12px; border-radius: 2px; }
.section-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.section-header h3 { font-size: 15px; font-weight: 600; }
.section-header a { color: #bbb; font-size: 12px; }
.section-header a:hover { color: #e74c3c; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.item { display: flex; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 2px; transition: all 0.25s ease; position: relative; overflow: hidden; }
.item::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #e74c3c; transform: scaleX(0); transition: transform 0.25s ease; }
.item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.item:hover::before { transform: scaleX(1); }
.item:hover .item-icon { transform: scale(1.1); }
.item:hover .item-info h4 { color: #e74c3c; }
.item-icon { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform 0.25s ease; }
.item-icon img { width: 100%; height: 100%; object-fit: cover; }
.item-icon .icon-letter { width: 32px; height: 32px; border-radius: 50%; background: #e74c3c; color: #fff; font-size: 12px; font-weight: 600; font-family: sans-serif; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.item-info { flex: 1; min-width: 0; }
.item-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; color: #333; transition: color 0.25s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-info p { font-size: 11px; color: #999; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; height: 2.8em; box-sizing: border-box; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-item { background: #fff; overflow: hidden; transition: all 0.3s ease; border-radius: 2px; display: block; position: relative; }
.article-item:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.15); transform: translateY(-4px); }
.article-item:hover .article-img img { transform: scale(1.08); }
.article-item:hover .article-content h4 { color: #e74c3c; }
.article-img { height: 100px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-content { padding: 12px; }
.article-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; color: #333; transition: color 0.25s ease; }
.article-content p { font-size: 12px; color: #999; line-height: 1.4; }

.ad-space { background: #fff; border: 2px dashed #ddd; border-radius: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 12px; width: 100%; box-sizing: border-box; padding: 20px; }
.ad-space .ad-label { font-size: 14px; color: #bbb; margin-bottom: 4px; }
.ad-space .ad-size { font-size: 12px; color: #ddd; }

.footer { background: #1a1a2e; padding: 40px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 24px; }
.footer-nav a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.2s; padding: 4px 0; }
.footer-nav a:hover { color: #e74c3c; }
.footer-divider { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 20px; }
.footer-divider span { width: 40px; height: 1px; background: rgba(255,255,255,0.15); }
.footer-divider i { width: 6px; height: 6px; background: #e74c3c; border-radius: 50%; }
.footer-copy { color: rgba(255,255,255,0.35); font-size: 12px; }
.footer-copy a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-copy a:hover { color: #e74c3c; }

.nav { display: flex; gap: 28px; }
@media (max-width: 768px) {
    .nav { position: fixed; left: 0; top: 56px; bottom: 0; width: 100px; background: #fff; z-index: 99; flex-direction: column; gap: 0; padding: 0; box-shadow: 2px 0 12px rgba(0,0,0,0.1); transform: translateX(-100%); transition: transform 0.3s ease; opacity: 0; visibility: hidden; }
    .nav.active { transform: translateX(0); opacity: 1; visibility: visible; }
    .nav-overlay { position: fixed; left: 0; top: 56px; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 98; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
    .nav.active ~ .nav-overlay { opacity: 1; visibility: visible; }
    #navOverlay { cursor: pointer; }
    .nav a { padding: 14px 20px; border-bottom: 1px solid #f5f5f5; }
    .header-inner { padding: 0 12px; box-sizing: border-box; justify-content: space-between; }
    .logo { margin-right: auto; margin-left: 0; }
    .btn-apply { flex-shrink: 0; }
    .nav-toggle { display: block; position: fixed; right: 12px; bottom: 80px; z-index: 101; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.15); animation: navPulse 2s ease-in-out infinite; }
    .nav-toggle svg { margin: auto; display: block; transition: transform 0.3s ease; }
    .nav-toggle.active svg { transform: rotate(90deg); }
    @keyframes navPulse {
        0%, 100% { box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
        50% { box-shadow: 0 4px 20px rgba(231,76,60,0.3); }
    }
    .hero { height: auto; min-height: 120px; margin-top: 0; background-size: 100% auto; background-position: center top; padding: 40px 16px; }
    .hero h1 { font-size: 20px; letter-spacing: 1px; }
    .hero p { font-size: 12px; }
    .hero-text { margin-top: 0; position: relative; z-index: 2; }
    .search-wrap { margin: 16px; position: relative; z-index: 10; }
    .search-nav { overflow-x: auto; }
    .search-nav button { padding: 12px 14px; font-size: 12px; white-space: nowrap; }
    .search-input { flex-direction: column; }
    .search-input input { padding: 10px 14px; }
    .search-input button { padding: 10px 20px; }
    .search-stats { flex-direction: column; gap: 8px; text-align: center; padding: 12px; }
    .stats-left, .stats-right { flex-wrap: wrap; justify-content: center; }
.rec-wrapper { flex: 1 1 0; min-width: 0; overflow: hidden; height: 20px !important; line-height: 20px; display: block !important; }
    @media (max-width: 768px) {
        .rec-wrapper { height: 20px !important; overflow: hidden !important; }
    .main { flex-direction: column; padding: 0 12px; gap: 10px; width: 100%; overflow-x: hidden; box-sizing: border-box; margin: 16px auto; }
    .content { width: 100%; max-width: 100%; overflow: hidden; box-sizing: border-box; }
    .sidebar { width: 100% !important; position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; border: none; background: transparent; margin-bottom: 8px; padding: 0; box-sizing: border-box; }
    .sidebar-inner { display: flex; flex-wrap: wrap; gap: 4px; max-height: none; background: transparent; width: 100%; box-sizing: border-box; }
    .sidebar a { border: none; background: transparent; box-sizing: border-box; }
    .sidebar a.active { border: none; color: #e74c3c; background: transparent; }
    .section { padding: 14px; margin-bottom: 10px; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
    .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; box-sizing: border-box; }
    .item { padding: 10px; gap: 6px; display: flex; flex-direction: row; align-items: flex-start; width: 100%; box-sizing: border-box; }
    .item-icon { width: 32px; height: 32px; flex-shrink: 0; }
    .item-info { text-align: left; width: 100%; }
    .item-info h4 { font-size: 12px; word-break: break-all; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .item-info p { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .article-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
    .article-item { width: 100%; overflow: hidden; }
    .article-img { height: 80px; width: 100%; }
    .article-img img { width: 100%; height: 100%; object-fit: cover; }
    .article-content { padding: 10px; }
    .article-content h4 { font-size: 13px; word-break: break-word; }
    .section-header h3 { font-size: 14px; }
    .ad-space { width: 100%; max-width: 100%; padding: 15px; }
    .footer-nav { gap: 6px 16px; }
    .footer { padding: 30px 16px; }
}

@media (max-width: 480px) {
    .hero { min-height: 100px; padding: 30px 12px; }
    .hero h1 { font-size: 18px; }
    .article-grid { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .item { padding: 14px; }
}

