/* 模板2 - 暗黑科技风（暗绿主题） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; background: #0a0e17; color: #c8d6e5; }
a { text-decoration: none; color: #00ff88; transition: all 0.3s; }
a:hover { color: #66ffb2; text-shadow: 0 0 8px rgba(0,255,136,0.4); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.header { background: linear-gradient(180deg, #0d1b2a 0%, #1b2838 100%); border-bottom: 1px solid rgba(0,255,136,0.15); padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; gap: 30px; }
.logo { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.logo a { color: #00ff88; text-shadow: 0 0 15px rgba(0,255,136,0.3); }
.logo-tag { font-size: 11px; background: rgba(0,255,136,0.15); color: #00ff88; padding: 2px 8px; border-radius: 3px; border: 1px solid rgba(0,255,136,0.3); }
.nav { display: flex; gap: 2px; }
.nav a { color: #8ba0b8; padding: 8px 18px; border-radius: 4px; font-size: 13px; }
.nav a:hover { background: rgba(0,255,136,0.08); color: #00ff88; }

.hero { background: linear-gradient(135deg, #0d1b2a 0%, #1a2f3f 50%, #0d1b2a 100%); padding: 60px 0; text-align: center; border-bottom: 1px solid rgba(0,255,136,0.1); }
.hero h1 { font-size: 36px; color: #00ff88; margin-bottom: 12px; text-shadow: 0 0 30px rgba(0,255,136,0.2); }
.hero p { color: #8ba0b8; font-size: 16px; margin-bottom: 25px; }
.hero-search { display: flex; max-width: 500px; margin: 0 auto; }
.hero-search input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(0,255,136,0.2); padding: 14px 20px; border-radius: 6px 0 0 6px; color: #c8d6e5; outline: none; font-size: 14px; }
.hero-search button { background: #00ff88; color: #0a0e17; border: none; padding: 14px 25px; border-radius: 0 6px 6px 0; font-weight: bold; cursor: pointer; font-size: 14px; }
.hero-search button:hover { background: #33ff9f; }

.cat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin: 30px 0; }
.cat-block { background: linear-gradient(135deg, rgba(13,27,42,0.9), rgba(27,40,56,0.9)); border: 1px solid rgba(0,255,136,0.1); border-radius: 8px; padding: 20px 15px; text-align: center; transition: all 0.3s; }
.cat-block:hover { border-color: #00ff88; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,255,136,0.1); }
.cb-icon { font-size: 20px; color: #00ff88; font-weight: bold; margin-bottom: 8px; }
.cb-name { color: #c8d6e5; font-size: 14px; margin-bottom: 4px; }
.cb-count { color: #5a7a9a; font-size: 11px; }

.section-header { display: flex; align-items: center; gap: 15px; margin: 35px 0 20px; }
.section-header h2 { color: #00ff88; font-size: 20px; white-space: nowrap; }
.sh-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,255,136,0.3), transparent); }

.soft-grid { display: grid; gap: 15px; }
.soft-card { background: linear-gradient(135deg, rgba(13,27,42,0.8), rgba(27,40,56,0.8)); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 18px; display: flex; gap: 18px; transition: all 0.3s; }
.soft-card:hover { border-color: rgba(0,255,136,0.25); box-shadow: 0 4px 20px rgba(0,255,136,0.05); }
.sc-icon { width: 72px; height: 72px; background: rgba(0,255,136,0.05); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sc-icon img { max-width: 56px; max-height: 56px; border-radius: 8px; }
.sc-body { flex: 1; min-width: 0; }
.sc-body h3 { font-size: 16px; margin-bottom: 8px; }
.sc-body h3 a { color: #e0e8f0; }
.sc-body h3 a:hover { color: #00ff88; }
.sc-tags { display: flex; gap: 8px; margin-bottom: 8px; }
.sc-tag { font-size: 11px; padding: 2px 10px; border-radius: 3px; }
.sc-tag.v { background: rgba(0,255,136,0.1); color: #00ff88; }
.sc-tag.s { background: rgba(255,255,255,0.05); color: #8ba0b8; }
.sc-body p { color: #6a8aaa; font-size: 13px; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sc-footer { display: flex; align-items: center; gap: 15px; }
.sc-ver { color: #5a7a9a; font-size: 11px; }
.sc-date { color: #5a7a9a; font-size: 11px; margin-right: auto; }
.sc-dl { background: rgba(0,255,136,0.15); color: #00ff88; padding: 5px 20px; border-radius: 4px; font-size: 13px; border: 1px solid rgba(0,255,136,0.2); }
.sc-dl:hover { background: #00ff88; color: #0a0e17; }

.rank-list { background: linear-gradient(135deg, rgba(13,27,42,0.8), rgba(27,40,56,0.8)); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; margin-bottom: 30px; }
.rank-item { display: flex; align-items: center; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.2s; }
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: rgba(0,255,136,0.03); }
.rank-num { width: 28px; height: 28px; border: 1px solid rgba(0,255,136,0.2); border-radius: 50%; text-align: center; line-height: 26px; font-size: 12px; color: #00ff88; margin-right: 15px; }
.rank-item a { flex: 1; color: #c8d6e5; font-size: 14px; }
.rank-item:hover a { color: #00ff88; }
.rank-score { color: #5a7a9a; font-size: 12px; }

.breadcrumb { padding: 15px 0; font-size: 13px; color: #5a7a9a; }
.bc-arrow { margin: 0 8px; color: #00ff88; }
.breadcrumb a { color: #8ba0b8; }
.breadcrumb span { color: #c8d6e5; }

.main-layout { display: flex; gap: 30px; margin-bottom: 30px; }
.content-area { flex: 1; min-width: 0; }
.list-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,255,136,0.1); }
.list-title h1 { font-size: 22px; color: #00ff88; }
.list-count { color: #5a7a9a; font-size: 12px; }

.pagination { text-align: center; margin: 30px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 16px; margin: 0 3px; border-radius: 4px; font-size: 13px; }
.pagination a { background: rgba(13,27,42,0.8); color: #8ba0b8; border: 1px solid rgba(255,255,255,0.08); }
.pagination a:hover { background: rgba(0,255,136,0.15); color: #00ff88; border-color: rgba(0,255,136,0.3); }
.pagination span { background: #00ff88; color: #0a0e17; }

.sidebar { width: 300px; flex-shrink: 0; }
.widget { background: linear-gradient(135deg, rgba(13,27,42,0.8), rgba(27,40,56,0.8)); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.widget h3 { color: #00ff88; font-size: 15px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,255,136,0.1); }
.cat-list { list-style: none; }
.cat-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: #8ba0b8; font-size: 13px; display: block; }
.cat-list a:hover { color: #00ff88; padding-left: 5px; }
.rec-card { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03); display: flex; justify-content: space-between; align-items: center; }
.rec-card:last-child { border-bottom: none; }
.rec-card a { color: #8ba0b8; font-size: 13px; flex: 1; }
.rec-card a:hover { color: #00ff88; }
.rc-ver { color: #5a7a9a; font-size: 11px; }
.friend-links a { display: inline-block; margin: 3px 6px 3px 0; color: #5a7a9a; font-size: 12px; }
.friend-links a:hover { color: #00ff88; }

.detail-header { background: linear-gradient(135deg, rgba(13,27,42,0.9), rgba(27,40,56,0.9)); border: 1px solid rgba(0,255,136,0.1); border-radius: 8px; padding: 25px; display: flex; gap: 25px; margin-bottom: 20px; }
.dh-left { flex-shrink: 0; }
.dh-icon { width: 96px; height: 96px; background: rgba(0,255,136,0.05); border-radius: 16px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,255,136,0.15); }
.dh-icon img { max-width: 72px; max-height: 72px; border-radius: 8px; }
.dh-right { flex: 1; }
.dh-right h1 { font-size: 22px; color: #e0e8f0; margin-bottom: 15px; }
.dh-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.dh-m-item { display: flex; gap: 8px; font-size: 13px; }
.dhm-label { color: #5a7a9a; }
.dhm-val { color: #c8d6e5; }
.dl-btn-neon { display: inline-block; background: linear-gradient(135deg, #00ff88, #00cc6a); color: #0a0e17; padding: 14px 45px; border-radius: 6px; font-size: 16px; font-weight: bold; border: none; cursor: pointer; transition: all 0.3s; }
.dl-btn-neon:hover { box-shadow: 0 0 30px rgba(0,255,136,0.4); transform: scale(1.02); color: #0a0e17; }

.detail-body { background: linear-gradient(135deg, rgba(13,27,42,0.8), rgba(27,40,56,0.8)); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 25px; }
.detail-body h3 { color: #00ff88; font-size: 17px; margin: 20px 0 10px; }
.detail-body p { line-height: 1.8; color: #8ba0b8; margin-bottom: 10px; font-size: 14px; }
.d-features { list-style: none; padding: 10px 0; }
.d-features li { padding: 6px 0; color: #8ba0b8; font-size: 14px; position: relative; padding-left: 20px; }
.d-features li::before { content: "▶"; position: absolute; left: 0; color: #00ff88; font-size: 10px; }

.footer { background: linear-gradient(180deg, #0d1b2a, #070b12); border-top: 1px solid rgba(0,255,136,0.1); padding: 30px 0; margin-top: 30px; text-align: center; font-size: 13px; color: #5a7a9a; }
.footer-nav { margin-bottom: 10px; }
.footer-nav a { color: #5a7a9a; margin: 0 10px; font-size: 12px; }
.footer-nav a:hover { color: #00ff88; }

@media (max-width: 768px) {
    .header .container { flex-wrap: wrap; }
    .nav { order: 2; width: 100%; justify-content: center; margin-top: 10px; }
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .detail-header { flex-direction: column; align-items: center; text-align: center; }
    .dh-meta { grid-template-columns: 1fr; }
    .soft-card { flex-direction: column; align-items: center; text-align: center; }
}
