﻿/* Auto-generated install page bundle 鈥?run: php scripts/build-install-css-bundle.php */

/* --- app-layout.css --- */
/* Page layout extensions 鈥?uses tokens from ../css/app.css (Estaro palette) */

:root {
  --header-offset: 0;
  --light-bg: #ffffff;
  --light-surface: #f8fafc;
  --light-border: #e2e8f0;
  --light-text: #0f172a;
  --light-muted: #64748b;
}

/* 鈺愨晲鈺?Split layout: hero (bg + overlay) + white main 鈺愨晲鈺?*/
body.layout-split,
body.layout-appcorner {
  padding-top: 0;
  background: var(--light-bg);
  color: var(--light-muted);
  overflow-x: hidden;
}

body.layout-split::before,
body.layout-split::after,
body.layout-appcorner::before,
body.layout-appcorner::after {
  display: none;
}

.page-hero {
  position: relative;
  color: #ffffff;
  max-width: 100%;
  padding-top: 0 !important;
}

.page-hero__bg,
.page-hero__overlay {
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-hero__content > .site-header--hero {
  margin-top: 0;
}

.hero-ad-slot {
  padding: var(--space-2) 0 0;
  max-width: 100%;
}

.page-hero .hero-ad-slot .ads_box {
  margin: 0;
}

.ads_box {
  margin: 0;
  min-height: 270px;
}
.minheight-250{
  min-height: auto;
}

.page-hero .hero-ad-slot .ad-label {
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-bottom: 5px;
}

.page-hero .hero-ad-slot .ad-label::before,
.page-hero .hero-ad-slot .ad-label::after {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.page-hero .hero-ad-placeholder {
  min-height: 90px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--light-muted);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/appiner-bg.webp') center / cover no-repeat;
  transform: scale(1.02);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 20, 0.5) 0%, rgba(12, 12, 20, 0.78) 55%, rgba(12, 12, 20, 0.88) 100%),
    linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, transparent 50%, rgba(59, 130, 246, 0.12) 100%);
}

.page-hero__content {
  position: relative;
  overflow: visible;
}

.page-hero__body {
  position: relative;
  z-index: 1;
}

.page-hero--home {
  padding-bottom: var(--space-4);
}

.page-hero--compact .page-hero__body {
  padding: var(--space-2) 0 var(--space-4);
  padding-bottom: 0;
}

.page-hero--compact .page-hero__title {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.page-hero--compact .page-hero__desc {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.site-header--hero {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
  overflow: visible;
}

.site-header--hero.is-scrolled {
  background: transparent;
}

.page-hero .main-nav-item {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero .main-nav-item:hover,
.page-hero .main-nav-item.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.page-hero .header_search.searchbar {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.page-hero .search-input {
  color: #ffffff;
}

.page-hero .search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero .lang-picker {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-hero .nav-toggle,
.page-hero .header-search-toggle {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.page-hero .header-search-toggle:hover,
.page-hero .header-search-toggle.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.65);
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero .breadcrumb a:hover {
  color: #ffffff;
}

.page-hero .breadcrumb-current {
  color: #ffffff;
}

.page-hero__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0 var(--space-2);
}

.page-hero__intro-visual {
  font-size: clamp(48px, 8vw, 72px);
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.page-hero__intro-text h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.page-hero__intro-text p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero__detail {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) 0;
}

.page-hero__detail-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.page-hero__detail-info h1 {
  margin: 0 0 6px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #ffffff;
}

.page-hero__detail-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.page-main {
  position: relative;
  z-index: 2;
  background: var(--light-bg);
  color: var(--light-muted);
  overflow-x: hidden;
  max-width: 100%;
}

.page-main__inner {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

/* White section 鈥?component overrides */
.page-main .block-head h2,
.page-main .cat-block-head h2,
.page-main .page-title-block h1,
.page-main .content-block h2,
.page-main .content-block__title,
.page-main .sidebar-title,
.page-main h2 {
  color: var(--light-text);
}

.page-main .block-more,
.page-main .cat-block-head .block-more {
  color: var(--primary);
}

.page-main .breadcrumb-bar {
  padding-top: var(--space-3);
}

.page-main .breadcrumb {
  color: var(--light-muted);
}

.page-main .breadcrumb a {
  color: var(--light-muted);
}

.page-main .breadcrumb a:hover {
  color: var(--primary);
}

.page-main .breadcrumb-current {
  color: var(--light-text);
}

.page-main .app-row {
  background: var(--light-surface);
  border-color: var(--light-border);
}

.page-main .app-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-main .app-row-title {
  color: var(--light-text);
}

.page-main .app-row-cat {
  color: var(--light-muted);
}

.page-main .app-row-dl {
  background: #eef2ff;
  color: var(--primary);
}

.page-main .topic-link-row {
  background: var(--light-surface);
  border-color: var(--light-border);
}

.page-main .topic-link-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-main .topic-link-text {
  color: var(--light-text);
}

.page-main .chart-tab {
  border-color: var(--light-border);
  color: var(--light-muted);
  background: #ffffff;
}

.page-main .chart-tab:hover {
  color: var(--light-text);
  border-color: #cbd5e1;
}

.page-main .cat-icon-item:hover {
  background: var(--light-surface);
  border-color: var(--light-border);
}

.page-main .cat-icon-label {
  color: var(--light-muted);
}

.page-main .editor-card {
  background: #ffffff;
  border-color: var(--light-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.page-main .editor-card-body h3 {
  color: var(--light-text);
}

.page-main .cat-block {
  border-bottom-color: var(--light-border);
}

.page-main .btn-see-more {
  background: #f3e8ff;
  color: var(--primary);
}

.page-main .detail-header-card,
.page-main .meta-cell,
.page-main .download-page-card,
.page-main .accordion-item,
.page-main .store-btn,
.page-main .pros-box,
.page-main .cons-box {
  background: var(--light-surface);
  border-color: var(--light-border);
}

.page-main .meta-cell-value,
.page-main .detail-header-info h1,
.page-main .accordion-trigger {
  color: var(--light-text);
}

.page-main .meta-grid--info .meta-cell {
  background: var(--light-surface);
  border-color: var(--light-border);
}

.page-main .meta-grid--info .meta-cell-label {
  color: var(--light-muted);
}

.page-main .meta-grid--info .meta-cell-value {
  color: var(--light-text);
}

.page-main .content-block p,
.page-main .content-block__body,
.page-main .accordion-panel {
  color: var(--light-muted);
}

.page-main .ad-placeholder {
  background: #f1f5f9;
  border: 1px dashed var(--light-border);
  color: var(--light-muted);
}

.page-main .popular-app-card {
  background: var(--light-surface);
  border-color: var(--light-border);
}

.page-main .popular-app-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.page-main .popular-app-name {
  color: var(--light-text);
}

.page-main .popular-app-category,
.page-main .popular-app-rating {
  color: var(--light-muted);
}

.page-main .search-results-header h1 {
  color: var(--light-text);
}

.page-main .search_item {
  background: var(--light-surface);
  border-color: var(--light-border);
}

.page-main .item_title {
  color: var(--light-text);
}

.page-hero .cat-hero-hot {
  padding-top: var(--space-2);
}

.page-hero .cat-hero-hot-item {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
}

.page-hero .verified-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-main .search-page {
  padding-top: 0;
}

.page-main .search-results-header h2 {
  color: var(--light-text);
  font-size: 22px;
  margin: 0 0 8px;
}

/* Search results page */
.page-hero--search {
  padding-bottom: 0;
}

.search-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-4);
}

.search-page-main {
  min-width: 0;
}

.search-page-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--light-text);
  line-height: 1.3;
}

.search-ad-banner {
  margin-bottom: var(--space-3);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.search-result-card {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--light-border);
}

.search-result-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.search-result-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.search-result-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  background: var(--light-surface);
  border: 1px solid var(--light-border);
}

.search-result-card__info {
  flex: 1;
  min-width: 0;
}

.search-result-card__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.search-result-card__title a {
  color: var(--light-text);
}

.search-result-card__title a:hover {
  color: var(--primary);
}

.search-result-card__rating {
  font-size: 14px;
  font-weight: 600;
  color: var(--rating);
}

.search-result-card__btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.search-result-card__btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.search-result-card__desc {
  margin: var(--space-2) 0 0 84px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--light-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.search-page-sidebar {
  position: sticky;
  top: 24px;
}

.search-page-sidebar .sidebar-title {
  margin: 0 0 var(--space-2);
  font-size: 18px;
  font-weight: 700;
  color: var(--light-text);
}

.search-popular-block {
  margin-top: var(--space-2);
}

.app-row-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-main .detail-sidebar {
  top: 24px;
}

.page-main .pagination {
  gap: 10px;
  margin-top: var(--space-4);
}

.page-main .pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--light-border);
  color: var(--light-text);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.page-main .pagination a.page-link:hover {
  background: var(--light-surface);
  border-color: #cbd5e1;
  color: var(--light-text);
}

.page-main .pagination .page-link.active {
  background: var(--gradient-cta);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--primary-glow);
}

.page-main .pagination .page-link.disabled {
  background: #f1f5f9;
  border-color: var(--light-border);
  color: #94a3b8;
  opacity: 1;
  cursor: not-allowed;
}

.site-header--layout {
  position: static;
  padding: 10px 0;
  background: var(--header-bg);
}

.site-header--hero.site-header--layout {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero .site-header {
  position: relative;
  overflow: visible;
  z-index: 50;
}

.page-hero .main-nav,
.page-hero .nav--appcorner {
  overflow: visible;
}

.site-top .site-header.is-scrolled {
  background: var(--header-bg-scrolled);
}

.nav--appcorner {
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.nav--appcorner .brand,
.nav--appcorner .main-nav {
  flex-shrink: 0;
}

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

.main-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
  width: 100%;
}
#div-gpt-ad-all-m1{
  text-align: center;
}
.main-nav-item:hover,
.main-nav-item.is-active {
  color: var(--text-strong);
  background: var(--surface-solid);
}

.main-nav-icon { font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.main-nav-icon .icon--windows { width: 16px; height: 16px; display: block; }

.main-nav-dropdown {
  position: relative;
  z-index: 210;
}

.main-nav-dropdown.is-open,
.main-nav-dropdown:hover {
  z-index: 220;
}

.main-nav-item--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}

.main-nav-item-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 8px 12px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: inherit;
  font-size: 14px;
  font-weight: 500;
}

