/**
 * NiceCloud VPN 样式文件
 * 设计风格: Flat Remix (扁平化设计) + 明亮风格
 * 主色: #4e73df (蓝色)
 * 辅色: #1cc88a (绿色)
 * 
 * @author NiceCloud Team
 * @date 2025-11-06
 */

/* ===================================
   设计变量
   =================================== */
:root {
  /* 背景色 - 明亮浅色系 */
  --bg: #f8f9fc;
  --bg-secondary: #ffffff;
  --card: #ffffff;
  --card-hover: #f8f9fc;
  
  /* 文字颜色 - 深色文字提高可读性 */
  --text: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-muted: #858796;
  
  /* 主色 - 蓝色渐变 */
  --primary: #4e73df;
  --primary-dark: #224abe;
  --primary-light: #6c8aeb;
  --primary-gradient: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  
  /* 辅色 - 绿色 */
  --success: #1cc88a;
  --success-dark: #17a673;
  
  /* 其他功能色 */
  --warning: #f6c23e;
  --danger: #e74a3b;
  --info: #36b9cc;
  
  /* 边框和阴影 */
  --border: #e3e6f0;
  --border-dark: #d1d3e2;
  --shadow: rgba(58, 59, 69, 0.15);
  --shadow-hover: rgba(58, 59, 69, 0.25);
  --shadow-primary: rgba(78, 115, 223, 0.25);
  
  /* 链接颜色 */
  --link: #4e73df;
  --link-hover: #224abe;
}

/* ===================================
   全局样式
   =================================== */
* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
}

body {
  margin: 0;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  padding-top: 80px;
}

/* 首页背景 - 清新明亮的渐变 */
.page-home {
  background: linear-gradient(135deg, #f5f7fa 0%, #e3f2fd 100%);
}

/* 支持页面背景 */
.page-support {
  background: linear-gradient(135deg, #e0f7fa 0%, #f1f8f4 100%);
}

/* 新闻页面背景 */
.page-news {
  background: linear-gradient(135deg, #fef9e7 0%, #f4f6f9 100%);
}

/* 全局链接样式 */
a:not(.btn) {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:not(.btn):hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* 屏幕阅读器专用 */
.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  clip: rect(0 0 0 0); 
  overflow: hidden; 
  white-space: nowrap; 
}

/* 无 JavaScript 提示 */
.noscript { 
  background: #fee2e2; 
  color: #7f1d1d; 
  padding: 10px; 
  text-align: center; 
}

/* ===================================
   头部导航样式
   =================================== */
.header { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 1030; 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px); 
  border-bottom: 1px solid var(--border); 
  box-shadow: 0 2px 4px var(--shadow);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 8px var(--shadow-hover);
}

/* Logo 和品牌 */
.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px;
  text-decoration: none;
}

.logo { 
  width: 48px; 
  height: 48px; 
}

.brand-text { 
  font-weight: 700; 
  letter-spacing: 0.2px; 
  color: var(--text); 
}

.brand-short { 
  display: none; 
}

/* Logo 弹出效果 */
.logo-pop { 
  position: relative; 
  display: inline-flex; 
  align-items: center; 
}

.logo-pop .logo-flyout { 
  display: none; 
}

@media (hover: hover) and (pointer: fine) {
  .logo-pop .logo-flyout {
    position: absolute;
    top: calc(100% + 10px);
    left: calc(100% + 12px);
    transform: translate(-8px, -8px) scale(.96);
    transform-origin: top left;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 48px var(--shadow-hover);
    padding: 10px;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .2s ease;
    z-index: 1050;
  }
  
  .logo-pop .logo-flyout::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 14px;
    transform: rotate(45deg);
    width: 12px; 
    height: 12px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }
  
  .logo-pop .logo-flyout-img {
    width: 132px;
    height: 132px;
    display: block;
  }
  
  .logo-pop:hover .logo-flyout {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    pointer-events: auto;
  }
}

/* 移动端 Logo 点击弹出 */
@media (hover: none) and (pointer: coarse) {
  .logo-pop .logo-flyout {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    transform: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 40px var(--shadow-hover);
    padding: 8px;
    z-index: 1050;
  }
  
  .logo-pop.open .logo-flyout { 
    display: block; 
  }
  
  .logo-pop .logo-flyout-img { 
    width: 120px; 
    height: 120px; 
    display: block; 
  }
}

