/* ==========================================================================
   NanoCloud (nano-cloud.lat) - Bento 云端魔方 核心样式表
   视觉定位：模块化 Bento 网格、蓝紫云端微光、数据卡片、高对比度易读性
   完整适配：320px、375px、390px、768px、1024px 及桌面大屏
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 主题色系：深空蓝黑底色 + 蓝紫云端魔方光晕 */
  --bg-main: #090D16;
  --bg-surface: #0E1526;
  --bg-card: #131C33;
  --bg-card-hover: #172340;
  --bg-glass: rgba(19, 28, 51, 0.75);
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(99, 102, 241, 0.28);
  --border-glow: rgba(56, 189, 248, 0.35);

  /* 品牌高亮渐变与单色 */
  --color-primary: #6366F1;
  --color-purple: #8B5CF6;
  --color-cyan: #06B6D4;
  --color-sky: #38BDF8;
  --color-emerald: #10B981;
  --color-amber: #F59E0B;
  --color-rose: #F43F5E;

  /* 文字颜色 */
  --text-pure: #FFFFFF;
  --text-main: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;

  /* 阴影与光晕 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(99, 102, 241, 0.08);
  --shadow-glow: 0 0 28px -4px rgba(99, 102, 241, 0.3);

  /* 布局与圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container-max: 1200px;
  --nav-height: 70px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 背景环境微光 */
body::before {
  content: "";
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.06) 45%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* 链接与排版规范 */
a {
  color: var(--color-sky);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #7DD3FC;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 容器定义 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   导航栏 Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo-img {
  height: 38px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-pure);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 统一规范 CTA 按钮 (严格执行要求文案与样式) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-main) !important;
  border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
  background: rgba(40, 53, 76, 0.9);
  border-color: var(--color-sky);
  color: var(--text-pure) !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* 移动端抽屉导航 */
.mobile-nav-drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 99;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-sky);
}

/* ==========================================================================
   Hero 区域与 Bento 标题
   ========================================================================== */
.hero-section {
  padding: 56px 0 36px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-sky);
  margin-bottom: 20px;
}

.hero-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
}

.hero-title {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  margin-bottom: 18px;
}

.hero-title .gradient-text {
  background: linear-gradient(120deg, #818CF8, #C084FC, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 820px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta-item strong {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   Bento 云端魔方网格系统 (Bento Grid)
   ========================================================================== */
.bento-section {
  padding: 40px 0 60px;
}

.section-header {
  margin-bottom: 32px;
}

.section-tag {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-cyan);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 680px;
}

/* Bento 网格布局容器 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* Bento 卡片通用基类 */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
}

.bento-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5), 0 0 16px rgba(99, 102, 241, 0.15);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

/* Bento 卡片跨度设置 */
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

/* Bento 内部元素 */
.bento-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-sky);
}

.bento-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.bento-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bento-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.bento-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.bento-pill {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.bento-card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.bento-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 特色魔方卡片高亮背景 */
.bento-featured {
  background: linear-gradient(145deg, #131E38 0%, #17153B 60%, #101F3D 100%);
  border-color: rgba(99, 102, 241, 0.35);
}

.bento-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   交互式自检与测算工具箱 (NanoCloud 工具卡片)
   ========================================================================== */
.tool-box {
  background: #0B1120;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 12px;
}

.tool-row {
  margin-bottom: 14px;
}

.tool-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.tool-input, .tool-select {
  width: 100%;
  padding: 10px 12px;
  background: #131D33;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-pure);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}

.tool-input:focus, .tool-select:focus {
  outline: none;
  border-color: var(--color-sky);
}

.tool-result-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.tool-result-title {
  font-weight: 700;
  color: var(--color-emerald);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   数据表格与指标对比
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 580px;
}

.data-table th {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-pure);
  padding: 14px 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

/* ==========================================================================
   GEO 知识内容与长文页面排版
   ========================================================================== */
.article-header {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

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

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

.breadcrumb-sep {
  color: var(--text-dim);
}

.article-title {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-pure);
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item strong {
  color: var(--text-secondary);
}

/* 文章主体布局：双栏或目录侧栏 */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

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

/* 目录 Table of Contents */
.toc-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.toc-list a {
  color: var(--text-secondary);
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.toc-list a:hover, .toc-list a.active {
  color: var(--color-sky);
  background: rgba(99, 102, 241, 0.08);
  border-left-color: var(--color-sky);
}

/* GEO 正文格式规范 */
.article-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #CBD5E1;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-cyan));
  border-radius: 2px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

/* GEO 直接回答提炼块 */
.geo-answer-box {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-left: 4px solid var(--color-sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 18px 0 24px;
  font-size: 0.98rem;
  color: #E0F2FE;
}

.geo-answer-box strong {
  color: var(--text-pure);
}

/* 提示与注意块 */
.notice-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 22px 0;
  display: flex;
  gap: 14px;
}

.notice-box.warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.05);
}

.notice-box.tip {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.05);
}

.notice-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.notice-content {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.notice-content strong {
  color: var(--text-pure);
}

/* 代码与命令行高亮块 */
.code-block {
  background: #0B0F19;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #38BDF8;
  line-height: 1.6;
}

/* 文章底部 FAQ 与相关阅读 */
.article-footer-faq {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.related-articles {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}

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

.related-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.related-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   手风琴 FAQ 组件
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-accent);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--text-pure);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--color-sky);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 22px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding-bottom: 20px;
  transition: max-height 0.4s ease-in-out;
}

/* ==========================================================================
   真实用户反馈 / 提交使用体验专区 (严格遵守不造假原则)
   ========================================================================== */
.feedback-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: #0B1120;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-pure);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-sky);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   页脚 Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #060911;
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 18px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-list a:hover {
  color: var(--color-sky);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.disclaimer-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 8px;
}

/* ==========================================================================
   移动端与多尺寸自适应媒体查询 (320px, 375px, 390px, 768px, 1024px)
   ========================================================================== */

/* 1024px 以下：侧边栏改为浮动或自适应单栏，Bento 栅格调整 */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .toc-sidebar {
    position: static;
    margin-bottom: 30px;
    max-height: none;
  }

  .col-8, .col-7, .col-6, .col-5, .col-4, .col-3 {
    grid-column: span 6;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* 768px 平板/大屏手机 */
@media (max-width: 768px) {
  .nav-desktop, .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .col-12, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3 {
    grid-column: span 1;
  }

  .hero-section {
    padding: 36px 0 24px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* 390px / 375px 主流手机标准 */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bento-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .article-title {
    font-size: 1.55rem;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }
}

/* 320px 超小屏严苛适配 */
@media (max-width: 340px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-logo-img {
    height: 32px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .bento-card-title {
    font-size: 1.1rem;
  }

  .bento-stat-num {
    font-size: 1.8rem;
  }
}