.main-nav-chevron-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.main-nav-chevron {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform var(--transition), color var(--transition);
}

.main-nav-dropdown.is-open .main-nav-chevron,
.main-nav-dropdown:hover .main-nav-chevron {
  transform: rotate(180deg);
  color: #059669;
}

.page-hero .main-nav-dropdown.is-open .main-nav-chevron,
.page-hero .main-nav-dropdown:hover .main-nav-chevron {
  color: #86efac;
}

.main-nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 0;
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  border-right: 3px solid #059669;
  z-index: 1000;
}

.main-nav-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.main-nav-dropdown.is-open .main-nav-menu,
.main-nav-dropdown:hover .main-nav-menu {
  display: block;
}

.main-nav-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.main-nav-menu-item:hover {
  background: #f8fafc;
  color: var(--primary);
}

.main-nav-menu-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.main-nav-menu-item--all {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  color: var(--primary);
  font-weight: 600;
}

.page-hero .main-nav-item--dropdown {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero .main-nav-item--dropdown:hover,
.page-hero .main-nav-item--dropdown.is-active,
.page-hero .main-nav-dropdown.is-open .main-nav-item--dropdown,
.page-hero .main-nav-dropdown:hover .main-nav-item--dropdown {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav--appcorner .header_search.searchbar,
.site-header--search .nav--appcorner .header_search.searchbar {
  flex: 1 1 auto;
  min-width: 180px;
  max-width: 480px;
  width: auto;
  margin: 0 0 0 auto;
  border-radius: var(--radius-sm);
}

.nav--appcorner .header_search.search-input-s-rsc {
  margin: 0 0 0 auto;
  max-width: 480px;
}

.nav--appcorner .lang-picker,
.nav--appcorner .nav-toggle {
  flex-shrink: 0;
}

.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 14px;
  flex-shrink: 0;
  display: none;
}

.breadcrumb-bar { padding: var(--space-2) 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted-2);
  margin: 0;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-strong); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: var(--text-strong); }

/* Hero promo */
.promo-hero { padding: var(--space-3) 0; }

.promo-hero-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent-a15), rgba(59, 130, 246, 0.08));
  box-shadow: var(--shadow-soft);
  min-height: 200px;
}

.promo-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.9;
}

.promo-hero-body h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-strong);
}

.promo-hero-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.promo-hero-btn {
  display: inline-flex;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--gradient-cta);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: background var(--transition), transform var(--transition);
}

.promo-hero-btn:hover {
  background: var(--gradient-cta-hover);
  transform: translateY(-1px);
}

.promo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

/* Homepage promo banners 鈥?full-bleed bg + bottom overlay bar */
.promo-banner {
  position: relative;
  display: block;
  aspect-ratio: 2.45 / 1;
  min-height: 112px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.promo-banner-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.promo-banner-art {
  font-size: clamp(40px, 6vw, 64px);
  opacity: 0.35;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.promo-banner--photo .promo-banner-bg {
  background-color: #e8e8ee;
}

.promo-banner--teams .promo-banner-bg {
  background: linear-gradient(145deg, #ececf1 0%, #d8d8e2 45%, #b8bcc8 100%);
}

.promo-banner--teams .promo-banner-art { opacity: 0.5; }

.promo-banner--play .promo-banner-bg {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(135deg, #1a73e8 0%, #4285f4 40%, #7baaf7 100%);
}

.promo-banner--play .promo-banner-art { opacity: 0.25; color: #fff; }

.promo-banner--itv .promo-banner-bg {
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.15), transparent 50%),
    linear-gradient(145deg, #5c4a6e 0%, #8b6f82 35%, #c4a882 70%, #e8d4b8 100%);
}

.promo-banner-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 100%);
}

.promo-banner-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.promo-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 18px;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.promo-banner-icon img,
.promo-banner-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-banner-art img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.35;
}

.promo-banner-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-banner-get {
  flex-shrink: 0;
  padding: 6px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #12121c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

/* Section blocks */
.block-section { padding: var(--space-4) 0; }

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.block-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
}

.block-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.block-more:hover { color: var(--primary-strong); }

.chart-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.chart-tab {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.chart-tab:hover {
  color: var(--text-strong);
  border-color: var(--border-hover);
}

.chart-tab.is-active {
  background: var(--gradient-cta);
  border-color: transparent;
  color: var(--on-primary);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.chart-panel { display: none; }
.chart-panel.is-active { display: block; }

/* App row grid */
.app-row-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
}

.app-row:hover {
  border-color: var(--accent-a35);
  background: var(--surface-hover);
}

.app-row-rank {
  width: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  text-align: center;
  flex-shrink: 0;
}

.app-row-icon {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 45px;
  /* background: var(--surface-2); */
  flex-shrink: 0;
  overflow: hidden;
}

.app-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-row-cat { font-size: 12px; color: var(--muted-2); }

.app-row-rating {
  font-size: 12px;
  color: var(--rating);
  font-weight: 500;
}

.app-row-dl {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  background: var(--accent-a08);
  flex-shrink: 0;
  font-size: 16px;
}

.dl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  line-height: 0;
}

.dl-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.best-list-item__dl .dl-icon {
  width: 16px;
  height: 16px;
}

.best-list-item__dl .dl-icon svg path {
  fill: #ffffff;
}

.meta-cell-icon.dl-icon {
  width: 20px;
  height: 20px;
}

/* Category carousel */
.cat-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.cat-carousel__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cat-carousel__page {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.cat-carousel__row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-2);
}

.cat-carousel__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), opacity var(--transition), transform var(--transition);
}

.cat-carousel__btn:hover:not(:disabled) {
  background: #d1fae5;
  transform: scale(1.05);
}

.cat-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-main .cat-carousel__btn {
  background: #f3e8ff;
  color: var(--primary);
}

.page-main .cat-carousel__btn:hover:not(:disabled) {
  background: #e9d5ff;
}

/* Category icon grid (legacy) */
.cat-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2);
}

.cat-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--space-2);
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-align: center;
  min-width: 0;
  transition: border-color var(--transition), background var(--transition);
}

.cat-icon-item:hover {
  border-color: var(--border);
  background: var(--surface-solid);
}

.cat-icon-visual {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--accent-a25), rgba(59, 130, 246, 0.15));
  overflow: hidden;
}

.cat-icon-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.cat-icon-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
  width: 100%;
  max-width: 100%;
}

/* Editor's choice */
.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.editor-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  transition: transform var(--transition), border-color var(--transition);
}

.editor-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.editor-card-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(217, 70, 239, 0.1));
}

.editor-card-body { padding: var(--space-2) var(--space-3) var(--space-3); }

.editor-card-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.4;
}

/* L1 category */
.cat-hero { margin-bottom: var(--space-4); }

.cat-hero-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-solid);
}

.cat-hero-main {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 180px;
}

.cat-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-elevated));
}

.cat-hero-text {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-hero-text h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text-strong);
}

.cat-hero-text p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cat-hero-hot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px var(--space-3);
  overflow-x: auto;
  padding-left: 0;
}

.cat-hero-hot-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.cat-hero-hot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-a08);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-hero-hot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

.cat-hero-hot-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-block {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.cat-block:last-child { border-bottom: none; }

.cat-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.cat-block-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
}

.page-title-block { padding: var(--space-2) 0 var(--space-3); }

.page-title-block h1 {
  margin: 0 0 var(--space-2);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--text-strong);
}

.btn-see-more {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-a15);
  color: var(--primary-strong);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition);
}

.btn-see-more:hover { background: var(--accent-a25); }

/* Detail page 鈥?hero module (image 2 layout) */
body.layout-split.detail-page {
  padding-top: 0;
}

.page-hero--detail {
  padding-bottom: var(--space-4);
}

.detail-hero-module {
  padding: var(--space-2) 0 var(--space-4);
  position: relative;
  z-index: 2;
}

.detail-main--hero {
  min-width: 0;
}

.detail-body-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-4);
  align-items: start;
}

.detail-body-layout--download {
  align-items: stretch;
}

.detail-body-layout--download .detail-body-col {
  display: flex;
  flex-direction: column;
}

.detail-body-layout--download .download-page-card--hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 0;
}

.detail-body-layout--download .download-page-card--hero .download-rating {
  margin-top: 40px;
  flex-shrink: 0;
}

.detail-body-col {
  min-width: 0;
}

.breadcrumb--light {
  color: rgba(255, 255, 255, 0.65);
  padding: 0 0 var(--space-2);
}

.breadcrumb--light a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb--light a:hover {
  color: #ffffff;
}

.breadcrumb--light .breadcrumb-current {
  color: #ffffff;
}

.detail-app-head {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.12); */
}

.detail-app-head__icon {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  overflow: hidden;
}

.detail-app-head__icon img,
.app-row-icon img,
.search-result-card__icon img,
.popular-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  display: block;
}

.app-row-icon img,
.search-result-card__icon img {
  border-radius: inherit;
}

.detail-main--hero .popular-app-icon {
  overflow: hidden;
}

.detail-app-head__info h1,
.detail-app-head__info h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-app-head__rating {
  font-size: 15px;
  font-weight: 600;
  color: var(--rating);
}

.verified-badge--light {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12px;
}

.detail-main--hero .detail-sidebar--hero {
  position: static;
  max-height: none;
  overflow-y: visible;
}

.detail-ad-banner {
  margin-bottom: var(--space-3);
}

.detail-ad-banner--top {
  margin-bottom: var(--space-3);
}

.detail-ad-banner--bottom {
  margin-top: var(--space-3);
  margin-bottom: 0;
}

.detail-main--hero .ad-placeholder {
  /* background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: var(--light-muted); */
}

.detail-main--hero .ad-placeholder--sidebar {
  min-height: 250px;
}

.ad-placeholder--skyscraper {
  min-height: 600px;
}

