/* AI导航 - 主样式 v2.0 */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --card: #16161f;
  --card-hover: #1e1e2a;
  --border: #2a2a3a;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --text-dim: #555577;
  --primary: #6c63ff;
  --primary-dark: #5a52e0;
  --accent: #ff6b9d;
  --green: #4ade80;
  --yellow: #fbbf24;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Noto Sans SC', 'Inter', sans-serif; line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Navbar */
.navbar { max-height: 56px; overflow: visible; position: sticky; top: 0; z-index: 100; background: rgba(10,10,15,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 0.4rem; font-size: 1.1rem; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.logo-icon { font-size: 1.5rem; }
.logo-accent { color: var(--primary); }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav-link { padding: 0.4rem 0.9rem; border-radius: 8px; font-size: 0.9rem; color: var(--text-muted); transition: all 0.2s; white-space: nowrap; }
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-submit { background: var(--primary); color: white !important; }
.nav-submit:hover { background: var(--primary-dark) !important; }
.nav-search-mini { flex: 1; max-width: 280px; }
.nav-search-input { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.8rem; color: var(--text); font-size: 0.85rem; outline: none; }
.nav-search-input:focus { border-color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }
.mobile-menu { display: none; background: var(--bg2); border-top: 1px solid var(--border); padding: 1rem; }
.mobile-link { display: block; padding: 0.6rem 1rem; color: var(--text-muted); border-radius: 8px; }
.mobile-link:hover { background: var(--bg3); color: var(--text); }

/* Hero */
.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,0.15) 0%, transparent 70%); pointer-events: none; }
.hero-content { text-align: center; position: relative; }
.hero-badge { display: inline-block; background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3); color: var(--primary); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.85rem; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-subtitle strong { color: var(--text); }

/* Search Box */
.hero-search { max-width: 680px; margin: 0 auto 1.5rem; }
.search-box { display: flex; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 50px; padding: 0.4rem 0.4rem 0.4rem 1.2rem; gap: 0.5rem; transition: border-color 0.2s; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.search-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 1rem; }
.search-box input::placeholder { color: var(--text-muted); }
.search-box button { background: var(--primary); color: white; border: none; border-radius: 40px; padding: 0.6rem 1.5rem; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.search-box button:hover { background: var(--primary-dark); }
.search-box-sm { border-radius: 12px; padding: 0.3rem 0.3rem 0.3rem 1rem; }
.search-box-sm button { border-radius: 8px; }

/* Hero Tags */
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center; }
.tag-label { color: var(--text-muted); font-size: 0.85rem; }
.hero-tag { background: var(--bg3); border: 1px solid var(--border); padding: 0.3rem 0.8rem; border-radius: 100px; font-size: 0.82rem; color: var(--text-muted); transition: all 0.2s; }
.hero-tag:hover { border-color: var(--primary); color: var(--primary); }

/* Stats Bar */
.stats-bar { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item, .stat-card { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-dark { background: var(--bg2); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title { font-size: 1.4rem; font-weight: 700; }
.see-all { color: var(--primary); font-size: 0.9rem; transition: opacity 0.2s; }
.see-all:hover { opacity: 0.8; }

/* Categories Grid */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; }
.cat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 0.75rem; text-align: center; transition: all 0.2s; display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }
.cat-card:hover { border-color: var(--primary); background: var(--card-hover); transform: translateY(-2px); }
.cat-icon { font-size: 1.8rem; }
.cat-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.cat-count { font-size: 0.75rem; color: var(--text-muted); }

/* Tools Grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: all 0.2s; display: flex; flex-direction: column; gap: 0.75rem; cursor: pointer; }
.tool-card:hover { border-color: var(--primary); background: var(--card-hover); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.tool-card-header { display: flex; align-items: flex-start; gap: 0.75rem; }
.tool-logo { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg3); display: flex; align-items: center; justify-content: center; }
.tool-logo img { width: 100%; height: 100%; object-fit: cover; }
.tool-logo-fallback { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; color: white; flex-shrink: 0; }
.tool-logo-fallback-lg { width: 72px; height: 72px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: white; flex-shrink: 0; }
.tool-meta { flex: 1; min-width: 0; }
.tool-name { font-size: 0.95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-category { font-size: 0.75rem; color: var(--text-muted); }
.tool-badges { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-end; flex-shrink: 0; }
.badge { font-size: 0.68rem; padding: 0.15rem 0.5rem; border-radius: 100px; font-weight: 600; }
.badge-free { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.badge-new { background: rgba(251,191,36,0.15); color: var(--yellow); border: 1px solid rgba(251,191,36,0.3); }
.badge-hot { background: rgba(255,107,157,0.15); color: var(--accent); border: 1px solid rgba(255,107,157,0.3); }
.tool-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.tool-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); }
.tool-pricing { background: var(--bg3); padding: 0.15rem 0.5rem; border-radius: 4px; }

/* Page Layout */
.page-header { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 2rem 0; }
.page-header h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--primary); }
.page-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; }

