/* ==========================================================================
   言行GEO 全局样式系统
   Version: 1.0.0
   Author: 言行计算机软件有限公司
   Description: AI驱动的全域营销智能平台通用样式系统
   Copyright: © 2025 言行计算机软件有限公司 版权所有
   ========================================================================== */

/* ==========================================================================
   1. CSS变量定义 (主题配置)
   ========================================================================== */
:root {
  /* 主色调 */
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #93c5fd;
  --secondary-color: #06b6d4;
  --accent-color: #8b5cf6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  
  /* 背景色 */
  --dark-bg: #0f172a;
  --darker-bg: #0a0f1f;
  --light-bg: #f8fafc;
  --card-bg: rgba(30, 41, 59, 0.5);
  --overlay-bg: rgba(15, 23, 42, 0.8);
  
  /* 文本色 */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --text-light: #f8fafc;
  
  /* 边框和阴影 */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-light: #e2e8f0;
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-primary-horizontal: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  
  /* 间距 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* 字体大小 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* 字体粗细 */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* 过渡动画 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index层级 */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* 容器宽度 */
  --container-xs: 100%;
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-xxl: 1320px;
}

/* 浅色主题变量 */
[data-theme="light"] {
  --dark-bg: #f8fafc;
  --darker-bg: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.8);
  --overlay-bg: rgba(255, 255, 255, 0.9);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   2. 基础重置与全局样式
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* 暗色背景相关元素 */
body.dark-mode {
  background-color: var(--darker-bg);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* 选择文本样式 */
::selection {
  background-color: var(--primary-color);
  color: white;
}

/* 图片 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 列表 */
ul, ol {
  list-style-position: inside;
}

/* 链接 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-color);
}

/* ==========================================================================
   3. 排版系统
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-sm);
}

h5 {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-sm);
}

h6 {
  font-size: var(--text-base);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
}

.text-primary {
  color: var(--text-primary);
}

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

.text-muted {
  color: var(--text-muted);
}

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

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

.lead {
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  line-height: 1.7;
}

/* ==========================================================================
   4. 布局系统
   ========================================================================== */
.container {
  width: 100%;
  padding-right: var(--spacing-md);
  padding-left: var(--spacing-md);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: var(--container-sm);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}

@media (min-width: 992px) {
  .container {
    max-width: var(--container-lg);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--container-xl);
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: var(--container-xxl);
  }
}

.container-fluid {
  width: 100%;
  padding-right: var(--spacing-md);
  padding-left: var(--spacing-md);
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(-1 * var(--spacing-md));
  margin-left: calc(-1 * var(--spacing-md));
}

.col {
  flex: 1 0 0%;
  padding-right: var(--spacing-md);
  padding-left: var(--spacing-md);
}

.d-flex {
  display: flex;
}

.d-inline-flex {
  display: inline-flex;
}

.d-none {
  display: none;
}

.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.justify-content-start {
  justify-content: flex-start;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-end {
  justify-content: flex-end;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-around {
  justify-content: space-around;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-center {
  align-items: center;
}

.align-items-end {
  align-items: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

/* 间距工具类 */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mr-0 { margin-right: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }

.m-1 { margin: var(--spacing-xs); }
.mt-1 { margin-top: var(--spacing-xs); }
.mr-1 { margin-right: var(--spacing-xs); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.ml-1 { margin-left: var(--spacing-xs); }

.m-2 { margin: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-sm); }
.mr-2 { margin-right: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.ml-2 { margin-left: var(--spacing-sm); }

.m-3 { margin: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-md); }
.mr-3 { margin-right: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-md); }
.ml-3 { margin-left: var(--spacing-md); }

.m-4 { margin: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-lg); }
.mr-4 { margin-right: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.ml-4 { margin-left: var(--spacing-lg); }

.m-5 { margin: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-xl); }
.mr-5 { margin-right: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-xl); }
.ml-5 { margin-left: var(--spacing-xl); }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pr-0 { padding-right: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }

.p-1 { padding: var(--spacing-xs); }
.pt-1 { padding-top: var(--spacing-xs); }
.pr-1 { padding-right: var(--spacing-xs); }
.pb-1 { padding-bottom: var(--spacing-xs); }
.pl-1 { padding-left: var(--spacing-xs); }

.p-2 { padding: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-sm); }
.pr-2 { padding-right: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pl-2 { padding-left: var(--spacing-sm); }

.p-3 { padding: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-md); }
.pr-3 { padding-right: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pl-3 { padding-left: var(--spacing-md); }

.p-4 { padding: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-lg); }
.pr-4 { padding-right: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pl-4 { padding-left: var(--spacing-lg); }

.p-5 { padding: var(--spacing-xl); }
.pt-5 { padding-top: var(--spacing-xl); }
.pr-5 { padding-right: var(--spacing-xl); }
.pb-5 { padding-bottom: var(--spacing-xl); }
.pl-5 { padding-left: var(--spacing-xl); }

/* ==========================================================================
   5. 背景与装饰元素
   ========================================================================== */
.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  background: var(--gradient-dark);
}

