/* ===================================================
   babiafox.com - 币狐
   Reference: IT_05_PlayTailwind
   Primary: #ff6a00 (orange/fox)
   Dark: #0f172a (navy)
   Light accent: #fff7ed
   =================================================== */

:root {
  --accent: #ff6a00;
  --accent-light: #fff7ed;
  --accent-hover: #e55d00;
  --dark: #0f172a;
  --dark-lighter: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 6px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s;
  text-decoration: none; line-height: 1.4;
}
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--white { background: #fff; color: var(--dark); border-color: #fff; }
.btn--white:hover { background: #f1f5f9; color: var(--dark); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--sm { padding: 6px 16px; font-size: 13px; }
.btn--full { width: 100%; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; transition: all .3s;
}
.site-header.scrolled {
  background: var(--dark); backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.is-home .site-header { background: transparent; }
.is-home .site-header.scrolled { background: var(--dark); }
body:not(.is-home) .site-header { background: var(--dark); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}

.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo__img { width: 34px; height: 34px; border-radius: 8px; }
.site-logo__text { font-size: 20px; font-weight: 700; color: #fff; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: rgba(255,255,255,.75); font-size: 15px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px; transition: all .2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-link--active { color: #fff; background: rgba(255,255,255,.12); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-lang {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2);
  padding: 4px 8px; border-radius: 4px; font-size: 13px; cursor: pointer;
}
.header-lang option { color: #333; background: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle__bar {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 5px 0; transition: all .3s; border-radius: 1px;
}

.nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 90; opacity: 0; transition: opacity .3s;
}
.nav-overlay.open { display: block; opacity: 1; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2744 50%, var(--dark-lighter) 100%);
  padding: 140px 0 100px; position: relative; overflow: hidden;
  min-height: 560px;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,106,0,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero__badge {
  display: inline-block; background: rgba(255,106,0,.15); color: var(--accent);
  padding: 4px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px; border: 1px solid rgba(255,106,0,.3);
}
.hero__title { font-size: 42px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero__desc { font-size: 17px; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 28px; }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual { display: flex; justify-content: center; }

/* Phone mockup */
.phone-mockup {
  width: 260px; background: #1e293b; border-radius: 28px; padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 2px rgba(255,255,255,.1);
}
.phone-mockup__screen {
  background: #0f172a; border-radius: 18px; padding: 20px 16px; min-height: 360px;
}
.phone-mockup__header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.phone-mockup__logo {
  width: 30px; height: 30px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 16px;
}
.phone-mockup__header span:last-child { color: #fff; font-weight: 600; font-size: 15px; }
.phone-mockup__chart { margin-bottom: 20px; }
.phone-mockup__chart svg { width: 100%; height: 60px; }
.phone-mockup__items { display: flex; flex-direction: column; gap: 12px; }
.phone-mockup__row {
  display: flex; justify-content: space-between; padding: 8px 12px;
  background: rgba(255,255,255,.05); border-radius: 8px;
  font-size: 14px; color: rgba(255,255,255,.8);
}
.phone-mockup__row .green { color: #22c55e; }
.phone-mockup__row .red { color: #ef4444; }

.hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero__wave svg { width: 100%; height: 80px; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header__title { font-size: 32px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.section-header__desc { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-header__link { font-size: 15px; font-weight: 600; color: var(--accent); }

/* ── CMS Category Grid ── */
.cms-section { padding: 0 0 80px; }
.cms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cms-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .3s;
}
.cms-card:hover { box-shadow: var(--shadow-md); }
.cms-card__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.cms-card__title {
  font-size: 16px; font-weight: 700; color: var(--dark); margin: 0;
  padding-left: 12px; border-left: 3px solid var(--accent);
}
.cms-card__more { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.cms-card__list { list-style: none; margin: 0; padding: 0; }
.cms-card__list li { border-bottom: 1px solid var(--border); }
.cms-card__list li:last-child { border-bottom: none; }
.cms-card__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 24px; color: var(--text); font-size: 14px;
  text-decoration: none; transition: all .15s; gap: 12px;
}
.cms-card__list a:hover { background: var(--accent-light); color: var(--accent); }
.cms-card__link-title {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cms-card__link-date { font-size: 12px; color: var(--text-lighter); flex-shrink: 0; }

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

/* ── Features Grid ── */
.features-section { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center; text-decoration: none; color: var(--text);
  transition: all .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); color: var(--text); }
.feature-card__icon {
  width: 64px; height: 64px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 20px;
}
.feature-card__icon--1 { background: #fff7ed; color: var(--accent); }
.feature-card__icon--2 { background: #eff6ff; color: #3b82f6; }
.feature-card__icon--3 { background: #f0fdf4; color: #22c55e; }
.feature-card__icon--4 { background: #faf5ff; color: #a855f7; }
.feature-card__title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-card__desc { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ── Highlight Section (2-col) ── */
.highlight-section { padding: 80px 0; background: var(--bg-alt); }
.highlight-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.highlight-section__label {
  display: inline-block; color: var(--accent); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.highlight-section__title { font-size: 30px; font-weight: 700; color: var(--dark); margin-bottom: 16px; line-height: 1.3; }
.highlight-section__text p { color: var(--text-light); margin-bottom: 20px; }
.highlight-section__list { list-style: none; margin-bottom: 28px; }
.highlight-section__list li {
  padding: 6px 0 6px 28px; position: relative; color: var(--text); font-size: 15px;
}
.highlight-section__list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); opacity: .15;
}
.highlight-section__list li::after {
  content: '\2713'; position: absolute; left: 3px; top: 6px;
  color: var(--accent); font-size: 11px; font-weight: 700;
}

.highlight-visual { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.highlight-visual__card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow-md); border-left: 4px solid var(--accent);
  transition: transform .3s;
}
.highlight-visual__card:hover { transform: translateX(6px); }
.highlight-visual__card--2 { margin-left: 40px; }
.highlight-visual__card--3 { margin-left: 20px; }
.highlight-visual__icon {
  width: 48px; height: 48px; background: var(--accent-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.highlight-visual__card strong { font-size: 15px; color: var(--dark); display: block; }
.highlight-visual__card small { font-size: 13px; color: var(--text-light); }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #e05500 100%);
  padding: 64px 0; text-align: center;
}
.cta-band__title { font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-band__desc { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.cta-band__btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Download Methods (Pricing-style) ── */
.dl-methods { padding: 80px 0; background: var(--bg-alt); }
.dl-methods__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-method-card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px 28px;
  border: 1px solid var(--border); text-align: center; transition: all .3s;
}
.dl-method-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dl-method-card--featured {
  background: var(--dark); color: #fff; border-color: var(--dark);
  transform: scale(1.05); position: relative; z-index: 1;
}
.dl-method-card--featured:hover { transform: scale(1.05) translateY(-4px); }
.dl-method-card__header { margin-bottom: 24px; }
.dl-method-card__header h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.dl-method-card--featured .dl-method-card__header h3 { color: #fff; }
.dl-method-card__label {
  display: inline-block; padding: 3px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 600; background: var(--accent-light); color: var(--accent);
}
.dl-method-card--featured .dl-method-card__label { background: var(--accent); color: #fff; }
.dl-method-card__list { list-style: none; text-align: left; margin-bottom: 28px; }
.dl-method-card__list li {
  padding: 8px 0 8px 24px; position: relative; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.dl-method-card--featured .dl-method-card__list li { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.dl-method-card__list li::before {
  content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.dl-method-card--featured .dl-method-card__list li::before { color: var(--accent); }

/* ── FAQ ── */
.faq-section { padding: 80px 0; }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px;
  overflow: hidden; transition: border-color .3s;
}
.faq-item.open { border-color: var(--accent); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--dark); text-align: left;
}
.faq-question svg { flex-shrink: 0; transition: transform .3s; color: var(--text-light); }
.faq-item.open .faq-question svg { transform: rotate(180deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 24px 18px; color: var(--text-light); font-size: 15px; line-height: 1.7; }

/* ── Portal Section (Category Cards) ── */
.portal-section { padding: 80px 0; background: var(--bg-alt); }
.portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.portal-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--border); transition: box-shadow .3s;
}
.portal-card:hover { box-shadow: var(--shadow-md); }
.portal-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.portal-card__title { font-size: 18px; font-weight: 700; color: var(--dark); }
.portal-card__more { font-size: 13px; color: var(--accent); font-weight: 600; }
.portal-card__list { list-style: none; }
.portal-card__list li { border-bottom: 1px solid var(--border); }
.portal-card__list li:last-child { border-bottom: none; }
.portal-card__list a {
  display: block; padding: 10px 0; color: var(--text); font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .2s;
}
.portal-card__list a:hover { color: var(--accent); }

/* ── Latest Posts ── */
.latest-section { padding: 80px 0; }

/* ── Card Grid ── */
.card-grid { display: grid; gap: 24px; }
.card-grid--3col { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--border); transition: all .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.card__tag {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 600; background: var(--accent-light); color: var(--accent);
  text-decoration: none;
}
.card__tag:hover { background: var(--accent); color: #fff; }
.card__title { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { display: flex; gap: 12px; font-size: 13px; color: var(--text-lighter); }

/* ── Post Layout ── */
.post-layout { padding: 100px 0 60px; }
.post-layout__grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }

.post-cover { margin-bottom: 24px; border-radius: var(--radius-lg); overflow: hidden; }
.post-cover img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }

.post-header { margin-bottom: 28px; }
.post-tag {
  display: inline-block; padding: 3px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 600; background: var(--accent-light); color: var(--accent);
  margin-bottom: 12px; text-decoration: none;
}
.post-header__title { font-size: 32px; font-weight: 800; color: var(--dark); line-height: 1.3; margin-bottom: 12px; }
.post-header__meta { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-lighter); }

.post-summary {
  background: var(--accent-light); border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px; color: var(--text); margin-bottom: 28px;
}

.post-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.post-content h2 { font-size: 24px; font-weight: 700; color: var(--dark); margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.post-content h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 28px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.post-content pre { background: var(--dark); color: #e2e8f0; padding: 20px; border-radius: var(--radius); overflow-x: auto; margin-bottom: 16px; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content blockquote {
  border-left: 4px solid var(--accent); background: var(--accent-light);
  padding: 16px 20px; margin: 16px 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.post-content th, .post-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; font-size: 14px; }
.post-content th { background: var(--bg-alt); font-weight: 600; }

/* Sidebar */
.post-sidebar { position: sticky; top: 88px; }
.sidebar-widget {
  background: var(--bg-alt); border-radius: var(--radius-lg); padding: 24px;
  margin-bottom: 20px;
}
.sidebar-widget__title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-tag {
  display: inline-block; padding: 4px 12px; border-radius: 4px;
  font-size: 13px; background: #fff; color: var(--text); border: 1px solid var(--border);
  text-decoration: none; transition: all .2s;
}
.sidebar-tag:hover, .sidebar-tag--active { background: var(--accent); color: #fff; border-color: var(--accent); }
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { display: block; padding: 8px 0; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-links a:hover { color: var(--accent); }

/* Related */
.related-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-section__title { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-card {
  display: flex; flex-direction: column; padding: 14px 18px;
  background: var(--bg-alt); border-radius: var(--radius); text-decoration: none;
  transition: background .2s;
}
.related-card:hover { background: var(--accent-light); }
.related-card__title { font-size: 14px; font-weight: 600; color: var(--dark); line-height: 1.4; margin-bottom: 4px; }
.related-card__date { font-size: 12px; color: var(--text-lighter); }

/* ── Page Wrapper ── */
.page-wrapper { padding: 100px 0 60px; min-height: 60vh; }
.page-header { margin-bottom: 32px; }
.page-header__title { font-size: 30px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.page-header__desc { font-size: 15px; color: var(--text-light); }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-lighter); margin-bottom: 24px; padding-top: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--text-lighter); }
.breadcrumb__current { color: var(--text); }

/* ── Tags Grid ── */
.tags-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tag-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 28px 20px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none; text-align: center;
  transition: all .3s;
}
.tag-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tag-card__name { font-size: 16px; font-weight: 700; color: var(--dark); }
.tag-card__count { font-size: 13px; color: var(--text-lighter); }

/* Tag page header */
.tag-page-header { margin-bottom: 32px; }
.tag-page-header__title { font-size: 30px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.tag-page-header__count { font-size: 15px; color: var(--text-light); }

/* ── Filter Buttons ── */
.filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 6px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 14px; cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn--active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Footer ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px; }
.footer-logo img { border-radius: 8px; }
.footer-logo span { font-size: 20px; font-weight: 700; color: #fff; }
.footer-brand__desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.5); }
.footer-col__title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.55); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-lang .active { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0; text-align: center;
}
.footer-bottom__risk { font-size: 12px; color: rgba(255,255,255,.35); margin-bottom: 8px; line-height: 1.6; }
.footer-bottom__copy { font-size: 13px; color: rgba(255,255,255,.4); }

/* ── 404 ── */
.error-page { text-align: center; padding: 60px 0; }
.error-page__code { font-size: 100px; font-weight: 800; color: var(--accent); opacity: .3; line-height: 1; }
.error-page__title { font-size: 28px; font-weight: 700; color: var(--dark); margin: 16px 0 8px; }
.error-page__desc { color: var(--text-light); margin-bottom: 28px; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Download Page ── */
.dl-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2744 100%);
  padding: 120px 0 60px; position: relative;
}
.dl-hero .breadcrumb--light a { color: rgba(255,255,255,.5); }
.dl-hero .breadcrumb--light .breadcrumb__sep { color: rgba(255,255,255,.3); }
.dl-hero .breadcrumb--light .breadcrumb__current { color: rgba(255,255,255,.7); }
.dl-hero__title { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.dl-hero__desc { font-size: 17px; color: rgba(255,255,255,.7); max-width: 600px; }

.dl-methods { padding: 40px 0; position: relative; z-index: 2; }
.dl-methods .container { position: relative; }
.dl-methods__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.dl-method-card__icon { text-align: center; margin-bottom: 16px; min-height: 48px; display: flex; align-items: center; justify-content: center; }

.dl-detail { padding: 60px 0 0; }
.dl-detail__card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.dl-detail__header {
  display: flex; align-items: center; gap: 16px;
  padding: 28px 32px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.dl-detail__header h2 { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.dl-detail__header p { font-size: 14px; color: var(--text-light); margin: 0; }
.dl-detail__badge {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.dl-detail__badge--android { background: #e8f5e9; }
.dl-detail__badge--ios { background: #f3f4f6; }
.dl-detail__body { padding: 32px; }
.dl-detail__steps { margin-bottom: 28px; }
.dl-detail__step {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.dl-detail__step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.dl-detail__step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 16px; font-weight: 700; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.dl-detail__step strong { font-size: 16px; color: var(--dark); display: block; margin-bottom: 4px; }
.dl-detail__step p { font-size: 14px; color: var(--text-light); margin: 0; }
.dl-detail__tip {
  background: var(--accent-light); border: 1px solid rgba(255,106,0,.15);
  padding: 16px 20px; border-radius: var(--radius); font-size: 14px;
  color: var(--text); margin-top: 20px;
}
.dl-detail__tip strong { color: var(--accent-hover); }

.dl-desktop { padding: 60px 0; }
.dl-desktop__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dl-desktop__card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; transition: all .3s;
}
.dl-desktop__card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dl-desktop__icon { margin-bottom: 16px; }
.dl-desktop__card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.dl-desktop__card p { font-size: 14px; color: var(--text-light); }

.dl-faq-section { padding: 0 0 60px; }

/* ── About Page ── */
.about-page { padding-top: 20px; }
.about-header { margin-bottom: 32px; }
.about-header h1 { font-size: 30px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.about-header__desc { font-size: 16px; color: var(--text-light); line-height: 1.7; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.about-stat { text-align: center; padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }
.about-stat__num { font-size: 32px; font-weight: 800; color: var(--accent); }
.about-stat__label { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.about-page h2 { font-size: 22px; font-weight: 700; color: var(--dark); margin: 32px 0 12px; }
.about-page > p { color: var(--text-light); margin-bottom: 16px; }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.about-card { padding: 16px; background: var(--bg-alt); border-radius: var(--radius); text-align: center; }
.about-card__title { font-size: 15px; font-weight: 600; color: var(--dark); }
.about-principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.about-principle { padding: 20px; background: var(--bg-alt); border-radius: var(--radius); }
.about-principle strong { font-size: 16px; color: var(--dark); display: block; margin-bottom: 6px; }
.about-principle p { font-size: 14px; color: var(--text-light); }
.about-notice { background: var(--accent-light); border: 1px solid rgba(255,106,0,.2); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; }
.about-notice strong { font-size: 16px; color: var(--accent-hover); display: block; margin-bottom: 8px; }
.about-notice p { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.about-notice p:last-child { margin-bottom: 0; }

/* Disclaimer */
.disclaimer-page { padding-top: 20px; }
.disclaimer-page h1 { font-size: 30px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.disclaimer-content h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 28px 0 10px; }
.disclaimer-content p { font-size: 15px; color: var(--text-light); margin-bottom: 12px; line-height: 1.7; }

/* ── Back to Top ── */
.back-to-top {
  position: fixed; bottom: 80px; right: 24px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px); transition: all .3s;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: #fff; border-top: 1px solid var(--border);
  justify-content: space-around; padding: 6px 0 env(safe-area-inset-bottom, 4px);
}
.mobile-nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--text-light); text-decoration: none;
  padding: 4px 8px;
}
.mobile-nav__item--active { color: var(--accent); }
.mobile-nav__item svg { color: inherit; }

/* ── Pagination ── */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 40px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: 8px;
  font-size: 14px; font-weight: 500; padding: 0 10px;
}
.pagination a {
  color: var(--text); border: 1px solid var(--border);
  text-decoration: none; transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.pagination .dots { border: none; color: var(--text-lighter); }
.pagination .prev, .pagination .next {
  font-size: 13px; gap: 4px;
}
@media (max-width: 768px) {
  .pagination .page-num { display: none; }
  .pagination .dots { display: none; }
}

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 0; color: var(--text-lighter); font-size: 16px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__btns { justify-content: center; }
  .hero__visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-section__grid { grid-template-columns: 1fr; }
  .highlight-visual { display: none; }
  .dl-methods__grid { grid-template-columns: 1fr; }
  .dl-method-card--featured { transform: none; }
  .dl-method-card--featured:hover { transform: translateY(-4px); }
  .portal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout__grid { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

@media (max-width: 768px) {
  .site-nav { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: var(--dark); flex-direction: column; padding: 80px 24px 24px; z-index: 95; transform: translateX(100%); transition: transform .3s; }
  .site-nav.open { display: flex; transform: translateX(0); }
  .nav-link { padding: 12px 16px; font-size: 16px; width: 100%; }
  .nav-toggle { display: block; }
  .header-actions { display: none; }
  .mobile-nav { display: flex; }
  .back-to-top { bottom: 70px; }

  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero__title { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .card-grid--3col { grid-template-columns: 1fr; }
  .tags-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-extra__grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .about-principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-header__title { font-size: 24px; }
  .section-header__title { font-size: 24px; }
}
