
/* ===== 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); box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: static; z-index: auto; }
.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); }

/* === CSS Icons === */
.app-icon, .side-update-icon, .rank-icon {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--icon-bg, var(--brand-500)); color: var(--icon-fg, var(--white));
  font-weight: 700; flex-shrink: 0; user-select: none; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 3px 8px rgba(0,0,0,0.1);
}
.app-icon::before, .side-update-icon::before, .rank-icon::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.22), transparent);
  border-radius: inherit;
}
.app-icon { width: var(--icon-size, 56px); height: var(--icon-size, 56px); border-radius: var(--radius-2xl); font-size: 1.15rem; }
.app-icon span { position: relative; z-index: 1; display: inline-block; max-width: 80%; overflow: hidden; text-overflow: clip; white-space: nowrap; line-height: 1; }
.editor-card .app-icon { width: 64px; height: 64px; border-radius: var(--radius-2xl); font-size: 1.35rem; }
.side-update-icon { width: 42px; height: 42px; border-radius: var(--radius-lg); font-size: 0.85rem; }
.rank-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); font-size: 0.85rem; }
.update-card .app-icon { width: 52px; height: 52px; border-radius: var(--radius-xl); font-size: 1.05rem; }


/* 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); }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast-container .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-container .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; } }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 0; font-size: 0.8rem; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-500); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .sep { color: var(--gray-300); user-select: none; }
.breadcrumb .current { color: var(--gray-800); font-weight: 600; }


/* ===== Detail Layout ===== */
.detail-layout { display: flex; gap: 1.5rem; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; }