.detail-main--hero .screenshots-wrap {
  position: relative;
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.detail-main--hero .screenshots-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.detail-main--hero .screenshots-track::-webkit-scrollbar {
  display: none;
}

.detail-main--hero .screenshot-item {
  flex-shrink: 0;
  width: 240px;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  scroll-snap-align: start;
  position: relative;
}

.detail-main--hero .screenshot-item::after {
  display: none;
}

.detail-main--hero .screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-main--hero .carousel-nav {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.detail-main--hero .carousel-nav.prev {
  left: 0;
}

.detail-main--hero .carousel-nav.next {
  right: 0;
}

.detail-main--hero .carousel-nav:hover:not(:disabled) {
  background: #d1fae5;
}

.detail-main--hero .carousel-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.detail-info-title {
  margin: var(--space-3) 0 var(--space-2);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.meta-grid--info .meta-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.meta-grid--info .meta-cell-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.meta-grid--info .meta-cell-label {
  color: rgba(255, 255, 255, 0.55);
}

.meta-grid--info .meta-cell-value {
  color: #ffffff;
}

.detail-main--hero .sidebar-title {
  color: #ffffff;
  margin-bottom: var(--space-2);
  font-size: 18px;
  font-weight: 700;
}

.detail-main--hero .popular-app-name {
  color: #ffffff;
}

.detail-main--hero .popular-app-category {
  color: rgba(255, 255, 255, 0.55);
}

.detail-main--hero .popular-app-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.detail-main--hero .popular-app-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  transform: none;
}

.detail-main--hero .popular-app-rating {
  color: rgba(255, 255, 255, 0.85);
}

.detail-main--hero .sidebar-section {
  margin-top: var(--space-3);
}

.detail-main--hero .ad-label {
  color: rgba(255, 255, 255, 0.5);
}

.detail-main--hero .ad-label::before,
.detail-main--hero .ad-label::after {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* Detail content on hero background */
.detail-main--hero .content-block h2,
.detail-main--hero .content-block__title {
  color: #ffffff;
}

.detail-main--hero .content-block p,
.detail-main--hero .content-block__body,
.detail-main--hero .app-overview-body,
.detail-main--hero .app-overview-body p,
.detail-main--hero .app-overview-body h2,
.detail-main--hero .app-overview-body h3,
.detail-main--hero .app-overview-body h4,
.detail-main--hero .detail-list,
.detail-main--hero .detail-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.detail-main--hero .detail-subtitle {
  font-size: 15px;
  margin: 16px 0 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.detail-main--hero .detail-list {
  padding-left: 20px;
  line-height: 1.8;
}

.detail-main--hero .pros-box,
.detail-main--hero .cons-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.detail-main--hero .pros-box h3,
.detail-main--hero .cons-box h3 {
  color: #ffffff;
}

.detail-main--hero .pros-box li,
.detail-main--hero .cons-box li {
  color: rgba(255, 255, 255, 0.78);
}

.detail-main--hero .accordion-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.detail-main--hero .accordion-trigger {
  color: #ffffff;
}

.detail-main--hero .accordion-panel {
  color: rgba(255, 255, 255, 0.78);
}

.detail-main--hero .store-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.detail-main--hero .app-row {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.detail-main--hero .app-row:hover {
  background: rgba(255, 255, 255, 0.14);
}

.detail-main--hero .app-row-title {
  color: #ffffff;
}

.detail-main--hero .app-row-cat {
  color: rgba(255, 255, 255, 0.55);
}

.detail-main--hero .btn-show-toggle {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.detail-main--hero .download-page-title {
  color: #ffffff;
}

.detail-main--hero .download-page-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  overflow: hidden;
  min-height: 530px;
}

.detail-main--hero .download-app-name {
  color: var(--light-text);
}

.detail-main--hero .download-note {
  color: rgba(255, 255, 255, 0.65);
}

.detail-main--hero .btn-google-play {
  background: transparent;
  border-color: #22c55e;
  color: #4ade80;
}

.detail-main--hero .btn-google-play:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #4ade80;
}

/* Detail page v2 */

.detail-header-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-solid);
}

.detail-header-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: var(--surface-2);
  flex-shrink: 0;
}

.detail-header-info h1 {
  margin: 0 0 6px;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-a15);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 600;
}

.detail-stars { color: var(--rating); font-size: 14px; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: var(--space-3);
}

.meta-cell {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.meta-cell-label {
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.meta-cell-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

.pros-box,
.cons-box {
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pros-box { background: rgba(34, 197, 94, 0.08); }
.cons-box { background: rgba(239, 68, 68, 0.08); }

.pros-box h3,
.cons-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text-strong);
}

.pros-box ul,
.cons-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--space-3) 0;
  margin-top: 50px;
}

.btn-download-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: #2196F3;
  color: var(--on-primary);
  font-size: 21px;
  font-weight: 700;
  box-shadow: 0 4px 24px var(--primary-glow);
  transition: background var(--transition), transform var(--transition);
}


.store-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}

.store-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.store-btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.store-btn--disabled {
  background: #f0f0f4;
  border-color: #e2e2e8;
  color: #a8a8b3;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.72;
}

.store-btn--disabled .store-btn__icon {
  opacity: 0.45;
  filter: grayscale(1);
}

.detail-main--hero .store-btn--disabled {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.32);
  opacity: 1;
}

.detail-main--hero .store-btn--disabled .store-btn__icon {
  opacity: 0.35;
}

.store-btn--active {
  background: #2f6bff;
  border-color: #2f6bff;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.35);
}

.store-btn--active:hover {
  background: #1f56e5;
  border-color: #1f56e5;
  color: #ffffff;
}

.detail-main--hero .store-btn--active,
.detail-main--hero .download-actions-block--card .store-btn--active {
  background: #2f6bff !important;
  border-color: #4d84ff !important;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.42);
}

.detail-main--hero .download-actions-block--card .store-btn--active:hover {
  background: #1f56e5;
  border-color: #6b9bff;
  color: #ffffff;
}

.store-btns .store-btn--microsoft {
  grid-column: 1 / -1;
}

.store-btn__icon .icon--microsoft,
.store-btn__icon .icon--globe {
  width: 20px;
  height: 20px;
}

/* Accordion */
.accordion-list { display: flex; flex-direction: column; gap: 8px; }

.accordion-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-a15);
  color: var(--primary);
  flex-shrink: 0;
  font-size: 14px;
}

.accordion-chevron {
  margin-left: auto;
  color: var(--muted-2);
  transition: transform var(--transition);
}

.accordion-item.is-open .accordion-chevron { transform: rotate(180deg); }

.accordion-panel {
  display: none;
  padding: 0 16px 14px 54px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.accordion-item.is-open .accordion-panel { display: block; }

.accordion-item--extra { display: none; }
.accordion-list.is-expanded .accordion-item--extra { display: block; }

.btn-show-toggle {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.download-page-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--light-text);
  line-height: 1.25;
}

.thanks-panel {
  margin-bottom: var(--space-3);
}

.thanks-panel__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.thanks-panel__message {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: var(--space-3) 0;
}

.thanks-actions .btn-download-main {
  flex: 1 1 220px;
  text-align: center;
}

.thanks-actions__secondary {
  flex: 0 1 180px;
  min-height: 48px;
}

.download-page-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  background: #ffffff;
  margin-bottom: var(--space-3);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.page-main .download-page-card {
  background: #ffffff;
  border-color: var(--light-border);
}

.download-app-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.download-app-name {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--light-text);
  margin-bottom: 6px;
}

.download-actions-block {
  margin-bottom: var(--space-3);
}

.btn-google-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid #22c55e;
  background: transparent;
  color: #16a34a;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}

.btn-google-play:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: #16a34a;
}

.download-note {
  font-size: 12px;
  color: var(--light-muted);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.5;
  display: none;
}

.page-main .download-ad-banner {
  margin-bottom: var(--space-4);
}

/* Download / Thanks hero card layout */
.download-page-card--hero {
  padding: 24px 28px;
  margin-bottom: var(--space-3);
}

.download-page-card--hero .download-card-search {
  width: 80%;
  max-width: none;
  margin: 0 auto 50px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  padding: 4px 6px 4px 16px;
  box-shadow: none;
}

.download-page-card--hero .download-card-search:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.download-page-card--hero .download-card-search .search-input {
  color: #ffffff;
  font-size: 15px;
  padding: 8px 0;
}

.download-page-card--hero .download-card-search .search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.download-page-card--hero .download-card-search .search-container::before {
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E");
}

.download-page-card--hero .download-card-search .search-submit {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.download-page-card--hero .download-card-search .search-submit svg {
  width: 18px;
  height: 18px;
}

.download-ready {
  display: flex;
  gap: 32px;
  align-items: stretch;
  width: 100%;
}

.download-ready__preview {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-ready__icon {
  width: 132px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: none;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  padding: 16px 12px 12px;
}

.download-ready__icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  font-size: 48px;
}

.download-ready__icon-inner img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  border-radius: 14px;
}

.download-ready__filename {
  flex-shrink: 0;
  width: 100%;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  line-height: 1.35;
  word-break: break-word;
  margin-top: 10px;
}

.download-ready__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
}

.download-ready__title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.download-ready__message {
  margin: 0 0 70px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
  max-width: 480px;
}

.download-ready__cta {
  margin: 0;
  width: 100%;
  max-width: 240px;
}

.btn-download-main--card {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4ec4b0 0%, #3aab98 100%);
  box-shadow: 0 2px 0 #2d9684;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
}

