:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --primary: #2f7cff;
  --primary-700: #1c5ee0;
  --border: #e5e7eb;
  --success: #22c55e;
  --shadow-sm: 0 4px 12px rgba(23,50,100,0.06);
  --shadow-md: 0 10px 24px rgba(23,50,100,0.08);
  --radius: 14px;
  --accent-1: #8ab5ff;
  --accent-2: #a1e3ff;
  --accent-3: #c1ffd7;
  --header-bg: rgba(255,255,255,0.85);
  /* About page hero custom palette */
  --hero-1: #f0f4ff;
  --hero-2: #e9edff;
  --hero-3: #e6f9ff;
}

/* Dark mode variables */
[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #161b22;
  --text: #f0f6fc;
  --muted: #8b949e;
  --primary: #58a6ff;
  --primary-700: #4493f8;
  --border: #30363d;
  --success: #3fb950;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 10px 24px rgba(0,0,0,0.4);
  --accent-1: #.hero-inner58a6ff;
  --accent-2: #39d0d8;
  --accent-3: #56d364;
  --header-bg: rgba(22,27,34,0.85);
  /* About page hero custom palette */
  --hero-1: #0e1730;
  --hero-2: #0c1e3a;
  --hero-3: #0a2442;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a:link, a:visited {  text-decoration: none;}
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.logo { font-weight: 700; color: var(--text); text-decoration: none; font-size: 18px; }
.logo img { display: block; height: 40px; }
[data-theme="dark"] .logo img { filter: brightness(0) invert(1); }
.nav { display: flex; gap: 14px; }
.nav-item { padding: 8px 10px; color: var(--muted); text-decoration: none; border-radius: 8px; }
.nav-item.active, .nav-item:hover { color: var(--text); background: #f0f2f8; transition: background .2s ease, color .2s ease; }
[data-theme="dark"] .nav-item.active,
[data-theme="dark"] .nav-item:hover { background: #182036; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 4px; background: var(--surface); }
.search { position: relative; }
.search input { border: none; outline: none; padding: 8px 10px; width: 220px; font-size: 14px; }
.search button { border: none; background: transparent; width: 32px; height: 32px; cursor: pointer; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; height: 36px; width: 40px; cursor: pointer; align-items: center; justify-content: center; line-height: 1; font-size: 20px; }
.menu-toggle.active { background: #f0f4ff; border-color: #dfe6ff; }
.mobile-panel { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-700); }
.btn-secondary { background: #f5f7ff; border-color: #e3e7ff; color: #3050a0; }
.btn-secondary:hover { background: #e9edff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-lg { padding: 12px 18px; border-radius: 12px; font-weight: 600; }
/* Auth & User menu */
.auth-buttons { display: flex; gap: 8px; }
.user-area { position: relative; display: none; }
.user-area.show { display: inline-flex; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.avatar img{width: 100%; border-radius: 50%;}
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); display: none; z-index: 200; }
.user-dropdown.open { display: block; }
.user-dropdown .user-info { padding: 12px; border-bottom: 1px solid var(--border); }
.user-dropdown .name { font-weight: 600; }
.user-dropdown .menu { padding: 6px; }
.user-dropdown .dropdown-item { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; background: transparent; border: 0; width: 100%; text-align: left; border-radius: 8px; cursor: pointer; }
.user-dropdown .dropdown-item:hover { background: #f6f8ff; }
[data-theme="dark"] .user-dropdown .dropdown-item:hover { background: #1a2238; }
/* Mobile layout for user dropdown inside panel */
#mobilePanel .user-dropdown { position: relative; right: auto; top: 0; margin-top: 8px; width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #eaf2ff 0%, #f7fbff 40%, #e6f9ff 100%); border-bottom: 1px solid var(--border); }
.hero::before { content:""; position:absolute; width:360px; height:360px; left:-80px; top:-80px; background: radial-gradient(closest-side, var(--accent-2), transparent); filter: blur(20px); opacity:.6; }
.hero::after { content:""; position:absolute; width:420px; height:420px; right:-120px; bottom:-160px; background: radial-gradient(closest-side, var(--accent-3), transparent); filter: blur(24px); opacity:.5; }
[data-theme="dark"] .hero { background: linear-gradient(120deg, #0c1324 0%, #0e1526 40%, #0a1a26 100%); border-bottom: 1px solid var(--border); }
.hero::before { content:""; position:absolute; width:360px; height:360px; left:-80px; top:-80px; background: radial-gradient(closest-side, var(--accent-2), transparent); filter: blur(20px); opacity:.6; }
.hero::after { content:""; position:absolute; width:420px; height:420px; right:-120px; bottom:-160px; background: radial-gradient(closest-side, var(--accent-3), transparent); filter: blur(24px); opacity:.5; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 36px 0; height: 360px; box-sizing: border-box; }
.hero-copy .badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #ebf2ff; color: #2f5df7; font-weight: 600; }
[data-theme="dark"] .hero-copy .badge { background: rgba(88,166,255,0.18); color: #58a6ff; border: 1px solid var(--border); }
.hero-copy h1 { margin: 12px 0 10px; font-size: 32px; }
.hero-copy p { margin: 0 0 18px; color: var(--muted); }
.hero-illustration { display: flex; justify-content: center; }
.app-grid { display: grid; grid-template-columns: repeat(3, 100px); gap: 12px; }
.app-ghost { width: 100px; height: 80px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }


/* Notice bar */
.notice-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.notice-inner { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.notice-label { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #f0f4ff; color: #2f5df7; font-weight: 600; }
[data-theme="dark"] .notice-label { background: rgba(88,166,255,0.18); color: #58a6ff; border: 1px solid var(--border); }
.notice-items { overflow: hidden; position: relative; }
.notice-track { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;  }
.notice-items:hover .notice-track { }
.notice-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text); padding: 6px 10px; border-radius: 8px; background: #f8faff; font-size: 14px; text-decoration: none; }
.notice-item:hover { background: #f1f5ff; }
[data-theme="dark"] .notice-item { background: rgba(255,255,255,0.06); }
.notice-item .text { white-space: nowrap; }
.view-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.view-link:hover { text-decoration: underline; }

/* Notice stats (right side) */
.notice-items { flex: 1; }
.notice-stats { margin-left: auto; display: inline-flex; align-items: center; gap: 16px; }
.ns-item { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 8px; background: #f8faff; border: 1px solid var(--border); }
[data-theme="dark"] .ns-item { background: rgba(255,255,255,0.06); }
.ns-label { color: var(--muted); font-size: 13px; }
.ns-number { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }


/* Section */
.section { padding: 30px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
[data-theme="dark"] .section-alt { background: var(--bg); }
.section-hero { padding: 60px 0; background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 50%, var(--hero-3) 100%); }
[data-theme="dark"] .section-hero { background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 50%, var(--hero-3) 100%); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head h2 { position: relative; }
.section-head h2::after { content:""; position:absolute; left:0; bottom:-6px; width:48px; height:3px; border-radius:3px; background: linear-gradient(90deg, var(--primary), var(--accent-1)); opacity:.6; }
.with-switch { gap: 12px; }

.section.section-alt .section-head h2 { color: #173065; }
.section.section-alt .section-head h2::after { background: linear-gradient(90deg, #5b77ff, #7aa2ff); opacity: .7; }
.section.section-alt .section-subtitle { color: #5b6b8c; }

.section.section-alt .filter-bar { 
  background: linear-gradient(180deg, #f9fbff, #f3f7ff);
  border-color: #dfe6ff;
  box-shadow: 0 1px 2px rgba(23, 48, 101, 0.06);
}
.section.section-alt .filter-label { color: #5b6b8c; }

.section.section-alt .filter-bar .chip { 
  color: #4a5a7a; 
  background: #ffffff; 
  border-color: #dde5ff; 
}
.section.section-alt .filter-bar .chip:hover { 
  background: #eef3ff; 
  color: #1c2e55; 
  border-color: #d4defe;
}
.section.section-alt .filter-bar .chip.active { 
  background: linear-gradient(180deg, #f9fbff, #e8efff); 
  color: #122650; 
  border-color: #ced9ff; 
  box-shadow: var(--shadow-sm);
}
/* Hero Content */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-content h1 { font-size: 48px; font-weight: 700; margin: 0 0 16px; color: var(--text); }
.hero-subtitle { font-size: 18px; color: var(--muted); margin: 0 0 40px; line-height: 1.6; }
.game-hero { position: relative; padding: 80px 0; color: #fff; background:
  radial-gradient(1200px 1200px at 15% 15%, rgba(255, 160, 180, 0.28), transparent 40%),
  radial-gradient(900px 900px at 85% 25%, rgba(130, 190, 255, 0.22), transparent 42%),
  linear-gradient(135deg, #0c1438 0%, #151f49 55%, #1b2a66 100%);
  overflow: hidden;
}
.game-hero::before { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px);
  mix-blend-mode: overlay; pointer-events: none; }
.game-hero .page-title { color: #fff; font-size: 38px; letter-spacing: 0.4px; text-shadow: 0 4px 18px rgba(0,0,0,0.45); }
.game-hero .page-desc { color: rgba(255,255,255,0.88); margin-top: 12px; }
.game-hero .hero-stats { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; }
.game-hero .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 500; color: #173065; background: linear-gradient(180deg, #f0f5ff, #e2eaff); border: 1px solid #d8e0ff; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .game-hero { color: #fff; }
[data-theme="dark"] .game-hero .chip { color: #cfe2ff; background: linear-gradient(180deg, rgba(88,166,255,0.15), rgba(56,139,253,0.10)); border-color: #2a3553; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--muted); }

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.feature-card { background: var(--surface); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.feature-icon { font-size: 48px; margin-bottom: 20px; }
.feature-card h3 { margin: 0 0 12px; font-size: 18px; color: var(--text); }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Team Grid */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.team-member { text-align: center; }
.member-avatar { font-size: 64px; margin-bottom: 16px; }
.team-member h4 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.team-member p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Contact Section */
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-info h2 { margin: 0 0 16px; font-size: 28px; }
.contact-info > p { margin: 0 0 32px; color: var(--muted); font-size: 16px; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.contact-icon { font-size: 20px; }
.contact-illustration { display: flex; justify-content: center; }
.illustration { font-size: 120px; opacity: 0.8; }

/* 页面抬头与筛选器（重设计） */
.section-head--stack { flex-direction: column; align-items: flex-start; gap: 12px; }
.title-group { display: flex; flex-direction: column; gap: 6px; }
.section-subtitle { margin: 0; color: var(--muted); font-size: 14px; }

.filter-bar { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 10px; 
  padding: 12px; 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  background: var(--surface); 
  box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-label { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.sort-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar .category-chips { margin-bottom: 0; }
.filter-bar .chip { font-size: 13px; }
.pager .switch-btn { font-size: 13px; }

/* Single Page Layout */
.single-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .single-page { grid-template-columns: 1fr; }
}
.content-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.content-body h1,
.content-body h2,
.content-body h3 { margin-top: 0; }
.content-body p { color: var(--text); line-height: 1.7; }

/* Sidebar Nav Card */
.sidebar .sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar .sidebar-nav li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.sidebar .sidebar-nav li:last-child { border-bottom: 0; }
.sidebar .sidebar-nav a { color: var(--text); text-decoration: none; }
.sidebar .sidebar-nav .current a { color: var(--primary); font-weight: 600; }

@media (max-width: 640px) {
  .filter-bar { padding: 10px; }
  .filter-group { flex-wrap: wrap; }
}

/* Tabs */
.tabs { display: flex; gap: 8px; }
.tab { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.tab.active, .tab:hover { color: var(--text); background: #f6f8ff; border-color: #e0e6ff; }
.tab-panels .panel { display: none; }
.tab-panels .panel.active { display: block; }

/* App cards - 优化为左右布局 */
.app-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app-card { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 20px; 
  box-shadow: var(--shadow-sm); 
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .18s ease, box-shadow .18s ease; 
  text-decoration: none;
  color: inherit;
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Logo部分 */
.app-card .icon { 
  width: 72px; 
  height: 72px; 
  border-radius: 12px; 
  display: grid; 
  place-items: center; 
  background: #f3f6ff; 
  font-size: 28px;
  flex-shrink: 0;
}
[data-theme="dark"] .app-card .icon { background: rgba(255,255,255,0.06); }
/* Icon image inside card */
.app-card .icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }

/* 软件信息部分 */
.app-card .app-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-card h3 { 
  margin: 0; 
  font-size: 18px; 
  font-weight: 600;
}

.title-row { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

[data-theme="dark"] .version { background: rgba(88,166,255,0.18); border-color: var(--border); color: #58a6ff; }
.version {
  font-size: 12px;
  font-weight: 600;
  color: #173065;
  padding: 2px 8px;
  border: 1px solid #d8e0ff;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef4ff, #e8efff);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  line-height: 1;
  margin-top: 4px;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .version { background: rgba(255,255,255,0.06); border-color: var(--border); color: var(--muted); }

.app-card p { 
  margin: 0; 
  color: var(--muted); 
  font-size: 14px; 
  line-height: 1.4;
}

.app-card .btn {
  margin-top: 8px;
  align-self: flex-start;
}

/* Ranks */
.switch { display: flex; gap: 8px; }
.switch-btn { padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; }
.switch-btn.active { background: #f6f8ff; color: var(--text); border-color: #e0e6ff; }
[data-theme="dark"] .switch-btn.active { background: #202a40; color: var(--text); border-color: #33415e; }
.rank-panels .rank-panel { display: none; }
.rank-panels .rank-panel.active { display: block; }
.rank-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rank-column { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.rank-column h3 { margin: 0 0 8px; font-size: 15px; }
.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-list li { display: block; padding: 0; }
.rank-list li a.rank-item { display: grid; grid-template-columns: 32px 39px 1fr; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; color: inherit; }
.rank-list li a.rank-item:hover { background: #f7f9ff; }
.rank-list .no { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: #eef2ff; color: #3347a0; font-weight: 600; }
.rank-list .applogo { width: 39px; height: 39px; border-radius: 10px; display: grid; place-items: center; background: #f3f6ff; font-size: 24px; }
.rank-list .applogo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.rank-list .name { font-weight: 500; }
/* 元数据（增长百分比）右对齐显示 */
.rank-list .meta { display: none; }
/* 已移除日期与下载次数展示，.meta 不再使用 */
/* Dark theme rank item accents */
[data-theme="dark"] .rank-list .no { background: #182038; color: #8fb4ff; }
[data-theme="dark"] .rank-list .applogo { background: #1b2338; }
/* Hover in dark theme */
[data-theme="dark"] .rank-list li a.rank-item:hover { background: #1a2238; }

/* Collections */
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.collection-card { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.collection-card:hover { background: #f7f9ff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.collection-card .icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #f3f6ff; font-size: 22px; }
.collection-card .icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.collection-card h3 { margin: 2px 0; font-size: 16px; }
.collection-card p { margin: 0; color: var(--muted); font-size: 13px; }

/* Category chips & apps wall */
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.chip:link, .chip:visited { color: var(--muted); }
.chip:hover { background: #f6f8ff; color: var(--text); border-color: #e0e6ff; }
.chip.active { 
  background: linear-gradient(180deg, #f9fbff, #eef3ff); 
  color: var(--text); 
  border-color: #dfe6ff; 
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
[data-theme="dark"] .chip:hover { background: #1a2238; color: var(--text); border-color: #33415e; }
[data-theme="dark"] .chip.active { background: #202a40; color: var(--text); border-color: #33415e; box-shadow: var(--shadow-md); }
.apps-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.app-mini { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, background .16s; text-decoration: none; color: var(--text); }
.app-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #f7f9ff; }
.app-mini .icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg, #f5f8ff, #eef3ff); color:#3347a0; }
.app-mini .icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; display: block; }

/* --- Navigation dropdowns & responsive menu overrides --- */
/* 主导航（桌面） */
.nav { margin-left: 8px; }
.nav-list { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: inline-block; color: var(--muted); text-decoration: none; border-radius: 8px; }
.nav-link.active, .nav-link:hover { color: var(--text); background: #f0f2f8; transition: background .2s ease, color .2s ease; }
[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .nav-link:hover { background: #182036; }
/* 视觉分隔与间距 */
.nav-list > li:not(:first-child) .nav-link { border-left: none; padding-left: 0; margin-left: 0; }

/* 下拉菜单基础样式与延迟 */
.has-dropdown { position: relative; }
.has-dropdown > .dropdown { position: absolute; left: 0; top: 100%; min-width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(6px); pointer-events: none; visibility: hidden; z-index: 1100; transition: opacity .24s ease, transform .24s ease, visibility 0s linear .2s; transition-delay: 100ms; padding-top: 10px; }
.has-dropdown:hover > .dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; transition-delay: 0ms; transition: opacity .24s ease, transform .24s ease, visibility 0s linear 0s; }

/* 应用分类下拉：分组网格 */
.categories-dropdown .dropdown-inner { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 12px; padding: 14px; }
.dropdown-group { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--surface); }
.group-title { font-weight: 600; margin-bottom: 8px; color: var(--text); }
.dropdown-link { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.dropdown-link:hover { background: #f6f8ff; color: var(--text); }
[data-theme="dark"] .dropdown-link:hover { background: #1a2238; }

/* 系列软件下拉：列表或网格 */
.suites-dropdown .dropdown-inner { display: grid; grid-template-columns: repeat(1, minmax(120px, 1fr)); gap: 12px; padding: 14px; }
.suite-item { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); background: var(--surface); }
.suite-item:hover { background: #f6f8ff; }
[data-theme="dark"] .suite-item:hover { background: #1a2238; }
.suite-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #f3f6ff; }
[data-theme="dark"] .suite-icon { background: rgba(255,255,255,0.06); }
.suite-text { font-weight: 500; }

/* 菜单层级 */
.site-header { z-index: 1000; }

/* 移动端面板与汉堡菜单（纯CSS） */
.menu-toggle-checkbox { display: none; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; height: 36px; width: 40px; cursor: pointer; align-items: center; justify-content: center; line-height: 1; font-size: 20px; }
.mobile-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); z-index: 1200; padding: 12px 0; }
.mobile-nav { padding: 0 16px; }
.mobile-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mobile-link { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; border: 1px solid var(--border); background: var(--surface); }
.mobile-link.active, .mobile-link:hover { background: #f6f8ff; }
.mobile-has-sub { position: relative; }
.sub-toggle { display: none; }
.mobile-sub { display: none; padding: 8px 10px; }
.mobile-has-sub .sub-toggle:checked ~ .mobile-sub { display: grid; gap: 6px; }
.mobile-group { border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.mobile-group-title { font-weight: 600; margin-bottom: 6px; }
.mobile-sub-link { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.mobile-sub-link:hover { background: #f6f8ff; color: var(--text); }

/* 响应式：小屏幕切换为汉堡菜单 */
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  #menuToggle:checked ~ .mobile-panel { display: block; }
  .nav-list > li:not(:first-child) .nav-link { border-left: none; padding-left: 12px; margin-left: 0; }
  /* 移动端头部更简洁：隐藏操作区，仅保留汉堡与Logo */
  .header-actions { display: none; }
  .header-inner { gap: 12px; padding: 10px 0; }
  /* 移动面板更易读：更大点击区域，支持滚动 */
  .mobile-panel { padding: 14px 0; max-height: 80vh; overflow-y: auto; }
  .mobile-nav { padding: 0 16px; }
  .mobile-link { padding: 12px 14px; font-size: 16px; }
  .mobile-sub { padding: 10px 12px; }
  .mobile-group { padding: 10px; }
  /* 搜索输入在移动端占满宽度 */
  .mobile-panel .search { width: calc(100% - 32px); margin: 8px 16px; }
  .mobile-panel .search input { width: 100%; }
  /* 登录与用户区与面板对齐 */
  .mobile-panel .auth-buttons, .mobile-panel .user-area { margin: 8px 16px; }
  /* 移动端：主题按钮与用户区同一行展示 */
  .mobile-panel .mobile-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 16px; }
  .mobile-panel .user-area { display: flex; align-items: center; gap: 8px; }
  .mobile-panel .user-area .name { font-weight: 600; color: var(--text); }
}
.app-mini .name { font-size: 14px; font-weight: 500; }
.more-actions { display: flex; justify-content: center; margin-top: 12px; }

/* Footer */
.site-footer { padding: 20px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between;  padding-top: 18px; color: var(--muted); }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .app-cards { grid-template-columns: repeat(3, 1fr); }
  .rank-columns { grid-template-columns: 1fr 1fr; }
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .apps-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .app-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: nowrap; position: relative; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; }
  .nav.show { display: flex; position: absolute; left: 0; right: 0; top: calc(100% + 0px); background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 10px 16px; flex-direction: column; gap: 6px; }
  .mobile-panel { display: none; }
  .mobile-panel.show { display: grid; position: absolute; left: 0; right: 0; top: calc(100% + 120px); background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 10px 16px; gap: 8px; }
  .search input { width: 100%; }
  .hero-inner { padding: 24px 0; position: relative; color: #fff;}
  /* 移动端：为幻灯区域添加柔和遮罩，提升文字可读性 */
  .hero-inner::before { 
    content: ""; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(90deg, rgba(22,27,34,0.92) 0%, rgba(22,27,34,0.7) 55%, rgba(22,27,34,0.35) 100%);
    pointer-events: none;
  }
  /* 文字层置顶，避免被遮罩或背景覆盖 */
  .hero-copy { position: relative; z-index: 1; }
  .hero-copy p{ color: #fff;}
  .hero-copy .btn{ color: #fff;}
  .app-cards { grid-template-columns: 1fr; }
  .rank-columns { grid-template-columns: 1fr; }
  /* 榜单移动端适配：减小图标与编号，并压缩Meta列 */
.rank-list li { grid-template-columns: 28px 32px 1fr; }
.rank-list .logo { width: 32px; height: 32px; font-size: 18px; }
.rank-list .logo img { border-radius: 8px; }
  .rank-list .no { width: 22px; height: 22px; }
  .collection-grid { grid-template-columns: 1fr; }
  .apps-wall { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); overflow-x: auto; gap: 10px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .apps-wall::-webkit-scrollbar { height: 6px; }
  .apps-wall::-webkit-scrollbar-thumb { background: #dfe6ff; border-radius: 999px; }
  .app-mini { min-width: 160px; }
  .btn { min-height: 40px; }
}

/* TOC Navigation 样式 */
.toc-navigation {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
  transition: all 0.3s ease;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.toc-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.toc-toggle {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.toc-toggle:hover {
  background: var(--border);
}

.toc-nav {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px 0;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin: 0;
}

.toc-link {
  display: block;
  padding: 10px 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.toc-link:hover {
  color: var(--text);
  background: rgba(47, 124, 255, 0.05);
  border-left-color: var(--primary);
}

.toc-link.active {
  color: var(--primary);
  background: rgba(47, 124, 255, 0.08);
  border-left-color: var(--primary);
  font-weight: 500;
}

.toc-sub .toc-link {
  padding-left: 36px;
  font-size: 13px;
  color: var(--muted);
}

.toc-sub .toc-link::before {
  content: '└';
  position: absolute;
  left: 24px;
  color: var(--border);
}



/* 滚动条样式 */
.toc-nav::-webkit-scrollbar {
  width: 4px;
}

.toc-nav::-webkit-scrollbar-track {
  background: transparent;
}

.toc-nav::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.toc-nav::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* Dark mode overrides scoped to explicit toggle */
[data-theme="dark"] .search { background: var(--surface); }
[data-theme="dark"] .search input { background: transparent; color: var(--text); }
[data-theme="dark"] .search input::placeholder { color: var(--muted); }
[data-theme="dark"] .app-card:hover,
[data-theme="dark"] .collection-card:hover,
[data-theme="dark"] .app-mini:hover { background: #1a2238; }
[data-theme="dark"] .rank-list li:hover { background: #1a2238; }
[data-theme="dark"] .apps-wall::-webkit-scrollbar-thumb { background: #2a3553; }

/* --- Beautify additions --- */
/* Tabs refinements */
.tabs { position: relative; }
.tab { border-radius: 12px; box-shadow: var(--shadow-sm); transition: background .18s ease, box-shadow .18s ease, color .18s ease; }
.tab:hover { background: #f4f7ff; box-shadow: var(--shadow-md); }
.tab.active { background: linear-gradient(180deg, #f9fbff, #eef3ff); border-color: #dfe6ff; }
/* Dark theme tabs */
[data-theme="dark"] .tab { background: var(--bg); border-color: var(--border); color: var(--muted); }
[data-theme="dark"] .tab:hover { background: #1a2338; box-shadow: var(--shadow-md); color: var(--text); border-color: #2a3553; }
[data-theme="dark"] .tab.active { background: linear-gradient(180deg, rgba(88,166,255,0.14), rgba(56,139,253,0.10)); border-color: #2a3553; color: var(--text); }

/* App card corner badges */
.app-card { position: relative; }
.badge-corner { position: absolute; top: 12px; right: 12px; font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #173065; background: linear-gradient(90deg, #e8efff, #dfe6ff); border: 1px solid #d8e0ff; box-shadow: var(--shadow-sm); }
.badge-corner.hot { color: #5a1a1a; background: linear-gradient(90deg, #ffe8e8, #ffd7d7); border-color: #ffc9c9; }
.badge-corner.new { color: #145233; background: linear-gradient(90deg, #eafff3, #d9ffec); border-color: #c8f7de; }

/* Hero illustration subtle animation */
.app-ghost { will-change: transform; animation: floatY 6s ease-in-out infinite; }
.app-ghost:nth-child(odd) { animation-duration: 7.2s; animation-delay: .2s; }
.app-ghost:nth-child(3n) { animation-duration: 5.8s; animation-delay: .6s; }
@keyframes floatY { 0% { transform: translateY(0); } 50% { transform: translateY(-6px); } 100% { transform: translateY(0); } }

/* Chips refinements */
.chip { padding: 8px 14px; box-shadow: var(--shadow-sm); transition: background .18s ease, transform .18s ease, color .18s; }
.chip:hover { transform: translateY(-1px); background: #f5f8ff; }
.chip.active { color: var(--text); border-color: #dfe6ff; background: linear-gradient(180deg, #f9fbff, #eef3ff); }
/* Dark theme chips */
[data-theme="dark"] .chip { background: var(--bg); border-color: var(--border); color: var(--muted); }
[data-theme="dark"] .chip:hover,
[data-theme="dark"] .chip.active { background: rgba(88,166,255,0.12); border-color: #2a3553; color: var(--text); }

/* Pagination */
.pager { display: flex; justify-content: center; margin-top: 24px; }
.pager .pagination { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pager .pagination li { display: inline-flex; }
.pager .pagination li a,
.pager .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.pager .pagination li a:hover { background: #f7f9ff; border-color: #c9d8ff; color: #2b5acc; transform: translateY(-1px); }
.pager .pagination li.active span { background: #2b5acc; border-color: #2b5acc; color: #fff; }
.pager .pagination li.disabled span { opacity: .5; cursor: not-allowed; }

@media (max-width: 768px) {
  .pager { margin-top: 20px; }
  .pager .pagination li a,
  .pager .pagination li span { min-width: 32px; height: 32px; padding: 0 10px; }
}

[data-theme="dark"] .pager .pagination li a,
[data-theme="dark"] .pager .pagination li span { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .pager .pagination li a:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #8fb3ff; }
[data-theme="dark"] .pager .pagination li.active span { background: #4e74ff; border-color: #4e74ff; color: #fff; }

/* Rank growth bar */
.rank-list li { position: relative; }
.rank-list .growth { grid-column: 1 / -1; height: 4px; background: #eef2ff; border-radius: 6px; overflow: hidden; margin: 6px 8px 0; }
.rank-list .growth .bar { height: 100%; background: linear-gradient(90deg, #a8d5ff, #67c6ff); width: calc(min(100%, var(--val, 50) * 1%)); }

/* Dark mode growth bar */
[data-theme="dark"] .rank-list .growth { background: #202a46; }
[data-theme="dark"] .rank-list .growth .bar { background: linear-gradient(90deg, #3a6af0, #55a8ff); }
/* ========== Corner badges (CSS-only) ========== */
.app-wall .app-card { position: relative; }
.app-wall .app-card:nth-child(1)::after,
.app-wall .app-card:nth-child(2)::after {
  content: attr(data-badge);
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7b5a 0%, #ff3d7f 100%);
  box-shadow: 0 4px 14px rgba(255, 61, 127, 0.25);
  transform: rotate(2deg);
  pointer-events: none;
}
.app-wall .app-card:nth-child(1)::after { content: "热门"; }
.app-wall .app-card:nth-child(2)::after {
  content: "新";
  background: linear-gradient(135deg, #4ad5ff 0%, #437bff 100%);
  box-shadow: 0 4px 14px rgba(67, 123, 255, 0.25);
}

/* ========== Ranking growth bars (CSS-only) ========== */
.rank-list li { position: relative; padding-bottom: 18px; }
.rank-list li::after {
  content: "";
  position: absolute;
  left: 72px;
  right: 16px;
  bottom: 8px;
  height: 6px;
  background: var(--card);
  border-radius: var(--radius-md);
  opacity: 0.7;
}
.rank-list li::before {
  content: "";
  position: absolute;
  left: 72px;
  bottom: 8px;
  height: 6px;
  width: var(--p, 65%);
  background: linear-gradient(90deg, var(--accent-500), var(--accent-700));
  border-radius: var(--radius-md);
}
.rank-list ul li:nth-child(1) { --p: 92%; }
.rank-list ul li:nth-child(2) { --p: 72%; }
.rank-list ul li:nth-child(3) { --p: 46%; }

/* Dark mode tune for bars */
[data-theme="dark"] .rank-list li::after { background: rgba(255,255,255,0.08); opacity: 1; }
/* Hero Poster Styles */
.hero-poster {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-poster:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Dark mode adjustments for hero poster */
[data-theme="dark"] .hero-poster { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); filter: brightness(0.95) contrast(1.02); }
[data-theme="dark"] .hero-poster:hover { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); }

/* Mobile responsive adjustments for hero poster */
@media (max-width: 768px) {
    .hero-poster {
        max-width: 100%;
        border-radius: 12px;
    }
}

/* Hero Swiper Styles */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    display: flex;
    align-items: center;
}

/* Swiper Navigation Buttons */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: var(--bg);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 600;
}

/* Swiper Pagination */
.hero-swiper .swiper-pagination {
    bottom: 30px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Mobile adjustments for Swiper */
@media (max-width: 768px) {
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .hero-swiper .swiper-button-next::after,
    .hero-swiper .swiper-button-prev::after {
        font-size: 14px;
    }
    
    .hero-swiper .swiper-pagination {
        bottom: 20px;
    }
    
    .hero-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

/* Dark mode adjustments for Swiper */
[data-theme="dark"] .hero-swiper .swiper-button-next,
[data-theme="dark"] .hero-swiper .swiper-button-prev { background: var(--surface); color: var(--primary); border: 1px solid var(--border); }
[data-theme="dark"] .hero-swiper .swiper-button-next:hover,
[data-theme="dark"] .hero-swiper .swiper-button-prev:hover { background: var(--bg); }
[data-theme="dark"] .hero-swiper .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.9); }

/* Mobile responsive */
@media (max-width: 768px) {
  .app-cards { grid-template-columns: repeat(2, 1fr); }
  
  .app-card {
    padding: 16px;
    gap: 12px;
  }
  
  .app-card .icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  
  .app-card h3 {
    font-size: 16px;
  }
  
  .app-card p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .app-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .app-card .app-info {
    align-items: center;
  }
  
  .app-card .btn {
    align-self: center;
  }
}

/* Theme toggle button */
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg);
  border-color: var(--primary);
}

[data-theme="dark"] .theme-toggle {
  background: var(--surface);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--bg);
}
[data-theme="dark"] .search input { background: transparent; color: var(--text); }
[data-theme="dark"] .search input::placeholder { color: var(--muted); }
/* Search suggestions */
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); z-index: 100; max-height: 280px; overflow: auto; display: none; }
.search-suggest.show { display: block; }
.suggest-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; color: var(--text); cursor: pointer; }
.suggest-item:hover, .suggest-item.active { background: #f6f8ff; }
.suggest-item .type { color: var(--muted); font-size: 12px; }
.suggest-empty { padding: 10px 12px; color: var(--muted); }
.suggest-item mark { background: linear-gradient(90deg, #eef4ff, #e8efff); color: #173065; border-radius: 4px; padding: 0 2px; }
[data-theme="dark"] .search-suggest { background: var(--bg); }
[data-theme="dark"] .suggest-item:hover, [data-theme="dark"] .suggest-item.active { background: #1a2238; }
[data-theme="dark"] .suggest-item mark { background: rgba(88,166,255,0.14); }

/* ===== APP DETAIL PAGE STYLES ===== */

/* App Detail Hero */
.app-detail-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.app-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.app-icon img {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.app-info {
  flex: 1;
}

.app-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.app-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.app-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.app-meta span {
  color: #fff;
  font-size: 14px;
}


.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}



.app-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-large {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
}

.download-icon, .heart-icon {
  margin-right: 8px;
}

/* App Screenshots */
.app-screenshots {
  padding: 24px 0 0;
}

.app-screenshots h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
}

.screenshots-swiper {
  padding-bottom: 50px;
}

.screenshots-swiper .swiper-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
}

.screenshots-swiper .swiper-pagination {
  bottom: 0;
}

.screenshots-swiper .swiper-pagination-bullet {
  background: var(--primary);
  opacity: 0.3;
}

.screenshots-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

.screenshots-swiper .swiper-button-next,
.screenshots-swiper .swiper-button-prev {
  color: var(--primary);
  background: var(--surface);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  box-shadow: var(--shadow-sm);
}
/* 修复用户入口样式，使头像与昵称在一行居中对齐 */
.auth-buttons .user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
.auth-buttons .user-link:hover {
  background: rgba(0,0,0,0.05);
}
.site-body.dark .auth-buttons .user-link:hover {
  background: rgba(255,255,255,0.08);
}
.auth-buttons .avatar-img img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
}
.auth-buttons .user-name {
  font-size: 14px;
}
.auth-buttons .user-name .caret {
  display: inline-block;
  margin-left: 4px;
  transform: translateY(-1px);
  opacity: 0.7;
}

/* 悬停时显示用户菜单：优先支持 .auth-buttons 内置菜单，其次联动右侧 user-area */
.auth-buttons { position: relative; }
.auth-buttons .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 200;
  padding: 6px;
}
.auth-buttons .menu .dropdown-item {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
}
.auth-buttons .menu .dropdown-item:hover { background: #f6f8ff; }
[data-theme="dark"] .auth-buttons .menu .dropdown-item:hover { background: #1a2238; }
.auth-buttons:hover .menu { display: block; }
.auth-buttons .menu:hover { display: block; }

/* 当布局未将菜单置于 .auth-buttons 中时，悬停用户入口联动显示右侧 .user-area 菜单 */
.auth-buttons:hover + .user-area .user-dropdown { display: block; }
.auth-buttons + .user-area .user-dropdown:hover { display: block; }

/* 防抖缓冲：在触发区与菜单之间添加不可见桥接，避免鼠标移动过程闪烁 */
.auth-buttons { position: relative; }
.auth-buttons::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px; /* 覆盖与菜单之间的8px间隙，避免hover断层 */
}
@media (max-width: 768px) {
  /* 移动端仅显示头像，避免拥挤 */
  .auth-buttons .user-name { display: none; }
}
/* Lightbox for screenshots */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

[data-theme="dark"] .lightbox-close {
  background: var(--bg);
}

.screenshots-swiper .swiper-button-next:after,
.screenshots-swiper .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 600;
}

/* App Details */
.app-details {
  padding: 0 0 60px 0;
}

.details-grid {
  display: grid;
  grid-template-columns: 860px 300px;
  gap: 40px;
}

.main-content .section {
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
  margin-top: 24px;
}

.main-content .section:hover {
  box-shadow: var(--shadow-md);
}

.main-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin:0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-content h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent-1));
  border-radius: 2px;
}

/* 安装说明样式优化 */
.description {
  position: relative;
}

.description img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
}

.description p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 16px;
}

.description p:first-of-type {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(135deg, #f8faff, #f0f4ff);
  border: 1px solid #e6edff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
}

[data-theme="dark"] .description p:first-of-type {
  background: linear-gradient(135deg, rgba(88,166,255,0.08), rgba(88,166,255,0.12));
  border-color: rgba(88,166,255,0.2);
}

.description p:first-of-type::before {
  content: '💡';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 20px;
}

.description ul {
  color: var(--text);
  line-height: 1.6;
  padding-left: 0;
  list-style: none;
  background: #fafbff;
  border: 1px solid #f0f2f8;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}

[data-theme="dark"] .description ul {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
}

.description ul::before {
  content: '✨ 主要特性';
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 16px;
}

.description li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
}

.description li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: bold;
  width: 20px;
  height: 20px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.installation ol {
  color: var(--text);
  line-height: 1.6;
  padding-left: 0;
  list-style: none;
  counter-reset: step-counter;
}

.installation li {
  margin-bottom: 20px;
  padding: 20px 20px 20px 60px;
  position: relative;
  background: #f8faff;
  border: 1px solid #e6edff;
  border-radius: 12px;
  font-size: 15px;
  counter-increment: step-counter;
  transition: all 0.2s ease;
}

[data-theme="dark"] .installation li {
  background: rgba(88,166,255,0.06);
  border-color: rgba(88,166,255,0.15);
}

.installation li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.installation li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent-1));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(47, 124, 255, 0.3);
}

.installation li:nth-child(1)::after {
  content: '📥';
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 20px;
}

.installation li:nth-child(2)::after {
  content: '💿';
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 20px;
}

.installation li:nth-child(3)::after {
  content: '📁';
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 20px;
}

.installation li:nth-child(4)::after {
  content: '🚀';
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 20px;
}

.installation li:nth-child(5)::after {
  content: '⚙️';
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 20px;
}

/* 系统要求样式优化 */
/* System Requirements: text-only, compact */
.system-requirements {
  background: none;
  border: none;
  border-radius: 0;
  padding: 12px 0 0;
  margin-top: 16px;
  position: static;
  overflow: visible;
}

.system-requirements::before {
  content: none;
  display: none;
}

.system-requirements h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}

.system-requirements h3::before {
  content: none;
}

.system-requirements ul {
  color: var(--text);
  line-height: 1.5;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.system-requirements li {
  margin: 0;
  padding: 4px 0;
  background: none;
  border: none;
  border-radius: 0;
  position: static;
  font-size: 14px;
}

.system-requirements li::before {
  content: none;
  display: none;
}

/* Comments */
.comment-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.rating-overview {
  text-align: center;
}

.rating-score {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.rating-stars {
  color: #FFB800;
  font-size: 20px;
  margin: 8px 0;
}

.rating-count {
  color: var(--muted);
  font-size: 14px;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-bar {
  display: grid;
  grid-template-columns: 30px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--text);
}

.bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.comment {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.user-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.comment-date {
  color: var(--muted);
  font-size: 12px;
}

.comment-rating {
  color: #FFB800;
  font-size: 14px;
}

.comment-content {
  color: var(--text);
  line-height: 1.6;
}

.load-more {
  align-self: flex-start;
}

/* Comment Form */
.comment-form {
  margin-top: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-form label {
  font-size: 14px;
  color: var(--text-secondary);
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.comment-form textarea {
  resize: vertical;
}

@media (max-width: 768px) {
  .comment-form {
    padding: 12px;
    gap: 10px;
  }
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Breadcrumbs */
.breadcrumbs {
  border-bottom: 1px solid var(--border);
}
.breadcrumbs .container {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.breadcrumbs a {
  color: var(--primary);
}
.breadcrumbs .sep {
  color: var(--border);
}
.breadcrumbs .current {
  color: var(--text);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.post-navigation .label {
  color: var(--text-secondary);
  margin-right: 6px;
}
.post-navigation a {
  color: var(--primary);
}

/* 滚动到“软件介绍”后固定右侧栏 */
.sidebar-fixed {
  position: fixed;
  z-index: 10;
}

/* 窄屏（移动端）下禁用固定，保持正常布局 */
@media (max-width: 991px) {
  .sidebar-fixed {
    position: static;
    z-index: auto;
  }
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  margin-top: 0;
}

.info-card a {
  color: var(--primary);
}
.info-card .tag{
  display: inline-block;
  padding: 0px 4px;
  border-radius: 6px;
  font-weight: 500;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .label {
  color: var(--muted);
  font-size: 14px;
}

.info-item .value {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.related-apps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.related-apps h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  margin-top: 0;
}

.related-apps .app-name a {
  
  color: var(--text);
}

.related-apps .btn {
  border: 1px solid var(--border);
}

.related-apps a.btn:link,
.related-apps a.btn:visited {
  color: var(--primary);
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-item .app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.app-item .app-info {
  flex: 1;
}

.app-item .app-name {
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 2px;
}

.app-item .app-category {
  color: var(--muted);
  font-size: 12px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* Dark mode overrides */
[data-theme="dark"] .app-detail-hero {
  /* background: var(--surface); */
}

[data-theme="dark"] .system-requirements {
  background: var(--bg);
}

[data-theme="dark"] .comment-stats,
[data-theme="dark"] .comment,
[data-theme="dark"] .info-card,
[data-theme="dark"] .related-apps {
  background: var(--bg);
}

[data-theme="dark"] .screenshots-swiper .swiper-button-next,
[data-theme="dark"] .screenshots-swiper .swiper-button-prev {
  background: var(--bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .sidebar {
    order: -1;
  }
  
  .comment-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .app-detail-hero {
    padding: 24px 0;
  }
  
  .app-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .app-icon img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
  }
  
  .app-title {
    font-size: 24px;
  }
  
  .app-subtitle {
    font-size: 16px;
  }
  
  .app-meta {
    justify-content: center;
  }
  
  .app-actions {
    justify-content: center;
  }
  
  .app-screenshots {
    padding: 24px 0 32px;
  }
  
  .screenshots-swiper .swiper-slide img {
    height: 200px;
  }
  
  .main-content h2 {
    font-size: 20px;
  }
  
  .comment-stats {
    padding: 16px;
  }
  
  .rating-score {
    font-size: 36px;
  }
  
  .comment {
    padding: 16px;
  }
  
  .info-card,
  .related-apps {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .app-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-large {
    width: 100%;
    justify-content: center;
  }
  
  .screenshots-swiper .swiper-button-next,
  .screenshots-swiper .swiper-button-prev {
    display: none;
  }
}

/* ===== 游戏推荐区块 ===== */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); min-height: 220px; }
.game-card .cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.45)); }
[data-theme="dark"] .game-card .overlay { background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.55)); }
.game-card .g-info { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-card .g-top h3 { margin: 0; font-size: 18px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.game-card .rating { display: inline-flex; align-items: center; gap: 6px; }
.game-card .rating .stars { color: #FFB800; }
.game-card .score { font-weight: 600; }
.game-card .g-actions{ min-width: 126px;}
.game-card .g-actions .btn { box-shadow: var(--shadow-sm); }
.game-card.featured { grid-column: span 2; min-height: 280px; }
@media (max-width: 1024px) { .game-grid { grid-template-columns: 1fr 1fr; } .game-card.featured { grid-column: 1 / -1; } }
@media (max-width: 640px) { .game-grid { grid-template-columns: 1fr; } .game-card { min-height: 200px; } }

/* ===== Mac 文章区块 ===== */
.article-tabs { display: flex; gap: 8px; }
.atab { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; box-shadow: var(--shadow-sm); }
.atab.active, .atab:hover { background: #f6f8ff; color: var(--text); border-color: #e0e6ff; }
[data-theme="dark"] .atab.active { background: #202a40; color: #fff; border-color: #33415e; }
[data-theme="dark"] .atab:hover { background: #202a40; color: #fff; border-color: #33415e; }
.article-panels .apanel { display: none; }
.article-panels .apanel.active { display: block; }
.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.article-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, background .18s; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #f7f9ff; }
/* 限制文章标题为两行，超出隐藏 */
.article-card h3 { 
  margin: 8px 0 6px; 
  line-height: 1.4; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.article-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.article-excerpt { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.article-meta .type { padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; background: #f8faff; }
@media (max-width: 1024px) { .article-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .article-list { grid-template-columns: 1fr; } .article-card { padding: 14px; } }
[data-theme="dark"] .article-card:hover { background: #1a2238; }
[data-theme="dark"] .article-meta .type { background: rgba(255,255,255,0.06); border-color: var(--border); }
/* Comment components (migrated from addons/cms/view/new/common/comment.html) */
.comments .comment-form .form-group { position: relative; }
.comments .comment-form button.btn { display: inline-block; vertical-align: middle; }
.comments .comment-form .submit-tips { display: inline-block; margin-left: 10px; color: #6b7280; font-size: 13px; }
.comments .comment-form .form-group textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  /* Avoid overlap with char-counter bubble */
  padding-right: 72px;
  min-height: 120px;
}
.comments .comment-form .form-group .char-counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
}

/* Empty list visual divider */
.comment-list .nodata {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  color: #9aa1a9;
  font-size: 13px;
  position: relative;
}
.comment-list .nodata::before,
.comment-list .nodata::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 0 10px;
}
.comment-list .nodata .loadmore-tips {
  padding: 2px 10px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
}

/* Reply button only visible on hover */
.comment-list .comment .reply { display: none; opacity: 0; transition: opacity .2s ease; }
.comment-list .comment:hover .reply { display: inline; opacity: 1; }
.comment-list .comment a { color: var(--primary); text-decoration: none; }

.favorited {
  background: #ff4757; /* 更显眼的高亮色 */
  color: #fff;
  border-color: #ff4757;
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.35);
  transition: background-color .2s ease, box-shadow .2s ease, transform .1s ease;
  animation: fav-pop 160ms ease-out;
}
.favorited:hover {
  box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.45);
  transform: translateY(-1px);
}
.favorited .heart-icon {
  color: #fff;
}