/* ============================================================
   FlagsDownload.com – Flaticon-Inspired Design System v2.0
   Color palette:
     White    #ffffff  (header bg, body bg, card bg)
     Dark     #1B2637  (footer, primary text)
     Green    #05CE78  (accent, CTA, hover)
     GreenDk  #04B86C  (accent hover)
     LightBg  #F5F5F5  (section bg)
     Border   #E8E8E8  (card borders, dividers)
     Text     #1B2637  (body text)
     Muted    #7B7B7B  (secondary text)
     HeroBg   #0B3D2E → #157347 (gradient)
   ============================================================ */

/* ── Google Fonts (loaded via <link> in HTML for better performance) ── */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1B2637;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #1B2637; text-decoration: none; transition: color .2s; }
a:hover { color: #05CE78; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────────────────────── */
.page-size {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header (Flaticon-style white header) ─────────────────── */
#masthead {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #E8E8E8;
  transition: box-shadow .3s;
}
#masthead.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.site-header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

/* Logo */
.site-branding a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1B2637;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.3px;
  white-space: nowrap;
}
.site-branding a .logo-accent { color: #05CE78; }
.site-branding img { height: 29px; width: auto; }

/* Nav */
#site-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
}
#site-navigation a {
  color: #1B2637;
  padding: 8px 10px;
  border-radius: 24px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
#site-navigation a:hover,
#site-navigation a.active {
  background: #F0FFF7;
  color: #05CE78;
}

