/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全局CSS变量 - 主要颜色 */
:root {
  /* 主色调 */
  --primary-color: #ff4757;
  --primary-hover: #ff6b81;
  --secondary-color: #2ed573;
  --secondary-hover: #27ae60;
  --tertiary-color: #007bff;

  /* 背景色 */
  --bg-primary: #f5f5f5;
  --bg-secondary: #fff;
  --bg-tertiary: #f8f9fa;
  --bg-dark: #333;

  /* 文本颜色 */
  --text-primary: #333;
  --text-secondary: #666;
  --text-tertiary: #999;
  --text-muted: #6c757d;
  --text-light: #fff;

  /* 边框颜色 */
  --border-primary: #e0e0e0;
  --border-secondary: #e9ecef;
  --border-light: #ddd;
  --border-dark: #555;

  /* 阴影 */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 2px 8px rgba(0, 123, 255, 0.1);
  --shadow-hover: 0 2px 8px rgba(255, 71, 87, 0.1);
  --shadow-deep: 0 4px 15px rgba(255, 71, 87, 0.3);

  /* 圆角 */
  --radius-small: 4px;
  --radius-medium: 6px;
  --radius-large: 8px;
  --radius-full: 50%;

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 15px;
  --spacing-xl: 20px;
}

/* 公共样式类 */

/* 卡片样式 */
.card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-large);
  border: 1px solid var(--border-primary);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.card-hover:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* 按钮样式 */
.btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  background-color: var(--bg-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background-color: var(--bg-tertiary);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-light);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: var(--text-light);
}

/* 网格布局 */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* 过渡效果 */
.transition {
  transition: all 0.3s ease;
}

/* 工具项通用样式 */
.tool-item-base {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-large);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tool-item-base:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* 顶部导航栏 */
.top-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

/* 图片Logo样式 - 解决iPad Safari拉伸问题 */
.logo-image {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* 确保在所有设备上图片都能正确显示 */
@media (max-width: 768px) {
  .logo-image {
    max-height: 35px;
  }
}

.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.online-count {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.online-count i {
  margin-right: 5px;
  color: var(--primary-color);
}

/* 数字滚动动画样式 */
.number-scroll {
  position: relative;
  width: 8px;
  height: 22px;
  display: inline-block;
  overflow: hidden;
  margin: 0 1px;
  text-align: center;
  line-height: 20px;
  vertical-align: middle;
  font-weight: bold;
}

.number-scroll span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.5s ease-in-out;
}

/* 搜索栏 */
.search-section {
  background: linear-gradient(to right, #ee6570, var(--primary-color));
  padding: var(--spacing-xl) 0;
}

.search-section .content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* 左侧搜索区域 */
.search-area {
  flex: 1;
  max-width: 600px;
}

/* 导航分类标签 */
.nav-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}

.nav-tab {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) 15px;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-medium) var(--radius-medium) 0 0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-tab:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.nav-tab.active {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

/* 中文：真正加粗 */
.nav-tab.active[data-lang="zh"] {
  font-weight: 600;
}

/* 英文：用 text-shadow 模拟加粗，避免抖动 */
.nav-tab.active[data-lang="en"] {
  font-weight: normal;
  text-shadow: 0.3px 0 currentColor, -0.3px 0 currentColor, 0 0.3px currentColor,
    0 -0.3px currentColor;
}

.nav-tab i {
  margin-right: 6px;
}

/* 搜索框 */
.search-box {
  position: relative;
  border-radius: 0 var(--radius-medium) var(--radius-medium)
    var(--radius-medium);
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 50px 0 var(--spacing-xl);
  border: none;
  font-size: 16px;
  outline: none;
}

.search-box button {
  position: absolute;
  right: 0;
  top: 0;
  height: 44px;
  width: 50px;
  border: none;
  background-color: var(--primary-hover);
  color: var(--text-light);
  cursor: pointer;
  font-size: 18px;
}

/* 右侧资讯区域 */
.news-area {
  width: 400px;
  height: 160px;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.news-title {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 600;
  margin: 0;
  font-style: italic;
}

.gradient-text {
  background: linear-gradient(to right, rgb(185, 63, 255), rgb(30, 45, 250));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.more-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.more-link:hover {
  opacity: 1;
}

.news-list {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-medium);
  padding: var(--spacing-sm);
  height: 110px;
  overflow: hidden;
  position: relative;
}

.news-items-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-sm);
  transition: transform 0.5s ease;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 5px;
}