/* Sidebar */
.sidebar { position: sticky; top: 80px; height: fit-content; }
.sidebar-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem; }
.sidebar-link { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.88rem; color: var(--text-muted); transition: all 0.15s; margin-bottom: 0.15rem; }
.sidebar-link:hover { background: var(--bg3); color: var(--text); }
.sidebar-link.active { background: rgba(108,99,255,0.15); color: var(--primary); }
.sidebar-count { font-size: 0.75rem; background: var(--bg3); padding: 0.1rem 0.4rem; border-radius: 100px; }

/* Filter Bar */
.filter-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.sort-tabs { display: flex; gap: 0.25rem; background: var(--bg3); padding: 0.25rem; border-radius: 8px; }
.sort-tab { padding: 0.35rem 0.9rem; border-radius: 6px; font-size: 0.85rem; color: var(--text-muted); transition: all 0.15s; }
.sort-tab:hover, .sort-tab.active { background: var(--card); color: var(--text); }
.filter-btn { padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; color: var(--text-muted); transition: all 0.15s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); color: var(--primary); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.page-btn { background: var(--card); border: 1px solid var(--border); padding: 0.5rem 1.2rem; border-radius: 8px; font-size: 0.9rem; transition: all 0.15s; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-info { color: var(--text-muted); font-size: 0.85rem; }

/* Tool Detail */
.tool-detail-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; }
.tool-detail-header { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tool-detail-info { flex: 1; }
.tool-detail-info h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.tool-name-en { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.tool-detail-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.tool-category-badge { background: rgba(108,99,255,0.15); color: var(--primary); padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.82rem; }
.tool-views { color: var(--text-muted); font-size: 0.82rem; }
.tool-detail-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.tool-detail-body h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.tool-full-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.tool-tags { margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.tag { background: var(--bg3); border: 1px solid var(--border); padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.8rem; color: var(--text-muted); transition: all 0.15s; }
.tag:hover { border-color: var(--primary); color: var(--primary); }
.tool-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; background: var(--bg2); border-radius: var(--radius-sm); padding: 1.25rem; }
.info-item { display: flex; flex-direction: column; gap: 0.25rem; }
.info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.info-value { font-size: 0.9rem; font-weight: 500; }
.info-link { color: var(--primary); }
.related-section h2 { font-size: 1.2rem; margin-bottom: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.5rem 1.2rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; font-family: inherit; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline.liked { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.8rem; }

/* CTA */
.cta-section { background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(255,107,157,0.1)); }
.cta-box { text-align: center; padding: 3rem; }
.cta-box h2 { font-size: 1.8rem; margin-bottom: 0.75rem; }
.cta-box p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Forms */
.submit-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.9rem; font-weight: 600; }
.required { color: var(--accent); }
.form-group input, .form-group textarea, .form-group select { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem 1rem; color: var(--text); font-size: 0.9rem; outline: none; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group select option { background: var(--bg2); }

/* Alert */
.alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.9rem; }
.alert-success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: var(--green); }

/* Empty State */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text); }
.empty-state a { color: var(--primary); }

/* Admin */
.admin-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th { background: var(--bg3); padding: 0.75rem 1rem; text-align: left; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--bg3); }
.admin-table a { color: var(--primary); }

