/* 首页专用样式：来自本地设计稿 index.html，放在 pc_style.css 之后加载，
   用于还原被其它页面样式覆盖的首页规则（导航条、section 标题、排行榜、礼包区等） */
/* ===== CSS Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-50: #e6faf6; --brand-100: #b2f2e6; --brand-500: #00bfa5; --brand-600: #00a68f; --brand-700: #008c79;
  --white: #fff; --black: #000;
  --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937;
  --red-50: #fef2f2; --red-500: #ef4444; --red-600: #dc2626;
  --orange-50: #fff7ed; --orange-400: #fb923c; --orange-500: #f97316;
  --yellow-50: #fefce8; --yellow-500: #eab308;
  --green-50: #f0fdf4; --green-500: #22c55e;
  --teal-50: #f0fdfa; --teal-500: #14b8a6;
  --blue-50: #eff6ff; --blue-100: #dbeafe; --blue-500: #3b82f6;
  --indigo-50: #eef2ff; --indigo-500: #6366f1;
  --purple-50: #faf5ff; --purple-100: #f3e8ff; --purple-500: #a855f7;
  --pink-50: #fdf2f8; --pink-500: #ec4899;
  --cyan-50: #ecfeff; --cyan-500: #06b6d4;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05); --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06); --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
  --radius-sm: 6px; --radius: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-2xl: 20px; --radius-full: 9999px;
  --transition: 0.2s ease; --transition-slow: 0.35s ease;
  --font: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-700); background: var(--gray-50); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }

/* ===== Grid ===== */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1,1fr); }
.grid-cols-2 { grid-template-columns: repeat(2,1fr); }
.grid-cols-4 { grid-template-columns: repeat(4,1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
  .sm\:grid-cols-6 { grid-template-columns: repeat(6,1fr); }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6,1fr); }
  .md\:grid-cols-8 { grid-template-columns: repeat(8,1fr); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-left { text-align: left; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
  .lg\:grid-cols-8 { grid-template-columns: repeat(8,1fr); }
  .lg\:grid-cols-10 { grid-template-columns: repeat(10,1fr); }
}

/* ===== Spacing ===== */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.875rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.875rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pl-3 { padding-left: 0.875rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.875rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ===== Typography ===== */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-relaxed { line-height: 1.625; }

/* ===== Colors ===== */
.text-white { color: var(--white); }
.text-black { color: var(--black); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-brand-500 { color: var(--brand-500); }
.text-brand-600 { color: var(--brand-600); }
.text-brand-700 { color: var(--brand-700); }
.text-blue-500 { color: var(--blue-500); }
.text-green-500 { color: var(--green-500); }
.text-red-500 { color: var(--red-500); }
.text-orange-500 { color: var(--orange-500); }
.text-purple-500 { color: var(--purple-500); }
.text-cyan-500 { color: var(--cyan-500); }
.text-yellow-500 { color: var(--yellow-500); }
.text-indigo-500 { color: var(--indigo-500); }
.text-pink-500 { color: var(--pink-500); }
.text-teal-500 { color: var(--teal-500); }
.bg-white { background: var(--white); }
.bg-gray-50 { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }
.bg-gray-200 { background: var(--gray-200); }
.bg-gray-800 { background: var(--gray-800); }
.bg-brand-500 { background: var(--brand-500); }
.bg-brand-600 { background: var(--brand-600); }
.bg-brand-700 { background: var(--brand-700); }
.bg-blue-50 { background: var(--blue-50); }
.bg-red-50 { background: var(--red-50); }
.bg-green-50 { background: var(--green-50); }
.bg-orange-50 { background: var(--orange-50); }
.bg-purple-50 { background: var(--purple-50); }
.bg-cyan-50 { background: var(--cyan-50); }
.bg-yellow-50 { background: var(--yellow-50); }
.bg-indigo-50 { background: var(--indigo-50); }
.bg-pink-50 { background: var(--pink-50); }
.bg-teal-50 { background: var(--teal-50); }

/* ===== Borders & Radius ===== */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--gray-200); }
.border-2 { border-width: 2px; }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-l-4 { border-left: 4px solid; }
.border-gray-200 { border-color: var(--gray-200); }
.border-brand-500 { border-color: var(--brand-500); }

/* ===== Shadows ===== */
.shadow { box-shadow: var(--shadow); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ===== Transitions ===== */
.transition { transition: all var(--transition); }
.transition-slow { transition: all var(--transition-slow); }
.transition-transform { transition: transform var(--transition-slow); }

/* ===== Hover ===== */
.hover\:text-brand-600:hover { color: var(--brand-600); }
.hover\:text-white:hover { color: var(--white); }
.hover\:bg-brand-50:hover { background: var(--brand-50); }
.hover\:bg-brand-600:hover { background: var(--brand-600); }
.hover\:bg-gray-50:hover { background: var(--gray-50); }
.hover\:bg-gray-100:hover { background: var(--gray-100); }
.hover\:border-brand-500:hover { border-color: var(--brand-500); }
.hover\:shadow-md:hover { box-shadow: var(--shadow-md); }
.hover\:shadow-xl:hover { box-shadow: var(--shadow-xl); }
.hover\:scale-110:hover { transform: scale(1.1); }

/* ===== Group Hover ===== */
.group:hover .group-hover\:text-brand-600 { color: var(--brand-600); }
.group:hover .group-hover\:translate-x-0\.5 { transform: translateX(2px); }
.group:hover .group-hover\:shadow-xl { box-shadow: var(--shadow-xl); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* ===== Pointer Events ===== */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ===== Opacity ===== */
.opacity-90 { opacity: 0.9; }

/* ===== Transform ===== */
.-translate-x-1\/2 { transform: translateX(-50%); }
.translate-y-0 { transform: translateY(0); }

/* ===== Custom Components ===== */

/* Top bar */
.top-bar { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); font-size: 0.75rem; color: rgba(255,255,255,0.6); padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.top-bar a { color: rgba(255,255,255,0.55); transition: color 0.2s; font-size: 0.7rem; }
.top-bar a:hover { color: var(--brand-500); }
.top-bar .tb-brand { color: var(--brand-500); font-weight: 600; }

/* Header */
.site-header { background: var(--white); padding: 1.25rem 0 1rem; position: relative; }

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 3px 12px rgba(0,166,143,0.25); transition: all 0.3s; display: flex; }
.logo-icon:hover { transform: scale(1.08) rotate(-3deg); box-shadow: 0 6px 24px rgba(0,166,143,0.45); }
.logo-icon-svg { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-text h1 { font-size: 1.2rem; font-weight: 700; color: var(--gray-800); letter-spacing: -0.01em; line-height: 1.2; }
.logo-text h1 .brand { color: var(--brand-600); font-weight: 800; }
.logo-text p { font-size: 0.75rem; color: var(--gray-400); letter-spacing: 0.5px; }

/* Search */
.search-wrap { flex: 1; max-width: 600px; }
.search-box { display: flex; border-radius: var(--radius-full); overflow: hidden; border: 1.5px solid var(--gray-200); background: var(--gray-50); box-shadow: none; transition: all 0.25s; }
.search-box:focus-within { background: var(--white); border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(0,191,165,0.12); }
.search-box input { flex: 1; padding: 0.7rem 1.25rem; outline: none; border: none; background: transparent; font-size: 0.875rem; color: var(--gray-700); }
.search-box input::placeholder { color: var(--gray-400); }
.search-box button { background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: var(--white); padding: 0.7rem 1.5rem; font-weight: 600; font-size: 0.875rem; transition: all 0.3s; border-radius: var(--radius-full); margin: 3px; }
.search-box button:hover { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); box-shadow: 0 4px 12px rgba(0,191,165,0.3); }
.search-hot { margin-top: 0.5rem; font-size: 0.75rem; color: var(--gray-400); padding: 0 0.25rem; }
.search-hot a { margin-left: 0.5rem; }
.search-hot a:hover { color: var(--brand-600); }

/* Quick links */
.quick-link { display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; color: var(--gray-400); transition: all 0.25s; padding: 0.375rem 0.625rem; border-radius: var(--radius-lg); }
.quick-link:hover { color: var(--brand-600); background: var(--brand-50); transform: translateY(-1px); }
.quick-link .ql-icon { width: 32px; height: 32px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; margin-bottom: 2px; transition: all 0.25s; }
.quick-link:hover .ql-icon { background: var(--brand-50); border-color: var(--brand-500); transform: translateY(-2px); }

/* === Navigation === */
.nav-main { background: linear-gradient(135deg, #00897b, #00a68f 40%, #00bfa5); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 0.375rem; padding: 0.7rem 1.6rem; font-size: 1.0rem; font-weight: 500; color: rgba(255,255,255,0.92); transition: all 0.2s; white-space: nowrap; border-radius: var(--radius); margin: 2px 3px; }
.nav-item > a:hover, .nav-item > a.active { background: rgba(255,255,255,0.15); color: #fff; }
.nav-item > a.active { background: rgba(255,255,255,0.2); color: #fff; border-radius: var(--radius); }
/* Dropdown */
.nav-dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 140px; border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.15); overflow: hidden; z-index: 100; }
.nav-item:hover .nav-dropdown { display: block; animation: fadeDown 0.2s ease; }
.nav-item > a.has-sub::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid rgba(255,255,255,0.7); margin-left: 2px; vertical-align: middle; }
.nav-dropdown a { display: block; padding: 10px 18px; color: #555; font-size: 0.75rem; font-weight: 400; transition: all 0.15s; }
.nav-dropdown a:hover { background: var(--brand-50); color: var(--brand-500); }

/* === Carousel === */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); height: 340px; }
.carousel-track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.carousel-slide { min-width: 100%; position: relative; background: #1f2a44; }
.carousel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.carousel-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.1) 100%); pointer-events: none; }
.carousel-content { position: absolute; bottom: 0; left: 0; padding: 1.75rem; color: var(--white); pointer-events: none; z-index: 5; }
.carousel-tag { display: inline-block; font-size: 0.75rem; padding: 0.25rem 0.875rem; border-radius: var(--radius-full); margin-bottom: 0.5rem; font-weight: 500; }
.carousel-tag.hero { background: var(--brand-500); }
.carousel-tag.update { background: #eab308; color: #000; }
.carousel-tag.event { background: #ef4444; }
.carousel-content h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.35rem; }
.carousel-content p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 1rem; }
.carousel-content .carousel-btn,.carousel-content a.carousel-btn { background: var(--white); color: var(--brand-600); padding: 0.5rem 1.25rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; pointer-events: auto; cursor: pointer; transition: all var(--transition); }
.carousel-content .carousel-btn:hover,.carousel-content a.carousel-btn:hover { background: #f0fdfa; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; z-index: 10; backdrop-filter: blur(8px); border: none; opacity: 0; transform: translateY(-50%) scale(0.9); }
.carousel:hover .carousel-arrow { opacity: 1; transform: translateY(-50%) scale(1); }
.carousel-arrow:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.15) !important; }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 20; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; border: none; }
.carousel-dot.active { width: 28px; border-radius: 5px; background: var(--brand-500); }