/* 导航菜单布局 */
.tcloud-nav > .container { 
  display: grid; 
  grid-template-columns: max-content 1fr max-content; 
  align-items: center; 
  gap: 12px; 
}

.tcloud-nav .brand { 
  white-space: nowrap; 
}

.tcloud-nav .main-menu { 
  grid-column: 2;
  display: flex; 
  flex-direction: row; 
  align-items: center; 
  gap: 6px;
  overflow-x: auto; 
  overflow-y: hidden; 
  white-space: nowrap; 
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: thin; 
  scrollbar-color: var(--primary) transparent;
  min-width: 0; 
  max-width: 100%;
}

.tcloud-nav .navbar-nav { 
  flex-wrap: nowrap; 
}

.tcloud-nav .main-menu::-webkit-scrollbar { 
  height: 6px; 
}

.tcloud-nav .main-menu::-webkit-scrollbar-thumb { 
  background: var(--primary-gradient); 
  border-radius: 999px; 
}

.tcloud-nav .main-menu::-webkit-scrollbar-thumb:hover { 
  background: var(--primary-dark); 
}

.tcloud-nav .main-menu::-webkit-scrollbar-track { 
  background: transparent; 
}

.tcloud-nav .main-menu .nav-item { 
  flex: 0 0 auto; 
}

.tcloud-nav .nav-actions { 
  grid-column: 3; 
  justify-content: flex-end; 
  white-space: nowrap; 
  gap: 8px;
  display: flex;
  align-items: center;
}

.tcloud-nav .brand, 
.tcloud-nav .nav-actions { 
  flex: 0 0 auto; 
}

.tcloud-nav .navbar-nav .nav-link { 
  padding-right: 12px; 
  padding-left: 12px; 
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.tcloud-nav .navbar-nav .nav-link:hover,
.tcloud-nav .navbar-nav .nav-link:focus {
  color: var(--primary);
}

.tcloud-nav .navbar-nav .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* 导航链接下划线效果 */
.tcloud-nav .navbar-nav .nav-link {
  position: relative;
}

.tcloud-nav .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 10px; 
  right: 10px; 
  bottom: 6px;
  height: 2px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
  border-radius: 2px;
}