.news-content {
  color: var(--text-light);
  font-size: 14px;
  flex: 1;
  margin-right: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-time {
  color: #ffcc00;
  font-size: 12px;
  white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-section .content-container {
    flex-direction: column;
  }

  .news-area {
    width: 100%;
    margin-top: var(--spacing-xl);
  }

  .nav-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 主体区域 - 参考tt123样式 */
.main-content {
  margin: var(--spacing-xl) 0;
  padding: 0 var(--spacing-xl);
}

/* 响应式调整 - 参考tt123样式 */
@media (min-width: 1400px) {
  .main-content {
    margin-left: auto !important;
  }
}

@media (min-width: 1200px) {
  .main-content {
    /* width: 92%; */
    /* margin-left: 40px !important; */
  }
}

.content-container {
  display: flex;
  gap: var(--spacing-xl);
}

/* 左侧导航栏 - 使用相对定位，通过JS控制固定效果 */
.left-sidebar {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-large);
  padding: var(--spacing-lg);
  height: fit-content;
  position: relative;
  z-index: 900;
  border: 1px solid var(--border-primary);
}

/* 左侧导航栏固定状态 */
.left-sidebar.fixed {
  position: fixed;
  top: 70px; /* 距离顶部栏10px的间距 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 左侧导航栏底部定位状态 */
.left-sidebar.bottom-positioned {
  position: fixed;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-nav ul {
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-xs) 12px;
  margin-bottom: var(--spacing-xs);
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--primary-color);
}

.nav-item.active {
  background-color: #ffebee;
  color: var(--primary-color);
  font-weight: 500;
}

.nav-item i {
  width: 20px;
  margin-right: 8px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* 右侧展示区域 */
.right-content {
  flex: 1;
}

/* 时区时间显示 */
.timezone-display {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-large);
  padding: 12px var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-primary);
}

/* 国旗图标样式 */
.flag-image {
  width: 28px;
  height: 22px;
  /* display: inline-block; */
  margin-right: 5px;
  /* vertical-align: middle; */
  object-fit: contain;
}

/* 时区分组 */
.timezone-group {
  display: flex;
  gap: 8px;
  margin: 0 10px;
  padding: 0 10px;
  border-left: 1px solid var(--border-primary);
}

.timezone-group:first-child {
  border-left: none;
}

.timezone-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timezone-countries {
  display: flex;
  gap: 8px;
}

/* 时区项目 */
.timezone-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
}

.timezone-name {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.time-zone {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  margin-left: 6px;
}

.date-display {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-bottom: 1px;
}

.time-display {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: "Courier New", monospace;
}

/* 分类区域 */
.category-section {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-large);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-light);
}

/* 小工具容器 */
.mini-tools-container {
  display: flex;
  gap: var(--spacing-lg);
  align-items: stretch;
  margin-bottom: var(--spacing-xl);
}

/* 小工具基础样式 */
.mini-tool {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-large);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-secondary);
}

/* 计算器工具 - 宽度比例2 */
.calculator-tool {
  flex: 2;
  min-width: 0;
}

/* 汇率计算器工具 - 宽度比例2 */
.currency-tool {
  flex: 2;
  min-width: 0;
}

/* 日历工具 - 宽度比例6 */
.calendar-tool {
  flex: 6;
  min-width: 0;
}

/* 工具头部 */
.tool-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-icon {
  margin-right: 6px;
  font-size: 16px;
}

.tool-name {
  flex: 1;
}

/* 计算器样式 */
.calculator-display {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-small);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  min-height: 24px;
  font-family: "Courier New", monospace;
}

.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.calc-btn {
  padding: var(--spacing-sm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  background-color: var(--bg-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.calc-btn:hover {
  background-color: #f0f0f0;
}

.calc-btn.operator {
  background-color: var(--primary-hover);
  color: var(--text-light);
  border-color: var(--primary-hover);
}

.calc-btn.operator:hover {
  background-color: var(--primary-color);
}

.calc-btn.equal {
  grid-column: span 4;
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--secondary-color);
  font-weight: 600;
}

.calc-btn.equal:hover {
  background-color: var(--secondary-hover);
}

/* 汇率计算器样式 */
.currency-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.currency-group {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
}

.currency-amount {
  width: 72%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-small);
  font-size: 14px;
}

.currency-select {
  width: 38%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-small);
  font-size: 14px;
  background-color: var(--bg-secondary);
  /* 隐藏默认箭头 */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* 添加自定义箭头 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center; /* 将箭头向左移动4px（原right 10px） */
  padding-right: 24px; /* 为箭头留出空间 */
}

