/*
 * ============================================================
 * ⚠️  AI警告 - 修改前必读文档
 * ============================================================
 * 
 * 本CSS是统一架构的核心样式。
 * 修改前必须阅读: docs/ARCHITECTURE.md
 * 
 * 禁止:
 *   - 私自修改核心变量
 *   - 破坏玻璃拟态风格
 *   - 影响移动端适配
 * 
 * ============================================================
 */

/* ============================================
   锦玥图像引擎 - 真正的玻璃拟态风格 v2
   参考：Glassmorphism Design System
   ============================================ */

/* CSS变量 */
:root {
  /* 玻璃效果参数 */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --glass-blur: blur(20px);
  --glass-blur-strong: blur(28px);
  
  /* 颜色 */
  --color-primary: #7EA6FF;
  --color-secondary: #A78BFA;
  --color-accent: #FFB6D9;
  --color-gold: #F7B731;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-faint: rgba(255, 255, 255, 0.5);
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #7EA6FF 0%, #A78BFA 100%);
  --gradient-hero: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  --gradient-text: linear-gradient(135deg, #FFB6D9 0%, #A78BFA 50%, #7EA6FF 100%);
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--color-text);
  background: #0a0a1a;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================================
   背景层 - 风景照片 + 渐变叠加
   ============================================ */

.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: url('/images/hero-bg.jpg') center/cover no-repeat fixed;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    linear-gradient(180deg, rgba(10, 10, 26, 0.3) 0%, rgba(10, 10, 26, 0.5) 50%, rgba(10, 10, 26, 0.7) 100%),
    radial-gradient(ellipse at 20% 20%, rgba(126, 166, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(167, 139, 250, 0.15) 0%, transparent 50%);
}

/* ============================================
   玻璃拟态核心样式
   ============================================ */

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.glass-card:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(31, 38, 135, 0.45), var(--glass-highlight);
  border-color: rgba(255, 255, 255, 0.35);
}

.glass-light {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   顶部导航栏
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(10, 10, 26, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 18px;
}

.logo-icon img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ============================================
   按钮样式
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(126, 166, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(126, 166, 255, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* ============================================
   主内容区
   ============================================ */

.main {
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   Hero区域
   ============================================ */

.hero {
  padding: var(--space-xl) 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.hero-stat {
  padding: var(--space-md);
  text-align: center;
}

.hero-stat-value {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--color-text-faint);
}

/* ============================================
   区块通用样式
   ============================================ */

.section {
  padding: var(--space-xl) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ============================================
   工具卡片网格
   ============================================ */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.tool-card {
  padding: var(--space-md);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.tool-icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-strong);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.tool-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-badge.new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.tool-badge.pro {
  background: linear-gradient(135deg, #F7B731, #E5A306);
  color: #1a1a2e;
}

.tool-badge.hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.tool-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-sm);
}

.tool-arrow {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s;
}

.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   特性区域
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-card {
  padding: var(--space-lg);
  text-align: center;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ============================================
   页脚
   ============================================ */

.footer {
  margin-top: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-lg);
  background: rgba(10, 10, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-top: var(--space-sm);
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: var(--color-text-faint);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ============================================
   响应式适配
   ============================================ */

@media (max-width: 1200px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    padding: var(--space-sm);
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .header-actions .btn-ghost {
    display: none;
  }
}

/* ============================================
   动画效果
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* 滚动显示动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   强制覆盖样式 - 确保所有页面显示玻璃拟态效果
   ============================================ */

/* 强制body背景透明，显示风景背景图 */
body {
  background: transparent !important;
  background-color: transparent !important;
}

/* 强制所有主要容器背景透明 */
.container,
.main,
.content,
.wrapper,
.page {
  background: transparent !important;
  background-color: transparent !important;
}

/* 工具页面特殊处理：强制编辑器容器使用玻璃拟态 */
.editor-container,
.tool-container,
.workspace,
.canvas-container {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px !important;
}

/* 确保bg-layer在最底层 */
.bg-layer {
  z-index: -2 !important;
}

.bg-overlay {
  z-index: -1 !important;
}

/* 确保内容在背景之上 */
.header,
.main,
.footer,
.container {
  position: relative !important;
  z-index: 1 !important;
}


/* ============================================
   语言切换按钮样式
   ============================================ */

.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.lang-icon {
  font-size: 16px;
}

.lang-current {
  min-width: 40px;
}

.lang-arrow {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.3s;
}

.lang-switcher:hover .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(30, 30, 50, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1000;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
  background: rgba(102, 126, 234, 0.3);
  border: 1px solid rgba(102, 126, 234, 0.5);
}

.lang-flag {
  font-size: 18px;
}

/* ============================================
   移动端菜单样式
   ============================================ */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 20, 40, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  z-index: 999;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-menu.show {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.mobile-nav-link.mobile-register {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-align: center;
  font-weight: 600;
  margin-top: 8px;
}

.mobile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

/* ============================================
   移动端响应式优化
   ============================================ */

@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-actions .btn-ghost {
    display: none;
  }
}

@media (max-width: 768px) {
  .lang-switcher {
    display: none;
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .btn-primary {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-ghost {
    display: none !important;
  }
  
  .logo-icon img {
    height: 28px;
  }
}



/* ===== 移动端Logo布局修复 ===== */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px !important;
        overflow: hidden;
    }
    .hero img, .hero-logo, .hero-image {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        display: block !important;
    }
    .hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    .hero-subtitle {
        font-size: 14px !important;
        padding: 0 10px !important;
    }
    .hero-actions {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 20px !important;
    }
    .hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* 同步浮标隐藏（用户反馈影响体验） */
.sync-status {
    display: none !important;
}


/* ===== 强制移动端全局布局修复（最高优先级） ===== */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 防止背景图片撑开页面 */
    body {
        background-size: cover !important;
        background-position: center center !important;
        background-attachment: scroll !important;
    }
    
    /* Hero区域强制适配 */
    .hero {
        width: 100% !important;
        max-width: 100% !important;
        padding: 30px 16px !important;
        margin: 0 !important;
        overflow: hidden !important;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    .hero-subtitle {
        font-size: 13px !important;
        line-height: 1.6 !important;
        padding: 0 10px !important;
        margin-bottom: 20px !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 16px !important;
        margin-bottom: 24px !important;
    }
    
    .hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 16px !important;
    }
    
    .hero-stat {
        padding: 12px 8px !important;
    }
    
    .hero-stat-value {
        font-size: 20px !important;
    }
    
    .hero-stat-label {
        font-size: 11px !important;
    }
    
    /* 防止任何元素超出视口 */
    img, video, iframe, canvas, svg {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* 隐藏可能撑开页面的装饰元素 */
    .hero-decoration, .hero-bg-decoration, .floating-element {
        display: none !important;
    }
}

/* 超小屏幕适配 */
@media (max-width: 375px) {
    .hero-title {
        font-size: 20px !important;
    }
    
    .hero-subtitle {
        font-size: 12px !important;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   修复：Logo图标尺寸控制
   ============================================ */
.nav-logo .logo-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px;
    object-fit: cover;
}

.site-header .logo-icon {
    width: 40px !important;
    height: 40px !important;
}

/* 背景图 */
body {
    background-image: url('/images/hero-bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

/* 背景层 */
.bg-layer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('/images/hero-bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    z-index: -1 !important;
}

.bg-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    z-index: -1 !important;
}

/* 导航栏LOGO大小 */
.site-header .logo-icon,
.navbar .logo-icon,
header .logo-icon {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin-right: 10px !important;
}

/* 导航栏布局 */
.site-header .nav-container {
    display: flex !important;
    align-items: center !important;
}