/* === CSS Icons (rendered as <img> placeholders) === */
.app-icon {
  width: var(--icon-size, 56px); height: var(--icon-size, 56px);
  border-radius: var(--radius-2xl); object-fit: cover; display: block;
  flex-shrink: 0; background: var(--gray-200);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.app-icon span { display: none; }
.editor-card .app-icon { width: 64px; height: 64px; }
.side-update-icon { width: 42px; height: 42px; border-radius: var(--radius-lg); object-fit: cover; display: block; flex-shrink: 0; background: var(--gray-200); }
.rank-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); object-fit: cover; display: block; flex-shrink: 0; background: var(--gray-200); }
.update-card .app-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius-lg); display: block; object-fit: cover; transition: transform 0.3s; }

/* === Hero Grid === */
.hero-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 1.25rem; align-items: stretch; }
.hero-left { display: flex; flex-direction: column; gap: 1.25rem; }

/* === Hot Picks === */
.hot-picks { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow); padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.hot-picks-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.875rem; }
.hot-picks-title { font-weight: 700; color: var(--gray-800); font-size: 0.95rem; }
.hot-picks-more { font-size: 0.75rem; color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.hot-picks-more:hover { color: var(--brand-600); }
.hot-picks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem; flex: 1; }
.hot-pick-item {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.7rem 0.8rem; border-radius: var(--radius-xl);
  text-decoration: none; transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  background: var(--hp-bg, var(--gray-50)); position: relative; overflow: hidden;
}
.hot-pick-item::after {
  content: ''; position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--hp-accent, var(--brand-500));
  opacity: 0; transition: all 0.3s; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9l-7 7-7-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.hot-pick-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); background: #fff; }