/* ===== Game Hero Card ===== */
.hero-card { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow-md); overflow: hidden; }
.hero-header { padding: 1.5rem; display: flex; gap: 1.25rem; align-items: flex-start; }
.hero-icon { width: 84px; height: 84px; border-radius: 22px; display: block; object-fit: cover; font-size: 1.9rem; font-weight: 800; color: #fff; flex-shrink: 0; box-shadow: 0 8px 28px rgba(225,112,85,0.28); position: relative; overflow: hidden; }
.hero-icon::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent); border-radius: 22px 22px 0 0; }
.hero-icon span { position: relative; z-index: 1; }
.hero-info { flex: 1; min-width: 0; }
.hero-title { font-size: 1.55rem; font-weight: 800; color: var(--gray-800); margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.hero-subtitle { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 0.625rem; }
.hero-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.625rem; }
.hero-meta-item { font-size: 0.78rem; color: var(--gray-500); }
.hero-meta-divider { color: var(--gray-300); font-size: 0.7rem; }
.hero-stars { color: #f6b93b; font-size: 0.85rem; letter-spacing: 1px; line-height: 1; }
.hero-score { font-size: 0.95rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); padding: 3px 10px; border-radius: var(--radius-full); box-shadow: 0 3px 10px rgba(0,191,165,0.25); }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-meta-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; padding-left: 1rem; flex-shrink: 0; }
.hero-score-card { display: flex; align-items: center; gap: 0; background: var(--white); border: 1px solid var(--gray-100); border-radius: 16px; padding: 10px 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.hero-score-main { display: flex; align-items: center; gap: 0.6rem; }
.hero-score-big { font-size: 2rem; font-weight: 900; color: var(--brand-600); line-height: 1; letter-spacing: -0.03em; }
.hero-score-info { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.hero-stars { color: #f6b93b; font-size: 0.82rem; letter-spacing: 0.5px; line-height: 1; }
.hero-score-meta { font-size: 0.7rem; color: var(--gray-400); white-space: nowrap; line-height: 1; }
.hero-score-divider { width: 1px; height: 34px; background: var(--gray-200); margin: 0 12px; }
.hero-like-btn { display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: transparent; border: 1px solid transparent; color: var(--gray-500); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.hero-like-btn:hover { background: #fff0f0; color: #ff6b6b; }
.hero-like-btn.active, .hero-like-btn.is-liked { background: #fff0f0; color: #ff4d6d; }
.hero-like-btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.hero-like-btn.active svg, .hero-like-btn.is-liked svg { fill: #ff4d6d; stroke: #ff4d6d; transform: scale(1.12); }
/* hero 关键词标签：2026-09-30 起改为 <a> 链到标签聚合页 /tag/{id}.html。
   加了 <a> 就必须显式 text-decoration:none（沿用 .hot-tag 的做法），
   否则会带上浏览器默认下划线；hover 走品牌色，给出可点击反馈。 */
.hero-tag { display: inline-flex; align-items: center; font-size: 0.7rem; padding: 3px 10px; border-radius: var(--radius-full); font-weight: 500; background: transparent; color: var(--gray-500); border: 1px solid var(--gray-200); text-decoration: none; transition: all 0.2s; }
.hero-tag:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-600); }

/* ===== Download Buttons Section ===== */
/* ===== Download Buttons Section ===== */
/* align-items:center —— 千万别去掉！默认 stretch 会让按钮被同排最高的二维码块（≈90px）拉伸成胖方块 */
.hero-actions { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--white); border-top: 1px solid var(--gray-100); }
/* 二维码始终贴右：按钮固定宽度后不再靠 flex:1 撑满，需显式推到容器右侧 */
.dl-qr { margin-left: auto; position: relative; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; padding-left: 0.5rem; cursor: pointer; }
.dl-qr-box { width: 68px; height: 68px; padding: 5px; border-radius: 10px; overflow: hidden; border: 1px solid var(--gray-200); background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,0.06); transition: border-color 0.2s, box-shadow 0.2s; }
.dl-qr-box svg, .dl-qr-box canvas { width: 100%; height: 100%; display: block; }
.dl-qr:hover .dl-qr-box { border-color: var(--brand-500); box-shadow: 0 4px 14px rgba(0,191,165,0.18); }
.dl-qr-tip { font-size: 0.66rem; color: var(--gray-500); white-space: nowrap; }
.dl-qr-pop { position: absolute; bottom: calc(100% + 12px); right: 0; background: #fff; border: 1px solid var(--gray-100); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.14); padding: 0.75rem; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.22s ease; z-index: 200; pointer-events: none; }
.dl-qr:hover .dl-qr-pop { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.dl-qr-pop-code { width: 140px; height: 140px; padding: 6px; border-radius: 10px; overflow: hidden; border: 1px solid var(--gray-200); background: #fff; }
.dl-qr-pop-code svg, .dl-qr-pop-code canvas { width: 100%; height: 100%; display: block; }
.dl-qr-pop-tip { font-size: 0.72rem; color: var(--gray-700); font-weight: 600; }

/* 应用已下架提示（三个下载字段全空时显示，2026-09-23） */
.dl-offshelf {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  color: var(--gray-500);
  font-size: 0.92rem;
  font-weight: 600;
}
.dl-offshelf::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red-500);
  flex-shrink: 0;
}
.offshelf-box {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Section Tabs ===== */
.section-tabs { display: flex; gap: 0.375rem; padding: 0.625rem 1.25rem; background: var(--white); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; border-bottom: 1px solid var(--gray-100); margin-top: 1.25rem; position: sticky; top: 0; z-index: 100; overflow-x: auto; scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tab { flex-shrink: 0; padding: 0.5rem 1.15rem; font-size: 0.88rem; font-weight: 500; color: var(--gray-500); text-decoration: none; border-radius: var(--radius-full); transition: all 0.2s; white-space: nowrap; position: relative; }
.section-tab:hover { color: var(--brand-600); background: var(--brand-50); }
.section-tab.active { color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); box-shadow: 0 3px 10px rgba(0,191,165,0.28); }
.section-tab.active::after { display: none; }
/* Unread red-dot badge (like unread messages) */
.tab-badge { position: absolute; top: 6px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px var(--white); animation: tabBadgePulse 1.6s ease-in-out infinite; pointer-events: none; }
.section-tab.active .tab-badge { box-shadow: 0 0 0 2px var(--brand-600); }
.tab-count { position: absolute; top: -4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; background: #64748b; color: #fff; font-size: 0.6rem; font-weight: 400; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--white); pointer-events: none; }
.section-tab.active .tab-count { background: rgba(255,255,255,0.25); color: #fff; box-shadow: 0 0 0 2px var(--brand-600); }
@keyframes tabBadgePulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.75; } }

/* ===== Review Pagination ===== */
.review-pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.review-pagination button { min-width: 34px; height: 34px; padding: 0 0.625rem; border: 1px solid var(--gray-100); background: var(--white); color: var(--gray-600); border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.review-pagination button:hover:not(:disabled):not(.active) { border-color: var(--brand-200); color: var(--brand-600); background: var(--brand-50); }
.review-pagination button.active { background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(0,191,165,0.28); }
.review-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.review-pagination .page-ellipsis { color: var(--gray-400); padding: 0 0.125rem; user-select: none; }

/* 下载按钮固定为「4 个按钮一行」时的宽度，不随实际按钮数量拉伸 */
.dl-btn { flex: 1 1 calc((100% - 3rem) / 4); max-width: calc((100% - 3rem) / 4); display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 0.5rem; border-radius: var(--radius-lg); color: #fff; text-decoration: none; cursor: pointer; transition: all 0.2s; text-align: left; min-height: 54px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.dl-btn:active { transform: translateY(0); }
.dl-btn svg { flex-shrink: 0; width: 22px; height: 22px; }
.dl-btn-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; justify-content: center; }
.dl-btn-title, .dl-btn-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-btn-title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.dl-btn-note { font-size: 0.6rem; font-weight: 500; opacity: 0.9; }

.dl-btn-green { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.dl-btn-green:hover { background: linear-gradient(135deg, #34d87f, #2bbf69); }

.dl-btn-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.dl-btn-blue:hover { background: linear-gradient(135deg, #4f8ff7, #3171f0); }

.dl-btn-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.dl-btn-orange:hover { background: linear-gradient(135deg, #fb8536, #f06a18); }

.dl-btn-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.dl-btn-purple:hover { background: linear-gradient(135deg, #9d70f8, #6d28d9); }

/* ===== Screenshots Carousel ===== */
.screenshot-carousel { position: relative; }
.screenshot-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.screenshot-track { display: flex; gap: 0.75rem; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2); }
.screenshot-item { flex-shrink: 0; height: 400px; aspect-ratio: 9/16; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s; }
.screenshot-item:hover { transform: scale(1.03); border-color: var(--brand-500); }
.screenshot-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Carousel arrows */
/* 强制覆盖 pc_style.css 中 .carousel-arrow { opacity:0 }，避免内容页箭头不可见 */
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; transition: all 0.2s; color: var(--gray-600); opacity: 1; }
.carousel-arrow:hover { background: var(--brand-500); border-color: var(--brand-500); color: #fff; box-shadow: var(--shadow-md); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.93); }
.carousel-arrow.prev { left: -12px; }
.carousel-arrow.next { right: -12px; }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 300; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.open { opacity: 1; pointer-events: auto; cursor: zoom-out; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 5; }
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-img-wrap { display: flex; align-items: center; justify-content: center; position: relative; max-width: 90vw; max-height: 85vh; cursor: zoom-out; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 12px; object-fit: contain; display: block; cursor: zoom-out; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-arrow:hover { background: rgba(255,255,255,0.25); }
.lightbox-arrow:disabled { opacity: 0.25; pointer-events: none; }
.lightbox-arrow.prev { left: -56px; }
.lightbox-arrow.next { right: -56px; }
.lightbox-counter { position: absolute; bottom: -36px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* Video in screenshots */
.screenshot-item-video .screenshot-img { background: linear-gradient(135deg, #1a1a2e, #16213e 50%, #0f3460); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* 宣传片瓦片的「封面」＝视频自身画面：<video> 的 src 带 #t=0.6 媒体片段，只解码那一帧，不下载整段视频 */
.screenshot-item-video .screenshot-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: #10131f; }
.screenshot-item-video .screenshot-img::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.12) 38%, rgba(0,0,0,0.5)); }
.screenshot-item-video .video-badge { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.65rem; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.screenshot-item-video .video-play { position: relative; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 18px rgba(0,0,0,0.3); transition: all 0.25s; }
.screenshot-item-video:hover .video-play { transform: scale(1.08); background: #fff; }
.screenshot-item-video .video-play svg { width: 22px; height: 22px; margin-left: 3px; color: var(--brand-600); }
.screenshot-item-video .video-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem 0.625rem 0.625rem; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: #fff; font-size: 0.75rem; font-weight: 600; text-align: center; }

/* Video modal */
.video-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 400; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.video-modal.open { opacity: 1; pointer-events: auto; }
.video-modal-inner { width: 90vw; max-width: 880px; }
.video-modal-inner video { width: 100%; aspect-ratio: 16/9; border-radius: 12px; background: #000; display: block; }
.video-modal-placeholder { width: 100%; aspect-ratio: 16/9; border-radius: 12px; background: #0b1020; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.75rem; color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.video-modal-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.video-modal-close:hover { background: rgba(255,255,255,0.3); }


/* ===== Game Info Table ===== */
.section-card { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow); padding: 1.5rem; margin-top: 1.25rem; }
.section-title { font-size: 1.15rem; font-weight: 700; color: var(--gray-800); padding-bottom: 0.875rem; margin-bottom: 1rem; border-bottom: 2px solid var(--gray-100); border-left: none; padding-left: 0; display: flex; align-items: center; gap: 0.5rem; }
/* 去掉 PC 主 CSS（pc_style.css）自带的 .section-title border-left 短青竖线，仅保留 ::before 长青竖条作标题装饰 */
.section-title::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--brand-500); flex-shrink: 0; }
/* 2026-09-01：先改成「右侧延伸横线」再回退到「仅左侧竖条」——与 reviews-header 写评价按钮、卡片边框叠加后显得花哨，去掉 ::after 视觉更干净 */

/* ===== 开服表 ===== */
.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; }
}
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--gray-100); }
.info-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; font-size: 0.85rem; border-bottom: 1px solid var(--gray-100); }
.info-item:nth-child(odd) { border-right: 1px solid var(--gray-100); padding-left: 0; }
.info-item:nth-last-child(-n+2) { border-bottom: none; }
.info-label { color: var(--gray-400); width: 80px; white-space: nowrap; flex-shrink: 0; }
.info-value { color: var(--gray-700); font-weight: 500; min-width: 0; flex-shrink: 1; overflow: hidden; text-min-width: 0; flex-shrink: 1; overflow: ellipsis; white-space: nowrap; }

/* ===== Game Description ===== */
.game-desc-text { font-size: 0.9rem; color: var(--gray-600); line-height: 1.9; }
.game-desc-text p { margin-bottom: 0.75rem; }
.game-desc-text p:last-child { margin-bottom: 0; }
.game-desc-text h3 { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); margin: 1.25rem 0 0.5rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--gray-100); line-height: 1.4; }
.game-desc-text h3:first-child { margin-top: 0; }

/* ===== Download Guide Section ===== */
.dl-guide { }
.dl-guide-title { font-size: 0.88rem; font-weight: 700; color: var(--gray-800); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.dl-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; }
.dl-guide-item { background: var(--gray-50); border-radius: var(--radius-lg); padding: 1rem 0.75rem; text-align: center; border: 1.5px solid var(--gray-200); transition: all 0.2s; max-width: 420px; margin: 0 auto; }
.dl-guide-item:hover { border-color: var(--brand-400); box-shadow: var(--shadow); }
.dl-guide-icon { width: 40px; height: 40px; border-radius: var(--radius); margin: 0 auto 0.5rem; display: flex; align-items: center; justify-content: center; color: #fff; }
.dl-guide-icon svg { width: 20px; height: 20px; }
.dl-guide-name { font-size: 0.82rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.15rem; }
.dl-guide-desc { font-size: 0.68rem; color: var(--gray-400); line-height: 1.4; margin-bottom: 0.5rem; }
.dl-guide-apt { font-size: 0.65rem; color: var(--gray-500); display: inline-block; padding: 2px 8px; background: var(--gray-100); border-radius: var(--radius-full); margin-bottom: 0.5rem; }
.dl-guide-btn { display: inline-block; padding: 6px 18px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; color: #fff; transition: all 0.2s; }
.dl-guide-btn.android { background: var(--brand-500); }
.dl-guide-btn.android:hover { background: var(--brand-600); transform: translateY(-1px); }
.dl-guide-btn.ios { background: var(--ios-blue, #007aff); }
.dl-guide-btn.ios:hover { background: #0056cc; transform: translateY(-1px); }
.dl-guide-btn.pan { background: var(--pan-color, #ff6b35); }
.dl-guide-btn.pan:hover { background: #e0551e; transform: translateY(-1px); }

/* ===== Compliance Section ===== */
.compliance-box { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-xl); padding: 1rem 1.25rem; margin-top: 1.25rem; }
.compliance-title { font-size: 0.85rem; font-weight: 700; color: var(--brand-700); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.375rem; }
.compliance-list { font-size: 0.73rem; color: var(--brand-600); line-height: 1.7; }
.compliance-list li { padding: 2px 0; display: flex; align-items: flex-start; gap: 4px; }
.compliance-list li::before { content: '✓'; color: var(--green-600); font-weight: 700; flex-shrink: 0; }

/* ===== Sidebar ===== */
.detail-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 64px; }
.sidebar-section { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow); padding: 1.25rem 1rem; margin-bottom: 1rem; }
.sidebar-title { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); margin-bottom: 1rem; padding-bottom: 0.625rem; border-bottom: 2px solid var(--gray-100); display: flex; align-items: center; gap: 0.5rem; }
.sidebar-title::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--brand-500); }

/* Related game card (sidebar) */
.rel-game { display: flex; gap: 0.625rem; padding: 0.625rem; border-radius: var(--radius-lg); transition: all 0.2s; text-decoration: none; color: inherit; }
.rel-game:hover { background: var(--brand-50); }
.rel-game-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: block; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rel-game-info { flex: 1; min-width: 0; }
.rel-game-name { font-size: 0.82rem; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; display: flex; align-items: center; gap: 0.375rem; }
.rel-game-version { font-size: 0.65rem; font-weight: 500; color: var(--gray-400); background: var(--gray-100); padding: 1px 5px; border-radius: var(--radius-sm); }
.rel-game-meta { font-size: 0.68rem; color: var(--gray-400); display: flex; align-items: center; gap: 0.5rem; }
.rel-game-score { font-weight: 700; color: var(--brand-600); }
.rel-game-divider { border: none; border-top: 1px solid var(--gray-100); margin: 0.5rem 0; }

/* Hot tags (sidebar) */
.hot-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hot-tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.32rem 0.72rem; font-size: 0.72rem; font-weight: 500; color: var(--gray-600); background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-full); text-decoration: none; transition: all 0.2s; }
.hot-tag:hover { color: var(--brand-600); background: var(--brand-50); border-color: var(--brand-100); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,191,165,0.14); }
.hot-tag.hot { color: var(--red-600); background: var(--red-50); border-color: #fde2e2; }
.hot-tag.hot:hover { color: var(--red-600); background: #fee7e7; border-color: #fbcfcf; box-shadow: 0 3px 8px rgba(239,68,68,0.14); }
.hot-tag .tag-fire { font-size: 0.66rem; line-height: 1; }
.hot-tag .tag-count { font-size: 0.62rem; color: var(--gray-400); }

/* Sidebar Promo Banner Carousel */
.side-promo { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1rem; position: relative; }
.side-promo-track { position: relative; height: 120px; }
.side-promo-slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 0.5s ease; text-decoration: none; background: #1f2a44; }
.side-promo-slide.active { opacity: 1; z-index: 1; }
.side-promo-slide .promo-inner { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 1.1rem; color: #fff; position: relative; overflow: hidden; z-index: 1; }
.side-promo-slide .promo-inner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.35) 45%, transparent 78%), radial-gradient(circle at 90% 10%, rgba(255,255,255,0.16), transparent 55%); }
.side-promo-slide .promo-tag { position: absolute; top: 10px; right: 12px; background: rgba(255,255,255,0.95); color: var(--brand-600); font-size: 0.66rem; padding: 2px 9px; border-radius: 999px; z-index: 1; box-shadow: 0 1px 5px rgba(16,24,40,0.22); }
.side-promo-slide .promo-title { font-size: 1.05rem; font-weight: 800; text-shadow: 0 1px 5px rgba(0,0,0,0.55); position: relative; z-index: 1; }
.side-promo-slide .promo-sub { font-size: 0.78rem; opacity: 0.95; margin-top: 5px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); position: relative; z-index: 1; }
.side-promo-slide .promo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.side-promo-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0; }
.side-promo-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.55); cursor: pointer; transition: background 0.2s, width 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.35); }
.side-promo-dots .dot.active { background: var(--brand-500); width: 16px; border-radius: 4px; }

/* ===== Related Downloads Grid ===== */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.rel-card { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem; border-radius: var(--radius-lg); background: var(--gray-50); text-decoration: none; color: inherit; transition: all 0.2s; }
.rel-card:hover { background: var(--brand-50); transform: translateY(-2px); box-shadow: var(--shadow); }
.rel-card-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: block; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rel-card-info { flex: 1; min-width: 0; }
.rel-card-name { font-size: 0.82rem; font-weight: 600; color: var(--gray-800); display: flex; align-items: center; gap: 0.375rem; }
.rel-card-meta { font-size: 0.68rem; color: var(--gray-400); margin-top: 3px; display: flex; align-items: center; gap: 0.375rem; }

/* ===== Hot Articles (image + text, swipeable) ===== */
.article-carousel { position: relative; }
.article-viewport { overflow: hidden; }
.article-track { display: flex; gap: 0.875rem; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2); }
.article-item { flex-shrink: 0; width: calc((100% - 2 * 0.875rem) / 3); }
.article-card { display: block; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: all 0.2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.article-thumb { position: relative; height: 132px; display: flex; align-items: flex-end; padding: 0.625rem; color: #fff; }
.article-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.28), rgba(0,0,0,0) 55%); }
.article-cat { position: relative; z-index: 1; font-size: 0.66rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(255,255,255,0.95); color: var(--brand-600); box-shadow: 0 1px 5px rgba(16,24,40,0.22); }
.article-thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 0.75rem 0.875rem 0.875rem; }
.article-title { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card:hover .article-title { color: var(--brand-600); }
.article-excerpt { font-size: 0.74rem; color: var(--gray-500); margin-top: 0.4rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { font-size: 0.68rem; color: var(--gray-400); margin-top: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-400); }

/* ===== Download Fixed Bar ===== */
.dl-fixed-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--white); box-shadow: 0 -4px 24px rgba(0,0,0,0.1); padding: 0.75rem 0; transform: translateY(100%); transition: transform 0.35s ease; }
.dl-fixed-bar.visible { transform: translateY(0); }
.dl-fixed-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; gap: 0.75rem; }
.dl-fixed-icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: block; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.dl-fixed-info { flex: 1; min-width: 0; }
.dl-fixed-name { font-size: 0.88rem; font-weight: 700; color: var(--gray-800); }
.dl-fixed-meta { font-size: 0.68rem; color: var(--gray-400); }
.dl-fixed-btns { display: flex; gap: 0.5rem; }
.dl-fixed-btn { padding: 0.55rem 1.2rem; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 700; color: #fff; transition: all 0.25s; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.dl-fixed-btn.android { background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); box-shadow: 0 4px 12px rgba(0,191,165,0.3); }
.dl-fixed-btn.android:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,191,165,0.45); }
.dl-fixed-btn.pan { background: linear-gradient(135deg, #ff6b35, #e0551e); box-shadow: 0 4px 12px rgba(255,107,53,0.25); }
.dl-fixed-btn.pan:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); }