.tcloud-nav .navbar-nav .nav-link:hover::after,
.tcloud-nav .navbar-nav .nav-link[aria-expanded="true"]::after,
.tcloud-nav .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* 导航按钮 */
.nav-login { 
  padding: 6px 12px; 
  border-radius: 8px; 
  border: 1px solid var(--border-dark); 
  background: var(--bg-secondary); 
  color: var(--text); 
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-login:hover { 
  border-color: var(--primary); 
  color: var(--primary); 
  box-shadow: 0 2px 8px var(--shadow-primary);
}

.nav-signup { 
  padding: 6px 12px; 
  border-radius: 8px; 
  font-weight: 700;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  transition: all 0.2s ease;
}

.nav-signup:hover {
  box-shadow: 0 4px 12px var(--shadow-primary);
  transform: translateY(-1px);
}

/* 响应式断点 */
@media (max-width: 999.98px) {
  .tcloud-nav > .container { 
    display: flex; 
    align-items: center; 
  }
  
  .tcloud-nav .main-menu { 
    overflow: visible; 
    white-space: normal; 
  }
  
  .navbar .navbar-collapse { 
    display: none !important; 
  }
  
  .tcloud-nav .nav-actions { 
    display: none !important; 
  }
}

@media (min-width: 1000px) {
  .tcloud-nav > .container > .d-flex.align-items-center.ms-auto.gap-2 { 
    display: none !important; 
  }
  
  .navbar .navbar-collapse { 
    display: block !important; 
  }
  
  .navbar .navbar-toggler { 
    display: none !important; 
  }
  
  .tcloud-nav > .container .navbar-collapse { 
    grid-column: 2 / span 2; 
    display: grid !important; 
    grid-template-columns: 1fr max-content; 
    align-items: center; 
    gap: 12px;
    min-width: 0;
  }
  
  .tcloud-nav > .container .navbar-collapse .main-menu { 
    grid-column: 1; 
  }
  
  .tcloud-nav > .container .navbar-collapse .nav-actions { 
    grid-column: 2; 
  }
}

.navbar .ms-auto { 
  margin-left: auto !important; 
}

/* Mega Panel 大型下拉面板 */
.mega-panel {
  position: absolute;
  left: 0; 
  right: 0; 
  top: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px var(--shadow);
  display: none;
  z-index: 1029;
  padding: 18px 0 24px;
}

.mega-panel.open { 
  display: block; 
  animation: megaIn .14s ease-out; 
}

@keyframes megaIn { 
  from { 
    opacity: 0; 
    transform: translateY(-6px); 
  } 
  to { 
    opacity: 1; 
    transform: translateY(0); 
  } 
}

.mega-card { 
  display: block; 
  text-decoration: none; 
  height: 100%; 
  border-radius: 12px; 
  border: 1px solid var(--border); 
  background: var(--bg-secondary); 
  padding: 20px;
  transition: all 0.2s ease; 
}

.mega-card:hover { 
  border-color: var(--primary); 
  box-shadow: 0 4px 12px var(--shadow-primary); 
  transform: translateY(-2px); 
}

.mega-card .mega-title { 
  font-size: 16px; 
  margin: 2px 0 6px; 
  color: var(--text);
  font-weight: 600;
}

.mega-card .mega-desc { 
  color: var(--text-secondary); 
  font-size: 14px; 
  margin: 0; 
}

/* ===================================
   Hero 首屏区域
   =================================== */
.hero { 
  padding: 64px 0 24px; 
}

.hero-inner { 
  padding-top: 8px; 
  padding-bottom: 8px; 
}

.hero-copy h1 { 
  font-size: clamp(28px, 4vw, 44px); 
  margin: 0 0 10px; 
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  line-height: 1.2;
}

.subtitle { 
  color: var(--text-secondary); 
  font-size: 16px; 
  margin: 0 0 18px; 
  line-height: 1.5; 
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.badges { 
  list-style: none; 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  padding: 0; 
  margin: 14px 0 0; 
}

.badges li { 
  border: 1px solid var(--primary-light); 
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.1), rgba(28, 200, 138, 0.1)); 
  padding: 6px 12px; 
  border-radius: 999px; 
  color: var(--text); 
  font-size: 12px; 
  white-space: nowrap;
  font-weight: 500;
}

.hero-art { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.hero-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-art img { 
  width: 100%; 
  height: auto; 
  filter: drop-shadow(0 10px 40px var(--shadow)); 
  border-radius: 14px; 
}

.hero-img {
  transition: transform 0.3s ease;
  max-width: 100%;
}

.hero-img:hover {
  transform: scale(1.02);
}

@media (min-width: 1000px) {
  .hero-art img {
    max-width: 480px;
  }
}

@media (max-width: 999px) {
  .hero-art img {
    max-width: 100%;
    width: 100%;
  }
}

/* ===================================
   按钮样式
   =================================== */
.btn { 
  display: inline-block; 
  padding: 12px 20px; 
  border-radius: 10px; 
  border: 1px solid var(--border); 
  background: var(--bg-secondary); 
  color: var(--text); 
  text-decoration: none; 
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  text-align: center;
}

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 4px 12px var(--shadow-hover); 
  color: var(--text);
  border-color: var(--border-dark);
}

.btn.primary { 
  background: var(--primary-gradient); 
  border: none; 
  box-shadow: 0 4px 12px var(--shadow-primary);
  color: #ffffff;
  font-weight: 600;
}

.btn.primary:hover {
  color: #ffffff;
  box-shadow: 0 6px 16px var(--shadow-primary);
}

.btn.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* ===================================
   Section 区块
   =================================== */
.section { 
  padding: 56px 0; 
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
}

.section.alt { 
  background: rgba(255, 255, 255, 0.5); 
}

/* ===================================
   热门活动轮播
   =================================== */
.hot-section { 
  padding-top: 24px; 
  padding-bottom: 24px; 
}

.hot-viewport { 
  overflow: hidden; 
  border-radius: 14px; 
  position: relative;
}

.hot-track {
  display: flex;
  gap: 12px;
  align-items: stretch;
  transition: transform .45s ease;
  will-change: transform;
  justify-content: flex-start;
}

.hot-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; 
  height: 36px;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s ease;
  z-index: 2;
  box-shadow: 0 2px 8px var(--shadow);
}

.hot-control:hover { 
  color: var(--primary); 
  border-color: var(--primary); 
  background: var(--bg-secondary); 
}

