/* =========================================
   APK Mod Site — Zen Style CSS
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700&family=Noto+Serif:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Variables ── */
:root {
  --bg: #FAFAF8; --surface: #FFFFFF; --surface-2: #F4F4F0; --border: #E8E8E4;
  --text: #1A1A1A; --text-2: #6B6B6B; --text-3: #9B9B9B;
  --accent: #5C7A5C; --accent-2: #C47D5A; --accent-bg: #F0F4EF; --accent-2-bg: #FBF3EE;
  --header-bg: rgba(250,250,248,0.92);
  --radius: 14px; --radius-sm: 8px; --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --font: 'Noto Sans', -apple-system, sans-serif; --font-serif: 'Noto Serif', Georgia, serif;
  --max-w: 1200px; --tr: all 0.2s ease; --tr-slow: all 0.4s ease;
}
:root[data-theme="dark"] {
  --bg: #121416; --surface: #1A1E22; --surface-2: #20262B; --border: #2B343B;
  --text: #F3F5F7; --text-2: #C8D0D7; --text-3: #8E9AA5;
  --accent: #86A986; --accent-2: #D39A7A; --accent-bg: rgba(134,169,134,0.15); --accent-2-bg: rgba(211,154,122,0.16);
  --header-bg: rgba(18,20,22,0.9);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 8px 20px rgba(0,0,0,0.28), 0 3px 8px rgba(0,0,0,0.2);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.35), 0 6px 16px rgba(0,0,0,0.25);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; padding-top: 64px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input { font-family: inherit; }