.hot-pick-item:hover .hot-pick-dl { opacity: 1; }
.hot-pick-item .app-icon { flex-shrink: 0; }
.hot-pick-info { flex: 1; min-width: 0; }
.hot-pick-name { font-size: 0.85rem; font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-pick-sub { font-size: 0.75rem; color: var(--gray-400); margin-top: 1px; }
.hot-pick-meta-row { display: flex; align-items: center; gap: 0.35rem; margin-top: 3px; }
.hot-pick-star { color: #f6b93b; font-size: 0.7rem; letter-spacing: 1px; }
.hot-pick-score { font-size: 0.75rem; color: var(--hp-accent, var(--brand-500)); font-weight: 700; }
.hot-pick-dl-size { font-size: 0.65rem; color: var(--gray-400); margin-left: auto; }
.hot-pick-dl {
  font-size: 0.7rem; color: #fff; font-weight: 700;
  background: var(--hp-accent, var(--brand-500)); padding: 3px 10px; border-radius: var(--radius-full);
  opacity: 0; transform: translateX(-4px); transition: all 0.3s; flex-shrink: 0; white-space: nowrap;
}

/* === Side Panel === */
.side-panel { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.side-panel-header { padding: 1rem 1.25rem 0; }
.side-panel-header .section-title { font-size: 1rem; }
.side-panel-tabs { display: flex; gap: 4px; margin-top: 0.875rem; background: var(--gray-100); padding: 3px; border-radius: var(--radius-full); position: relative; }
.side-panel-tab { flex: 1; text-align: center; padding: 7px 0; font-size: 0.75rem; font-weight: 600; color: var(--gray-500); border-radius: var(--radius-full); cursor: pointer; transition: all 0.25s; border: none; background: none; position: relative; z-index: 1; }
.side-panel-tab.active { background: var(--white); color: var(--brand-500); box-shadow: 0 2px 8px rgba(0,0,0,0.08); font-weight: 700; }
.side-panel-tab:hover:not(.active) { color: var(--gray-700); }

/* === Side article list === */
.side-article-list { padding: 0.5rem 1rem 1rem; flex: 1; overflow-y: auto; }
.side-article-item {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--gray-100);
  text-decoration: none; transition: all 0.2s;
}
.side-article-item:last-child { border-bottom: none; }
.side-article-item:hover { padding-left: 0.25rem; }
.side-article-thumb {
  width: 70px; height: 52px; border-radius: var(--radius-lg);
  background: var(--brand-500);
  display: block; object-fit: cover;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.side-article-body { flex: 1; min-width: 0; }
.side-article-title {
  font-size: 0.75rem; font-weight: 500; color: var(--gray-800);
  line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.side-article-item:hover .side-article-title { color: var(--brand-600); }
.side-article-meta {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 0.3rem;
  font-size: 0.7rem; color: var(--gray-400);
}
.side-article-meta span:first-child {
  background: var(--gray-100); padding: 1px 8px; border-radius: var(--radius-full);
  color: var(--gray-500);
}


/* === 新游首发 === */
.new-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.new-game-card {
  display: block; text-decoration: none; color: inherit; position: relative;
  border-radius: var(--radius-2xl); overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-100);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}
.new-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.11);
}
.new-game-poster {
  height: 170px; position: relative; overflow: hidden;
  background: #1f2a44;
}
.new-game-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: blur(22px); transform: scale(1.35); opacity: 0.6; }
.new-game-poster::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, transparent 30%, rgba(0,0,0,0.65) 100%);
}
.new-game-poster::after {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.05); z-index: 0;
}
.new-game-poster-bottom {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  display: flex; align-items: center; gap: 12px; z-index: 2;
}
.new-game-icon {
  width: 46px; height: 46px; border-radius: var(--radius-lg);
  display: block; object-fit: cover; flex-shrink: 0; background: var(--gray-200);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.35);
  transition: transform 0.3s;
}
.new-game-card:hover .new-game-icon { transform: scale(1.1); }
.new-game-poster-name {
  color: #fff; font-size: 1.05rem; font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.new-game-badge {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.62rem; padding: 4px 10px;
  border-radius: var(--radius-full); font-weight: 700;
  border: 1px solid rgba(255,255,255,0.18); letter-spacing: 1px;
}
.new-game-hot {
  position: absolute; top: 0; left: 0; z-index: 10;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff; font-size: 0.6rem;
  padding: 3px 10px; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700; letter-spacing: 1px;
}
.new-game-info {
  padding: 10px 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.new-game-tag { font-size: 0.72rem; color: var(--gray-400); }
.new-game-data { display: flex; align-items: center; justify-content: space-between; }
.new-game-stats { font-size: 0.72rem; color: var(--gray-400); font-weight: 500; }
.new-game-btn {
  display: inline-block; text-decoration: none; text-align: center;
  border: none; border-radius: var(--radius-full); padding: 6px 20px;
  font-size: 0.75rem; font-weight: 700; color: #fff; cursor: pointer;
  transition: all 0.25s; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  line-height: 1.4;
}
.new-game-btn.reserve { background: linear-gradient(135deg, var(--brand-500), #00a890); }
.new-game-btn.reserve:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,191,165,0.35); }
.new-game-btn.dl { background: linear-gradient(135deg, #ff6b6b, #e55039); }
.new-game-btn.dl:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,107,107,0.35); }

@media (max-width: 1024px) { .new-game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .new-game-grid { grid-template-columns: 1fr; } }

.side-update-list { flex: 1; padding: 0.375rem 1.25rem 1rem; overflow: hidden; display: flex; flex-direction: column; }
.side-update-item {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.75rem 0.625rem; margin: 0 -0.25rem;
  border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: all 0.25s cubic-bezier(0.25,0.46,0.45,0.94);
}
.side-update-item:not(:last-child) { border-bottom: 1px solid var(--gray-100); }
.side-update-item:hover {
  background: linear-gradient(90deg, rgba(0,191,165,0.05), rgba(0,191,165,0.02));
  border-bottom-color: transparent;
}
.side-update-item::after {
  content: '→'; position: absolute; right: 0.75rem;
  color: var(--brand-500); font-size: 0.9rem; font-weight: 700;
  opacity: 0; transform: translateX(-6px);
  transition: all 0.25s;
}
.side-update-item:hover::after { opacity: 1; transform: translateX(0); }
.side-update-icon {
  width: 44px; height: 44px; border-radius: 50%;
  flex-shrink: 0; display: block; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.45);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.25);
  background: var(--gray-200); transition: all 0.3s;
}
.side-update-item:hover .side-update-icon { transform: scale(1.1) rotate(-5deg); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.side-update-info { flex: 1; min-width: 0; transition: transform 0.25s; }
.side-update-item:hover .side-update-info { transform: translateX(2px); }
.side-update-name { font-size: 0.875rem; font-weight: 700; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.side-update-item:hover .side-update-name { color: var(--brand-600); }
.side-update-time {
  font-size: 0.65rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--gray-100); color: var(--gray-500);
  white-space: nowrap; transition: all 0.25s;
}
.side-update-item:hover .side-update-time { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.side-update-time:has(.green) { background: rgba(0,191,165,0.1); color: var(--brand-600); }
.side-update-time:has(.orange) { background: rgba(243,156,18,0.1); color: #e67e22; }
.side-update-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.side-update-dot.green { background: var(--green-500); box-shadow: 0 0 0 2px rgba(0,191,165,0.2); animation: pulse-dot 1.5s infinite; }
.side-update-dot.orange { background: var(--orange-400); }
.side-update-dot.gray { background: var(--gray-400); }
.side-panel .tab-panel { flex: 1; display: flex; flex-direction: column; }
.side-panel .tab-panel:not(.active) { display: none; }

@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* === Section Titles === */
.section-title { font-weight: 700; color: var(--gray-800); border-left: none; padding-left: 0; font-size: 1.125rem; display: flex; align-items: center; gap: 0.5rem; }
.section-title::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--brand-500); flex-shrink: 0; }
.section-subtitle { font-weight: 700; color: var(--gray-700); display: flex; align-items: center; gap: 0.5rem; }
.section-subtitle::before { content: ''; width: 4px; height: 16px; background: var(--brand-500); border-radius: 2px; }

/* === Cards === */
.card-white { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow); padding: 1.25rem; }