/* 为IE浏览器添加箭头样式 */
.currency-select::-ms-expand {
  display: none;
}

.swap-btn {
  align-self: center;
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  background-color: var(--primary-hover);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.swap-btn:hover {
  /* background-color: #f0f0f0; */
  background-color: var(--primary-color);
}

.exchange-rate {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  padding: 6px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-small);
  border: 1px solid var(--border-primary);
}

/* 日历样式 */
.calendar-nav {
  display: flex;
  gap: 4px;
}

.nav-btn {
  padding: 4px 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  background-color: var(--bg-secondary);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background-color: #f0f0f0;
}

.calendar-current-date {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.calendar-weekdays > div {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}

.day {
  text-align: center;
  padding: 6px 4px;
  border-radius: var(--radius-small);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day:hover {
  background-color: #e3f2fd;
}

.day.other-month {
  color: #ccc;
}

.day.today {
  background-color: var(--primary-hover);
  color: var(--text-light);
  font-weight: 600;
}

.calendar-today {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 4px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-small);
  border: 1px solid var(--border-primary);
}

.category-section h2 {
  font-size: 20px;
  margin-bottom: var(--spacing-xl);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-primary);
}

/* 通用工具网格 - 不建议直接修改，如需自定义请使用特定类 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-lg);
}

/* 通用工具项样式 */
.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-large);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* 常用工具区域特定样式 - 主要工具 */
.main-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-lg);
}

.main-tool-grid .tool-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-large);
  text-align: left;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.main-tool-grid .tool-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.main-tool-grid .tool-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 8px;
}

.main-tool-grid .tool-item span {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 软件网格布局 */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

/* 软件卡片样式 */
.software-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-large);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
}

.software-card:hover {
  border-color: var(--tertiary-color);
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

/* 软件图标样式 */
.software-icon {
  margin-right: 12px;
}

.software-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-small);
}

/* 软件信息样式 */
.software-info {
  flex: 1;
  min-width: 0;
}

/* 平台网格布局 */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

/* 平台项目样式 */
.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-large);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  text-align: center;
}

.platform-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

/* 平台图标样式 */
.platform-icon {
  margin-bottom: 8px;
}

.platform-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: var(--radius-small);
}

/* 平台名称样式 */
.platform-name {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.software-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.software-intro {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 39px;
}

/* 弹出框样式 */
.software-card::after {
  content: attr(data-intro);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: var(--radius-small);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  max-width: 280px;
  white-space: normal;
  word-wrap: break-word;
}

.software-card::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  margin-bottom: -12px;
}

.software-card:hover::after,
.software-card:hover::before {
  opacity: 1;
  visibility: visible;
}

/* 底部栏样式 */
.bottom-bar {
  background-color: var(--bg-tertiary);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--border-secondary);
  text-align: center;
}