.hot-control[aria-disabled="true"] { 
  opacity: .5; 
  pointer-events: none; 
}

.hot-prev { 
  left: 6px; 
}

.hot-next { 
  right: 6px; 
}

@media (max-width: 520px) {
  .hot-control { 
    width: 32px; 
    height: 32px; 
  }
  
  .hot-prev { 
    left: 2px; 
  }
  
  .hot-next { 
    right: 2px; 
  }
}

.hot-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  text-decoration: none;
  flex: 0 0 calc((100% - 36px) / 4);
}

.hot-item .hot-title { 
  font-size: 16px; 
  font-weight: 700; 
  color: var(--text); 
}

.hot-item .hot-desc { 
  font-size: 14px; 
  color: var(--text-secondary); 
  margin-top: 4px; 
}

@media (max-width: 767.98px) {
  .hot-item { 
    flex: 0 0 calc((100% - 12px) / 2); 
  }
}

/* ===================================
   卡片样式
   =================================== */
.card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 20px; 
  transition: all 0.3s ease; 
}

.card:hover { 
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--shadow-primary);
  transform: translateY(-2px);
}

.card h3 { 
  margin: 4px 0 12px; 
  color: var(--text); 
  font-weight: 600; 
  font-size: 18px; 
}

.card p { 
  margin: 0; 
  color: var(--text-secondary); 
  line-height: 1.6; 
}

.card.price { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}

.card.price ul { 
  margin: 0; 
  padding-left: 18px; 
  color: var(--text-secondary); 
}

.price-tag { 
  font-size: 26px; 
  font-weight: 700; 
  color: var(--text); 
}

.price-tag .currency {
  font-size: 18px;
  font-weight: 500;
}

.price-tag .amount {
  color: var(--primary);
}

.highlight { 
  position: relative; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 1px var(--primary-light) inset; 
}

.ribbon { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  background: var(--primary-gradient); 
  color: #ffffff; 
  padding: 4px 8px; 
  border-radius: 6px; 
  font-size: 12px; 
  font-weight: 600;
}

/* ===================================
   定价标签页
   =================================== */
.pricing-tabs { 
  display: flex; 
  justify-content: center; 
  gap: 8px; 
  background: rgba(78, 115, 223, 0.05); 
  border: 1px solid var(--border); 
  padding: 6px; 
  border-radius: 10px; 
  margin: 0 auto 16px; 
  max-width: 100%; 
  width: 100%; 
}

.pricing-tabs .tab-btn { 
  appearance: none; 
  -webkit-appearance: none; 
  background: transparent; 
  border: 0; 
  color: var(--text-secondary); 
  padding: 8px 14px; 
  border-radius: 8px; 
  font-weight: 600; 
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-tabs .tab-btn.active { 
  background: var(--bg-secondary); 
  color: var(--primary); 
  box-shadow: 0 2px 4px var(--shadow);
}

.pricing-group { 
  display: none; 
}

.pricing-group.active { 
  display: block; 
}

@media (max-width: 520px) {
  .pricing-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 6px;
  }
  
  .pricing-tabs .tab-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  
  .pricing-tabs::-webkit-scrollbar { 
    height: 6px; 
  }
  
  .pricing-tabs::-webkit-scrollbar-thumb { 
    background: var(--border-dark); 
    border-radius: 999px; 
  }
  
  .pricing-tabs { 
    scrollbar-width: thin; 
  }
}