/* ===== 开服表 ===== */
.server-table { width: 100%; font-size: 0.85rem; }
.server-thead, .server-row {
  display: grid;
  grid-template-columns: 2.6fr 1.5fr 1.2fr 1fr 0.9fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.6rem;
}
.server-thead { color: var(--gray-500); font-weight: 600; border-bottom: 1px solid var(--gray-100); }
.server-row { border-bottom: 1px solid var(--gray-100); transition: background 0.2s; }
.server-row:hover { background: var(--gray-50); }
.server-row:last-child { border-bottom: none; }
.col-game { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.server-icon { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.server-game-info { min-width: 0; }
.server-name { font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-type { font-size: 0.72rem; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-time { color: var(--gray-700); font-variant-numeric: tabular-nums; }
.col-platform { color: var(--gray-500); font-size: 0.8rem; }
.server-status { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.server-status.soon { background: rgba(9,132,227,0.12); color: #0984e3; }
.server-status.today { background: rgba(0,184,148,0.14); color: #00b894; }
.server-status.hot { background: rgba(225,112,85,0.14); color: #e17055; }
.server-status.opened { background: var(--gray-100); color: var(--gray-500); }
.server-btn { display: inline-block; padding: 5px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.server-btn.reserve { background: var(--brand-500); color: #fff; }
.server-btn.reserve:hover { background: var(--brand-600); }
.server-btn.enter { background: var(--brand-50); color: var(--brand-600); }
.server-btn.enter:hover { background: var(--brand-100); }
.server-btn.disabled { background: var(--gray-100); color: var(--gray-400); cursor: default; }
@media (max-width: 640px) {
  .server-thead .col-platform, .server-row .col-platform { display: none; }
  .server-thead, .server-row { grid-template-columns: 2.4fr 1.4fr 1fr 0.9fr; }
  .server-icon { width: 36px; height: 36px; }
}

/* 精品大作 */
.masterpiece-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.master-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border-radius: var(--radius-2xl); overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-100);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
}
.master-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-2xl);
  background: linear-gradient(160deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.55) 100%),
              var(--mp-accent, linear-gradient(135deg, var(--brand-500), var(--brand-600)));
  opacity: 0; transition: opacity 0.35s; z-index: 0;
}
.master-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); border-color: transparent; }
.master-card:hover::before { opacity: 1; }
.master-card > * { position: relative; z-index: 1; }
/* Cover area */
.master-cover {
  width: 100%; height: 140px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: #1f2a44;
}
.master-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: blur(22px); transform: scale(1.4); opacity: 0.65; }
.master-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}
.master-cover-icon {
  width: 56px; height: 56px; border-radius: var(--radius-xl);
  display: block; object-fit: cover;
  position: relative; z-index: 3; background: var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 3px solid rgba(255,255,255,0.4);
  transition: all 0.35s;
}
.master-card:hover .master-cover-icon { transform: scale(1.12) rotate(-5deg); border-color: rgba(255,255,255,0.7); }
.master-cover-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.6rem; padding: 3px 10px;
  border-radius: var(--radius-full); font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2); letter-spacing: 0.5px;
}
.master-cover-name {
  position: absolute; bottom: 10px; left: 12px; z-index: 3;
  color: #fff; font-size: 0.95rem; font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
/* Body */
.master-body { flex: 1; padding: 0.875rem 1rem 0; display: flex; flex-direction: column; gap: 6px; }
.master-desc {
  font-size: 0.72rem; color: var(--gray-500); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.35s;
}
.master-card:hover .master-desc { color: rgba(255,255,255,0.9); }
.master-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.master-tag {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 0.6rem; font-weight: 600; background: var(--tag-bg, var(--brand-50));
  color: var(--tag-color, var(--brand-600)); transition: all 0.35s;
}
.master-card:hover .master-tag { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); }
/* Footer */
.master-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.625rem 1rem 0.875rem;
}
.master-star { color: #f6b93b; font-size: 0.7rem; letter-spacing: 0.5px; transition: color 0.35s; }
.master-card:hover .master-star { color: rgba(255,255,255,0.9); }
.master-rating { font-size: 0.78rem; font-weight: 700; color: var(--gray-700); margin-left: 2px; transition: color 0.35s; }
.master-card:hover .master-rating { color: #fff; }
.master-size { font-size: 0.62rem; color: var(--gray-400); margin-left: 4px; transition: color 0.35s; }
.master-card:hover .master-size { color: rgba(255,255,255,0.7); }
.master-dl-btn {
  display: inline-block; text-decoration: none; text-align: center;
  border: none; border-radius: var(--radius-full); padding: 5px 16px;
  font-size: 0.7rem; font-weight: 700; color: #fff;
  background: var(--mp-accent, var(--brand-500));
  cursor: pointer; transition: all 0.25s; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.master-dl-btn:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.master-card:hover .master-dl-btn { background: rgba(255,255,255,0.95); color: var(--mp-accent-text, #1a1a2e); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

@keyframes floatMaster {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 1024px) {
  .masterpiece-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-article-row { flex-direction: column; }
  .article-section { width: 100%; }
}
@media (max-width: 600px) {
  .masterpiece-grid { grid-template-columns: 1fr; }
}


/* 热门标签（导航栏下方，药丸流式 + 纯 CSS 展开） */
.home-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; background: var(--white, #fff); border: 1px solid var(--gray-200, #eef0f3); border-radius: var(--radius-xl, 16px); padding: 14px 20px; max-width: min(var(--max-w) - 2rem, 100% - 2rem); margin: 18px auto 0; }
.home-tags-label { font-size: 14px; font-weight: 700; color: var(--gray-800, #1f2329); margin-right: 2px; white-space: nowrap; }
.home-tags-list { display: flex; flex-wrap: wrap; gap: 8px 10px; flex: 1 1 auto; align-items: center; }
.home-tag { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid #d9dee3; color: var(--gray-700, #4b5563); font-size: 13px; line-height: 1.4; text-decoration: none; white-space: nowrap; transition: all .2s ease; }
.home-tag:hover { background: var(--brand-600, #00a68f); border-color: var(--brand-600, #00a68f); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,166,143,.18); }
.home-tags-more { display: none; }
.home-tags-chk:checked ~ .home-tags-list .home-tags-more { display: inline-flex; flex-wrap: wrap; gap: 8px 10px; }
.home-tags-toggle { cursor: pointer; color: var(--brand-600, #00a68f); font-size: 13px; font-weight: 600; user-select: none; white-space: nowrap; margin-left: 2px; }
.home-tags-toggle:hover { color: var(--brand-700, #00897b); }
.home-tags-toggle .t-collapse { display: none; }
.home-tags-chk:checked ~ .home-tags-list .home-tags-toggle .t-expand { display: none; }
.home-tags-chk:checked ~ .home-tags-list .home-tags-toggle .t-collapse { display: inline; }
.home-tags .caret { font-style: normal; font-size: 11px; }

/* App cards */
.app-card { display: block; background: var(--gray-50); border-radius: var(--radius-xl); padding: 0.875rem; text-align: center; transition: all var(--transition); }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.app-card .app-icon { display: block; margin: 0 auto 0.5rem; }
.app-card .app-name { font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card .app-cat { font-size: 0.75rem; color: var(--gray-400); margin-top: 2px; }

/* Tabs */
.tab-btn { padding: 0.375rem 1rem; border-radius: var(--radius-full); border: 1px solid var(--gray-200); font-size: 0.75rem; font-weight: 500; color: var(--gray-600); background: transparent; transition: all var(--transition); }
.tab-btn:hover { border-color: var(--brand-500); color: var(--brand-600); }
.tab-btn.active { background: var(--brand-500); color: var(--white); border-color: var(--brand-500); }

/* Topic banners */
.topic-banner { display: block; border-radius: var(--radius-xl); overflow: hidden; position: relative; height: 96px; transition: transform var(--transition-slow); }
.topic-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.topic-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.topic-banner span { position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index: 1; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 600; font-size: 0.875rem; padding: 0 1rem; text-align: center; }

/* Update cards */
.update-card {
  display: flex; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-xl);
  background: var(--white); border: 1px solid var(--gray-100);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.25s cubic-bezier(0.25,0.46,0.45,0.94);
  text-decoration: none; color: inherit;
}
.update-card:hover {
  border-color: var(--brand-200); box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.update-card .app-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.75rem; color: #fff; transition: transform 0.3s;
}
.update-card:hover .app-icon { transform: scale(1.08); }
.update-card .update-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.update-card .app-name { font-weight: 600; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gray-800); transition: color var(--transition); }
.update-card:hover .app-name { color: var(--brand-600); }
.update-card .update-time { font-size: 0.65rem; color: var(--gray-400); display: flex; align-items: center; gap: 0.25rem; }
.update-dot { width: 6px; height: 6px; border-radius: 50%; }
.update-dot.green { background: var(--green-500); }
.update-dot.orange { background: var(--orange-400); }
.update-dot.gray { background: var(--gray-400); }

.article-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.5rem; border-radius: var(--radius); transition: background var(--transition); }
.article-row:not(:last-child) { border-bottom: 1px solid var(--gray-100); }
.article-row:hover { background: var(--gray-50); }
.article-row-thumb { width: 80px; height: 56px; border-radius: var(--radius-sm); background: var(--gray-200); display: block; object-fit: cover; flex-shrink: 0; }
.article-row-body { flex: 1; min-width: 0; }
.article-row-title { font-size: 0.875rem; font-weight: 500; color: var(--gray-800); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.25rem; }
.article-row-meta { font-size: 0.75rem; color: var(--gray-400); }

/* Rank list — modern redesign */
.rank-list { display: flex; flex-direction: column; }
.rank-item {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  border: 1px solid transparent;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative; text-decoration: none; color: inherit;
  margin-bottom: 0.5rem;
}
.rank-item:last-child { margin-bottom: 0; }
.rank-item:hover {
  transform: translateY(-2px);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--gray-100);
}
.rank-num {
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 0.85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--gray-500); background: var(--gray-100);
  position: relative; z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.04);
}
.rank-num.r1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 50%, #ff8c00 100%);
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 3px 10px rgba(255,140,0,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}
.rank-num.r2 {
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #a0a0a0 100%);
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 3px 10px rgba(160,160,160,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}
.rank-num.r3 {
  background: linear-gradient(135deg, #f4a460 0%, #cd7f32 50%, #b87333 100%);
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 3px 10px rgba(205,127,50,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.rank-num.r1::after, .rank-num.r2::after, .rank-num.r3::after {
  content: ''; position: absolute; top: 2px; left: 4px; right: 4px; height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  border-radius: 50% 50% 40% 40%;
  pointer-events: none;
}
.rank-icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; display: block; flex-shrink: 0;
  position: relative; z-index: 1; transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  overflow: hidden; background: var(--gray-200);
}
.rank-item:hover .rank-icon-wrap { transform: scale(1.1) rotate(-3deg); }
.rank-info { flex: 1; min-width: 0; font-size: 0.875rem; position: relative; z-index: 1; }
.rank-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gray-800); transition: color 0.25s; }
.rank-item:hover .rank-name { color: var(--brand-600); }
.rank-dl { font-size: 0.7rem; color: var(--gray-400); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.rank-dl::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--green-500);
}
.rank-arrow {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
  color: var(--gray-400); flex-shrink: 0; transition: all 0.25s;
  position: relative; z-index: 1;
}
.rank-item:hover .rank-arrow { background: var(--brand-500); color: #fff; transform: translateX(2px); }
.rank-col-header {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.875rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--gray-100);
  font-weight: 800; font-size: 0.9rem; color: var(--gray-800);
}
.rank-col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rank-article-row { display: flex; gap: 1.5rem; align-items: stretch; }
.rank-section { flex: 1; min-width: 0; display: flex; }
.rank-section > section { flex: 1; display: flex; flex-direction: column; }
.rank-section > section > .section-title { flex-shrink: 0; }
.rank-section > section > div:last-child { flex: 1; }
.article-section { width: 360px; flex-shrink: 0; display: flex; }
.article-section > section { flex: 1; display: flex; flex-direction: column; }
.article-section > section > div:first-child { flex-shrink: 0; }
.article-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.article-list { display: flex; flex-direction: column; gap: 0; }

/* Friend links */
.friend-link { font-size: 0.75rem; color: var(--gray-500); transition: color var(--transition); }
.friend-link:hover { color: var(--brand-600); }

/* Footer */
.site-footer { background: var(--gray-800); color: var(--gray-400); font-size: 0.75rem; margin-top: 2rem; padding: 2rem 0; }
.site-footer a:hover { color: var(--white); }

/* Main spacing */
.main-content { max-width: var(--max-w); margin: 0 auto; padding: 1.25rem 1rem; }
.main-content > * + * { margin-top: 2rem; }


/* ===== Back to Top ===== */
.back-to-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-500); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.25rem; box-shadow: var(--shadow-lg); transition: all var(--transition); z-index: 40; opacity: 0; transform: translateY(20px); pointer-events: none; border: none; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--brand-600); transform: translateY(-3px); box-shadow: var(--shadow-xl); }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Toast ===== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--gray-800); color: var(--white); padding: 12px 20px; border-radius: var(--radius-lg); font-size: 0.75rem; box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards; pointer-events: none; max-width: 300px; }
.toast.success { background: var(--brand-500); }

/* ===== Tab panels ===== */
.tab-panel { display: none; }
.tab-panel.active { display: block; }


/* ===== Animations ===== */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }


/* === Carousel Progress Bar === */
.carousel-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.15); z-index: 30; }
.carousel-progress-fill { height: 100%; background: var(--brand-500); border-radius: 0 1px 1px 0; transition: width 0.1s linear; width: 0; }

/* === Search Suggestions === */
.search-suggest-wrap { position: relative; }
.search-suggestions {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15); z-index: 200;
  margin-top: 6px; overflow: hidden; border: 1px solid var(--gray-100);
}
.search-suggestions.show { display: block; animation: fadeDown 0.2s ease; }
.search-suggest-item {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.7rem 1rem;
  cursor: pointer; transition: background 0.15s; font-size: 0.875rem; color: var(--gray-700);
}
.search-suggest-item:hover, .search-suggest-item.active { background: var(--brand-50); color: var(--brand-600); }
.search-suggest-item .suggest-icon { width: 28px; height: 28px; border-radius: var(--radius); background: var(--icon-bg); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; }
.search-suggest-item .suggest-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest-item .suggest-type { font-size: 0.7rem; color: var(--gray-400); }

/* === 礼包领取 === */
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gift-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius-2xl); overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-100);
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
}
.gift-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-2xl);
  background: var(--ev-glow); opacity: 0; transition: opacity 0.35s; z-index: 0;
}
.gift-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,0.14); border-color: transparent; }
.gift-card:hover::before { opacity: 1; }
.gift-card > * { position: relative; z-index: 1; }
.gift-header {
  padding: 1.25rem 1rem 0.75rem; text-align: center;
}
.gift-game-icon {
  width: 56px; height: 56px; border-radius: var(--radius-xl);
  margin: 0 auto 0.625rem; display: block; object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  background: var(--gray-200);
}
.gift-game-name { font-weight: 700; color: var(--gray-800); font-size: 0.95rem; }
.gift-body { padding: 0 1rem 0.75rem; }
.gift-reward {
  background: var(--gray-50); border-radius: var(--radius-lg); padding: 0.625rem;
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.625rem;
}
.gift-reward-icon { width: 32px; height: 32px; border-radius: var(--radius); background: var(--gift-icon-bg, var(--brand-500)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.gift-reward-text { flex: 1; min-width: 0; }
.gift-reward-name { font-size: 0.75rem; font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-reward-desc { font-size: 0.65rem; color: var(--gray-400); margin-top: 1px; }
.gift-code-row {
  display: flex; align-items: center; gap: 0.375rem;
  background: linear-gradient(135deg, #fefce8, #fffbeb);
  border: 1px dashed #f6b93b; border-radius: var(--radius-lg);
  padding: 0.5rem 0.625rem; margin-bottom: 0.625rem;
}
.gift-code-label { font-size: 0.65rem; color: var(--orange-500); white-space: nowrap; font-weight: 700; }
.gift-code-val { flex: 1; font-size: 0.7rem; color: var(--gray-700); font-family: 'Courier New', monospace; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-copy-btn {
  background: var(--orange-500); color: #fff; border: none; border-radius: var(--radius-full);
  padding: 2px 10px; font-size: 0.65rem; cursor: pointer; font-weight: 700; flex-shrink: 0;
  transition: all 0.2s;
}
.gift-copy-btn:hover { background: #e16910; transform: scale(1.05); }
.gift-copy-btn.copied { background: var(--green-500); }
.gift-footer { display: flex; align-items: center; justify-content: center; padding: 0.5rem 1rem 0.875rem; }
.gift-stock { font-size: 0.65rem; color: var(--gray-400); display: flex; align-items: center; gap: 3px; }
.gift-stock::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); }

/* === Pulse animation for download buttons === */
@keyframes btnPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,191,165,0.4); } 50% { box-shadow: 0 0 0 8px rgba(0,191,165,0); } }
@keyframes pulse-badge { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.btn-pulse { animation: btnPulse 2s infinite; }

/* === Card gradient border glow === */
.card-hover-glow { position: relative; }
.card-hover-glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-500), #74b9ff, #a29bfe);
  opacity: 0; transition: opacity 0.3s; z-index: -1;
}
.card-hover-glow:hover::before { opacity: 1; }