/* ===== QR Code Sidebar ===== */
.qr-section { background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow); padding: 1.25rem 1rem; margin-bottom: 1rem; text-align: center; }
.qr-title { font-size: 0.88rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.375rem; }
.qr-code-wrap { width: 140px; height: 140px; margin: 0 auto 0.75rem; position: relative; }
.qr-code-svg { width: 100%; height: 100%; }
.qr-tip { font-size: 0.72rem; color: var(--gray-400); }
.qr-tip svg { display: inline-block; vertical-align: -2px; margin-right: 3px; }
/* ===== 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); }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--gray-500); transition: color var(--transition); font-size: 0.75rem; }
.footer-links a:hover { color: var(--brand-500); }
.friend-link { font-size: 0.75rem; color: var(--gray-500); transition: color var(--transition); }
.friend-link:hover { color: var(--brand-600); }
.icp-info { font-size: 0.65rem; color: var(--gray-500); margin-top: 0.5rem; }
.icp-info a { color: var(--gray-500); }

/* ===== Back to Top ===== */
.back-to-top { position: fixed; bottom: 88px; 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); }

/* ===== Age Rating Modal ===== */
.age-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: none; align-items: center; justify-content: center; }
.age-modal-overlay.active { display: flex; }
.age-modal { background: var(--white); border-radius: var(--radius-2xl); padding: 2rem 1.5rem 1.5rem; max-width: 360px; width: 90%; text-align: center; box-shadow: var(--shadow-xl); }
.age-modal-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.age-modal-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.75rem; }
.age-modal-desc { font-size: 0.85rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 1.25rem; }
.age-modal-btns { display: flex; gap: 0.75rem; justify-content: center; }
.age-modal-btn { padding: 0.65rem 2rem; border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 600; transition: all 0.2s; }
.age-modal-btn.cancel { background: var(--gray-100); color: var(--gray-600); }
.age-modal-btn.cancel:hover { background: var(--gray-200); }
.age-modal-btn.confirm { background: var(--brand-500); color: #fff; }
.age-modal-btn.confirm:hover { background: var(--brand-600); }

/* ===== Permission Modal ===== */
.perm-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 220; display: none; align-items: center; justify-content: center; padding: 1rem; opacity: 0; transition: opacity 0.25s ease; }
.perm-modal-overlay.active { display: flex; }
.perm-modal-overlay.show { opacity: 1; }
.perm-modal { background: var(--white); border-radius: var(--radius-2xl); max-width: 520px; width: 100%; max-height: 80vh; overflow: hidden; box-shadow: var(--shadow-xl); transform: translateY(12px); transition: transform 0.25s ease; }
.perm-modal-overlay.show .perm-modal { transform: translateY(0); }
.perm-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100); }
.perm-modal-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); margin: 0; }
.perm-modal-close { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--gray-100); color: var(--gray-600); font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.perm-modal-close:hover { background: var(--gray-200); color: var(--gray-800); }
.perm-modal-body { padding: 1.25rem 1.5rem; overflow-y: auto; max-height: calc(80vh - 72px); }
.perm-modal-notice { background: var(--brand-50); border-left: 4px solid var(--brand-500); border-radius: var(--radius); padding: 0.875rem 1rem; font-size: 0.85rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 1.25rem; }
.perm-list { list-style: none; margin: 0; padding: 0; }
.perm-list li { padding: 0.875rem 0; border-bottom: 1px solid var(--gray-100); }
.perm-list li:last-child { border-bottom: none; }
.perm-list-name { font-weight:400; color: var(--gray-800); font-size: 0.92rem; margin-bottom: 0.25rem; }
.perm-list-desc { font-size: 0.82rem; color: var(--gray-500); line-height: 1.6; }
.perm-value-link { color: var(--brand-600); cursor: pointer; text-decoration: none; transition: color 0.2s; }
.perm-value-link:hover { color: var(--brand-700); }