@media (min-width: 521px) and (max-width: 991.98px) {
  .pricing-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===================================
   常见问题
   =================================== */
details {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

details summary {
  padding: 1rem;
  background: rgba(78, 115, 223, 0.03);
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s ease;
}

details summary:hover {
  background: rgba(78, 115, 223, 0.08);
}

details p {
  padding: 1rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================
   页脚样式
   =================================== */
.footer { 
  border-top: 1px solid var(--border); 
  margin-top: 24px; 
  background: var(--bg-secondary);
}

.footer-top { 
  display: grid; 
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; 
  gap: 24px; 
  padding: 36px 0; 
}

.footer-bottom { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px; 
  padding: 14px 0; 
  color: var(--text-muted); 
  border-top: 1px solid var(--border); 
}

.footer a { 
  color: var(--text-muted); 
  text-decoration: none; 
  transition: color 0.2s ease; 
}

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

.foot-brand-col .brand { 
  gap: 10px; 
}

.foot-tagline { 
  margin-top: 8px; 
  color: var(--text-secondary); 
  font-size: 14px; 
}

.foot-title { 
  margin: 0 0 10px; 
  color: var(--text); 
  font-size: 16px; 
  font-weight: 700; 
  letter-spacing: .3px; 
  text-transform: uppercase; 
}

.foot-title-btn {
  appearance: none; 
  -webkit-appearance: none;
  background: transparent; 
  border: 0; 
  color: var(--text);
  padding: 0; 
  margin: 0 0 10px; 
  border-radius: 0;
  font-size: 16px; 
  font-weight: 700; 
  letter-spacing: .3px; 
  text-transform: uppercase;
  display: block; 
  text-align: left; 
  cursor: default;
}

.foot-list { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: grid; 
  gap: 8px; 
}

.foot-list a { 
  padding: 4px 0; 
  border-radius: 6px; 
  font-size: 14px; 
  color: var(--text-secondary); 
}

.foot-list a:hover { 
  color: var(--primary); 
}

.foot-text { 
  color: var(--text-secondary); 
  margin: 0 0 10px; 
  font-size: 14px; 
}

.copy { 
  color: var(--text-muted); 
  text-align: center; 
  width: 100%; 
  font-size: 14px; 
}

/* 联系方式列表 */
.contact-list { 
  gap: 10px; 
}

.contact-list a { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  color: var(--text-secondary); 
}

.contact-list a:hover { 
  color: var(--primary); 
}

.contact-icon { 
  width: 22px; 
  height: 22px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--text-secondary); 
}

.contact-label { 
  min-width: 110px; 
  color: var(--text); 
  font-weight: 600; 
}

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 900px) {
  .footer-top { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .foot-brand-col .brand,
  .foot-brand-col .foot-tagline,
  .foot-panel .foot-text {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  .brand-full { 
    display: none; 
  }
  
  .brand-short { 
    display: inline; 
  }
  
  .footer-top { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .foot-brand-col { 
    grid-column: 1 / -1; 
  }
  
  .foot-col { 
    padding-left: 10px; 
    padding-right: 10px; 
  }
  
  .foot-panel .foot-text { 
    margin-left: 0; 
    margin-right: 0; 
  }
}

@media (max-width: 520px) {
  .footer-top { 
    grid-template-columns: 1fr; 
  }
  
  .footer-bottom { 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
  }
  
  .foot-brand-col { 
    grid-column: 1 / -1; 
  }
  
  .foot-col { 
    padding-left: 10px; 
    padding-right: 10px; 
  }
  
  .foot-panel { 
    margin: 0; 
  }
  
  .foot-panel .foot-text { 
    margin-left: 0; 
    margin-right: 0; 
  }
  
  .foot-brand-col .brand,
  .foot-brand-col .foot-tagline,
  .foot-panel .foot-text { 
    margin-left: 10px; 
    margin-right: 10px; 
  }
  
  .footer .foot-panel .foot-list { 
    display: grid; 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    column-gap: 16px; 
    row-gap: 8px; 
  }
  
  .footer .foot-panel .foot-list a { 
    min-height: 40px; 
    display: flex; 
    align-items: center; 
  }
  
  .logo { 
    width: 40px; 
    height: 40px; 
  }
  
  body { 
    padding-top: 70px; 
  }
  
  .hero { 
    padding-top: 48px; 
  }
  
  .hero-copy h1 { 
    font-size: 24px; 
  }
  
  .subtitle { 
    font-size: 14px; 
  }
  
  .hero-art img { 
    max-width: 100%; 
    width: 100%; 
  }
}

@media (max-width: 900px) {
  .foot-title { 
    display: none; 
  }
  
  .footer .foot-title-btn {
    appearance: none; 
    -webkit-appearance: none;
    width: 100%; 
    text-align: left;
    background: rgba(78, 115, 223, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px;
    border-radius: 10px;
    font-size: 14px; 
    font-weight: 700; 
    letter-spacing: .3px; 
    text-transform: uppercase;
    display: inline-flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 8px; 
    cursor: pointer;
  }
  
  .footer .foot-title-btn::after { 
    content: "▾"; 
    opacity: .8; 
  }
  
  .footer .foot-title-btn[aria-expanded="true"]::after { 
    content: "▴"; 
  }
  
  .footer .foot-panel { 
    display: none; 
    margin: 0; 
    padding: 8px 0 0; 
  }
  
  .foot-panel.open { 
    display: block; 
  }
  
  .footer .foot-panel .foot-list { 
    margin: 0; 
    padding: 0; 
    list-style: none; 
  }
  
  .footer .foot-panel .foot-list a { 
    display: block; 
    padding: 10px 13px; 
    border-radius: 6px; 
  }
}

/* ===================================
   移动端 Offcanvas 菜单
   =================================== */
@media (max-width: 999.98px) {
  .offcanvas.mobile-offcanvas { 
    background: var(--bg-secondary); 
    color: var(--text); 
    border-bottom: 1px solid var(--border); 
    z-index: 2000;
    height: 100vh; 
    max-height: none;
  }
  
  .offcanvas.mobile-offcanvas .offcanvas-header { 
    border-bottom: 1px solid var(--border); 
  }
  
  .offcanvas.mobile-offcanvas .offcanvas-title { 
    color: var(--text); 
  }
  
  .offcanvas.mobile-offcanvas .m-header { 
    position: sticky; 
    top: 0; 
    background: var(--bg-secondary); 
    z-index: 2; 
    padding-top: max(12px, env(safe-area-inset-top)); 
  }
  
  .offcanvas.mobile-offcanvas .m-brand .logo { 
    width: 36px; 
    height: 36px; 
  }
  
  .offcanvas.mobile-offcanvas .offcanvas-body { 
    padding-top: 10px; 
    padding-bottom: 72px; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
  }
  
  .offcanvas-bottombar { 
    position: sticky; 
    bottom: 0; 
    display: flex; 
    gap: 10px; 
    justify-content: space-between; 
    padding: 10px; 
    padding-bottom: max(12px, env(safe-area-inset-bottom)); 
    background: var(--bg-secondary); 
    border-top: 1px solid var(--border); 
  }
  
  .offcanvas-bottombar .nav-login { 
    flex: 1; 
    text-align: center; 
  }
  
  .offcanvas-bottombar .nav-signup { 
    flex: 1; 
    text-align: center; 
  }
  
  .m-nav { 
    display: grid; 
    gap: 10px; 
  }
  
  .m-l1 { 
    border: 1px solid var(--border); 
    border-radius: 10px; 
    background: rgba(78, 115, 223, 0.03); 
  }
  
  .m-l1-btn { 
    appearance: none; 
    -webkit-appearance: none; 
    width: 100%; 
    text-align: left; 
    background: transparent; 
    border: 0; 
    color: var(--text); 
    padding: 12px 14px; 
    font-weight: 700; 
    font-size: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    text-decoration: none; 
  }
  
  button.m-l1-btn::after { 
    content: '▾'; 
    opacity: .8; 
  }
  
  button.m-l1-btn[aria-expanded="true"]::after { 
    content: '▴'; 
  }
  
  .m-l2 { 
    padding: 6px 8px 10px; 
  }
  
  .m-l2-item { 
    border-radius: 8px; 
  }
  
  .m-l2-btn { 
    appearance: none; 
    -webkit-appearance: none; 
    width: 100%; 
    text-align: left; 
    background: rgba(78, 115, 223, 0.05); 
    border: 1px solid var(--border); 
    color: var(--text-secondary); 
    padding: 10px 12px; 
    border-radius: 8px; 
    font-weight: 600; 
    margin: 6px 0; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
  }
  
  .m-l2-btn::after { 
    content: '▸'; 
    opacity: .7; 
  }
  
  .m-l2-btn[aria-expanded="true"]::after { 
    content: '▾'; 
  }
  
  .m-l3 { 
    list-style: none; 
    margin: 6px 4px 10px; 
    padding: 0; 
    display: grid; 
    gap: 6px; 
  }
  
  .m-l3 a { 
    display: block; 
    padding: 10px 12px; 
    border-radius: 8px; 
    color: var(--text-secondary); 
    text-decoration: none; 
    border: 1px solid var(--border); 
    background: rgba(78, 115, 223, 0.02); 
  }
  
  .m-l3 a:hover { 
    color: var(--primary); 
    border-color: var(--primary); 
  }
  
  .m-l3-flat { 
    margin-top: 8px; 
  }
  
  body.nav-open { 
    overflow: hidden; 
  }
}