.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -9;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 70%, transparent 100%);
}

.floating-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -8;
  opacity: 0.15;
  pointer-events: none;
}

.floating-bg-1 {
  top: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  animation: float 20s infinite ease-in-out;
}

.floating-bg-2 {
  bottom: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: var(--secondary-color);
  animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* ==========================================================================
   6. 按钮组件
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  text-align: center;
  gap: 0.5rem;
  min-height: 52px;
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* 按钮变体 */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-warning {
  background: var(--warning-color);
  color: white;
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-info {
  background: var(--info-color);
  color: white;
}

/* 按钮大小 */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  min-height: 40px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
  min-height: 60px;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: var(--text-xl);
  min-height: 70px;
}

/* 按钮宽度 */
.btn-block {
  width: 100%;
}

/* 按钮组 */
.btn-group {
  display: inline-flex;
  gap: 0.5rem;
}

/* ==========================================================================
   7. 表单组件
   ========================================================================== */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all var(--transition-normal);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 表单控件带图标 */
.form-control-icon {
  position: relative;
}

.form-control-icon .form-control {
  padding-left: 3rem;
}

.form-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--text-lg);
  pointer-events: none;
}

/* 复选框和单选框 */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
}

/* 表单验证 */
.form-control.is-valid {
  border-color: var(--success-color);
}

.form-control.is-invalid {
  border-color: var(--danger-color);
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.form-text.text-danger {
  color: var(--danger-color);
}

.form-text.text-success {
  color: var(--success-color);
}

/* ==========================================================================
   8. 卡片组件
   ========================================================================== */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card.glass {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(15px);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-xl);
}

.card-body {
  padding: var(--spacing-xl);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-md);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.card-footer {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   9. 导航组件
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(15, 23, 42, 0.98);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-xl);
}

.brand-text {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  background: var(--gradient-primary-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-medium);
  font-size: var(--text-base);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

/* 移动端菜单按钮 */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-2xl);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   10. 移动端菜单
   ========================================================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  z-index: var(--z-modal);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 5rem 2rem 2rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-xl);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-color);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-2xl);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   11. 页脚组件
   ========================================================================== */
.footer {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
}