/* ===== Toast ===== */
#iosToast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--gray-800); color: #fff; padding: 0.625rem 1.5rem; border-radius: var(--radius-full); font-size: 0.85rem; z-index: 300; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
#iosToast.show { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .detail-layout { flex-direction: column; }
  .detail-sidebar { width: 100%; position: static; }
  .dl-guide-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .screenshot-item { height: 320px; }
  .carousel-arrow { width: 30px; height: 30px; }
  .carousel-arrow.prev { left: -8px; }
  .carousel-arrow.next { right: -8px; }
}
@media (max-width: 768px) {
  .hero-header { flex-direction: column; align-items: center; text-align: center; }
  .dl-qr { display: none; }
  .hero-meta { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-actions { padding: 0.875rem 1rem; gap: 0.5rem; flex-wrap: wrap; margin-left: 0; width: 100%; justify-content: center; }
  .hero-meta-actions { margin-left: 0; padding-left: 0; justify-content: center; width: 100%; margin-top: 0.5rem; }
  .hero-score-card { padding: 8px 12px; border-radius: 14px; }
  .hero-score-big { font-size: 1.8rem; }
  .hero-score-divider { height: 30px; margin: 0 10px; }
  .hero-like-btn { padding: 5px 8px; }
  .dl-btn { flex: 1 1 0; max-width: none; min-height: 50px; padding: 0.5rem 0.35rem; }
  .dl-btn-title { font-size: 0.75rem; }
  .dl-btn-note { font-size: 0.55rem; }
  .dl-btn svg { width: 18px; height: 18px; }
  .section-card { padding: 1rem; }
  .dl-guide-grid { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .article-item { width: calc((100% - 0.875rem) / 2); }
  .dl-fixed-btns { flex-direction: column; gap: 0.375rem; }
  .dl-fixed-btn { justify-content: center; }
  .screenshot-item { height: 280px; }
}
@media (max-width: 480px) {
  .hero-icon { width: 60px; height: 60px; border-radius: 16px; font-size: 1.3rem; }
  .hero-title { font-size: 1.2rem; }
  .info-item { font-size: 0.78rem; gap: 0.5rem; padding: 0.5rem 0.5rem; }
  .info-label { width: 65px; }
  .info-value { white-space: normal; }
  .hero-actions { padding: 0.875rem 1rem; gap: 0.5rem; }
  .dl-btn { min-height: 46px; padding: 0.45rem 0.3rem; border-radius: var(--radius); }
  .dl-btn-title { font-size: 0.68rem; }
  .dl-btn-note { font-size: 0.5rem; }
  .dl-btn svg { width: 16px; height: 16px; }
  .screenshot-item { height: 240px; }
  .article-item { width: 100%; }
  .rel-grid { grid-template-columns: 1fr; }
  .carousel-arrow { width: 28px; height: 28px; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
/* ===== Player Reviews (TapTap style) ===== */
.reviews-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.reviews-header .section-title { margin:0; }
.reviews-write-btn { display:inline-flex; align-items:center; gap:0.375rem; padding:0.5rem 1rem; background:var(--brand-600); color:#fff; border-radius:999px; font-size:0.85rem; font-weight:600; text-decoration:none; transition:all 0.2s; }
.reviews-write-btn:hover { background:var(--brand-700); transform:translateY(-1px); }
.reviews-write-btn svg { width:16px; height:16px; }
.reviews-summary { display:flex; align-items:center; gap:1.25rem; padding:1rem; background:#f8fafc; border-radius:var(--radius-lg); margin-bottom:1rem; }
.reviews-score-big { font-size:2.25rem; font-weight:800; color:#0f172a; line-height:1; }
.reviews-score-max { font-size:0.7rem; color:#94a3b8; margin-top:4px; }
.reviews-summary-info { flex:1; }
.reviews-summary-info .count { font-weight:700; color:#0f172a; font-size:0.95rem; }
.reviews-summary-info .desc { font-size:0.8rem; color:#64748b; margin-top:0.25rem; }
.reviews-filter { display:flex; align-items:center; gap:0.5rem; margin-bottom:0.75rem; flex-wrap:wrap; }
.reviews-filter a { padding:0.375rem 0.875rem; border-radius:999px; font-size:0.82rem; color:#475569; background:#f1f5f9; text-decoration:none; transition:all 0.2s; }
.reviews-filter a:hover { background:#e2e8f0; color:#0f172a; }
.reviews-filter a.active { background:#0f172a; color:#fff; }
.review-list { display:flex; flex-direction:column; }
.review-item { display:flex; gap:1rem; padding:1rem 0; border-bottom:1px solid #f1f5f9; }
.review-item:last-child { border-bottom:none; padding-bottom:0; }
.review-avatar { flex-shrink:0; width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:1rem; box-shadow:0 2px 6px rgba(0,0,0,0.08); }
.review-main { flex:1; min-width:0; }
.review-meta-row { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; margin-bottom:0.25rem; }
.review-username { font-weight:700; color:#0f172a; font-size:0.9rem; }
.review-device { font-size:0.7rem; color:#64748b; background:#f1f5f9; padding:2px 7px; border-radius:4px; }
.review-date { font-size:0.75rem; color:#94a3b8; margin-left:auto; }
.review-rating-row { display:flex; align-items:center; gap:0.5rem; margin-bottom:0.5rem; }
.review-stars { color:#f59e0b; font-size:0.85rem; letter-spacing:-1px; }
.review-recommend { font-size:0.72rem; color:#16a34a; background:#dcfce7; padding:2px 8px; border-radius:4px; font-weight:600; }
.review-score-num { font-size:0.78rem; font-weight:700; color:#f59e0b; }
.review-body { color:#334155; line-height:1.7; font-size:0.9rem; margin-bottom:0.75rem; word-break:break-word; }
.review-actions { display:flex; align-items:center; gap:1.25rem; }
.review-action { display:inline-flex; align-items:center; gap:0.35rem; font-size:0.8rem; color:#64748b; cursor:pointer; user-select:none; transition:color 0.2s; }
.review-action:hover { color:var(--brand-600); }
.review-action.dislike-btn:hover { color:#ef4444; }
.review-action svg { width:16px; height:16px; }
.review-action .num { font-variant-numeric:tabular-nums; }




.reply-form-wrap { background:#f8fafc; border-radius:8px; padding:0.75rem; margin-top:0.5rem; display:none; }
.reply-form-wrap.open { display:block; }
.reply-form-wrap textarea { width:100%; padding:0.6rem; border:1.5px solid #e2e8f0; border-radius:8px; resize:vertical; font-size:0.85rem; outline:none; font-family:inherit; box-sizing:border-box; }
.reply-form-wrap textarea:focus { border-color:var(--brand-500); box-shadow:0 0 0 3px rgba(0,191,165,0.1); }
.reply-form-actions { display:flex; justify-content:flex-end; gap:0.5rem; margin-top:0.5rem; }
.reply-btn { padding:0.35rem 1rem; border:none; border-radius:6px; font-size:0.8rem; cursor:pointer; transition:all 0.15s; }
.reply-btn.cancel { background:#f1f5f9; color:#64748b; }
.reply-btn.cancel:hover { background:#e2e8f0; }
.reply-btn.send { background:var(--brand-600); color:#fff; }
.reply-btn.send:hover { background:var(--brand-700); }

/* Sub-reply list */
.review-replies { margin-top:0.5rem; padding-left:0.5rem; }
.sub-reply { padding:0.5rem 0; border-top:1px solid #f1f5f9; }
.sub-reply:first-child { border-top:none; }
.sub-reply-header { display:flex; align-items:center; gap:0.5rem; margin-bottom:0.2rem; }
.sub-reply-avatar { width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:0.65rem; font-weight:600; flex-shrink:0; }
.sub-reply-username { font-size:0.8rem; font-weight:500; color:#374151; }
.sub-reply-date { font-size:0.7rem; color:#9ca3af; margin-left:auto; }
.sub-reply-body { font-size:0.82rem; color:#4b5563; padding-left:2rem; line-height:1.5; }
.sub-reply-actions { display:flex; gap:0.75rem; margin-top:0.2rem; padding-left:2rem; }
.sub-reply-reply-btn { font-size:0.72rem; color:#9ca3af; cursor:pointer; user-select:none; transition:color 0.15s; }
.sub-reply-reply-btn:hover { color:var(--brand-600); }

/* Sub-reply inline form */
.sub-reply-inline-form { display:none; margin-top:0.3rem; padding-left:2rem; }
.sub-reply-inline-form.open { display:block; }
.sub-reply-inline-form textarea { width:100%; padding:0.4rem 0.6rem; border:1.5px solid #e2e8f0; border-radius:6px; resize:vertical; font-size:0.78rem; outline:none; font-family:inherit; box-sizing:border-box; }
.sub-reply-inline-form textarea:focus { border-color:var(--brand-500); box-shadow:0 0 0 3px rgba(0,191,165,0.1); }
.sub-reply-inline-actions { display:flex; justify-content:flex-end; gap:0.5rem; margin-top:0.4rem; }

/* Third-level (sub-sub-reply) */
.sub-sub-reply-list { margin-top:0.3rem; padding-left:2rem; border-left:2px solid #e2e8f0; }
.sub-sub-reply { padding:0.35rem 0; border-top:1px solid #f1f5f9; }
.sub-sub-reply:first-child { border-top:none; }
.sub-sub-reply-header { display:flex; align-items:center; gap:0.4rem; margin-bottom:0.15rem; }
.sub-sub-reply-avatar { width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:0.55rem; font-weight:600; flex-shrink:0; }
.sub-sub-reply-username { font-size:0.72rem; font-weight:500; color:#4b5563; }
.sub-sub-reply-date { font-size:0.65rem; color:#9ca3af; margin-left:auto; }
.sub-sub-reply-body { font-size:0.78rem; color:#6b7280; padding-left:1.5rem; line-height:1.5; }
.sub-sub-reply-actions { display:flex; align-items:center; gap:0.5rem; padding-left:1.5rem; margin-top:0.15rem; }
.sub-sub-vote-btn { display:inline-flex; align-items:center; gap:0.15rem; font-size:0.68rem; color:#9ca3af; cursor:pointer; user-select:none; transition:all 0.15s; padding:0.15rem 0.3rem; border-radius:4px; }
.sub-sub-vote-btn svg { width:13px; height:13px; }
.sub-sub-vote-btn:hover { color:#6b7280; background:#f1f5f9; }
.sub-sub-vote-btn.like:hover { color:#10b981; background:#ecfdf5; }
.sub-sub-vote-btn.dislike:hover { color:#ef4444; background:#fef2f2; }
.sub-sub-vote-btn.voted { pointer-events:none; }
.sub-sub-vote-btn.like.voted { color:#10b981; }
.sub-sub-vote-btn.dislike.voted { color:#ef4444; }

/* Expand toggle */
.sub-reply-expand { font-size:0.72rem; color:var(--brand-600); cursor:pointer; user-select:none; margin-top:0.2rem; padding-left:2rem; display:inline-block; }
.sub-reply-expand:hover { color:var(--brand-700); }
@media (max-width: 768px) {
  .reviews-summary { gap:1rem; }
  .reviews-score-big { font-size:1.75rem; }
  .review-avatar { width:40px; height:40px; }
  .review-date { margin-left:0; width:100%; }
  .review-meta-row { gap:0.375rem; }
}

/* Review Form */
.review-form-wrap { display:none; background:#f8fafc; border-radius:var(--radius-lg); padding:1rem; margin-bottom:1rem; }
.review-form-wrap.open { display:block; }
.form-row { display:flex; gap:0.5rem; margin-bottom:0.5rem; }
.form-row input { padding:0.5rem 0.75rem; border:1.5px solid #e2e8f0; border-radius:8px; font-size:0.9rem; outline:none; transition:border-color 0.2s; }
.form-row input:focus { border-color:var(--brand-500); box-shadow:0 0 0 3px rgba(0,191,165,0.1); }
.form-row input.nickname { width:140px; flex:none; }
.random-nick-btn { display:inline-flex; align-items:center; gap:4px; padding:0 12px; height:34px; border:1px solid var(--gray-200); border-radius:var(--radius-full); background:var(--white); color:var(--gray-500); font-size:0.78rem; font-weight:500; cursor:pointer; transition:all 0.2s ease; flex-shrink:0; white-space:nowrap; }
.random-nick-btn:hover { border-color:var(--brand-500); color:var(--brand-600); background:var(--brand-50); }
.random-nick-btn:active { transform:scale(0.96); }
.random-nick-btn .random-nick-icon { transition:transform 0.45s ease; }
.random-nick-btn:hover .random-nick-icon { transform:rotate(180deg); }
@media (max-width:480px) {
  .random-nick-btn { padding:0 10px; font-size:0.75rem; }
  .form-row input.nickname { width:120px; }
}
.star-picker { display:flex; align-items:center; gap:0.15rem; margin-bottom:0.5rem; user-select:none; flex-wrap:wrap; }
.star-picker .star { font-size:1.25rem; color:#d1d5db; cursor:pointer; transition:color 0.15s,transform 0.15s; line-height:1; }
.star-picker .star:hover,
.star-picker .star.hover { color:#f59e0b; transform:scale(1.15); }
.star-picker .star.active { color:#f59e0b; }
.star-picker-label { font-size:0.78rem; color:#64748b; margin-left:0.5rem; font-weight:600; }
.form-textarea { width:100%; padding:0.75rem; border:1.5px solid #e2e8f0; border-radius:8px; resize:vertical; font-size:0.9rem; outline:none; font-family:inherit; transition:border-color 0.2s; box-sizing:border-box; }
.form-textarea:focus { border-color:var(--brand-500); box-shadow:0 0 0 3px rgba(0,191,165,0.1); }
.form-actions { display:flex; align-items:center; justify-content:space-between; margin-top:0.625rem; flex-wrap:wrap; gap:0.5rem; }
.form-actions .form-tip { font-size:0.78rem; color:#94a3b8; }
.form-submit { padding:0.5rem 1.5rem; background:var(--brand-600); color:#fff; border:none; border-radius:8px; font-weight:600; cursor:pointer; font-size:0.9rem; transition:all 0.2s; }
.form-submit:hover { background:var(--brand-700); transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,191,165,0.3); }
.form-submit:disabled { opacity:0.5; cursor:not-allowed; transform:none; box-shadow:none; }
.review-item[data-new] { animation: reviewSlideIn 0.4s ease; background:linear-gradient(90deg, rgba(0,191,165,0.06), transparent); border-radius:var(--radius-lg); margin:0 -0.75rem; padding-left:0.75rem; padding-right:0.75rem; }
@keyframes reviewSlideIn { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }
.review-empty { text-align:center; padding:2.5rem 1rem; color:#94a3b8; font-size:0.9rem; }
.review-empty::before { content:""; display:block; width:44px; height:44px; margin:0 auto 0.75rem; border-radius:50%; background:#f1f5f9 url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/22px 22px no-repeat; }

/* ===== Gift Center ===== */
.gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
.gift-card { display: flex; align-items: center; gap: 0.75rem; background: linear-gradient(135deg, #fff7ed, #fff); border: 1px solid #fed7aa; border-radius: var(--radius-lg); padding: 0.875rem 1rem; }
.gift-info { flex: 1; min-width: 0; }
.gift-name { font-size: 0.88rem; font-weight: 700; color: #c2410c; }
.gift-desc { font-size: 0.72rem; color: var(--gray-500); margin: 3px 0 0.45rem; line-height: 1.4; }
.gift-code { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--gray-700); background: var(--gray-100); padding: 3px 10px; border-radius: 6px; letter-spacing: 1px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.gift-copy { flex-shrink: 0; border: none; background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 7px 16px; border-radius: var(--radius-full); cursor: pointer; transition: all 0.2s; }
.gift-copy:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,0.35); }
.gift-copy.done { background: var(--green-600, #16a34a); }
.gift-tip { font-size: 0.72rem; color: var(--gray-400); margin-top: 0.875rem; text-align: center; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: var(--brand-300); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; background: var(--gray-50); border: none; cursor: pointer; padding: 0.875rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--gray-800); text-align: left; transition: background 0.2s; }
.faq-q:hover { background: var(--brand-50); }
.faq-q .chevron { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.25s; color: var(--gray-400); }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); color: var(--brand-600); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a-inner { padding: 0.875rem 1rem; font-size: 0.82rem; color: var(--gray-600); line-height: 1.75; }

@media (max-width: 768px) {
  .gift-grid { grid-template-columns: 1fr; }
}

/* ===== 管理员/官方回复标识（2026-08-31 新增） =====
   由后台「内容 - 内容相关设置 - 评论审核」以管理员身份发布的回复，
   前台在用户名后挂这个橙色标签。 */
.dw-admin-tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:3px;background:linear-gradient(135deg,#ff9f43,#fa8231);color:#fff;font-size:11px;line-height:16px;font-weight:600;vertical-align:middle;white-space:nowrap}
.review-item .dw-admin-tag{transform:translateY(-1px)}

/* ===== 二级回复的赞/踩（2026-08-31 新增，与三级回复保持一致） ===== */
.sub-reply-vote-btn { display:inline-flex; align-items:center; gap:0.15rem; font-size:0.72rem; color:#9ca3af; cursor:pointer; user-select:none; transition:all 0.15s; padding:0.15rem 0.3rem; border-radius:4px; }
.sub-reply-vote-btn svg { width:14px; height:14px; }
.sub-reply-vote-btn:hover { color:#6b7280; background:#f1f5f9; }
.sub-reply-vote-btn.like:hover { color:#10b981; background:#ecfdf5; }
.sub-reply-vote-btn.dislike:hover { color:#ef4444; background:#fef2f2; }
.sub-reply-vote-btn.voted { pointer-events:none; }
.sub-reply-vote-btn.like.voted { color:#10b981; }
.sub-reply-vote-btn.dislike.voted { color:#ef4444; }

/* ===== 待审核评论（仅提交者本人可见）标识 ===== */
.dw-pending-tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:3px;background:#fff7e6;border:1px solid #ffd591;color:#d46b08;font-size:11px;line-height:16px;font-weight:600;vertical-align:middle;white-space:nowrap}

/* ===== 喜欢按钮：点亮态 + 点击特效（2026-10-03）=====
   坑：模板内联 JS 打的是 is-liked，老 game_detail.js 打的是 active，
   两个类名都要写，否则点了不变色。svg 默认 fill="none"，
   必须显式 fill 才能「实心」。 */
.hero-like-btn { position: relative; overflow: visible; }
.hero-like-btn.is-liked { font-weight: 700; }
/* 点赞瞬间的心形弹跳 */
.hero-like-btn.bump > svg:not(.dw-hp) { animation: dwHeartBump 0.5s cubic-bezier(.2,1.6,.4,1); }
.hero-like-btn.bump .dw-like-num { animation: dwNumPop 0.42s ease-out; }
@keyframes dwHeartBump {
  0%   { transform: scale(1); }
  22%  { transform: scale(0.72); }
  48%  { transform: scale(1.42); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1.12); }
}
@keyframes dwNumPop {
  0%   { transform: translateY(4px) scale(0.8); opacity: 0.35; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
/* 飘出的小爱心粒子（JS 动态插入 .dw-hp） */
.hero-like-btn .dw-hp {
  position: absolute; left: 15px; top: 4px;
  width: 13px; height: 13px; margin-left: -6px;
  pointer-events: none; z-index: 5;
  fill: #ff4d6d; stroke: #ff4d6d; stroke-width: 2;
  opacity: 0;
  will-change: transform, opacity;
  animation: dwHeartFly 0.78s cubic-bezier(.18,.72,.3,1) forwards !important;
}
@keyframes dwHeartFly {
  0%   { opacity: 0; transform: translate(0,0) scale(0.3) rotate(0deg); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.05) rotate(var(--rot)); }
}
/* 按钮被按下的回弹 */
.hero-like-btn:active { transform: scale(0.94); }
.hero-like-btn { transition: background .2s, color .2s, transform .12s; }