/* Footer */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-size: 1.2rem; font-weight: 700; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.footer-domain { color: var(--primary) !important; font-weight: 600; margin-top: 0.5rem !important; }
.footer-links h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem; }
.footer-links a { display: block; font-size: 0.85rem; color: var(--text-muted); padding: 0.25rem 0; transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; font-size: 0.82rem; color: var(--text-muted); }
.footer-bottom a { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   新功能样式 v2.0
   ═══════════════════════════════════════════════════════════════ */

/* 今日推荐 */
.daily-picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.daily-pick-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: all 0.2s; display: flex; flex-direction: column; gap: 0.75rem; position: relative; overflow: hidden; }
.daily-pick-card:hover { border-color: var(--yellow); background: var(--card-hover); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(251,191,36,0.1); }
.daily-pick-badge { font-size: 0.75rem; color: var(--yellow); background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.2); padding: 0.2rem 0.6rem; border-radius: 100px; display: inline-block; width: fit-content; }
.daily-pick-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); }

/* 今日推荐详情页 */
.daily-picks-list { display: flex; flex-direction: column; gap: 1rem; }
.daily-pick-detail { display: flex; gap: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: all 0.2s; }
.daily-pick-detail:hover { border-color: var(--primary); }
.daily-pick-rank { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: white; flex-shrink: 0; }
.daily-pick-content { flex: 1; }
.history-list { display: flex; flex-direction: column; gap: 0.5rem; }
.history-item { display: flex; justify-content: space-between; padding: 0.75rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }

/* 快捷功能入口 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: all 0.2s; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.feature-card:hover { border-color: var(--primary); background: var(--card-hover); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; }
.feature-card h3 { font-size: 1rem; font-weight: 600; }
.feature-card p { font-size: 0.82rem; color: var(--text-muted); }

/* 工具详情页快捷链接 */
.tool-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.quick-link-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; transition: all 0.2s; display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.quick-link-card:hover { border-color: var(--primary); background: var(--card-hover); transform: translateY(-2px); }
.quick-link-card span:first-child { font-size: 1.5rem; }