.footer-brand-text {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  background: var(--gradient-primary-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-about {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.footer-social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-heading {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-contact-item i {
  margin-top: 0.25rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   12. 徽章和标签
   ========================================================================== */
.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--border-radius-sm);
}

.badge-primary {
  background: var(--primary-color);
  color: white;
}

.badge-secondary {
  background: var(--secondary-color);
  color: white;
}

.badge-success {
  background: var(--success-color);
  color: white;
}

.badge-warning {
  background: var(--warning-color);
  color: white;
}

.badge-danger {
  background: var(--danger-color);
  color: white;
}

.badge-info {
  background: var(--info-color);
  color: white;
}

.badge-gradient {
  background: var(--gradient-primary);
  color: white;
}

.badge-outline {
  background: transparent;
  border: 1px solid currentColor;
}

.badge-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.badge-outline-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* ==========================================================================
   13. 警报组件
   ========================================================================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: var(--font-semibold);
  margin-bottom: 0.25rem;
}

.alert-message {
  font-size: var(--text-sm);
}

.alert-primary {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-color: rgba(59, 130, 246, 0.3);
}

.alert-secondary {
  background: rgba(6, 182, 212, 0.1);
  color: var(--secondary-color);
  border-color: rgba(6, 182, 212, 0.3);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border-color: rgba(16, 185, 129, 0.3);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
  border-color: rgba(245, 158, 11, 0.3);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border-color: rgba(239, 68, 68, 0.3);
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info-color);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   14. 工具提示和弹出框
   ========================================================================== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: max-content;
  max-width: 200px;
  background: rgba(15, 23, 42, 0.95);
  color: white;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  position: absolute;
  z-index: var(--z-tooltip);
  font-size: var(--text-sm);
  line-height: 1.4;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-top .tooltip-text {
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
}

.tooltip-bottom .tooltip-text {
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
}

.tooltip-left .tooltip-text {
  top: 50%;
  right: 125%;
  transform: translateY(-50%);
}

.tooltip-right .tooltip-text {
  top: 50%;
  left: 125%;
  transform: translateY(-50%);
}

/* ==========================================================================
   15. 动画类
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.8s ease forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.8s ease forwards; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease forwards; }
.animate-slide-in-up { animation: slideInUp 0.5s ease forwards; }
.animate-slide-in-down { animation: slideInDown 0.5s ease forwards; }
.animate-slide-in-left { animation: slideInLeft 0.5s ease forwards; }
.animate-slide-in-right { animation: slideInRight 0.5s ease forwards; }
.animate-pulse { animation: pulse 2s ease infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s ease infinite; }

/* 延迟动画 */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ==========================================================================
   16. 实用工具类
   ========================================================================== */
/* 显示/隐藏 */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* 溢出 */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* 定位 */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* 浮动 */
.float-left { float: left; }
.float-right { float: right; }
.float-none { float: none; }

/* 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 对象适配 */
.object-fit-cover { object-fit: cover; }
.object-fit-contain { object-fit: contain; }
.object-fit-fill { object-fit: fill; }

/* 指针事件 */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* 用户选择 */
.user-select-none { user-select: none; }
.user-select-auto { user-select: auto; }

/* 光标 */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* 不透明度 */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* 背景 */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-info { background-color: var(--info-color); }
.bg-dark { background-color: var(--dark-bg); }
.bg-light { background-color: var(--light-bg); }
.bg-transparent { background-color: transparent; }

/* 边框 */
.border { border: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-right { border-right: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-left { border-left: 1px solid var(--border-color); }

.border-primary { border-color: var(--primary-color); }
.border-secondary { border-color: var(--secondary-color); }
.border-success { border-color: var(--success-color); }
.border-warning { border-color: var(--warning-color); }
.border-danger { border-color: var(--danger-color); }
.border-info { border-color: var(--info-color); }

/* 圆角 */
.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }
.rounded-circle { border-radius: 50%; }
.rounded-pill { border-radius: 50rem; }

/* 阴影 */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-none { box-shadow: none; }

/* 渐变 */
.gradient-primary { background: var(--gradient-primary); }
.gradient-dark { background: var(--gradient-dark); }
.gradient-light { background: var(--gradient-light); }

/* ==========================================================================
   17. 网格系统
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-1 { grid-template-columns: repeat(1, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ==========================================================================
   18. 特殊组件
   ========================================================================== */
/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: var(--z-fixed);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* 加载器 */
.loader {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease infinite;
}

.loader-sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

.loader-lg {
  width: 2rem;
  height: 2rem;
  border-width: 4px;
}

/* 分割线 */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider-text {
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* 步骤指示器 */
.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
}

.steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  transform: translateY(-50%);
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-bg);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.step.active .step-number {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.step.completed .step-number {
  background: var(--success-color);
  border-color: transparent;
  color: white;
}

.step-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.step.active .step-label {
  color: var(--primary-color);
  font-weight: var(--font-semibold);
}

/* ==========================================================================
   19. 响应式设计
   ========================================================================== */
/* 移动端优先设计 */
@media (max-width: 767.98px) {
  .navbar-toggler {
    display: flex;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .d-none-mobile {
    display: none;
  }
  
  .d-flex-mobile {
    display: flex;
  }
}

/* 平板设备 */
@media (min-width: 768px) and (max-width: 991.98px) {
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .d-none-tablet {
    display: none;
  }
  
  .d-flex-tablet {
    display: flex;
  }
}

/* 桌面设备 */
@media (min-width: 992px) {
  .d-none-desktop {
    display: none;
  }
  
  .d-flex-desktop {
    display: flex;
  }
}

/* 超大屏幕 */
@media (min-width: 1400px) {
  .container {
    max-width: var(--container-xxl);
  }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
  .mobile-menu {
    padding-top: 4rem;
  }
  
  .hero {
    padding-top: 6rem;
  }
}

/* 打印样式 */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}

/* ==========================================================================
   20. 主题切换支持
   ========================================================================== */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 5px;
  transition: all var(--transition-normal);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  transition: transform var(--transition-normal);
}

body.light-mode .theme-toggle::before {
  transform: translateX(30px);
}

.theme-toggle i {
  font-size: 14px;
  z-index: 1;
}

.theme-toggle .fa-sun {
  color: #f59e0b;
  margin-right: auto;
}

.theme-toggle .fa-moon {
  color: #94a3b8;
  margin-left: auto;
}

/* ==========================================================================
   21. 自定义滚动区域
   ========================================================================== */
.scroll-area {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(30, 41, 59, 0.3);
}

.scroll-area::-webkit-scrollbar {
  width: 6px;
}

.scroll-area::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.3);
  border-radius: 3px;
}

.scroll-area::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

/* ==========================================================================
   22. 图标动画
   ========================================================================== */
.icon-spin {
  animation: spin 2s linear infinite;
}