ul,ol { list-style: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
::selection { background: var(--accent); color: #fff; }

h1,h2,h3,h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem,4vw,2.8rem); }
h2 { font-size: clamp(1.4rem,3vw,2rem); }
h3 { font-size: 1.1rem; }
p { line-height: 1.75; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* Mobile Container */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 64px; }
.header.scrolled { box-shadow: var(--shadow-sm); }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: var(--text-2); transition: var(--tr); }
.nav a:hover,.nav a.active { background: var(--surface-2); color: var(--text); }
.nav a.active { color: var(--accent); }
.header-search { flex: 1; max-width: 360px; position: relative; }
.header-search input { width: 100%; padding: 0.5rem 1rem 0.5rem 2.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; font-size: 0.875rem; color: var(--text); transition: var(--tr); outline: none; }
.header-search input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(92,122,92,0.1); }
.header-search input::placeholder { color: var(--text-3); }
.header-search .icon { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 0.95rem; pointer-events: none; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.25rem; border-radius: 99px; font-size: 0.875rem; font-weight: 500; transition: var(--tr); white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4d6a4d; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { border: 1px solid var(--border); color: var(--text-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.btn-ghost { color: var(--text-2); padding: 0.4rem 0.75rem; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.7rem 1.75rem; font-size: 1rem; }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 99px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.badge-premium { background: var(--accent-2-bg); color: var(--accent-2); }
.badge-new { background: var(--accent-bg); color: var(--accent); }
.badge-editors { background: #FEF3C7; color: #92400E; }
.badge-free { background: #DBEAFE; color: #1E40AF; }

/* App Card */
.app-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; gap: 1rem; transition: var(--tr); cursor: pointer; text-decoration: none; color: inherit; }
.app-card:hover { border-color: rgba(92,122,92,0.3); box-shadow: var(--shadow); transform: translateY(-2px); }
.app-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg,#E8F0FE,#D4E8D1); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.app-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow-sm); display: block; }
.app-card-compact .app-logo { width: 44px; height: 44px; border-radius: 11px; }
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-dev { font-size: 0.78rem; color: var(--text-3); margin-bottom: 0.4rem; }
.app-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.app-tag { font-size: 0.68rem; padding: 0.1rem 0.45rem; border-radius: 4px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.app-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; font-size: 0.78rem; color: var(--text-3); }
.app-meta .rating { color: #F59E0B; font-weight: 600; }
.app-card-compact { padding: 0.875rem 1rem; gap: 0.75rem; border-radius: var(--radius); }
.app-card-compact .app-icon { width: 44px; height: 44px; border-radius: 11px; font-size: 1.2rem; }
.app-card-compact .app-name { font-size: 0.875rem; }
.app-card-compact .app-dev { font-size: 0.72rem; }
.app-card-compact .app-meta { margin-top: 0.3rem; gap: 0.5rem; font-size: 0.72rem; }

/* Grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(320px,100%),1fr)); gap: 1rem; min-width: 0; }
.app-list { display: flex; flex-direction: column; gap: 0.5rem; }

/* Section */
.section { padding: 3.5rem 0; }
.section+section { padding-top: 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; }
.section-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }

/* Related Categories */
.related-categories {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.related-categories a {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--text-2);
  background: var(--surface);
  transition: var(--tr);
  white-space: nowrap;
}
.related-categories a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
.section-more { font-size: 0.8rem; color: var(--accent); font-weight: 500; transition: var(--tr); white-space: nowrap; }
.section-more:hover { color: #4d6a4d; text-decoration: underline; }

/* Hero */
.hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.hero h1 { margin-bottom: 1rem; }
.hero-desc { color: var(--text-2); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.75rem; max-width: 480px; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hero-stat-num { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.hero-stat-label { font-size: 0.78rem; color: var(--text-3); margin-top: 0.1rem; }
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.hero-mockup { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 1.25rem; width: 100%; max-width: 300px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.mockup-bar { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.75rem; padding: 0 0.25rem; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FEBC2E; }
.mockup-dot:nth-child(3) { background: #28C840; }
.mockup-app { display: flex; gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid var(--border); }
.mockup-icon { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg,#E8F0FE,#D4E8D1); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.mockup-text { font-size: 0.72rem; color: var(--text-2); line-height: 1.5; }
.mockup-title { font-weight: 600; color: var(--text); }
.hero-deco { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle,rgba(92,122,92,0.12),transparent 70%); pointer-events: none; }
.hero-deco-1 { top: -50px; right: -30px; }
.hero-deco-2 { bottom: -40px; left: -20px; background: radial-gradient(circle,rgba(196,125,90,0.1),transparent 70%); }

/* Category Pills */
.cat-pills { display: flex; gap: 0.5rem; flex-wrap: nowrap; width: 100%; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 1rem; border-radius: 99px; font-size: 0.82rem; font-weight: 500; white-space: nowrap; flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: var(--tr); cursor: pointer; }
.cat-pill:hover,.cat-pill.active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
.cat-pill.active { font-weight: 600; }

/* Featured Card */
.featured-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 280px 1fr; transition: var(--tr); cursor: pointer; text-decoration: none; color: inherit; }
.featured-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(92,122,92,0.25); }
.featured-img { height: 100%; min-height: 200px; background: linear-gradient(135deg,#E8F0FE 0%,#D4E8D1 100%); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.featured-body { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.featured-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.5rem; }
.featured-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; }
.featured-dev { font-size: 0.82rem; color: var(--text-3); margin-bottom: 0.75rem; }
.featured-desc { font-size: 0.88rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1rem; }
.featured-changes { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.8rem; color: var(--text-2); line-height: 1.6; margin-bottom: 1rem; }
.featured-changes strong { color: var(--text); }
.featured-meta { display: flex; gap: 1.5rem; font-size: 0.8rem; color: var(--text-3); }
.featured-meta .rating { color: #F59E0B; font-weight: 600; }

/* Sidebar Layout */
.layout-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; padding: 2.5rem 0; }
.layout-sidebar > * { min-width: 0; }
.sidebar { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.sidebar-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 1rem 1.25rem 0.5rem; }
.sidebar-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.25rem; font-size: 0.875rem; color: var(--text-2); transition: var(--tr); cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.sidebar-item:hover { background: var(--surface-2); color: var(--text); }
.sidebar-item.active { background: var(--accent-bg); color: var(--accent); font-weight: 500; }
.sidebar-item .count { margin-left: auto; flex-shrink: 0; font-size: 0.72rem; background: var(--surface-2); padding: 0.1rem 0.4rem; border-radius: 4px; color: var(--text-3); }
.sidebar-item.active .count { background: rgba(92,122,92,0.15); color: var(--accent); }

/* Detail Page */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; padding: 2.5rem 0; }
.detail-sidebar { position: sticky; top: 80px; }
.detail-title { font-size: 1.6rem; margin-bottom: 0.3rem; }
.detail-dev { font-size: 0.85rem; color: var(--text-3); margin-bottom: 0.75rem; }
.detail-rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-2); margin-bottom: 1.25rem; }
.stars { color: #F59E0B; letter-spacing: 1px; }
.rating-num { font-weight: 600; }
.detail-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.detail-tab { padding: 0.6rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--text-3); border-bottom: 2px solid transparent; transition: var(--tr); cursor: pointer; margin-bottom: -1px; }
.detail-tab:hover { color: var(--text); }
.detail-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.detail-section { margin-bottom: 1.5rem; }
.detail-section-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem; }
.detail-text { font-size: 0.9rem; color: var(--text-2); line-height: 1.8; }
.changelog-item { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.changelog-item:last-child { border-bottom: none; }
.changelog-ver { font-weight: 600; color: var(--accent); font-size: 0.78rem; white-space: nowrap; }
.changelog-date { font-size: 0.72rem; color: var(--text-3); margin-top: 0.1rem; }
.changelog-text { color: var(--text-2); line-height: 1.6; }
.screenshot-scroll { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.screenshot-scroll::-webkit-scrollbar { height: 4px; }
.screenshot { width: 160px; height: 280px; border-radius: var(--radius); background: linear-gradient(180deg,#E8F0FE,#F0F4EF); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; border: 1px solid var(--border); cursor: pointer; transition: var(--tr); overflow: hidden; }
.screenshot:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 0.6rem 0; font-size: 0.85rem; }
.info-table td:first-child { color: var(--text-3); width: 120px; }
.info-table td:last-child { color: var(--text-2); }

/* Download Card */
.download-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.download-card-header { padding: 1.25rem; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; align-items: center; }
.download-card-body { padding: 1.25rem; }
.download-version { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.download-size { font-size: 0.82rem; color: var(--text-3); margin-bottom: 1rem; }
.download-btn { width: 100%; padding: 0.8rem; background: var(--accent); color: #fff; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: var(--tr); text-decoration: none; }
.download-btn:hover { background: #4d6a4d; transform: translateY(-1px); box-shadow: var(--shadow); }
.download-safety { margin-top: 1rem; padding: 0.875rem; background: var(--accent-bg); border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--text-2); }
.safety-header { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--accent); margin-bottom: 0.4rem; font-size: 0.82rem; }
.mod-features { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.mod-feature { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.82rem; color: var(--text-2); }
.mod-feature::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* Category Page */
.cat-hero { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); }
.cat-hero-inner { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 0.75rem; }
.cat-hero-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,#E8F0FE,#D4E8D1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.cat-hero-content { min-width: 0; }
.cat-hero h1 { margin-bottom: 0.4rem; }
.cat-hero p { color: var(--text-2); font-size: 0.95rem; }
.cat-count { font-size: 0.82rem; color: var(--text-3); margin-top: 0.5rem; }
.filter-bar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-bar > * { min-width: 0; }
.filter-select { padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.82rem; background: var(--surface); color: var(--text-2); outline: none; transition: var(--tr); cursor: pointer; }
.filter-select:focus { border-color: var(--accent); }
.sort-tabs { display: flex; gap: 0.25rem; background: var(--surface-2); padding: 0.25rem; border-radius: var(--radius-sm); }
.sort-tab { padding: 0.3rem 0.75rem; border-radius: 6px; font-size: 0.8rem; color: var(--text-2); transition: var(--tr); cursor: pointer; }
.sort-tab.active { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow-sm); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin-top: 2.5rem; padding: 1rem 0; }
.page-btn { min-width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 0.875rem; color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: var(--tr); text-decoration: none; }
.page-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.page-ellipsis { color: var(--text-3); padding: 0 0.25rem; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-3); padding: 1rem 0; }
.breadcrumb a { color: var(--text-3); transition: var(--tr); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { font-size: 0.7rem; }
.breadcrumb .current { color: var(--text-2); }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-3); line-height: 1.7; margin-top: 0.75rem; max-width: 260px; }
.footer-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-2); transition: var(--tr); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--text-3); flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: var(--text-3); transition: var(--tr); }
.footer-bottom a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) {
  .layout-sidebar { grid-template-columns: 200px 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr 300px; }
  .featured-card { grid-template-columns: 220px 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.5rem; }
  .app-grid { 
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
  }
  .app-card {
    width: 100%;
    padding: 1rem;
    gap: 0.75rem;
    min-width: 0;
  }
  .app-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    flex-shrink: 0;
  }
  .app-name {
    font-size: 0.875rem;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
  .app-dev {
    font-size: 0.72rem;
  }
  .app-meta {
    gap: 0.5rem;
    font-size: 0.72rem;
    flex-wrap: wrap;
    min-width: 0;
  }
  .app-meta span { min-width: 0; }
  .layout-sidebar { 
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  .sidebar { 
    position: static;
    width: 100%;
  }
  .sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
    padding: 0.75rem 1rem 0.35rem;
  }
  .sidebar-item {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
  .sidebar-item .count {
    font-size: 0.7rem;
  }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 160px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .header-search { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 250;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.4rem 1rem 0.9rem;
  }
  .nav.open { display: flex; }
  .nav a {
    width: 100%;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    font-size: 0.92rem;
  }
  body.menu-open { overflow: hidden; }
  h1 { font-size: 1.8rem; }
  .section { padding: 2.5rem 0; }
  .section-header { flex-wrap: wrap; }
  .section-title { font-size: 1.1rem; }
  .pagination { flex-wrap: wrap; gap: 0.25rem; }
  .page-btn { min-width: 32px; height: 32px; font-size: 0.8rem; }
  .related-categories { gap: 0.5rem; }
  .related-categories a { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .cat-hero { padding: 2rem 0 1.5rem; }
  .cat-hero-inner {
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0;
  }
  .cat-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.5rem;
  }
  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .cat-pills { order: 1; }
  .filter-select { order: 2; width: 100%; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 2rem 0 1.5rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .pagination { gap: 0.25rem; }
  .page-btn { min-width: 32px; height: 32px; font-size: 0.8rem; }
  .cat-hero-inner { flex-direction: column; }
  .cat-hero-content h1 { font-size: 1.45rem; }
}