/* 评分评论 */
.rating-display { color: var(--yellow); font-size: 0.82rem; }
.rating-overview { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; padding: 1.5rem; background: var(--bg2); border-radius: var(--radius-sm); }
.rating-big { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.rating-number { font-size: 3rem; font-weight: 700; color: var(--yellow); line-height: 1; }
.rating-stars { display: flex; gap: 0.15rem; }
.star { color: var(--border); font-size: 1.2rem; }
.star.filled { color: var(--yellow); }
.star-input { display: flex; gap: 0.25rem; }
.star-btn { font-size: 1.8rem; color: var(--border); cursor: pointer; transition: color 0.15s; }
.star-btn.filled { color: var(--yellow); }
.star-btn:hover { color: var(--yellow); }
.review-form { background: var(--bg2); border-radius: var(--radius-sm); padding: 1.5rem; margin-bottom: 2rem; }
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item { background: var(--bg2); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.review-stars { display: flex; gap: 0.1rem; }
.review-comment { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* 工具对比 */
.compare-search-box { position: relative; margin-bottom: 1.5rem; }
.compare-search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-radius: 8px; max-height: 300px; overflow-y: auto; z-index: 50; margin-top: 0.25rem; }
.compare-result-item { padding: 0.75rem 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.15s; }
.compare-result-item:hover { background: var(--bg3); }
.compare-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.compare-tag { background: rgba(108,99,255,0.15); color: var(--primary); padding: 0.35rem 0.75rem; border-radius: 100px; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.compare-tag button { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.9rem; padding: 0; }
.compare-table th, .compare-table td { min-width: 150px; vertical-align: top; }

/* 收藏夹 */
.fav-actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.fav-count-badge { background: rgba(108,99,255,0.15); color: var(--primary); padding: 0.35rem 0.75rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; }

/* 周报 */
.weekly-list { display: flex; flex-direction: column; gap: 1rem; }
.weekly-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: all 0.2s; display: block; }
.weekly-card:hover { border-color: var(--primary); background: var(--card-hover); }
.weekly-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.weekly-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.weekly-badge { font-size: 0.78rem; background: rgba(108,99,255,0.15); color: var(--primary); padding: 0.2rem 0.6rem; border-radius: 100px; }
.weekly-read-more { color: var(--primary); font-size: 0.85rem; display: inline-block; margin-top: 0.75rem; }
.weekly-preview-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: block; transition: all 0.2s; }
.weekly-preview-card:hover { border-color: var(--primary); background: var(--card-hover); }
.weekly-preview-header { margin-bottom: 0.75rem; }
.weekly-preview-header h3 { font-size: 1.2rem; margin-top: 0.5rem; }

/* 教程内容 */
.tutorial-content { line-height: 1.8; color: var(--text-muted); }
.tutorial-content h2 { font-size: 1.3rem; color: var(--text); margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.tutorial-content h3 { font-size: 1.1rem; color: var(--text); margin: 1.5rem 0 0.75rem; }
.tutorial-content p { margin-bottom: 1rem; }
.tutorial-content li { margin-left: 1.5rem; margin-bottom: 0.5rem; }
.tutorial-content strong { color: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .sidebar-title { width: 100%; }
  .sidebar-link { padding: 0.35rem 0.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-quick-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-search-mini { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .mobile-menu.open { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .tool-detail-header { flex-direction: column; }
  .tool-detail-actions { flex-direction: row; }
  .tool-info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .tool-quick-links { grid-template-columns: 1fr; }
  .daily-picks-grid { grid-template-columns: 1fr; }
  .daily-pick-detail { flex-direction: column; gap: 1rem; }
}


/* ═══════════════════════════════════════════════════════════════
   新功能样式 v3.0 — 排行榜、标签、场景、截图
   ═══════════════════════════════════════════════════════════════ */

/* 排行榜 Tabs */
.ranking-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; background: var(--bg2); padding: 0.35rem; border-radius: 12px; flex-wrap: wrap; }
.ranking-tab { padding: 0.6rem 1.2rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); transition: all 0.2s; white-space: nowrap; }
.ranking-tab:hover { color: var(--text); }
.ranking-tab.active { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(108,99,255,0.3); }

/* 排行榜筛选 */
.ranking-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-chip { padding: 0.35rem 0.9rem; border: 1px solid var(--border); border-radius: 100px; font-size: 0.82rem; color: var(--text-muted); transition: all 0.15s; white-space: nowrap; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: rgba(108,99,255,0.15); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* 排行榜列表 */
.ranking-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ranking-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.2s; }
.ranking-item:hover { border-color: var(--primary); background: var(--card-hover); transform: translateX(4px); }
.ranking-rank { width: 40px; text-align: center; font-size: 1.1rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.ranking-rank.top3 { font-size: 1.5rem; }
.ranking-logo { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg3); display: flex; align-items: center; justify-content: center; }
.ranking-logo img { width: 100%; height: 100%; object-fit: cover; }
.ranking-info { flex: 1; min-width: 0; }
.ranking-info h3 { font-size: 0.95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.15rem; }
.ranking-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; flex-shrink: 0; }
.ranking-stat-main { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.ranking-stat-sub { font-size: 0.75rem; color: var(--text-muted); }
.ranking-badges { display: flex; gap: 0.25rem; flex-shrink: 0; }

/* 首页排行榜迷你版 */
.ranking-mini { display: flex; flex-direction: column; gap: 0.5rem; }
.ranking-mini-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.2s; }
.ranking-mini-item:hover { border-color: var(--primary); background: var(--card-hover); }
.ranking-mini-rank { width: 32px; text-align: center; font-size: 1rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.ranking-mini-rank.top3 { font-size: 1.3rem; }
.ranking-mini-logo { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg3); display: flex; align-items: center; justify-content: center; }
.ranking-mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.ranking-mini-info { flex: 1; min-width: 0; }
.ranking-mini-info strong { font-size: 0.9rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-mini-views { font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; padding: 1rem 0; }
.tag-cloud-item { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); transition: all 0.2s; }
.tag-cloud-item:hover { border-color: var(--primary); color: var(--primary); background: rgba(108,99,255,0.08); transform: translateY(-2px); }
.tag-count { font-size: 0.72rem; background: var(--bg3); padding: 0.1rem 0.4rem; border-radius: 100px; }
.tag-sm { font-size: 0.82rem; }
.tag-md { font-size: 0.92rem; font-weight: 500; }
.tag-lg { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.tag-xl { font-size: 1.2rem; font-weight: 700; color: var(--primary); border-color: var(--primary); background: rgba(108,99,255,0.08); }
.tag-active { background: rgba(108,99,255,0.15); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* 首页热门标签 */
.home-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.home-tag { padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: 100px; font-size: 0.85rem; color: var(--text-muted); transition: all 0.2s; }
.home-tag:hover { border-color: var(--primary); color: var(--primary); }
.home-tag.tag-hot { color: var(--primary); border-color: rgba(108,99,255,0.3); background: rgba(108,99,255,0.08); font-weight: 600; }
.home-tag span { font-size: 0.75rem; color: var(--text-muted); }

/* 相关标签 */
.related-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* 场景推荐 */
.scenes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.scene-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; transition: all 0.2s; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.scene-card:hover { border-color: var(--primary); background: var(--card-hover); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.scene-icon { font-size: 2.5rem; }
.scene-name { font-size: 1.1rem; font-weight: 700; }
.scene-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.scene-arrow { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-top: auto; }
.scene-intro h2 { font-size: 1.3rem; }

/* 首页场景推荐 chips */
.scenes-grid-home { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.scene-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; background: var(--card); border: 1px solid var(--border); border-radius: 100px; font-size: 0.9rem; font-weight: 500; color: var(--text); transition: all 0.2s; }
.scene-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(108,99,255,0.08); transform: translateY(-2px); }
.scene-chip-icon { font-size: 1.1rem; }

/* 工具截图 */
.tool-screenshot { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.tool-screenshot img { width: 100%; display: block; }

/* Footer 5列 */
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }

/* 快捷链接4列 */
.tool-quick-links { grid-template-columns: repeat(4, 1fr); }

/* 功能入口6列 */
.feature-grid { grid-template-columns: repeat(6, 1fr); }

/* Responsive v3 */
@media (max-width: 1024px) {
  .ranking-tabs { gap: 0.25rem; }
  .ranking-item { padding: 0.75rem 1rem; }
  .scenes-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-quick-links { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .ranking-tabs { flex-direction: column; }
  .ranking-tab { text-align: center; }
  .ranking-filters { gap: 0.35rem; }
  .ranking-item { flex-wrap: wrap; }
  .ranking-stats { flex-direction: row; gap: 0.5rem; }
  .ranking-badges { display: none; }
  .scenes-grid { grid-template-columns: 1fr; }
  .scenes-grid-home { gap: 0.5rem; }
  .scene-chip { font-size: 0.82rem; padding: 0.5rem 0.9rem; }
  .tag-cloud { gap: 0.5rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-quick-links { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   新功能样式 v4.0 — 智能搜索、评论互动、移动端适配、社交分享
   ═══════════════════════════════════════════════════════════════ */

/* 智能搜索框 */
.smart-search-box { display: flex; align-items: center; background: var(--card); border: 2px solid var(--border); border-radius: 16px; padding: 0.5rem; margin-bottom: 1.5rem; transition: border-color 0.2s; }
.smart-search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,99,255,0.1); }
.smart-search-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-size: 1rem; padding: 0.75rem 1rem; font-family: inherit; }
.smart-search-input::placeholder { color: var(--text-muted); }

/* 搜索意图解析卡片 */
.search-intent-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.search-intent-title { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.75rem; }
.search-intent-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.intent-tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.75rem; border-radius: 100px; font-size: 0.82rem; font-weight: 500; background: var(--bg3); color: var(--text); }
.intent-tag-category { background: rgba(108,99,255,0.12); color: var(--primary); }
.intent-tag-price { background: rgba(16,185,129,0.12); color: #10b981; }
.intent-tag-feature { background: rgba(245,158,11,0.12); color: #f59e0b; }

/* 评论互动升级 */
.review-input { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.75rem; color: var(--text); outline: none; width: 100%; font-size: 0.9rem; transition: border-color 0.2s; }
.review-input:focus { border-color: var(--primary); }

.review-sort-tabs { display: flex; gap: 0.25rem; background: var(--bg2); padding: 0.25rem; border-radius: 8px; }
.review-sort-tab { padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); transition: all 0.15s; white-space: nowrap; }
.review-sort-tab:hover { color: var(--text); }
.review-sort-tab.active { background: var(--primary); color: white; }

.review-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; padding-top: 0.5rem; }
.review-action-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem; border: none; background: transparent; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; border-radius: 6px; transition: all 0.15s; }
.review-action-btn:hover { background: var(--bg3); color: var(--text); }
.review-action-btn.liked { color: var(--primary); }
.review-report-btn:hover { color: #ef4444; }

.review-replies { margin-top: 0.75rem; padding-left: 1.5rem; border-left: 2px solid var(--border); }
.review-reply-item { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.review-reply-item:last-child { border-bottom: none; }

.review-reply-form { margin-top: 0.75rem; padding: 1rem; background: var(--bg2); border-radius: 8px; display: flex; flex-direction: column; gap: 0.5rem; }

/* 举报弹窗选项 */
.report-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 0.9rem; transition: background 0.15s; }
.report-option:hover { background: var(--bg3); }
.report-option input[type="radio"] { accent-color: var(--primary); }

/* Toast 提示 */
.toast-msg { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--card); color: var(--text); padding: 0.75rem 1.5rem; border-radius: 12px; font-size: 0.9rem; box-shadow: 0 8px 30px rgba(0,0,0,0.2); border: 1px solid var(--border); z-index: 10000; opacity: 0; transition: all 0.3s ease; pointer-events: none; }
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 按钮小尺寸 */
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; }

/* ═══════════════════════════════════════════════════════════════
   移动端底部导航栏
   ═══════════════════════════════════════════════════════════════ */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); z-index: 9998; padding: 0.35rem 0; padding-bottom: env(safe-area-inset-bottom, 0.35rem); }
