/* 
  =========================================
  现代化网站样式 - 2025设计趋势
  =========================================
  功能：实现现代化的UI设计风格
  用途：提供更现代、简洁的用户界面
  设计理念：
    - 极简主义设计
    - 柔和的配色方案
    - 深色模式支持
    - 玻璃态效果
    - 流畅动画
*/

/* CSS变量定义区域 */
:root {
  /* 现代极简配色方案 - 2025趋势 */
  --primary-color: #6366f1;           /* 现代靛蓝色 */
  --primary-light: #818cf8;           /* 浅靛蓝色 */
  --primary-dark: #4f46e5;            /* 深靛蓝色 */
  --secondary-color: #10b981;         /* 翡翠绿 */
  --accent-color: #f59e0b;            /* 琥珀色 */
  --background-color: #f8fafc;        /* 极浅灰白 */
  --card-bg: #ffffff;                 /* 纯白卡片背景 */
  --text-primary: #1e293b;            /* 深蓝灰主文字 */
  --text-secondary: #64748b;          /* 中蓝灰次文字 */
  --text-muted: #94a3b8;              /* 浅蓝灰弱化文字 */
  --border-color: #e2e8f0;            /* 浅蓝灰边框 */
  --border-light: #f1f5f9;            /* 极浅蓝灰边框 */
  --success-color: #10b981;           /* 成功绿色 */
  --warning-color: #f59e0b;           /* 警告琥珀色 */
  --error-color: #ef4444;             /* 错误红色 */
  
  /* 现代化变量 */
  --border-radius: 16px;              /* 现代圆角 */
  --border-radius-lg: 24px;           /* 大圆角 */
  --border-radius-xl: 32px;           /* 超大圆角 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 流畅过渡 */
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* 弹性动画 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05); /* 微阴影 */
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* 中等阴影 */
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03); /* 大阴影 */
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02); /* 超大阴影 */
  --backdrop-blur: blur(12px);        /* 玻璃态模糊 */
  --backdrop-saturate: saturate(180%); /* 饱和度 */
}