/* Search bar in header – Flaticon style prominent pill */
.header-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 480px;
  background: #F5F5F5;
  border-radius: 12px;
  padding: 0;
  border: 2px solid transparent;
  transition: border-color .2s, background .2s, box-shadow .2s;
  overflow: hidden;
}
.header-search:focus-within {
  border-color: #05CE78;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5,206,120,.12);
}
.header-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #1B2637;
  font-size: .9rem;
  padding: 12px 16px;
  font-family: inherit;
}
.header-search input::placeholder { color: #999; }
.header-search button {
  background: #05CE78;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 12px 18px;
  font-size: 1rem;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search button:hover { background: #04B86C; }

/* Category dropdown in navigation */
.cate-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.cate-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.cate-dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.cate-dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 1px;
  background-color: #fff;
  min-width: 180px;
  max-height: 420px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-radius: 12px;
  z-index: 1001;
  border: 1px solid #E8E8E8;
  padding: 4px 0;
}
.cate-dropdown:hover .cate-dropdown-content { display: block; }
.cate-dropdown-content a {
  color: #1B2637 !important;
  padding: 9px 18px;
  text-decoration: none;
  display: block;
  font-size: .85rem;
  font-weight: 500;
  border: none !important;
  border-radius: 0 !important;
  white-space: nowrap;
  background: none !important;
}
.cate-dropdown-content a:hover {
  background-color: #F0FFF7 !important;
  color: #05CE78 !important;
}

/* Mobile subcategory accordion */
.mobile-cate-group { width: 100%; }
.mobile-cate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.mobile-cate-header a { flex: 1; }
.mobile-cate-arrow {
  color: #999;
  font-size: .85rem;
  padding: 4px 8px;
  transition: transform .25s;
}
.mobile-cate-arrow.open { transform: rotate(180deg); }
.mobile-cate-sub {
  padding-left: 16px;
}
.mobile-cate-sub a {
  font-size: .85rem !important;
  color: #555 !important;
  padding: 6px 0 !important;
}

/* Language switcher – Flaticon dropdown style */
.lang-switcher {
  position: relative;
  display: inline-block;
  margin-left: 4px;
}
.nav-dropdown { position: relative; display: inline-block; margin-left: 4px; }
.nav-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.nav-dropbtn {
  color: #1B2637;
  font-size: .85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #E8E8E8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  background: #fff;
}
.nav-dropbtn:hover { border-color: #05CE78; color: #05CE78; }
.nav-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 1px;
  background-color: #fff;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-radius: 12px;
  z-index: 1001;
  overflow: hidden;
  border: 1px solid #E8E8E8;
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a {
  color: #1B2637 !important;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: .88rem;
  font-weight: 500;
  border: none !important;
  border-radius: 0 !important;
}
.nav-dropdown-content a:hover, .nav-dropdown-content a.active {
  background-color: #F0FFF7 !important;
  color: #05CE78 !important;
}

/* User menu */
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.btn-login {
  background: #05CE78;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .88rem;
  transition: background .2s, transform .1s;
}
.btn-login:hover {
  background: #04B86C;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #1B2637;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
}
.mobile-menu-toggle:hover { background: #F5F5F5; }

/* ── Hero / Banner (Flaticon green gradient) ──────────────── */
.hero-banner {
  background: linear-gradient(135deg, #0B3D2E 0%, #157347 40%, #1A9B5C 70%, #05CE78 100%);
  color: #fff;
  padding: 80px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-banner .page-size { position: relative; z-index: 1; }
.hero-banner h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -.5px;
  line-height: 1.2;
}
.hero-banner h1 span {
  display: block;
  color: rgba(255,255,255,.85);
  font-weight: 700;
}
.hero-banner p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Hero search – Flaticon style big search */
.hero-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  background: #fff;
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 24px;
  font-size: 1rem;
  color: #1B2637;
  font-family: inherit;
}
.hero-search input::placeholder { color: #999; }
.hero-search button {
  background: #05CE78;
  color: #fff;
  border: none;
  padding: 18px 36px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}
.hero-search button:hover { background: #04B86C; }

/* Hot search tags below hero search */
.hero-hot-tags {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-hot-tags span {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
}
.hero-hot-tags a {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .2s;
}
.hero-hot-tags a:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* ── Section titles ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 24px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1B2637;
  position: relative;
}
.section-title::before {
  display: none;
}
.view-all-link {
  font-size: .88rem;
  color: #05CE78;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-all-link:hover { color: #04B86C; }
.view-all-link::after {
  content: '\2192';
  transition: transform .2s;
}
.view-all-link:hover::after { transform: translateX(3px); }

/* ── Flag card grid (Flaticon-style icon grid) ────────────── */
.flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.flag-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E8E8E8;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  position: relative;
}
.flag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  border-color: #05CE78;
}
.flag-card a {
  display: block;
  text-decoration: none;
}
.flag-card-thumb-wrap {
  overflow: hidden;
  background: #F5F5F5;
  border-bottom: 1px solid #F0F0F0;
}
.flag-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #F5F5F5;
  padding: 20px;
  transition: transform .3s;
}
.flag-card:hover .flag-card-thumb {
  transform: scale(1.05);
}
.flag-card-body {
  padding: 12px 14px 14px;
}
.flag-card-name {
  font-size: .88rem;
  font-weight: 600;
  color: #1B2637;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flag-card-sub {
  font-size: .78rem;
  color: #7B7B7B;
  margin-top: 3px;
}
.flag-card-formats {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.badge-format {
  font-size: .68rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge-svg { background: #E6F9F0; color: #05CE78; }
.badge-png { background: #FFF3E0; color: #F57C00; }

/* ── Category chips (Flaticon tag style) ──────────────────── */
.cate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.cate-chip {
  background: #fff;
  color: #1B2637;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 500;
  border: 1px solid #E8E8E8;
  transition: all .2s;
}
.cate-chip:hover, .cate-chip.active {
  background: #05CE78;
  color: #fff;
  border-color: #05CE78;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,206,120,.25);
}

/* ── Detail page ──────────────────────────────────────────── */
.detail-hero {
  background: #F5F5F5;
  padding: 40px 0;
  border-bottom: 1px solid #E8E8E8;
}
.detail-flag-wrap {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.detail-flag-img {
  flex-shrink: 0;
  width: 360px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  background: #fff;
  padding: 24px;
}
.detail-flag-info { flex: 1; }
.detail-flag-info h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1B2637;
  margin-bottom: 8px;
  line-height: 1.25;
}
.detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.detail-meta-item {
  background: #E6F9F0;
  color: #05CE78;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 500;
}
.detail-desc {
  color: #7B7B7B;
  font-size: .95rem;
  line-height: 1.7;
  margin: 16px 0;
}
.download-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #05CE78;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s;
  border: 2px solid #05ce78;
  cursor: pointer;
}
.btn-download:hover {
  background: #04B86C;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,206,120,.3);
}
.btn-download-secondary {
  background: #fff;
  border: 2px solid #E8E8E8;
  color: #1B2637 !important;
}
.btn-download-secondary:hover {
  border-color: #05CE78;
  color: #05CE78 !important;
  background: #F0FFF7;
  box-shadow: 0 6px 20px rgba(5,206,120,.15);
}

/* ── Page section bg ──────────────────────────────────────── */
.section-light { background: #F5F5F5; padding: 40px 0; }

/* ── Pagination (Flaticon style) ──────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 36px 0;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #E8E8E8;
  color: #1B2637;
  font-size: .88rem;
  font-weight: 500;
  transition: all .2s;
  background: #fff;
}
.pagination a:hover {
  border-color: #05CE78;
  color: #05CE78;
  background: #F0FFF7;
}
.pagination .current {
  background: #05CE78;
  color: #fff;
  border-color: #05CE78;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .85rem;
  color: #7B7B7B;
  padding: 16px 0;
}
.breadcrumb a { color: #1B2637; font-weight: 500; }
.breadcrumb a:hover { color: #05CE78; }
.breadcrumb-sep { color: #ccc; font-size: .75rem; }

/* ── VIP / Member page ────────────────────────────────────── */
.vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 30px 0;
}
.vip-plan-card {
  background: #fff;
  border: 2px solid #E8E8E8;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all .25s;
  position: relative;
}
.vip-plan-card:hover, .vip-plan-card.featured {
  border-color: #05CE78;
  box-shadow: 0 12px 32px rgba(5,206,120,.15);
  transform: translateY(-4px);
}
.vip-plan-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #05CE78;
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.vip-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B2637;
  margin-bottom: 12px;
}
.vip-plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #05CE78;
  margin-bottom: 4px;
}
.vip-plan-old-price {
  font-size: .9rem;
  color: #aaa;
  text-decoration: line-through;
  margin-bottom: 20px;
}
.btn-buy-vip {
  width: 100%;
  background: #1B2637;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.btn-buy-vip:hover {
  background: #05CE78;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Login page ───────────────────────────────────────────── */
.login-box {
  max-width: 420px;
  margin: 80px auto;
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
  text-align: center;
  border: 1px solid #E8E8E8;
}
.login-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1B2637;
  margin-bottom: 8px;
}
.login-box p { color: #7B7B7B; margin-bottom: 32px; }
.btn-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 2px solid #E8E8E8;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #1B2637;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  background: #fff;
  font-family: inherit;
}
.btn-google-login:hover {
  border-color: #05CE78;
  box-shadow: 0 4px 16px rgba(5,206,120,.15);
  color: #1B2637;
}
.btn-google-login svg { width: 22px; height: 22px; }

/* ── Download start page ──────────────────────────────────── */
.download-start-wrap {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  padding: 48px 40px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #E8E8E8;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}
.download-start-wrap .flag-preview {
  width: 200px;
  margin: 0 auto 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.download-start-wrap h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1B2637;
  margin-bottom: 8px;
}
.download-start-wrap p { color: #7B7B7B; margin-bottom: 32px; }
.btn-start-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #05CE78;
  color: #fff !important;
  padding: 16px 40px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-start-download:hover {
  background: #04B86C;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,206,120,.3);
  color: #fff !important;
}

/* ── Feedback form ────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1B2637;
  font-size: .9rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E8E8E8;
  border-radius: 12px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  color: #1B2637;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #05CE78;
  box-shadow: 0 0 0 4px rgba(5,206,120,.1);
}
.form-textarea { resize: vertical; }

/* ── Footer (Flaticon dark footer) ────────────────────────── */
.site-footer {
  background: #1B2637;
  color: rgba(255,255,255,.75);
  padding: 56px 0 32px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand-name .logo-accent { color: #05CE78; }
.footer-desc {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 320px;
}
.footer-col-title {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  transition: color .2s;
}
.footer-links a:hover { color: #05CE78; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: #05CE78; }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.no-display { display: none !important; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-align: center;
  font-family: inherit;
}
.btn-primary { background: #1B2637; color: #fff; }
.btn-primary:hover { background: #2d3e54; color: #fff; }
.btn-accent { background: #05CE78; color: #fff; }
.btn-accent:hover { background: #04B86C; }
.btn-outline {
  background: transparent;
  border: 2px solid #E8E8E8;
  color: #1B2637;
}
.btn-outline:hover {
  border-color: #05CE78;
  color: #05CE78;
}

/* ── Mobile nav overlay ───────────────────────────────────── */
#mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  padding: 24px;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,.1);
}
#mobile-nav.open { transform: translateX(0); }
#mobile-nav.hide { transform: translateX(-100%); }
.mobile-nav-close {
  background: none;
  border: none;
  color: #7B7B7B;
  font-size: 1.4rem;
  cursor: pointer;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: 8px;
  transition: all .2s;
}
.mobile-nav-close:hover { color: #1B2637; background: #F5F5F5; }
.mobile-nav-links a {
  display: block;
  color: #1B2637;
  padding: 14px 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: 1rem;
  font-weight: 500;
}
.mobile-nav-links a:hover { color: #05CE78; }
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1999;
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }

/* ── Article page ─────────────────────────────────────────── */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.article-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #1B2637;
  margin-bottom: 8px;
  line-height: 1.3;
}
.article-date {
  color: #7B7B7B;
  font-size: .85rem;
  margin-bottom: 32px;
}
.article-body {
  line-height: 1.85;
  color: #333;
  font-size: 1rem;
}
.article-body p { margin-bottom: 16px; }
.article-body img { border-radius: 12px; margin: 20px 0; }

/* ── Info alert (VIP active) ──────────────────────────────── */
.alert-success {
  background: #F0FFF7;
  border: 1px solid #05CE78;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 30px;
  color: #04B86C;
  font-weight: 500;
}

/* ── Stats row (homepage) ─────────────────────────────────── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid #F0F0F0;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #05CE78;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .85rem;
  color: #7B7B7B;
  font-weight: 500;
}

/* ── Category showcase cards (homepage) ───────────────────── */
.cate-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin: 24px 0 48px;
}
.cate-showcase-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 14px;
  transition: all .2s;
  cursor: pointer;
}
.cate-showcase-card:hover {
  border-color: #05CE78;
  box-shadow: 0 4px 16px rgba(5,206,120,.12);
  transform: translateY(-2px);
}
.cate-showcase-card i {
  font-size: 1.6rem;
  color: #05CE78;
  width: 40px;
  height: 40px;
  background: #E6F9F0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cate-showcase-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: #E6F9F0;
  padding: 6px;
}
.cate-showcase-card .cate-showcase-name {
  font-weight: 600;
  font-size: .92rem;
  color: #1B2637;
}
.cate-showcase-card .cate-showcase-count {
  font-size: .78rem;
  color: #7B7B7B;
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state i {
  font-size: 3.5rem;
  color: #E8E8E8;
  margin-bottom: 16px;
}
.empty-state p {
  color: #7B7B7B;
  font-size: 1rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .detail-flag-wrap { flex-direction: column; }
  .detail-flag-img { width: 100%; max-width: 360px; }
  .hero-banner h1 { font-size: 2.2rem; }
  .stats-row { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  #site-navigation { display: none; }
  .header-search   { display: none; }
  .lang-switcher, .nav-dropdown, .cate-dropdown { display: none; }
  .header-user .btn-login { display: none; }
  .mobile-menu-toggle { display: block; }
  .site-header-inner { gap: 12px; }
  .flag-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .hero-banner { padding: 48px 16px 40px; }
  .hero-banner h1 { font-size: 1.7rem; }
  .hero-banner p { font-size: 1rem; }
  .hero-search { border-radius: 12px; }
  .hero-search input { padding: 14px 16px; font-size: .9rem; }
  .hero-search button { padding: 14px 20px; font-size: .9rem; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section-header { margin: 32px 0 16px; }
  .section-title { font-size: 1.25rem; }
  .download-start-wrap { margin: 40px auto; padding: 32px 24px; }
  .login-box { margin: 40px auto; padding: 32px 24px; }
  .stats-row { gap: 16px; padding: 32px 0; }
  .stat-number { font-size: 1.5rem; }
  .cate-showcase { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ── Override ThinkPHP default jump page ─────────────────── */
.think_default_text { max-width: 600px; margin: 60px auto; text-align: center; font-family: inherit; }

/* ── Scroll animation ─────────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .5s;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
