/* 抖阴APP官网 - dou-yin.homes v2 */
:root {
  --bg-primary: #08080c;
  --bg-secondary: #101018;
  --bg-card: #161622;
  --bg-elevated: #1e1e2c;
  --text-primary: #f4f4f8;
  --text-secondary: #9b9bab;
  --text-muted: #6b6b7b;
  --accent-cyan: #00f2ea;
  --accent-magenta: #ff0050;
  --accent-red: #ff2d55;
  --border: #2c2c3e;
  --border-light: #3a3a50;
  --gradient: linear-gradient(120deg, var(--accent-cyan) 0%, var(--accent-magenta) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 242, 234, 0.12), rgba(255, 0, 80, 0.12));
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --sidebar-width: 280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s; }
a:hover { color: var(--accent-magenta); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-top {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 8, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header { background: transparent; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  height: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: 0;
}

.logo-link:hover { color: var(--text-primary); }
.logo-link img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.logo-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.logo-domain {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-main a {
  position: relative;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-main a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-main a.active {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(0, 242, 234, 0.06);
}

.nav-main a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.03);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ads-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px 0 8px;
  background: var(--bg-secondary);
}

.ads-bar-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: 82px;
}

#ads > div { display: flex; flex-direction: column; align-items: center; width: 70px; }
#ads img {
  width: 65px; height: 65px; object-fit: cover; border-radius: 16px;
  box-shadow: var(--shadow-sm); transition: transform 0.18s;
}
#ads img:hover { transform: translateY(-3px); }
#ads a { display: inline-block; border-radius: 16px; }
#ads figcaption, #ads .caption {
  height: 15px; font-size: 11px; color: var(--text-muted);
  text-align: center; max-width: 70px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; margin-top: 4px;
}

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 242, 234, 0.08);
  border: 1px solid rgba(0, 242, 234, 0.2);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.section-head {
  margin-bottom: 40px;
}

.section-head.center { text-align: center; }
.section-head.center .section-subtitle { margin-left: auto; margin-right: auto; }

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.7;
}

.section { padding: 72px 0; }
.section-alt { background: var(--bg-secondary); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 40%, rgba(0, 242, 234, 0.07), transparent),
    radial-gradient(ellipse 50% 60% at 85% 60%, rgba(255, 0, 80, 0.07), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 234, 0.06);
  border: 1px solid rgba(0, 242, 234, 0.18);
  border-radius: 50px;
  padding: 5px 14px 5px 8px;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(255, 0, 80, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0, 242, 234, 0.25); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(0, 242, 234, 0.05); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone {
  position: relative;
  width: min(100%, 320px);
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-phone::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: var(--gradient);
  opacity: 0.12;
  filter: blur(60px);
  z-index: -1;
}

/* ── Bento features ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.2s;
}

.bento-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.bento-card:hover::before { opacity: 1; }

.bento-card.span-2 { grid-column: span 2; }

.bento-num {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.bento-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.bento-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ── Gallery scroll ── */
.gallery-scroll-wrap {
  position: relative;
}

.gallery-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--bg-primary));
  pointer-events: none;
}

.section-alt .gallery-scroll-wrap::after {
  background: linear-gradient(to right, transparent, var(--bg-secondary));
}

.gallery-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.gallery-scroll::-webkit-scrollbar { height: 4px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

.gallery-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.gallery-card:hover { border-color: var(--accent-cyan); }

.gallery-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.gallery-card figcaption strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* legacy gallery grid fallback */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.gallery-item figcaption { padding: 14px; font-size: 0.85rem; color: var(--text-secondary); }
.gallery-item figcaption strong { color: var(--text-primary); display: block; margin-bottom: 4px; }

/* ── Download section ── */
.download-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: sticky;
  top: 100px;
}

.download-card-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.download-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.download-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }

.download-card .btn-download { width: 100%; justify-content: center; }

.download-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-num {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 2px solid var(--border-light);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.timeline-body h3 { font-size: 1rem; margin-bottom: 6px; }
.timeline-body p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* legacy steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.step-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-num {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ── Article two-column layout ── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 48px;
  align-items: start;
}

.content-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-box h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.toc-list { list-style: none; }
.toc-list li { margin-bottom: 4px; }
.toc-list a {
  display: block;
  padding: 7px 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.toc-list a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 242, 234, 0.05);
  border-left-color: var(--accent-cyan);
}

.sidebar-links { display: flex; flex-direction: column; gap: 6px; }
.sidebar-links a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.sidebar-links a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.article-content { min-width: 0; }

.article-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.article-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.article-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--accent-cyan);
}

.article-block p { margin-bottom: 14px; color: var(--text-secondary); font-size: 0.95rem; }
.article-block ul, .article-block ol { margin: 0 0 14px 20px; color: var(--text-secondary); font-size: 0.95rem; }
.article-block li { margin-bottom: 6px; }

.article-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
  color: var(--accent-cyan);
}

.article-content p { margin-bottom: 14px; color: var(--text-secondary); }
.article-content ul, .article-content ol { margin: 0 0 14px 20px; color: var(--text-secondary); }
.article-content li { margin-bottom: 6px; }

/* ── FAQ grid ── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.faq-item h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.faq-item p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; line-height: 1.7; }

/* ── Tag cloud ── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span, .tag-cloud a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: all 0.15s;
}

.tag-cloud a:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 242, 234, 0.4);
  background: rgba(0, 242, 234, 0.06);
}

/* ── Feature cards legacy ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--accent-cyan); }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Page layout ── */
.page-header {
  padding: 56px 0 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-header .container { text-align: left; }
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.page-header p { color: var(--text-secondary); }

.page-content { padding: 48px 0 72px; }

.page-content .article-content {
  max-width: 760px;
  margin: 0 auto;
}

.page-content .article-block { margin-bottom: 24px; }

/* ── Error pages ── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.error-code {
  font-size: 7rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.04em;
}

.error-page h1 { font-size: 1.5rem; margin: 20px 0 10px; }
.error-page p { color: var(--text-secondary); margin-bottom: 28px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.875rem; margin-top: 14px; line-height: 1.7; }

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 0.875rem; }
.footer-links a:hover { color: var(--accent-cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.breadcrumb {
  padding: 0 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-cyan); }

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.internal-links a {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.internal-links a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .content-sidebar .sidebar-box { flex: 1; min-width: 220px; }
  .download-layout { grid-template-columns: 1fr; }
  .download-card { position: static; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-visual { order: -1; }
  .hero-phone { width: min(100%, 260px); margin: 0 auto; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .header-inner { padding: 0 16px; height: 56px; }
  .logo-domain { display: none; }
  .nav-toggle { display: flex; }

  .header-nav-wrap { position: relative; }

  .nav-main {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: var(--shadow);
    z-index: 300;
  }

  .site-header { position: relative; }
  .site-header.nav-open .nav-main { display: flex; }

  .nav-main a {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
  }

  .nav-main a.active::after { display: none; }
  .nav-main a.active {
    background: rgba(0, 242, 234, 0.08);
    color: var(--accent-cyan);
  }

  .article-block { padding: 20px; }
  .content-sidebar { flex-direction: column; }
}