.btn-download-main--card:hover {
  background: linear-gradient(180deg, #56cbb7 0%, #42b5a2 100%);
}

.download-actions-block--card {
  margin: 0;
  width: 100%;
  max-width: none;
}

.download-actions-block--card .store-btns {
  margin-top: 0;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-actions-block--card .store-btn--microsoft {
  grid-column: auto;
}

.download-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 8px;
  padding: 0;
  margin: 18px 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.download-page-card--hero .download-rating {
  margin: 18px 0 0;
  padding: 0;
  border: none;
}

.download-rating__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.download-rating__stars {
  display: inline-flex;
  gap: 1px;
  font-size: 16px;
  line-height: 1;
}

.download-rating__star {
  color: rgba(255, 255, 255, 0.22);
}

.download-rating__star--full,
.download-rating__star--half {
  color: #f59e0b;
}

.download-rating__score,
.download-rating__votes {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.detail-main--hero .download-actions-block--card .store-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.detail-main--hero .download-actions-block--card .store-btn__icon {
  width: 18px;
  height: 18px;
}

.detail-main--hero .download-actions-block--card .store-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.detail-body-col > .breadcrumb--light {
  margin-bottom: var(--space-2);
}

.footer--compact {
  padding: var(--space-3) 0;
  text-align: center;
}

.footer--compact .menu {
  justify-content: center;
  gap: var(--space-4);
}

.footer--compact .footer-divider,
.footer--compact .footer-description,
.footer--compact .footer-brand { display: none; }

/* Topic / Best-of list page */
.topic-page-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.topic-page-intro {
  margin: 0 0 var(--space-4);
  max-width: 720px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.best-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.best-list-item {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.best-list-item__head {
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.best-list-item__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.best-list-item__title a {
  color: #ffffff;
}

.best-list-item__title a:hover {
  color: #c4b5fd;
}

.best-list-item__cat {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.best-list-item__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-3);
  align-items: center;
}

.best-list-item__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.best-list-item__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.best-list-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.best-list-item__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.best-stat {
  padding: 8px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.best-stat__label {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.best-stat__value {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.best-stat__value--rating {
  color: var(--rating);
  letter-spacing: 1px;
}

.best-stat__value--free {
  color: #4ade80;
}

.best-list-item__dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--gradient-cta);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.best-list-item__dl:hover {
  background: var(--gradient-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.best-list-item__shots {
  display: flex;
  gap: 12px;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
}

.best-shot {
  flex: 0 0 120px;
  width: 120px;
  height: 213px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.best-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.best-shot--placeholder {
  background: linear-gradient(145deg, #1e1e2d, #3b82f6);
}

.best-shot--placeholder:nth-child(2) { background: linear-gradient(145deg, #252538, #a855f7); }
.best-shot--placeholder:nth-child(3) { background: linear-gradient(145deg, #1a1a2e, #d946ef); }

.best-list-item__desc {
  margin: var(--space-3) 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.best-list-ad {
  margin: 0;
}

.topic-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-link-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
}

.topic-link-row:hover {
  border-color: var(--accent-a35);
  background: var(--surface-hover);
}

.topic-link-thumb {
  width: 120px;
  height: 72px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e293b, #6366f1);
}

.topic-link-thumb--2 { background: linear-gradient(135deg, #1e293b, #ec4899); }
.topic-link-thumb--3 { background: linear-gradient(135deg, #1e293b, #14b8a6); }
.topic-link-thumb--4 { background: linear-gradient(135deg, #1e293b, #f59e0b); }
.topic-link-thumb--5 { background: linear-gradient(135deg, #1e293b, #8b5cf6); }

.topic-link-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.4;
}

.topic-link-row:hover .topic-link-text {
  color: var(--primary);
}
@media (max-height:769px) {
  .detail-app-head{
    padding: 8px 0;
    margin: 8px 0;
  }
  .download-page-title{
    margin-bottom: 5px;
  }
  .breadcrumb{
    margin-bottom: 10px !important;
  }
  .sidebar-section{
    margin-top: 0 !important;
  }
}
@media (max-width: 1024px) {
  .app-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .best-list-item__row { grid-template-columns: 1fr; }
  .cat-carousel__row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cat-icon-grid { grid-template-columns: repeat(4, 1fr); }
  .editor-grid { grid-template-columns: 1fr; }
  .promo-hero-card { grid-template-columns: 1fr; }
  .cat-hero-main { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-body-layout { grid-template-columns: 1fr; }
  .detail-body-layout--download {
    align-items: start;
  }
  .detail-body-layout--download .detail-body-col {
    display: block;
  }
  .detail-body-layout--download .download-page-card--hero {
    flex: none;
    display: block;
    justify-content: flex-start;
    margin-bottom: var(--space-3);
  }
  .detail-body-layout--download .download-page-card--hero .download-rating {
    margin-top: var(--space-2);
  }
  .detail-sidebar--hero { position: static; }
  .detail-app-head__icon { width: 80px; height: 80px; font-size: 40px; }
  .search-page-layout { grid-template-columns: 1fr; }
  .search-page-sidebar { position: static; }
  .app-row-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
 
  :root { --header-offset: 64px; }
  .detail-app-head{
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .detail-ad-banner--top{
    margin-top: 0;
  }
  .download-ready {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .download-ready__body {
    width: 100%;
    padding-top: 0;
    align-items: center;
  }
  .download-ready__title {
    font-size: 22px;
  }
  .download-rating,
  .download-page-card--hero .download-rating {
    justify-content: center;
    margin-top: 16px;
  }
  .download-ready__message,
  .download-note--visible {
    text-align: center;
    max-width: none;
  }
  .download-ready__cta,
  .download-actions-block--card {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .download-ready__icon {
    width: 120px;
    min-height: 160px;
  }
  .breadcrumb,.page-hero--compact .page-hero__title{
    padding: 0 15px;
  }
  .site-header--search.is-search-open {
    --header-offset: 120px;
  }

  .nav--appcorner {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .nav--appcorner .brand {
    order: 1;
    margin-right: auto;
    margin-left: 0;
  }

  .nav--appcorner .lang-picker {
    order: 2;
    margin-left: 0;
  }

  .nav--appcorner .header-search-toggle {
    order: 3;
    margin-left: 0;
    display: flex;
  }

  .nav--appcorner .nav-toggle {
    order: 4;
    margin-left: 0;
    display: flex;
  }

  .main-nav { display: none; order: 6; }

  .nav--appcorner .header_search,
  .nav--appcorner .header_search.search-input-s-rsc {
    display: none;
    order: 5;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .site-header--search.is-search-open .nav--appcorner .header_search {
    display: block;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-2);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    z-index: 10;
  }

  .page-hero .main-nav.is-open {
    background: rgba(12, 12, 20, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .page-hero .main-nav.is-open .main-nav-item {
    color: rgba(255, 255, 255, 0.9);
  }

  .page-hero .main-nav.is-open .main-nav-item:hover,
  .page-hero .main-nav.is-open .main-nav-item.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
  }

  .main-nav-dropdown {
    width: 100%;
  }

  .main-nav-item--dropdown {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
  }

  .main-nav-item-link {
    flex: 1;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Touch: only .is-open controls menu 鈥?ignore sticky :hover */
  .main-nav-dropdown:hover .main-nav-menu {
    display: none;
  }

  .main-nav-dropdown.is-open .main-nav-menu {
    display: block;
  }

  .main-nav-dropdown:hover .main-nav-chevron {
    transform: none;
    color: inherit;
  }

  .main-nav-dropdown.is-open .main-nav-chevron {
    transform: rotate(180deg);
    color: #059669;
  }

  .page-hero .main-nav-dropdown.is-open .main-nav-chevron {
    color: #86efac;
  }

  .main-nav-chevron-btn {
    flex-shrink: 0;
    min-width: 80px;
    min-height: 44px;
    padding: 0;
    margin-right: 4px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .main-nav-chevron {
    width: 14px;
    height: 14px;
  }

  .main-nav-menu {
    position: static;
    max-height: none;
    margin-top: 4px;
    margin-bottom: 4px;
    box-shadow: none;
    border-right: none;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
  }

  .main-nav-menu-item {
    color: rgba(255, 255, 255, 0.92);
  }

  .main-nav-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .main-nav-menu-item--all {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: #c4b5fd;
  }

  .promo-cards { grid-template-columns: minmax(0, 1fr); }
  .promo-banner { aspect-ratio: 2.2 / 1; min-height: 100px; }
  .app-row-grid { grid-template-columns: minmax(0, 1fr); }

  .app-row {
    gap: 8px;
    padding: 8px 10px;
  }

  .app-row-icon {
    width: 52px;
    height: 52px;
    font-size: 32px;
    border-radius: 10px;
  }

  .app-row-rank {
    width: 18px;
    font-size: 12px;
  }

  .nav--appcorner .header_search.searchbar,
  .site-header--search .nav--appcorner .header_search.searchbar {
    min-width: 0;
  }

  .cat-carousel {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 12px;
    align-items: center;
  }

  .cat-carousel__viewport {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  .cat-carousel__btn {
    width: 36px;
    height: 36px;
  }

  .cat-carousel__btn--prev {
    grid-column: 2;
    grid-row: 2;
  }

  .cat-carousel__btn--next {
    grid-column: 3;
    grid-row: 2;
  }

  .cat-carousel__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .cat-icon-item {
    padding: 6px 2px;
    gap: 6px;
  }

  .cat-icon-visual {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 12px;
  }

  .cat-icon-label {
    font-size: 10px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  .cat-icon-grid { grid-template-columns: repeat(3, 1fr); }
  .pros-cons { grid-template-columns: 1fr; }
  .store-btns { grid-template-columns: 1fr; }
  .download-actions-block--card .store-btns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .topic-link-thumb { width: 88px; height: 56px; }
  .best-list-item__shots {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .best-shot {
    flex: 0 0 100px;
    width: 100px;
    height: 178px;
    scroll-snap-align: start;
  }
  .app-row-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .search-result-card__head {
    flex-wrap: wrap;
  }
  .search-result-card__btn {
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }
  .search-result-card__desc {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .download-actions-block--card .store-btns{
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .page-hero__intro{
    margin-top: 10px;
  }
  .cat-carousel__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .cat-icon-visual {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 10px;
  }

  .cat-icon-label {
    font-size: 9px;
  }
}

/* --- app-app.css --- */
/* Appiner UI Redesign 锟?Design System (style.md) */
/* app-layout.css and Inter font are loaded separately on install/download pages */

:root {
  /* Estaro-inspired 锟?deep navy base + purple/magenta accents + electric blue */
  --bg: #12121c;
  --bg-deep: #0c0c14;
  --bg-elevated: #1e1e2d;
  --surface: rgba(30, 30, 45, 0.62);
  --surface-hover: rgba(37, 37, 56, 0.88);
  --surface-solid: #252538;
  --surface-2: #1e1e2d;
  --surface-glass: rgba(18, 18, 28, 0.88);
  --border: #2f2f45;
  --border-hover: #3d3d58;
  --primary: #a855f7;
  --primary-hover: #9333ea;
  --primary-strong: #c084fc;
  --primary-glow: rgba(168, 85, 247, 0.35);
  --secondary: #3b82f6;
  --secondary-glow: rgba(59, 130, 246, 0.22);
  --accent-magenta: #d946ef;
  --accent-orange: #f97316;
  --success: #22c55e;
  --gradient-cta: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
  --gradient-cta-hover: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
  --accent-a08: rgba(168, 85, 247, 0.08);
  --accent-a10: rgba(168, 85, 247, 0.1);
  --accent-a12: rgba(168, 85, 247, 0.12);
  --accent-a15: rgba(168, 85, 247, 0.15);
  --accent-a18: rgba(168, 85, 247, 0.18);
  --accent-a25: rgba(168, 85, 247, 0.22);
  --accent-a30: rgba(168, 85, 247, 0.28);
  --accent-a35: rgba(168, 85, 247, 0.32);
  --accent-a40: rgba(168, 85, 247, 0.38);
  --accent-a45: rgba(168, 85, 247, 0.42);
  --text: #94a3b8;
  --text-strong: #ffffff;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --on-primary: #ffffff;
  --rating: #f97316;
  --header-bg: rgb(31 22 44);
  --header-bg-scrolled: rgba(18, 18, 28, 0.96);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.38), 0 0 48px rgba(168, 85, 247, 0.06);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.12);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 5px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --container: min(1300px, 92%);
  --transition: 0.2s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --night-sky: #12121c;
  --blueberry: #1a1a2e;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(135deg, var(--night-sky) 0%, var(--blueberry) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(168, 85, 247, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 10%, rgba(217, 70, 239, 0.1), transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(59, 130, 246, 0.08), transparent 60%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 12, 20, 0.2) 0%, rgba(12, 12, 20, 0.45) 100%);
  pointer-events: none;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
}
.container-fluid, .container-lg, .container-md, .container-sm, .container-xl{
   padding-right: 0;
   padding-left: 0;
}

/* 鈹€鈹€鈹€ Header 鈹€鈹€鈹€ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-2) 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-strong);
  background: var(--surface-solid);
}

/* Header search (category / details / search pages) */
.site-header--search .nav {
  gap: var(--space-2);
}

/* Header search 锟?compact variant of shared .searchbar */
.site-header--search .header_search.searchbar {
  padding: 4px 6px 4px 16px;
  max-width: none;
  width: 100%;
  margin: 0;
  background: var(--bg-elevated);
}

.site-header--search .header_search .search-container::before {
  width: 16px;
  height: 16px;
}

.site-header--search .header_search .search-input {
  font-size: 14px;
  padding: 8px 0;
}

.site-header--search .header_search .search-submit {
  padding: 8px 14px;
}

.site-header--search .header_search.searchbar.is-suggest-open {
  border-radius: 18px 18px 0 0;
}

.header_search.search-input-s-rsc {
  flex: 1;
  min-width: 0;
  max-width: 768px;
  margin: 0 var(--space-2);
}

.site-header--search .nav-links {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-cta {
  margin-left: var(--space-2);
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: var(--gradient-cta);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--primary-glow);
  background: var(--gradient-cta-hover);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.header-search-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.header-search-toggle:hover,
.header-search-toggle.is-active {
  background: var(--accent-a15);
  border-color: var(--accent-a35);
  color: var(--text);
}

/* 鈹€鈹€鈹€ Hero (new dark theme, search box preserved) 鈹€鈹€鈹€ */
.hero {
  position: relative;
  z-index: 3;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--text);
  overflow: visible;
  padding-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/bg8.png') center / cover no-repeat;
}

@keyframes breathe {
  0% {
      transform: scale(1);
  }

  50% {
      transform: scale(1.03);
  }

  100% {
      transform: scale(1);
  }
}


.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 28, 0.45), rgba(12, 12, 20, 0.88));
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: var(--space-5) 0 var(--space-4);
  width: 100%;
  text-align: center;
  overflow: visible;
}

.title_top {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto var(--space-4);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

/* 鈹€鈹€鈹€ Search bar 锟?dark glass 鈹€鈹€鈹€ */
.searchbar {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 20;
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  padding: 6px 8px 6px 20px;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.searchbar:focus-within {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px var(--accent-a10);
}

.searchbar.is-suggest-open {
  z-index: 30;
  border-radius: 22px 22px 0 0;
  border-bottom-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.searchbar.is-suggest-open:focus-within {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.searchbar.is-suggest-open .__search_sug_box {
  top: calc(100% - 1px);
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--accent-a08);
}

.search-container {
  display: flex;
  align-items: center;
  flex: 1;
  background: transparent;
  border-radius: 8px;
  padding: 0;
  gap: 10px;
  width: 100%;
}

.search-container::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--text-strong);
  padding: 10px 0;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--muted-2);
}

.search-submit {
  background: var(--gradient-cta);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  color: var(--on-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.search-submit:hover {
  background: var(--gradient-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--primary-glow);
}

.search-submit svg {
  width: 20px;
  height: 20px;
}

.__search_sug_box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 40;
  color: var(--text);
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: none;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  overflow: hidden;
  padding: 6px 0;
  margin: 0;
}

.__search_sug_item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1.4;
  transition: background var(--transition), color var(--transition);
}

.__search_sug_item::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23A1A1AA' stroke-width='2'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='m9.5 9.5 3 3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity var(--transition);
}

.__search_sug_item:hover,
.__search_sug_item:focus-visible {
  background: var(--accent-a12);
  color: var(--text);
}

.__search_sug_item:hover::before,
.__search_sug_item:focus-visible::before {
  opacity: 0.75;
}

.__search_sug_item:active {
  background: var(--accent-a18);
}

.__search_sug_footer {
  padding: 8px 20px 10px;
  border-top: 1px solid var(--border);
  text-align: right;
}

.__search_sug_footer small {
  font-size: 11px;
  color: var(--muted-2);
}

.__search_sug_footer a {
  color: var(--muted);
  transition: color var(--transition);
}

.__search_sug_footer a:hover {
  color: var(--primary);
}

/* legacy markup from older suggest script */
.__search_sug_box .text-center {
  padding: 8px 16px 10px !important;
  margin: 0 !important;
  border-top: 1px solid var(--border) !important;
  text-align: right !important;
}

.__search_sug_box .text-center small,
.__search_sug_box .text-muted {
  font-size: 11px;
  color: var(--muted-2) !important;
}

.__search_sug_box .text-center a {
  color: var(--muted) !important;
  text-decoration: none;
}

.__search_sug_box .text-center a:hover {
  color: var(--primary) !important;
}

.ads_box {
  margin: var(--space-2) auto;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 0;
  max-width: 100%;
}

#div-gpt-ad-1682229596052-0{
  text-align: center;
}
.ads_box > div,
.ads_box iframe {
  max-width: 100%;
}

.ads_box .ad-label {
  text-align: center;
}

.ad-placeholder {
  font-size: 14px;
}

.ad-placeholder--sidebar {
  min-height: 250px;
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

/* 鈹€鈹€鈹€ Sections 鈹€鈹€鈹€ */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-6) 0 var(--space-7);
}

.section-header {
  text-align: center;
  margin: 0 auto var(--space-5);
}

.section-label {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: var(--space-2);
  border-radius: 999px;
  background: var(--accent-a10);
  border: 1px solid var(--accent-a18);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.section .lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* 鈹€鈹€鈹€ Bento Features Grid 鈹€鈹€鈹€ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-2);
}

.bento-card {
  position: relative;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-a08), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.bento-card:hover::before { opacity: 1; }

.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-12 { grid-column: span 12; }

.bento-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-a10);
  border: 1px solid var(--accent-a18);
  margin-bottom: var(--space-2);
}

.bento-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
}

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

/* 鈹€鈹€鈹€ App Cards Grid 鈹€鈹€鈹€ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-solid);
}

.thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
}

.default-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: var(--surface-solid);
  border-radius: var(--radius);
}

.card-body {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.card-body .title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active_box {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.version_box {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--rating);
}

.get-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: var(--gradient-cta);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 12px var(--primary-glow);
}

/* 鈹€鈹€鈹€ Statistics 鈹€鈹€鈹€ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.stat-card {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.stat-value {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* 鈹€鈹€鈹€ Categories 鈹€鈹€鈹€ */
.cuisines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.cuisine {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 15px;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.cuisine:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* 鈹€鈹€鈹€ Category Page Hero 鈹€鈹€鈹€ */
.hero_category {
  min-height: auto;
  align-items: flex-start;
  padding-top: 88px;
  padding-bottom: var(--space-4);
}

.hero_category .hero-inner {
  padding: var(--space-3) 0 var(--space-2);
}

.hero_category .ads_box {
  width: 100%;
  max-width: 800px;
  margin: var(--space-2) auto 0;
}

.title_des {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto var(--space-3);
  font-size: 15px;
  line-height: 1.6;
}

/* Page banner (compact inner pages) */
.page-banner {
  padding: calc(80px + var(--space-3)) 0 var(--space-4);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-3);
  font-size: 13px;
  color: var(--muted-2);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--text); }

.breadcrumb-sep {
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--text-strong);
  font-weight: 500;
}

.page-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: end;
}

.page-banner-text h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.page-banner-text p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
  line-height: 1.6;
}

.page-banner-meta {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.meta-pill strong {
  color: var(--secondary);
  font-weight: 700;
}

.page-banner-search {
  width: 100%;
  max-width: 420px;
}

/* Category filter chips */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--transition);
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--accent-a12);
  border-color: var(--accent-a40);
  color: var(--text);
}

/* App list (category) */
.app-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.app-list-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.app-list-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.app-list-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-solid);
  display: grid;
  place-items: center;
  font-size: 32px;
  flex-shrink: 0;
}

.app-list-body {
  min-width: 0;
}

.app-list-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-list-dev {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.app-list-desc {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-2);
}

.app-list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-list-meta .rating {
  color: var(--rating);
  font-weight: 600;
}

.app-list-action {
  flex-shrink: 0;
}

.app-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent-a12);
  border: 1px solid var(--accent-a25);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}

.app-list-item:hover .app-list-btn {
  background: var(--gradient-cta);
  border-color: transparent;
  color: var(--on-primary);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.section-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.section-toolbar h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.sort-select {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

/* 鈹€鈹€鈹€ Details Page 鈹€鈹€鈹€ */
.detail-page {
  padding-top: 72px;
}

.detail-hero-card {
  margin: var(--space-3) 0;
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.detail-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 100% 0%, var(--accent-a12), transparent 70%);
  pointer-events: none;
}

.detail-hero-top {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.detail-hero-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-3) 0;
  position: relative;
  z-index: 1;
}

.download-section-details {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.download-section-details .download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  background: var(--gradient-cta);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.download-section-details .download-btn:hover {
  background: var(--gradient-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--primary-glow);
  color: var(--on-primary);
}

.download-section-details .download-icon {
  width: 20px;
  height: 20px;
  stroke: var(--on-primary);
  flex-shrink: 0;
}

.not_aminated .download-btn {
  animation: none;
}

.download-play-btn:hover {
  background: var(--primary-hover);
}

.download-section {
  margin: var(--space-4) 0;
}

.download-section .download-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.download-section .download-btn {
  width: 100%;
  max-width: 100%;
  height: 56px;
  margin-top: 0;
  justify-content: center;
  border-radius: 999px;
  font-size: 16px;
  color: var(--on-primary);
  background: var(--gradient-cta);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.download-section .download-btn:hover {
  background: var(--gradient-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--primary-glow);
  color: var(--on-primary);
}

.download-section .download-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Thanks page */
.thanks_box {
  margin: var(--space-4) 0;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  text-align: center;
}

.thanks-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--text-strong);
}

.thanks-message {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto var(--space-4);
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.thanks-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.thanks-actions .btn-primary {
  background: var(--gradient-cta);
  color: var(--on-primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.thanks-actions .btn-primary:hover {
  transform: translateY(-1px);
  background: var(--gradient-cta-hover);
  box-shadow: 0 8px 28px var(--primary-glow);
  color: var(--on-primary);
}

.thanks-actions .btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.thanks-actions .btn-secondary:hover {
  background: var(--surface-solid);
  border-color: var(--border-hover);
  color: var(--text-strong);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: center;
  position: relative;
  z-index: 1;
}

.detail-app-icon {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  font-size: 52px;
  flex-shrink: 0;
}

.detail-app-icon img {
  width: 112px;
  height: 112px;
  object-fit: cover;
}

.detail-app-main h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.detail-developer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-2);
  font-size: 14px;
  color: var(--secondary);
  font-weight: 500;
}

.detail-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: 4px;
  border-bottom: none;
}

.detail-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 72px;
}

.detail-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1;
}

.detail-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-weight: 600;
  line-height: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-6);
}

.detail-main {
  min-width: 0;
}

.detail-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-card {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.sidebar-card h3 {
  margin: 0 0 var(--space-2);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.meta-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.meta-list li:last-child { border-bottom: none; }

.meta-list-label {
  color: var(--muted-2);
  flex-shrink: 0;
}

.meta-list-value {
  font-weight: 600;
  text-align: right;
  color: var(--text);
}

.sidebar-download {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--accent-a10) 0%, var(--surface) 100%);
  border: 1px solid var(--accent-a25);
  text-align: center;
}

.sidebar-download .download-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0;
}

.sidebar-download p {
  margin: var(--space-2) 0 0;
  font-size: 12px;
  color: var(--muted-2);
}

.content-block {
  margin-bottom: var(--space-5);
}

.content-block h2,
.content-block__title {
  margin: 0 0 var(--space-2);
  font-size: 20px;
  font-weight: 700;
}

.content-block p,
.content-block__body {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.app-overview-body h2,
.app-overview-body h3,
.app-overview-body h4 {
  margin: 1.25em 0 0.5em;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.4;
}

.app-overview-body h2:first-child,
.app-overview-body h3:first-child,
.app-overview-body h4:first-child {
  margin-top: 0;
}

.app-overview-body p {
  margin: 0 0 0.85em;
}

.app-overview-body p:last-child {
  margin-bottom: 0;
}

/* About this app 锟?info card grid */
.about-app-section {
  margin-bottom: var(--space-5);
}

.about-app-title {
  margin: 0 0 var(--space-3);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.app-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.about-app-section .info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.about-app-section .info-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.about-app-section .info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.about-app-section .info-icon svg {
  width: 20px;
  height: 20px;
  stroke: #e03131;
}

.about-app-section .info-content {
  flex: 1;
  min-width: 0;
}

.about-app-section .info-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-2);
  margin-bottom: 4px;
  text-transform: lowercase;
}

.about-app-section .info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

.screenshots-carousel {
  margin-top: var(--space-2);
}

.screenshots-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.screenshots-wrap {
  position: relative;
  margin-top: var(--space-2);
}

.screenshots-track {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex-shrink: 0;
  width: 160px;
  height: 284px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.screenshot-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3));
}

.screenshot-item:nth-child(1) { background: linear-gradient(145deg, #1e1e2d, #3b82f6); }
.screenshot-item:nth-child(2) { background: linear-gradient(145deg, #252538, #a855f7); }
.screenshot-item:nth-child(3) { background: linear-gradient(145deg, #1a1a2e, #d946ef); }
.screenshot-item:nth-child(4) { background: linear-gradient(145deg, #12121c, #3b82f6); }

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.screenshot-item:has(img)::after {
  display: none;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-soft);
  color: var(--text-strong);
  padding: 0;
}

.carousel-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.03);
  background: var(--surface-2);
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-strong);
  stroke-width: 2.5;
}

.carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-3);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.15);
}

.carousel-dot:hover {
  background: var(--primary);
}

.screenshot-item img.lazy-load {
  opacity: 0;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: screenshot-loading 1.5s infinite;
}

.screenshot-item img:not(.lazy-load) {
  opacity: 1;
}

@keyframes screenshot-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ad-slot {
  /* padding: var(--space-2);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(255,255,255,0.02); */
  text-align: center;
  padding-top: 0;
}

.ad-slot .ad-placeholder {
  min-width: auto;
  width: 100%;
  font-size: 13px;
}

/* Sidebar 锟?Popular Apps */
.sidebar-section {
  margin-top: var(--space-3);
}

.sidebar-title {
  margin: 0 0 var(--space-2);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}

.popular-apps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.popular-app-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.popular-app-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-solid);
}

.popular-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-popular-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--surface-solid);
}

.popular-app-details {
  flex: 1;
  min-width: 0;
}

.popular-app-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-app-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
}

.popular-app-category {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-app-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: var(--muted);
}

.rating-number {
  font-weight: 500;
}

.rating-star {
  font-size: 12px;
  line-height: 1;
}

.detail-ad-banner {
  margin: var(--space-3) 0;
}

.detail-ad-banner .ad-placeholder {
  width: 100%;
  max-width: 100%;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.related-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.related-card .thumb {
  width: 48px;
  height: 48px;
}

.related-card .default-icon,
.related-card .thumb img {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.related-card .title {
  font-size: 14px;
}

/* Legacy details (keep for compat) */
.page-hero {
  padding: calc(80px + var(--space-5)) 0 var(--space-4);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-a15), transparent),
    var(--bg);
}

.mh_box {
  min-height: calc(100vh - 450px);
}
.app-header {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.app-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.app-icon img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.app-info h1 {
  margin: 0 0 var(--space-2);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.app-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.stat-item {
  text-align: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  min-width: 90px;
}

.stat-item .stat-value {
  font-size: 22px;
}

.stat-item .stat-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-3);
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--gradient-cta);
  color: var(--on-primary);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.download-btn:hover {
  transform: translateY(-1px);
  background: var(--gradient-cta-hover);
  box-shadow: 0 8px 28px var(--primary-glow);
}

.download-btn svg {
  width: 20px;
  height: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.info-card {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.info-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-a10);
  color: var(--primary);
  flex-shrink: 0;
}

.info-icon svg { width: 20px; height: 20px; }

.info-label {
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
}

.about-section {
  margin-top: var(--space-5);
}

.about-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.about-section p {
  color: var(--muted);
  line-height: 1.7;
}

.screenshots {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-top: var(--space-3);
}

.screenshot {
  flex-shrink: 0;
  width: 180px;
  height: 320px;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

/* 鈹€鈹€鈹€ Search Page 鈹€鈹€鈹€ */
.search-page {
  padding: calc(80px + var(--space-4)) 0 var(--space-6);
  min-height: calc(100vh - 135px);
}

.search-results-header {
  margin-bottom: var(--space-4);
}

.search-results-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-strong);
}

.search-results-header p {
  color: var(--muted);
  margin: 0;
}

.search_item {
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.search_item:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.item_title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
  text-decoration: none;
}

.item_title:hover {
  text-decoration: underline;
}

.item_top {
  display: block;
  text-decoration: none;
}

.item_top:hover .item_top_url {
  color: var(--secondary);
  text-decoration: underline;
}

.item_top_url {
  font-size: 13px;
  color: var(--muted-2);
}

.search_des {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-ad-slot {
  margin: var(--space-3) 0;
}

.ad-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-2);
  color: var(--muted-2);
  font-size: 13px;
  font-style: italic;
  user-select: none;
  max-width: 750px !important;
  margin: 0 auto;
  text-align: center;
}