/* === Mobile Sticky Download Bar === */
.mobile-dl-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--gray-200); padding: 0.5rem 1rem; z-index: 60; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); align-items: center; gap: 0.75rem; }
.mobile-dl-bar .dl-bar-icon { width: 36px; height: 36px; border-radius: var(--radius); background: var(--brand-500); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.7rem; flex-shrink: 0; }
.mobile-dl-bar .dl-bar-info { flex: 1; min-width: 0; }
.mobile-dl-bar .dl-bar-name { font-weight: 600; font-size: 0.8rem; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-dl-bar .dl-bar-ver { font-size: 0.65rem; color: var(--gray-400); }
.mobile-dl-bar .dl-bar-btn { background: var(--brand-500); color: #fff; border: none; border-radius: var(--radius-full); padding: 0.5rem 1.5rem; font-weight: 700; font-size: 0.8rem; cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.mobile-dl-bar .dl-bar-btn:hover { background: var(--brand-600); }
@media (max-width: 767px) { .mobile-dl-bar { display: flex; } }

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .carousel { height: 240px; }
  .carousel-content { padding: 0.85rem; }
  .carousel-content h2 { font-size: 1.05rem; }
  .carousel-content p { font-size: 0.875rem; margin-bottom: 0.5rem; }
  .carousel-arrow { width: 32px; height: 32px; font-size: 16px; opacity: 0; }
  .carousel:hover .carousel-arrow { opacity: 1; }
  .nav-item > a { padding: 0.7rem 0.875rem; font-size: 0.85rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { gap: 1rem; }
  .side-panel { min-height: auto; }
  .hot-picks-grid { grid-template-columns: repeat(2, 1fr); }
  .hot-pick-item { padding: 0.6rem 0.6rem; }
  .new-game-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .new-game-poster { height: 80px; }
  .masterpiece-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  
  .master-cover { height: 100px; }
  .home-tags { margin-top: 12px; padding: 12px 14px; gap: 8px 10px; }
  .home-tags-label { display: none; }
  .gift-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}