/* 底部栏 */
.page-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: calc(var(--spacing-xl) * 2) 0 var(--spacing-xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-logo {
  width: 200px;
  margin-bottom: var(--spacing-xl);
}

.footer-logo h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.footer-logo p {
  color: var(--text-tertiary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: calc(var(--spacing-xl) * 2);
  margin-bottom: var(--spacing-xl);
}

.link-group h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.link-group ul {
  list-style: none;
}

.link-group li {
  margin-bottom: 8px;
}

.link-group a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

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

.footer-wechat .qrcode {
  margin-bottom: 10px;
}

.footer-wechat img {
  width: 100px;
  height: 100px;
}

.footer-wechat p {
  font-size: 14px;
  color: var(--text-tertiary);
}

.copyright {
  text-align: center;
  padding-top: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-dark);
  color: var(--text-tertiary);
  font-size: 12px;
}

.copyright a{
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.copyright img {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  margin-right: 2px;
  vertical-align:middle;
}

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

/* 右下角工具栏 */
.right-toolbar {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
}

.toolbar-item {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.toolbar-item:hover {
  background-color: #ff4757;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.toolbar-item i {
  font-size: 20px;
}

.toolbar-qrcode {
  position: absolute;
  right: 60px;
  bottom: 0;
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  display: none;
}

.toolbar-item:hover .toolbar-qrcode {
  display: block;
}

.toolbar-qrcode img {
  width: 120px;
  height: 120px;
}

#back-to-top {
  display: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  /* 隐藏左侧导航栏（适配所有iPad设备） */
  .left-sidebar {
    display: none;
  }

  .mobile-hidden-tools {
    display: none;
  }

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

  .category-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-item {
    flex: 0 0 calc(25% - 10px);
    justify-content: center;
    text-align: center;
  }

  .nav-item i {
    margin-right: 5px;
  }
}

@media (max-width: 992px) {
  /* 隐藏左侧导航栏（iPad适配） */
  .left-sidebar {
    display: none;
  }

  .search-container {
    flex-direction: column;
    gap: 15px;
  }

  .search-box {
    width: 100%;
  }

  .news-ticker {
    width: 100%;
  }

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

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* 隐藏左侧导航栏 */
  .left-sidebar {
    display: none;
  }
  /* 手机端隐藏小工具板块 */
  .mobile-hidden-tools {
    display: none;
  }
  /* 手机端导航分类适配 */
  .nav-tab i {
    display: none;
  }
  .nav-tab {
    white-space: nowrap;
    font-size: 12px;
    padding: var(--spacing-sm) 10px;
  }

  .header-container {
    padding: 0 15px;
  }

  .logo h1 {
    font-size: 20px;
  }

  .online-count {
    font-size: 12px;
  }

  .nav-item {
    flex: 0 0 calc(33.333% - 10px);
  }

  .tool-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .right-toolbar {
    right: 20px;
    bottom: 20px;
  }

  .toolbar-item {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  /* 隐藏左侧导航栏 */
  .left-sidebar {
    display: none;
  }
  /* 手机端隐藏小工具板块 */
  .mobile-hidden-tools {
    display: none;
  }
  /* 手机端导航分类适配 */
  .nav-tab i {
    display: none;
  }
  .nav-tab {
    white-space: nowrap;
    font-size: 13px;
    padding: var(--spacing-sm) 8px;
  }

  .main-content {
    padding: 0 15px;
  }

  .nav-item {
    flex: 0 0 calc(50% - 10px);
    padding: 10px;
    font-size: 14px;
  }

  .nav-item i {
    width: 20px;
    margin-right: 5px;
    font-size: 16px;
  }

  .category-section {
    padding: 15px;
  }

  .category-section h2 {
    font-size: 18px;
  }

  .tool-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }

  .tool-item {
    padding: 10px;
  }

  .tool-item img {
    width: 60px;
    height: 60px;
  }

  .tool-item span {
    font-size: 12px;
  }
}

/* 其他工具区域样式 */
#other .category-group {
  margin-bottom: 10px; /* 减小组间距 */
  padding: 0;
  background-color: transparent; /* 移除卡片背景 */
  border-radius: 0;
  box-shadow: none; /* 移除卡片阴影 */
  display: flex;
  align-items: center;
}

#other .category-title {
  display: inline-block;
  margin-right: 10px;
  font-weight: 600;
  font-size: 16px;
  width: 100px; /* 固定分类标题宽度 */
}

#other .category-tools {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 1;
  vertical-align: middle;
}

#other .category-tool-item {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  min-width: 100px; /* 固定工具项宽度 */
  display: inline-block;
}

#other .category-tool-item:hover {
  color: #ff4757;
}

/* 分类标题主题颜色 */
#other .category-title span {
  color: var(--primary-color);
}

/* 搜索面板 */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-panel.show {
  opacity: 1;
  visibility: visible;
}

.search-container {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-large);
  padding: calc(var(--spacing-xl) * 1.5);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* 搜索输入框 */
.search-input {
  width: 100%;
  padding: var(--spacing-lg);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-medium);
  font-size: 18px;
  outline: none;
  transition: border-color 0.3s ease;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.1);
}

/* 搜索结果 */
.search-results {
  margin-top: var(--spacing-lg);
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-secondary);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--bg-tertiary);
}

.search-result-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.search-result-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 关闭按钮 */
.close-search {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.close-search:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

/* 面板内容 */
.panel-content {
  padding: var(--spacing-lg) var(--spacing-xl);
}

/* 面板项目 */
.panel-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding: 8px 12px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-medium);
  transition: background-color 0.3s ease;
}

.panel-item:hover {
  background-color: var(--bg-hover);
}

.panel-item-icon {
  margin-right: 12px;
  color: var(--text-muted);
}

.panel-item-text {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* 搜索面板 */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-panel.show {
  opacity: 1;
  visibility: visible;
}

.search-container {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-large);
  padding: calc(var(--spacing-xl) * 1.5);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* 搜索输入框 */
.search-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-small);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: var(--spacing-xl);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.search-input:focus {
  border-color: var(--primary-color);
}

/* 搜索按钮 */
.search-button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-small);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  outline: none;
}

.search-button:hover {
  background-color: var(--primary-hover);
}

/* 关闭按钮 */
.close-button {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  transition: color 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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