.ad-label::before,
.ad-label::after {
  content: "";
  flex: 1;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.ad-label span {
  flex-shrink: 0;
  padding: 0 2px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-4);
}

.page-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  transition: border-color var(--transition), color var(--transition);
}

.page-link:hover,
.page-link.active {
  border-color: var(--primary);
  color: var(--text);
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* 鈹€鈹€鈹€ Footer 鈹€鈹€鈹€ */
.footer {
  padding: var(--space-5) 0 var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.footer .menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer .menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.footer .menu a:hover { color: var(--text); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-3) 0;
}

.footer-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3);
}

.footer-description p {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.footer-brand {
  display: flex;
  justify-content: center;
  margin-top: var(--space-3);
}

.footer-brand img {
  height: 40px;
  opacity: 0.8;
}

/* 鈹€鈹€鈹€ Cookie Consent 鈹€鈹€鈹€ */
.has-cookie-consent .cookie-consent-bar {
  display: none !important;
}

.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: var(--space-2);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  width: min(1280px, 100%);
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
  line-height: 1.5;
}

.cookie-consent-text a {
  color: var(--secondary);
  text-decoration: underline;
}

.cookie-consent-text-short,
.cookie-consent-btn-label-short {
  display: none;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
}

.cookie-consent-btn--primary {
  background: var(--gradient-cta);
  color: var(--on-primary);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.cookie-consent-btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

/* 鈹€鈹€鈹€ Animations 鈹€鈹€鈹€ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* 鈹€鈹€鈹€ Responsive 鈹€鈹€鈹€ */
@media (max-width: 1024px) {
  .bento-card.span-4,
  .bento-card.span-6,
  .bento-card.span-8 { grid-column: span 6; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cuisines { grid-template-columns: repeat(2, 1fr); }

  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .page-banner-inner { grid-template-columns: 1fr; }
  .page-banner-search { max-width: 100%; }
}

@media (max-width: 768px) {
  :root {
    --container: 100%;
  }

  .container {
    width: var(--container);
    max-width: 100%;
    padding-left: var(--space-2);
    padding-right: var(--space-2);
    box-sizing: border-box;
  }

  .site-header {
    padding: 10px 0;
  }

  .brand img {
    height: 30px;
  }

  .nav-links,
  .nav-cta { display: none; }

  .nav-toggle { display: flex; }

  .header-search-toggle { display: flex; }

  .site-header .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-header:not(.site-header--search) .nav-toggle {
    margin-left: auto;
  }

  .site-header--search .header_search {
    display: none;
    order: 4;
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
  }

  .site-header--search.is-search-open .header_search {
    display: block;
  }

  .site-header--search .header-search-toggle {
    order: 2;
    margin-left: auto;
  }

  .site-header--search .nav-toggle {
    order: 3;
    margin-left: 0;
  }

  .site-header--search .brand {
    order: 1;
  }

  .site-header--search.is-search-open .header-search-toggle {
    background: var(--accent-a15);
    border-color: var(--accent-a35);
  }

  .site-header--search .header_search .search-input {
    font-size: 16px;
    padding: 8px 10px;
  }

  .site-header--search .header_search .search-submit {
    padding: 8px 14px;
  }

  .site-header--search .header_search .search-submit svg {
    width: 18px;
    height: 18px;
  }

  .site-header--search .nav {
    flex-wrap: wrap;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-2);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex: 1 1 100%;
    order: 4;
    margin-left: 0;
    z-index: 10;
  }

  .nav-links.is-open a {
    width: 100%;
    text-align: left;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: var(--space-2);
  }

  .hero-inner {
    padding: var(--space-3) 0 var(--space-2);
  }

  .title_top {
    font-size: 26px;
    margin-bottom: var(--space-2);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: var(--space-3);
    padding: 0 2px;
  }

  .searchbar {
    width: 100%;
    max-width: 100%;
  }

  .search-input {
    font-size: 16px;
    padding: 8px 0;
  }

  .search-submit {
    padding: 8px 14px;
  }

  .search-submit svg {
    width: 18px;
    height: 18px;
  }

  .app-list-btn,.app-list-action{
    width: 100%;
  }
  .content-block{
    margin-bottom: 15px;
  }

  .ad-placeholder {
    min-height: 50px;
    font-size: 12px;
    padding: 12px;
  }

  .ad-placeholder--sidebar {
    min-height: 200px;
  }

  /* Sections */
  .section {
    padding: var(--space-4) 0;
  }

  .section-header {
    margin-bottom: var(--space-3);
  }

  .section h2 {
    font-size: 24px;
  }

  .section .lead {
    font-size: 15px;
  }

  .grid { grid-template-columns: 1fr; gap: 12px; }

  .bento-card.span-4,
  .bento-card.span-6,
  .bento-card.span-8,
  .bento-card.span-12 { grid-column: span 12; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cuisines { grid-template-columns: 1fr 1fr; gap: 10px; }

  .cuisine {
    padding: var(--space-2);
    font-size: 14px;
  }

  /* Category page */
  .page-banner {
    padding-top: calc(64px + var(--space-2));
    padding-bottom: var(--space-3);
  }

  .page-banner-text h1 {
    font-size: 28px;
  }

  .page-banner-text p {
    font-size: 14px;
  }

  .page-banner-meta {
    flex-wrap: wrap;
  }

  .section-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort-select {
    width: 100%;
  }

  .filter-row {
    gap: 6px;
  }

  .filter-chip {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Details page */
  .detail-page main .container {
    padding-top: 8px;
  }

  .breadcrumb {
    font-size: 12px;
    margin-bottom: var(--space-2);
  }

  .detail-hero-card {
    padding: var(--space-3);
    margin: var(--space-2) 0;
  }

  .detail-app-icon {
    width: 80px;
    height: 80px;
    font-size: 40px;
    border-radius: var(--radius-lg);
  }

  .detail-app-main h1 {
    font-size: 22px;
  }

  .detail-developer {
    font-size: 13px;
  }

  .detail-stats-row {
    gap: var(--space-2);
  }

  .detail-stat-value {
    font-size: 16px;
  }

  .download-section-details .download-btn {
    height: 50px;
    font-size: 15px;
    padding: 0 16px;
  }

  .detail-layout {
    gap: var(--space-3);
  }

  .app-info-grid {
    grid-template-columns: 1fr;
  }

  .about-app-section .info-card {
    padding: 14px;
  }

  .detail-hero-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detail-stats-row { justify-content: center; }

  .app-list-item {
    grid-template-columns: 56px 1fr;
    gap: var(--space-2);
    padding: var(--space-2);
  }

  .app-list-icon { width: 56px; height: 56px; font-size: 26px; }
  .app-list-action { grid-column: 2; justify-self: start; }
  .app-list-desc { -webkit-line-clamp: 2; }

  .screenshot-item {
    width: 140px;
    height: 248px;
  }

  .screenshots-container {
    padding: var(--space-2) 44px;
  }

  .carousel-nav {
    width: 34px;
    height: 34px;
  }

  .carousel-nav svg {
    width: 16px;
    height: 16px;
  }

  .carousel-nav.prev {
    left: 6px;
  }

  .carousel-nav.next {
    right: 6px;
  }

  /* Search page */
  .search-page {
    padding-top: calc(64px + var(--space-2));
  }

  .search-results-header h1 {
    font-size: 22px;
  }

  .search_item {
    padding: var(--space-2);
  }

  .item_title {
    font-size: 16px;
  }

  /* Footer */
  .footer {
    padding: var(--space-4) 0 var(--space-3);
  }

  .footer-top {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .footer .menu {
    justify-content: center;
    gap: var(--space-2);
  }

  /* Cookie consent */
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  .cookie-consent-text {
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .cookie-consent-text-full,
  .cookie-consent-btn-label-full {
    display: none;
  }

  .cookie-consent-text-short,
  .cookie-consent-btn-label-short {
    display: inline;
  }

  .cookie-consent-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .cookie-consent-btn {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 10px;
    font-size: 12px;
  }

  .app-header { flex-direction: column; align-items: center; text-align: center; }
  .app-stats { justify-content: center; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .title_top { font-size: 22px; }

  .hero-subtitle { font-size: 14px; }

  .search-input { font-size: 16px; padding: 8px 0; }

  .search-submit { padding: 8px 12px; }

  .cuisines { grid-template-columns: 1fr; }

  .card {
    padding: 10px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .page-link {
    padding: 6px 10px;
    font-size: 13px;
  }
}

.app-list-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Help / legal pages */
.content-box {
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(80px + var(--space-4)) var(--space-2) var(--space-5);
  color: var(--text);
}

.content-box h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.content-info p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.legal-content {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  color: var(--text);
  margin: var(--space-4) 0 var(--space-2);
  line-height: 1.35;
}

.legal-content h2 {
  font-size: clamp(20px, 3vw, 26px);
}

.legal-content h3 {
  font-size: 18px;
}

.legal-content h4 {
  font-size: 16px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 var(--space-2);
  padding-left: 1.4rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--text);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-4) 0;
}

.legal-content .expand-content {
  display: block;
}

.legal-content .box_primary {
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.legal-content .iub_footer {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 14px;
}

@media (max-width: 768px) {
  .detail-ad-banner{
    margin-top: 5px;
  }
  .page-banner-text{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .page-banner-text h1{
    margin-bottom: 0;
  }
}


.mb0{
  padding-top: 0 !important;
}
/* --- app-install-override.css --- */
.appiner-install-page {
    padding: 0 !important;
    max-width: none !important;
    background: #ffffff !important;
}

.appiner-install-page .container-fluid {
    padding: 0;
}

body:has(.appiner-install) {
    background: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: visible;
    color: #64748b;
}

html:has(.appiner-install) {
    overflow-x: hidden;
    overflow-y: auto;
}

body:has(.appiner-install)::before,
body:has(.appiner-install)::after {
    display: none;
}

.appiner-install.layout-split.detail-page {
    padding-top: 0;
    background: #ffffff;
    color: #64748b;
    width: 100%;
}

.appiner-install {
    font-family: var(--font, 'Inter', system-ui, -apple-system, sans-serif);
    --container: min(1400px, 99%);
}

.appiner-install .container {
    width: var(--container);
    margin: 0 auto;
}

.appiner-install a {
    text-decoration: none;
    color: inherit;
}

.appiner-install a:hover {
    text-decoration: none;
}

.appiner-install .loading_ads .ad-label,
.appiner-install .detail-ad-banner .ad-label,
.appiner-install .ad-slot .ad-label {
    display: block;
}

.install-logo-header {
    position: relative;
    z-index: 3;
    padding: 18px 0 8px;
    margin-bottom: 8px;
}

.install-logo-header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.install-logo-header__brand {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 14px;
}


.install-logo-header__brand img {
    display: block;
    width: auto;
    height: 32px;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

@media (max-width: 600px) {
    .install-logo-header {
        padding: 14px 0 4px;
    }

    .install-logo-header__brand {
        padding: 8px 12px;
    }

    .install-logo-header__brand img {
        height: 28px;
    }
}

.sidebar-intro {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar-intro .sidebar-title {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-intro__body p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.sidebar-intro__body p:last-child {
    margin-bottom: 0;
}

.appiner-install .page-main {
    background: #ffffff;
}

.appiner-install.download-page .detail-ad-banner--top {
    margin-bottom: var(--space-3, 24px);
}

.appiner-install.download-page .download-page-card--hero {
    margin-bottom: 0;
}


.appiner-install .detail-main--hero .screenshot-item {
    flex-shrink: 0;
    overflow: hidden;
}

.appiner-install .detail-main--hero .screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.appiner-install .detail-main--hero .screenshots-track {
    min-height: 296px;
    align-items: flex-start;
}

.appiner-install .screenshots-wrap {
    min-height: 296px;
}

.appiner-install .detail-ad-banner--top .ads_box {
    min-height: 90px;
}

.appiner-install .detail-sidebar .ads_box.minheight-250 {
    min-height: 250px;
}

.appiner-install .content-block {
    min-height: 280px;
}

.appiner-install .store-btns {
    grid-template-columns: repeat(2, 1fr);
}

.appiner-install .store-btns:has(.store-btn--chrome) {
    grid-template-columns: repeat(3, 1fr);
}

.appiner-install .store-btns--google-maps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.appiner-install .store-btn__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .appiner-install .store-btns {
        grid-template-columns: 1fr;
    }

    .appiner-install .store-btns--google-maps {
        grid-template-columns: 1fr;
    }
}

.page-main .install-howto-wrap .how-to-section {
    padding: 48px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-main .install-howto-wrap .section-header h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #0f172a;
}

.page-main .install-howto-wrap .section-header p {
    margin-bottom: 40px;
    font-size: 14px;
    color: #64748b;
}

.page-main .install-howto-wrap .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-main .install-howto-wrap .step-window {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.page-main .install-howto-wrap .window-head {
    height: 20px;
    background: #333;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.page-main .install-howto-wrap .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #555;
    margin-right: 3px;
}

.page-main .install-howto-wrap .window-body {
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-main .install-howto-wrap .img_ext {
    width: 90%;
    height: auto;
}

.page-main .install-howto-wrap .step-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #0f172a;
}

.page-main .install-howto-wrap .step-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .page-main .install-howto-wrap .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .page-main .install-howto-wrap .steps-grid {
        grid-template-columns: 1fr;
    }

    .page-main .install-howto-wrap .how-to-section {
        padding: 32px 0;
    }
}

.page-main .install-howto-wrap .install-thankyou {
    padding: 0 0 48px;
}

.page-main .install-howto-wrap .install-thankyou .hero-left {
    background: #303150;
    color: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-main .install-howto-wrap .install-thankyou .hero-left h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-main .install-howto-wrap .install-thankyou .hero-left p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.page-main .install-howto-wrap .install-thankyou .explore-earth-btn {
    display: inline-block;
    background: #1976d2;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 24px;
    transition: background-color 0.3s ease;
}

.page-main .install-howto-wrap .install-thankyou .explore-earth-btn:hover {
    background: #1565c0;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .page-main .install-howto-wrap .install-thankyou .hero-left {
        padding: 36px 24px;
    }

    .page-main .install-howto-wrap .install-thankyou .hero-left h1 {
        font-size: 26px;
    }
}

.detail-download-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 20px;
    padding: 0;
}

.detail-main--hero .detail-download-cta .btn-download-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 96%;
    min-width: min(420px, 100%);
    max-width: 100%;
    min-height: 68px;
    margin-top: 0;
    padding: 0 40px;
    border: none;
    border-radius: 18px;
    background: #1a73e8;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(26, 115, 232, 0.38);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.detail-main--hero .detail-download-cta .btn-download-main:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(26, 115, 232, 0.45);
    color: #fff;
}

.detail-main--hero .detail-download-cta .btn-download-main__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

@media (max-width: 768px) {
    .detail-main--hero .detail-download-cta {
        margin-bottom: 16px;
    }

    .detail-main--hero .detail-download-cta .btn-download-main {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 0 24px;
        border-radius: 14px;
        font-size: 1.1rem;
        box-shadow: 0 10px 28px rgba(26, 115, 232, 0.35);
    }

    .detail-main--hero .detail-download-cta .btn-download-main:hover {
        transform: translateY(-1px);
    }
}

/* Earth adaptive GPT ads (/google-earth/download) 鈥?mirrors new_onlinetrackpackage nt-ad */
.earth-adaptive-ads .nt-ad {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.earth-adaptive-ads .nt-ad [id^="div-gpt-ad"] {
  min-width: 0;
  min-height: 0;
  width: 100%;
  text-align: center;
}
.earth-adaptive-ads .nt-ad__label {
  margin-bottom: 6px;
  color: #7c8798;
  text-align: center;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.4;
}
.earth-adaptive-ads .nt-ad__box {
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.earth-adaptive-ads .nt-ad--compact {
  margin-top: 20px;
}
.earth-adaptive-ads .nt-ad--pc-top {
  margin: 0 auto 16px;
  width: 100%;
  max-width: 970px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.earth-adaptive-ads .nt-ad--pc-top .nt-ad__box,
.earth-adaptive-ads .nt-ad--pc-top [id^="div-gpt-ad"] {
  min-width: 0;
  min-height: 90px;
  max-width: 970px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.earth-adaptive-ads .nt-ad--earth-download-bottom {
  margin: 16px auto 0;
  width: 100%;
  max-width: 970px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.earth-adaptive-ads .nt-ad--earth-download-bottom .nt-ad__box,
.earth-adaptive-ads .nt-ad--earth-download-bottom [id^="div-gpt-ad"] {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-page--earth-adaptive .detail-body-col .nt-ad--earth-download-bottom {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.earth-adaptive-ads .nt-ad--pc-top iframe,
.earth-adaptive-ads .nt-ad--earth-download-bottom iframe,
.earth-adaptive-ads .nt-ad--pc-top ins,
.earth-adaptive-ads .nt-ad--earth-download-bottom ins {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}
/* Earth download: never stretch the card to the sidebar height */
.download-page--earth-adaptive .detail-body-layout--download {
  align-items: start;
}
.download-page--earth-adaptive .detail-body-layout--download .detail-body-col,
.download-page--earth-adaptive .detail-body-layout--download .detail-sidebar--hero {
  align-self: start;
  height: auto;
}
.download-page--earth-adaptive .detail-body-layout--download .download-page-card--hero,
.download-page--earth-adaptive.download-page .download-page-card--hero {
  flex: none;
  height: auto;
  min-height: 0;
}
.download-page--earth-adaptive .page-hero--detail {
  min-height: 0;
}

/* Compress from 1024px viewport height so the bottom ad stays in view */
@media (max-height: 1024px) {
  .download-page--earth-adaptive .page-hero--detail {
    min-height: 0 !important;
    padding-bottom: 16px;
  }
  .download-page--earth-adaptive .detail-hero-module {
    padding: 10px 0 16px;
  }
  .download-page--earth-adaptive .install-logo-header {
    margin-bottom: 6px;
  }
  .download-page--earth-adaptive .detail-ad-banner--top,
  .download-page--earth-adaptive .nt-ad--pc-top {
    margin: 0 0 10px;
  }
  .download-page--earth-adaptive .detail-body-layout--download .download-page-card--hero,
  .download-page--earth-adaptive.download-page .download-page-card--hero {
    padding: 18px 20px;
  }
  .download-page--earth-adaptive .download-ready__title {
    margin: 0 0 10px;
  }
  .download-page--earth-adaptive .download-ready__message {
    margin-bottom: 12px;
  }
  .download-page--earth-adaptive .detail-body-layout--download .download-page-card--hero .download-rating {
    margin-top: 18px;
  }
  .download-page--earth-adaptive .nt-ad--earth-download-bottom {
    margin: 12px auto 8px;
  }
}

@media (max-height: 960px) {
  .download-page--earth-adaptive .page-hero--detail {
    padding-bottom: 12px;
  }
  .download-page--earth-adaptive .detail-hero-module {
    padding: 8px 0 12px;
  }
  .download-page--earth-adaptive .detail-body-layout--download .download-page-card--hero,
  .download-page--earth-adaptive.download-page .download-page-card--hero {
    padding: 14px 16px;
  }
  .download-page--earth-adaptive .download-ready {
    gap: 14px;
  }
  .download-page--earth-adaptive .download-ready__message {
    display: none;
  }
  .download-page--earth-adaptive .download-ready__title {
    margin: 0 0 10px;
    font-size: 24px;
  }
  .download-page--earth-adaptive .download-actions-block--card {
    margin-bottom: 0;
  }
  .download-page--earth-adaptive .detail-main--hero .download-actions-block--card .store-btn {
    min-height: 52px;
    padding: 12px 14px;
  }
  .download-page--earth-adaptive .detail-body-layout--download .download-page-card--hero .download-rating {
    margin-top: 12px !important;
  }
}

@media (max-height: 900px), (max-width: 900px) {
  .download-page--earth-adaptive .detail-body-layout--download .detail-body-col {
    display: block;
  }
  .download-page--earth-adaptive .install-logo-header {
    margin-bottom: 4px;
  }
  .download-page--earth-adaptive .detail-ad-banner--top,
  .download-page--earth-adaptive .nt-ad--pc-top {
    margin: 0 0 8px;
  }
  .download-page--earth-adaptive .detail-body-layout--download .download-page-card--hero,
  .download-page--earth-adaptive.download-page .download-page-card--hero {
    display: block !important;
    padding: 14px 16px;
    margin-bottom: 0;
  }
  .download-page--earth-adaptive .download-ready {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .download-page--earth-adaptive .download-ready__preview {
    display: none;
  }
  .download-page--earth-adaptive .download-ready__message {
    display: none;
  }
  .download-page--earth-adaptive .download-ready__title {
    margin: 0 0 10px;
    font-size: 22px;
  }
  .download-page--earth-adaptive .store-btns--google-maps,
  .download-page--earth-adaptive .detail-main--hero .download-actions-block--card .store-btns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .download-page--earth-adaptive .detail-main--hero .download-actions-block--card .store-btn {
    min-height: 52px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 650;
    border-radius: 12px;
    gap: 10px;
  }
  .download-page--earth-adaptive .detail-main--hero .download-actions-block--card .store-btn__icon {
    width: 22px !important;
    height: 22px !important;
  }
  .download-page--earth-adaptive .detail-sidebar--hero .sidebar-section {
    padding: 10px;
  }
  .download-page--earth-adaptive .detail-sidebar--hero .popular-app-card {
    padding: 4px 0;
  }
  .download-page--earth-adaptive .detail-sidebar--hero .popular-app-icon img {
    width: 36px;
    height: 36px;
  }
  .download-page--earth-adaptive .nt-ad--earth-download-bottom {
    margin: 10px 0 4px;
  }
}

@media (max-height: 760px) {
  .download-page--earth-adaptive .download-ready__title {
    margin: 0 0 8px;
    font-size: 20px;
  }
  .download-page--earth-adaptive .detail-main--hero .download-actions-block--card .store-btn {
    min-height: 48px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  .download-page--earth-adaptive .detail-body-layout--download .download-page-card--hero .download-rating {
    margin-top: 8px !important;
  }
}