.icon-pulse {
  animation: pulse 2s ease infinite;
}

.icon-bounce {
  animation: bounce 1s ease infinite;
}

/* ==========================================================================
   23. 骨架屏加载效果
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.05) 25%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
}

.skeleton-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.skeleton-rect {
  height: 10rem;
  border-radius: var(--border-radius);
}

/* ==========================================================================
   24. 布局辅助类
   ========================================================================== */
.full-height {
  min-height: 100vh;
}

.full-width {
  width: 100%;
}

.vh-100 {
  height: 100vh;
}

.vw-100 {
  width: 100vw;
}

.min-vh-100 {
  min-height: 100vh;
}

.min-vw-100 {
  min-width: 100vw;
}

/* 视差效果 */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 毛玻璃效果 */
.blur {
  backdrop-filter: blur(10px);
}

.blur-sm {
  backdrop-filter: blur(5px);
}

.blur-lg {
  backdrop-filter: blur(20px);
}

/* 渐变遮罩 */
.mask-gradient {
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* ==========================================================================
   25. 自定义组件示例
   ========================================================================== */
/* 统计卡片 */
.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--font-bold);
  background: var(--gradient-primary-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 功能卡片 */
.feature-card {
  padding: 2rem;
  height: 100%;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.feature-icon.primary {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.feature-icon.secondary {
  background: rgba(6, 182, 212, 0.1);
  color: var(--secondary-color);
}

.feature-icon.accent {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-color);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* 价格卡片 */
.pricing-card {
  padding: 2.5rem 2rem;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: var(--font-extrabold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-period {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.pricing-features li i {
  color: var(--success-color);
}

/* 客户评价卡片 */
.testimonial-card {
  padding: 2rem;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.testimonial-author-info p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ==========================================================================
   26. 媒体查询断点 (基于Tailwind CSS)
   ========================================================================== */
/*
  sm: 640px
  md: 768px
  lg: 1024px
  xl: 1280px
  2xl: 1536px
*/

@media (min-width: 640px) {
  .sm\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:d-flex { display: flex; }
  .sm\:d-none { display: none; }
}

@media (min-width: 768px) {
  .md\:grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:d-flex { display: flex; }
  .md\:d-none { display: none; }
}

@media (min-width: 1024px) {
  .lg\:grid-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:d-flex { display: flex; }
  .lg\:d-none { display: none; }
}

@media (min-width: 1280px) {
  .xl\:grid-5 { grid-template-columns: repeat(5, 1fr); }
  .xl\:d-flex { display: flex; }
  .xl\:d-none { display: none; }
}

@media (min-width: 1536px) {
  .\32xl\:grid-6 { grid-template-columns: repeat(6, 1fr); }
  .\32xl\:d-flex { display: flex; }
  .\32xl\:d-none { display: none; }
}

/* ==========================================================================
   27. 打印优化
   ========================================================================== */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .card {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* ==========================================================================
   28. 性能优化类
   ========================================================================== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   29. 自定义属性覆盖示例
   ========================================================================== */
/*
  使用示例：
  <div style="--primary-color: #8b5cf6; --secondary-color: #ec4899;">
    这个div及其子元素将使用自定义颜色
  </div>
*/

/* ==========================================================================
   30. 浏览器兼容性修复
   ========================================================================== */
/* Firefox滚动条 */
@supports (scrollbar-width: thin) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(30, 41, 59, 0.3);
  }
}

/* Safari特定修复 */
@supports (-webkit-touch-callout: none) {
  .full-height {
    height: -webkit-fill-available;
  }
}

/* Edge特定修复 */
@supports (-ms-ime-align: auto) {
  .gradient-primary {
    background: var(--primary-color); /* 回退到纯色 */
  }
}

/* ==========================================================================
   31. 隐藏面包屑导航
   ========================================================================== */
/* 隐藏面包屑导航栏 */
.breadcrumb,
ol.breadcrumb,
.breadcrumb.float-right,
ol.breadcrumb.float-right,
ol.breadcrumb.float-right.text-capitalize {
  display: none !important;
}

/* 调整内容头部区域，让标签往上移动 */
.content-header {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: auto !important;
}

.content-header .row {
  margin-bottom: 0 !important;
}

/* 页面标题区域紧凑化 */
.content-header h1,
.content-header .content-header-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 让标签页容器贴近顶部 */
.nav-tabs-custom,
.tabs-container,
.tab-content {
  margin-top: 0 !important;
}

/* 页面主体内容区域减少上边距 */
.content-wrapper {
  padding-top: 10px !important;
}

/* 调整app-content区域 */
.app-content {
  padding-top: 10px !important;
}

/* 调整container-fluid上边距 */
.app-content > .container-fluid {
  padding-top: 0 !important;
}