.mobile-bottom-nav-inner { display: flex; justify-content: space-around; align-items: center; max-width: 500px; margin: 0 auto; }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.35rem 0.5rem; color: var(--text-muted); font-size: 0.68rem; font-weight: 500; transition: color 0.15s; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mobile-nav-item .nav-icon { font-size: 1.25rem; line-height: 1; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item:active { color: var(--primary); }

@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 70px; } /* 为底部导航留空间 */
  
  /* 搜索框移动端适配 */
  .smart-search-box { flex-direction: column; padding: 0.5rem; }
  .smart-search-input { font-size: 0.9rem; padding: 0.5rem 0.75rem; }
  .smart-search-box .btn { width: 100%; }
  
  /* 评论排序移动端 */
  .review-sort-tabs { width: 100%; }
  .review-sort-tab { flex: 1; text-align: center; }
  
  /* 评论回复移动端 */
  .review-replies { padding-left: 0.75rem; }
  .review-actions { gap: 0.5rem; }
  .review-action-btn { font-size: 0.75rem; padding: 0.2rem 0.4rem; }
  
  /* 工具卡片触摸优化 */
  .tool-card { -webkit-tap-highlight-color: transparent; }
  .tool-card:active { transform: scale(0.98); }
  
  /* 搜索意图卡片移动端 */
  .search-intent-tags { gap: 0.35rem; }
  .intent-tag { font-size: 0.78rem; padding: 0.3rem 0.6rem; }
  
  /* 工具详情页移动端优化 */
  .tool-detail-actions { flex-wrap: wrap; }
  .tool-detail-actions .btn { flex: 1; min-width: 80px; font-size: 0.82rem; padding: 0.5rem; }
  
  /* 分享按钮移动端 */
  .tool-detail-actions .btn:last-child { flex: 0 0 auto; }
}

/* 小屏幕额外优化 */
@media (max-width: 480px) {
  .mobile-nav-item { font-size: 0.62rem; }
  .mobile-nav-item .nav-icon { font-size: 1.15rem; }
  
  /* 评论表单紧凑 */
  .review-form { padding: 1rem; }
  .review-form h3 { font-size: 1rem; }
  
  /* 工具详情页紧凑 */
  .tool-detail-card { padding: 1rem; }
  .tool-detail-header { gap: 0.75rem; }
  .tool-detail-info h1 { font-size: 1.2rem; }
  .tool-detail-meta { gap: 0.35rem; }
  .tool-detail-meta > * { font-size: 0.78rem; }
}

/* Moltbook Logo Styles */
.nav-logo-img { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; object-fit: contain; }
.logo-text-group { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.region-badge { display: inline-block; background: #e53e3e; color: white; font-size: 0.6rem; padding: 1px 5px; border-radius: 3px; margin-left: 4px; vertical-align: middle; font-weight: 600; }
.logo-sub { font-size: 0.65rem; color: var(--text-muted); font-weight: 400; margin-top: -1px; }

/* Light theme adjustments */
[data-theme="light"] .region-badge { background: #e53e3e; }