/* 深色模式 */
body.dark-mode {
  --primary-color: #818cf8;           /* 浅靛蓝色 */
  --primary-light: #a5b4fc;           /* 更浅靛蓝色 */
  --primary-dark: #6366f1;            /* 现代靛蓝色 */
  --background-color: #0f172a;        /* 深蓝灰背景 */
  --card-bg: #1e293b;                 /* 深蓝灰卡片背景 */
  --text-primary: #f1f5f9;            /* 浅蓝灰主文字 */
  --text-secondary: #cbd5e1;          /* 中蓝灰次文字 */
  --text-muted: #94a3b8;              /* 浅蓝灰弱化文字 */
  --border-color: #334155;            /* 深蓝灰边框 */
  --border-light: #1e293b;            /* 更深蓝灰边框 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
}

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 动态渐变背景动画 */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 浮动装饰元素动画 */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes floatReverse {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(-8deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

body {
  font-family: 'Inter', 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  /* 动态渐变背景设置 */
  background: linear-gradient(270deg, 
    #f8fafc, 
    #e2e8f0, 
    #cbd5e1, 
    #94a3b8, 
    #64748b,
    #475569,
    #334155,
    #1e293b);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 深色模式下的动态背景 */
body.dark-mode {
  background: linear-gradient(270deg, 
    #0f172a, 
    #1e293b, 
    #334155, 
    #475569, 
    #64748b,
    #94a3b8,
    #cbd5e1,
    #e2e8f0);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

/* 浮动装饰元素 */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(20px);
  z-index: -1;
}

.floating-element-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: 10%;
  left: 5%;
  animation: float 15s ease-in-out infinite;
}

.floating-element-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary-color);
  top: 60%;
  left: 80%;
  animation: floatReverse 18s ease-in-out infinite;
}

.floating-element-3 {
  width: 150px;
  height: 150px;
  background: var(--accent-color);
  top: 70%;
  left: 20%;
  animation: float 12s ease-in-out infinite;
}

.floating-element-4 {
  width: 250px;
  height: 250px;
  background: var(--primary-light);
  top: 20%;
  left: 70%;
  animation: floatReverse 20s ease-in-out infinite;
}

/* 深色模式下的浮动元素 */
body.dark-mode .floating-element {
  opacity: 0.15;
  filter: blur(30px);
}

/* 基础元素样式 - 等比例放大 */
a {
  font-size: 1.1rem; /* 原基础上放大10% */
}

p {
  font-size: 1.1rem; /* 原基础上放大10% */
  margin-bottom: 1.2rem; /* 相应调整段落间距 */
}

/* 按钮样式 */
.btn {
  padding: 6px 24px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  min-height: 32px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

body.dark-mode .btn-secondary {
  background: rgba(50, 50, 50, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-secondary:hover {
  background: rgba(70, 70, 70, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--backdrop-blur) var(--backdrop-saturate);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  height: 160px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
  overflow: visible; /* 确保子元素不会被遮挡 */
}

body.dark-mode .header {
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid var(--border-color);
}

body.dark-mode .sidebar {
  background: rgba(30, 41, 59, 0.8);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 3200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2rem !important;
  flex-wrap: nowrap !important;
  height: 100%;
  padding: 1rem 0;
}

.logo-section {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  justify-content: center;
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.nav-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  height: 100%;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: fit-content;
}

.nav-links a:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 200px;
  display: none;
  border: 1px solid var(--border-color);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

/* 深色模式下的下拉菜单样式 */
body.dark-mode .dropdown-menu {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.search-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-width: 0;
  flex-shrink: 0;
  height: 100%;
}

/* 日期时间模块样式 - 流行配色方案 */
.datetime-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff9a9e 0%, #a1c4fd 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  margin-right: 1.5rem;
  box-shadow: 0 8px 32px rgba(161, 196, 253, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 220px;
  height: 110px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.datetime-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.datetime-widget:hover::before {
  transform: translateX(100%);
}

.datetime-widget:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.datetime-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.datetime-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.2rem;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.datetime-lunar {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.2rem;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.3px;
}

.datetime-time {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
}

/* 深色模式适配 */
body.dark-mode .datetime-widget {
  background: linear-gradient(135deg, #ff758c 0%, #4f46e5 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .datetime-widget:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .datetime-widget {
    min-width: 180px;
    height: 100px;
    padding: 0.8rem 1.2rem;
    margin-right: 1rem;
  }
  
  .datetime-date {
    font-size: 0.8rem;
  }
  
  .datetime-lunar {
    font-size: 0.7rem;
  }
  
  .datetime-time {
    font-size: 1.3rem;
  }
}

.search-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  min-width: 280px;
  gap: 0.5rem;
}

.search-bar > .search-input-container {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}





/* 搜索框容器样式 */
.search-input-container {
  display: flex;
  align-items: center;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.8);
  height: 50px;
  padding: 0 15px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

body.dark-mode .search-input-container {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

/* 搜索引擎选择器样式 - 放在搜索框内部最左侧 */
.engine-select {
  padding: 0.5rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100px; /* 固定宽度 */
  position: absolute;
  left: 10px; /* 左侧位置 */
  z-index: 10; /* 提高z-index确保在输入框上方 */
  height: 36px; /* 增加高度确保文字完全显示 */
  line-height: 1.2; /* 设置合适的行高 */
  top: 50%;
  transform: translateY(-50%);
  /* 移除背景色 */
  border-radius: 4px;
  /* 添加右边距以确保与输入框文字有足够的间隔 */
  margin-right: 10px;
  /* 防止文字溢出 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  padding-left: 120px; /* 为左侧下拉菜单预留空间 */
  border: none; /* 移除边框，因为容器已经有边框 */
  border-radius: var(--border-radius);
  background: transparent; /* 使用透明背景 */
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

body.dark-mode .search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* 暗黑模式下搜索引擎选择器样式 */
body.dark-mode .engine-select {
  color: white;
}

.search-btn {
  padding: 0.375rem;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.search-btn::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: block;
  font-size: 0.9rem;
}

.search-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

body.dark-mode .search-btn {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

body.dark-mode .search-tab {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

/* 搜索标签样式 */
.search-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.search-tab {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.search-tab:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.search-tab.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}





.theme-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.theme-btn::before {
  content: "🌙";
  display: block;
}

.theme-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

body.dark-mode .theme-btn::before {
  content: "☀️";
}

body.dark-mode .theme-btn {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}



/* 侧边栏样式 */
.sidebar {
  width: 260px;
  background: rgba(255, 255, 255, 0.8);
  height: calc(100vh - 80px);
  position: fixed;
  left: 0;
  top: 80px;
  padding: 1.5rem 0;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transition: var(--transition);
  border-right: 1px solid var(--border-color);
  z-index: 90;
  backdrop-filter: blur(10px);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-right: 1rem;
  font-weight: 500;
}

.menu-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.menu-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-color);
  font-weight: 600;
}

/* 主内容区样式 */
.main-content {
  margin-left: 260px;
  padding: 2rem;
  margin-top: 8px;
  transition: var(--transition);
}

.module {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  overflow: hidden;
  width: 100%;
  backdrop-filter: blur(10px);
}

.module:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

/* 深色模式下的模块背景 */
body.dark-mode .module {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
}

body.dark-mode .module:hover {
  background: rgba(30, 41, 59, 0.85);
}

/* 自定义常用网站模块特殊背景配色 */
.module-custom-websites {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.module-custom-websites::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  z-index: 0;
}

.module-custom-websites .module-header {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border-bottom: 1px solid rgba(99, 102, 241, 0.4);
  position: relative;
  z-index: 1;
}

.module-custom-websites .module-header h2 {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.module-custom-websites .card-grid {
  position: relative;
  z-index: 1;
}

.module-custom-websites .add-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 2px dashed rgba(99, 102, 241, 0.5);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

/* 深色模式下的自定义网站模块 */
body.dark-mode .module-custom-websites {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.4);
  backdrop-filter: blur(10px);
}

body.dark-mode .module-custom-websites .module-header {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border-bottom: 1px solid rgba(99, 102, 241, 0.5);
}

body.dark-mode .module-custom-websites .add-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 2px dashed rgba(99, 102, 241, 0.6);
  backdrop-filter: blur(5px);
}

.module-custom-websites .add-card:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.module-custom-websites .add-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

body.dark-mode .module-custom-websites {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
  border-color: rgba(99, 102, 241, 0.4);
}

body.dark-mode .module-custom-websites .module-header {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border-bottom-color: rgba(99, 102, 241, 0.5);
}

body.dark-mode .module-custom-websites .add-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border-color: rgba(99, 102, 241, 0.6);
}

.module-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 1.25rem 2rem;
}

/* 卡片网格布局 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.95);
}

.card:hover::before {
  opacity: 1;
}

/* 深色模式下的卡片样式 */
body.dark-mode .card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
}

body.dark-mode .card:hover {
  background: rgba(30, 41, 59, 0.85);
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  margin-bottom: 0.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 3px 6px rgba(99, 102, 241, 0.3);
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  position: relative;
  z-index: 1;
  text-align: center;
}

.card-description {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  line-height: 1.3;
  max-height: 1.3em;
}

/* 网站卡片删除按钮样式 */
.card .delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card:hover .delete-btn {
  opacity: 1;
}

.card .delete-btn:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card:hover .card-description {
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: 3;
  max-height: 4em;
}

/* 广告横幅样式 */
.featured-sites-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 0.4rem;
  box-shadow: var(--shadow-lg);
  color: white;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
}

.banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.featured-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.featured-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.featured-content {
  flex: 1;
}

.featured-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.featured-content p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.featured-tag {
  font-size: 0.75rem;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
}

.featured-arrow::after {
  content: "→";
  font-size: 1.2rem;
}

/* 右侧悬浮面板 */
.floating-panel {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.panel-item {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  font-size: 0.75rem;
  color: var(--text-primary);
  text-align: center;
  padding: 0.5rem;
  backdrop-filter: blur(10px);
}

body.dark-mode .panel-item {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.panel-item:hover {
  transform: translateX(-10px) scale(1.05);
  box-shadow: var(--shadow-xl);
  color: var(--primary-color);
}



/* 免责声明 */
.disclaimer {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

body.dark-mode .disclaimer {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.disclaimer-container {
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer-container h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: center;
}

.disclaimer-container p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: justify;
  font-size: 0.85rem;
}

/* 底部状态栏 */
.footer-bar {
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.8);
  margin-top: 2rem;
  backdrop-filter: blur(10px);
}

body.dark-mode .footer-bar {
  background: rgba(30, 41, 59, 0.8);
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  flex: 1;
  text-align: left;
}

.icp-beian {
  flex: 1;
  text-align: right;
}

.icp-beian a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.icp-beian a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .header {
    height: 140px;
  }
  
  .header-container {
    gap: 1.5rem;
  }
  
  .logo {
    font-size: 2.25rem;
  }
  
  .logo-subtitle {
    font-size: 0.9rem;
  }
  
  .nav-links {
    gap: 1.25rem;
  }
  
  .nav-links a {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.25rem; /* 4px - 原来的五分之一 */
  }
  
  .sidebar {
    width: 220px;
  }
  
  .main-content {
    margin-left: 220px;
  }
}

.add-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  border: 2px dashed var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

body.dark-mode .add-card {
  background: rgba(30, 41, 59, 0.8);
  border: 2px dashed var(--border-color);
  backdrop-filter: blur(10px);
}

.add-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.add-card:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--primary-color);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.add-card:hover::before {
  opacity: 1;
}

.add-card:hover .add-icon {
  transform: scale(1.15) rotate(90deg);
}

.add-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.add-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.add-card:hover .add-text {
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .header {
    height: 120px;
  }
  
  .header-container {
    gap: 1rem;
  }
  
  .logo-section {
    min-width: 140px;
  }
  
  .logo {
    font-size: 1.75rem;
  }
  
  .logo-subtitle {
    font-size: 0.8rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .search-bar {
    max-width: 300px;
  }
  
  .search-btn, .theme-btn {
    width: 40px;
    height: 40px;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .copyright, .icp-beian {
    text-align: center;
    flex: none;
  }
  
  .header {
    height: 120px;
    padding: 0 1rem;
  }
  
  .header-container {
    gap: 0.75rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo-subtitle {
    font-size: 0.75rem;
  }
  
  .nav-section {
    display: none;
  }
  
  .search-section {
    gap: 0.5rem;
  }
  
  .search-bar {
    max-width: 200px;
    min-width: 150px;
  }
  
  
  
  .search-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .search-btn, .theme-btn {
    
  }
  

  
  .main-content {
    margin-left: 0;
    padding: 1rem;
    margin-top: 70px;
  }
  
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .menu-toggle {
  display: block;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

body.dark-mode .menu-toggle {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}
  
  .menu-toggle:hover {
    background: var(--primary-color);
    color: white;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(28px, 1fr)); /* 调整最小宽度 */
    gap: 0.2rem; /* 3.2px - 原来的五分之一 */
    padding: 1rem;
  }
  
  .card {
    padding: 0.75rem; /* 12px - 符合8px网格系统 */
    min-width: 140px;
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  
  .card-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .card-description {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  .floating-panel {
    right: 1rem;
  }
  
  .panel-item {
    width: 50px;
    height: 50px;
    font-size: 0.7rem;
    border-radius: 16px;
  }
  
  .avatar {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .header {
    height: auto;
    min-height: 80px;
    padding: 0.5rem 0.75rem;
  }
  
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem;
  }
  
  .logo-section {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    min-width: auto;
    justify-content: flex-start;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .logo-subtitle {
    font-size: 0.65rem;
    display: block;
  }
  
  .nav-section {
    display: none;
  }
  
  .search-section {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: start;
  }
  
  .search-bar {
    max-width: 150px;
    min-width: 120px;
  }
  
  
  
  .search-input {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .search-btn, .theme-btn {
    width: 16px;
    height: 16px;
    padding: 0.2rem;
    font-size: 0.4rem;
  }
  

  
  .main-content {
    padding: 0.75rem;
    margin-top: 60px;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
    gap: 0.15rem; /* 2.4px - 原来的五分之一 */
    padding: 0.75rem;
  }
  
  .card {
    padding: 0.5rem; /* 8px - 符合8px网格系统 */
    min-width: 120px;
  }
  
  .card-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  
  .card-title {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  .card-description {
    font-size: 0.7rem;
    line-height: 1.4;
  }
  
  .disclaimer {
    font-size: 0.7rem;
    padding: 1rem 0.75rem;
  }
  
  .footer-bar {
    font-size: 0.75rem;
    padding: 0.75rem;
  }
  
  .floating-panel {
    right: 0.75rem;
    bottom: 5rem;
  }
  
  .panel-item {
    width: 45px;
    height: 45px;
    font-size: 0.65rem;
    border-radius: 14px;
  }
  
  .avatar {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .search-btn, .theme-btn {
    width: 14px;
    height: 14px;
    padding: 0.15rem;
    font-size: 0.35rem;
    border-radius: 3px;
  }
  
  .search-btn::before,
  .theme-btn::before {
    font-size: 0.7rem;
  }
  
  .header {
    padding: 0.5rem;
  }
  
  .search-bar {
    max-width: 120px;
    min-width: 100px;
  }
  
  
  
  .search-input {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* 帮助模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.9);
  margin: 5% auto;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
  backdrop-filter: blur(10px);
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close {
  color: white;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
  max-height: calc(80vh - 100px);
  overflow-y: auto;
}

.help-section {
  margin-bottom: 1.5rem;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-section h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.help-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.help-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.help-section p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

body.dark-mode .modal-content {
  background-color: rgba(30, 41, 59, 0.9);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

body.dark-mode .modal-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

body.dark-mode .help-section h3 {
  color: var(--primary-light);
}

/* 留言墙样式 */
.message-wall .modal-content {
  max-width: 600px;
  max-height: 70vh;
}

.message-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  max-height: 300px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  background: var(--bg-secondary);
}

.message-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.message-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.message-author {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.message-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.message-content {
  color: var(--text-primary);
  line-height: 1.5;
  word-wrap: break-word;
  margin-bottom: 0.5rem;
}

.message-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.like-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.like-btn:hover {
  color: var(--error-color);
}

.like-btn.liked {
  color: var(--error-color);
}

.delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.delete-btn:hover {
  color: var(--error-color);
}

.message-form {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.message-form .form-group {
  margin-bottom: 1rem;
}

.message-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  resize: vertical;
  transition: var(--transition);
}

.message-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.message-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.message-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.char-count.warning {
  color: var(--warning-color);
}

.char-count.error {
  color: var(--error-color);
}

.submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.empty-message {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .message-wall .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .messages-list {
    max-height: 200px;
  }
  
  .message-item {
    padding: 0.75rem;
  }
}

/* 暗黑模式适配 */
body.dark-mode .message-item {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

body.dark-mode .messages-list {
  background: var(--bg-primary);
}

body.dark-mode .message-form textarea,
body.dark-mode .message-form input {
  background: var(--bg-primary);
  border-color: var(--border-color-dark);
}

body.dark-mode .message-form textarea:focus,
body.dark-mode .message-form input:focus {
  border-color: var(--primary-color);
}

/* =========================================
   现代化添加网站模态框样式
   ========================================= */

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.form-section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.form-section h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section h3::before {
  content: '📋';
  font-size: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.url-input-group {
  display: flex;
  align-items: center;
  background: var(--background-color);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.url-prefix {
  padding: 0.75rem;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.url-input-group input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
}

.url-validation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.validation-icon {
  font-size: 1rem;
}

.validation-text {
  color: var(--text-muted);
}

.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.icon-preview-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: start;
}

.icon-preview {
  display: flex;
  justify-content: center;
}

.preview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--background-color);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  min-width: 200px;
}

.preview-icon {
  font-size: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
}

.preview-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.preview-info {
  flex: 1;
}

.preview-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.preview-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.icon-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.icon-suggestions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.icon-suggestion {
  padding: 0.5rem;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
}

.icon-suggestion:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.advanced-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.checkbox-group:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
}

.checkbox-label {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.checkbox-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--background-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-icon {
  font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .icon-preview-section {
    grid-template-columns: 1fr;
  }
  
  .preview-card {
    min-width: auto;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* 暗黑模式适配 */
body.dark-mode .form-section {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: var(--background-color);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark-mode .url-input-group {
  background: var(--background-color);
  border-color: var(--border-color);
}

body.dark-mode .preview-card {
  background: var(--background-color);
  border-color: var(--border-color);
}

body.dark-mode .icon-suggestion {
  background: var(--background-color);
  border-color: var(--border-color);
}

body.dark-mode .checkbox-group {
  background: var(--background-color);
  border-color: var(--border-color);
}

body.dark-mode .checkbox-group:hover {
  background: rgba(129, 140, 248, 0.1);
  border-color: var(--primary-light);
}

body.dark-mode .btn-secondary {
  background: var(--background-color);
  color: var(--text-primary);
  border-color: var(--border-color);
}

body.dark-mode .btn-secondary:hover {
  background: var(--border-color);
}