/* CSS Reset：统一浏览器默认样式，消除差异 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* 边框盒模型：width 包含 padding 和 border */
}

/* CSS Variables（自定义属性）：方便主题管理和复用 */
:root {
  --primary-color: #0071e3;      /* 主色调：macOS 蓝色 */
  --primary-hover: #0066cc;      /* 悬停色 */
  --danger-color: #ff3b30;       /* 危险操作：删除（macOS 红色） */
  --bg-gradient: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%); /* macOS 浅色背景 */
  --card-bg: rgba(255, 255, 255, 0.8); /* 卡片背景 */
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* 柔和的阴影 */
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 更自然的过渡动画 */
  --border-color: #e0e0e0;       /* 边框颜色 */
  --text-primary: #1d1d1f;       /* 主文本颜色 */
  --text-secondary: #86868b;      /* 次要文本颜色 */
  --menu-bg: rgba(255, 255, 255, 0.95); /* 菜单背景 */
  --menu-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); /* 菜单阴影 */
  --dock-bg: rgba(255, 255, 255, 0.7); /* Dock 栏背景 */
  --dock-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Dock 栏阴影 */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh; /* 最小高度填满视口，内容少时也能撑开 */
  padding: 0;
  margin: 0;
  /* 字体抗锯齿，Mac 上更清晰 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 0px; /* 为顶部22菜单栏留出空间 */
  padding-bottom: 0px; /* 为 Dock60 栏留出空间 */
}

/* macOS 风格顶部菜单栏 */
.mac-menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  z-index: 9999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.menu-left, .menu-right {
  display: flex;
  align-items: center;
}

.menu-item {
  padding: 0 10px;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease;
}

.menu-item:hover {
  background-color: rgba(0, 113, 227, 0.1);
}

.menu-dropdown {
  position: absolute;
  top: 22px;
  left: 0;
  background: var(--menu-bg);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  box-shadow: var(--menu-shadow);
  border: 1px solid var(--border-color);
  min-width: 150px;
  display: none;
  z-index: 9999;
}

.menu-item:hover .menu-dropdown {
  display: block;
}

.menu-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.menu-dropdown-item:hover {
  background-color: rgba(0, 113, 227, 0.15);
}

.menu-dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 4px 0;
}

/* macOS 风格 Dock 栏 */
.mac-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dock-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px 10px 0 0;
  box-shadow: var(--dock-shadow);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  z-index: 9999;
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 4px;
}

.dock-item:hover {
  transform: translateY(-5px) scale(1.1);
}

.dock-item.active {
  background-color: rgba(0, 113, 227, 0.1);
  border-radius: 8px;
}

.dock-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.dock-label {
  font-size: 10px;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
  position: absolute;
  bottom: 100%;
  margin-bottom: 8px;
  background: rgba(28, 28, 30, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.dock-item:hover .dock-label {
  opacity: 1;
}

.dock-separator {
  width: 1px;
  height: 30px;
  background-color: var(--border-color);
  margin: 0 4px;
}

/* 容器：全屏幕布局 */
.container {
  width: 100vw;
  height: 100vh;
  padding: 0;
}

/* 左侧固定区域 */
.left-sidebar {
  flex-shrink: 0;
  width: 320px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow: hidden;
  z-index: 10;
}

/* 左侧美化header */
.left-header {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: white;
  padding: 50px 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 0 15px rgba(0, 113, 227, 0.3);
}

/* 中间内容区域 */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 320px; /* 为左侧固定区域留出空间 */
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 82px); /* 确保高度足够显示云朵 */
}

.header-content {
  width: 100%;
  max-width: 260px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.header-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.header-title {
  font-size: 2.4rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: 2px;
  line-height: 1.2;
}

.header-description {
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

/* 头部功能特性 */
.header-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
  justify-content: center;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.feature-text {
  font-size: 0.95rem;
  font-weight: 500;
}

/* 主页内容容器 */
#home-content-container {
  width: 100%;
}

/* 页面容器 */
.page-container {
  width: 100%;
  max-width: 1200px;
}

/* 页面 */
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

/* 活动页面 */
.page.active {
  display: block;
}

/* 左侧背景动画容器 */
#background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 卡片组件：macOS 风格 */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 800px;
  /* 动画：卡片加载时淡入上浮 */
  animation: cardEnter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* macOS 内部应用风格卡片 */
.mac-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 卡片头部 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-actions {
  display: flex;
  gap: 8px;
}

/* 卡片内容 */
.card-content {
  padding-bottom: 8px;
}

/* macOS 风格区块 */
.mac-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

/* macOS 风格输入组 */
.mac-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* macOS 风格输入框 */
.mac-input,
.mac-select,
input[type="url"],
input[type="text"],
select {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.mac-input:focus,
.mac-select:focus,
input[type="url"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
  background: white;
}

/* macOS 风格按钮 */
.mac-button,
button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.4;
  user-select: none;
}

.mac-button.primary,
button:not(.secondary):not(.delete-btn) {
  background: var(--primary-color);
  color: white;
}

.mac-button.primary:hover,
button:not(.secondary):not(.delete-btn):hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
  transform: translateY(-1px);
}

.mac-button.primary:active,
button:not(.secondary):not(.delete-btn):active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.3);
}

.mac-button.secondary,
button.secondary {
  background: #f2f2f7;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.mac-button.secondary:hover,
button.secondary:hover {
  background: #e5e5ea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.mac-button.secondary:active,
button.secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* macOS 风格搜索框 */
.mac-search-box,
.search-box {
  position: relative;
  margin-bottom: 20px;
}

.mac-search-input,
.search-box input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

.mac-search-input:focus,
.search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
  background: white;
}

.mac-search-box::after,
.search-box::after {
  content: "🔍";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}

/* macOS 风格结果展示区 */
.mac-result,
.result {
  background: rgba(242, 242, 247, 0.8);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  border-left: 4px solid var(--primary-color);
  backdrop-filter: blur(5px);
  display: none;
}

.mac-result.show,
.result.show {
  display: block;
  animation: slideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.result-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.result-icon {
  font-size: 16px;
  margin-right: 8px;
}

.result-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.result-content {
  padding-left: 24px;
}

.result-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
  margin-bottom: 0;
}

/* macOS 风格链接列表 */
.mac-url-list {
  margin-top: 16px;
}

/* macOS 风格空状态 */
.mac-empty-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.empty-state-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 配置区域：底部边框分隔 */
.settings {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.settings label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 600;
  font-size: 0.95rem;
}

/* 输入组：Flex 布局，按钮和输入框并排 */
.input-group {
  display: flex;
  gap: 10px; /* 元素间距 */
  margin-bottom: 15px;
  flex-wrap: wrap; /* 空间不足时换行（移动端适配） */
}

/* 删除按钮（macOS 红色） */
.mac-button.delete-btn,
button.delete-btn {
  background: var(--danger-color);
  color: white;
  padding: 6px 12px;
  font-size: 14px;
}

.mac-button.delete-btn:hover,
button.delete-btn:hover {
  background: #ff453a;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
  transform: translateY(-1px);
}

.mac-button.delete-btn:active,
button.delete-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(255, 59, 48, 0.3);
}

/* 生成的短链接文字样式 */
.short-url {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 600;
  word-break: break-all; /* 长链接自动换行 */
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.short-url:hover {
  text-decoration: underline;
}

/* 链接列表区域 */
.url-list {
  margin-top: 20px;
}

/* macOS 风格单个链接项 */
.mac-url-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  margin-bottom: 8px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

/* 悬停效果：轻微上浮 + 阴影增强 */
.mac-url-item:hover {
  transform: translateY(-1px);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

/* 链接信息区：允许压缩，防止溢出 */
.mac-url-info {
  flex: 1;
  min-width: 0; /* Flex 子项最小宽度为0才能正确截断 */
  margin-right: 15px;
}

/* 短链接文字 */
.mac-short-url {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 6px;
  word-break: break-all;
  transition: var(--transition);
}

.mac-short-url:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* 原始链接：灰色小字，单行截断 */
.mac-target {
  color: var(--text-secondary);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* 超出显示省略号 */
  margin-bottom: 4px;
}

/* 创建时间 */
.mac-url-date {
  color: var(--text-secondary);
  font-size: 0.75rem;
  opacity: 0.8;
}

.mac-url-expiry {
  color: var(--text-secondary);
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 4px;
}

.mac-url-expiry.expired {
  color: var(--danger-color);
  font-weight: 500;
}

/* 元信息区：点击数 + 删除按钮 */
.mac-url-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0; /* 禁止压缩 */
}

/* 点击数徽章 */
.mac-clicks {
  background: #f2f2f7;
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Toast 提示：固定定位在右下角（macOS 风格） */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(28, 28, 30, 0.9);
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1000; /* 确保在最上层 */
  font-weight: 500;
  font-size: 14px;
  /* 模糊背景（毛玻璃效果） */
  backdrop-filter: blur(10px);
}

/* macOS 风格对话框 */
.mac-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.mac-dialog-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mac-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: #f5f5f7;
}

.mac-dialog-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mac-dialog-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mac-dialog-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.mac-dialog-body {
  padding: 20px;
}

.mac-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: #f5f5f7;
}

.mac-dialog-body .mac-section {
  margin-bottom: 16px;
}

.mac-dialog-body .section-title {
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.toast.show {
  display: block;
  animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 主页样式 */
.home-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 欢迎横幅 */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  border-radius: 20px;
  padding: 60px 40px;
  margin-bottom: 50px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.welcome-content {
  max-width: 800px;
  margin: 0 auto;
}

.welcome-title {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.welcome-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.welcome-button.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.welcome-button-icon {
  font-size: 1.2rem;
}

.welcome-button-text {
  font-size: 1rem;
}

/* 功能特性 */
.features-section {
  margin-bottom: 60px;
}

.features-section .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-primary);
  position: relative;
  text-transform: none;
}

.features-section .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  margin: 15px auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.feature-card .feature-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 使用指南 */
.guide-section {
  margin-bottom: 40px;
}

.guide-steps {
  max-width: 800px;
  margin: 0 auto;
}

.guide-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  animation: fadeInLeft 0.6s ease-out;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 错误消息样式 */
.error-message {
  text-align: center;
  padding: 40px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid var(--danger-color);
  border-radius: 8px;
  margin: 20px 0;
}

.error-message h3 {
  color: var(--danger-color);
  margin-bottom: 10px;
}

.error-message p {
  color: var(--text-secondary);
  margin: 0;
}

/* 动画定义 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes fadeInUp {
  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 pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 延迟动画 */
.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.6s;
}

.feature-card:nth-child(5) {
  animation-delay: 0.8s;
}

.feature-card:nth-child(6) {
  animation-delay: 1s;
}

.guide-step:nth-child(2) {
  animation-delay: 0.3s;
}

.guide-step:nth-child(3) {
  animation-delay: 0.6s;
}

/* Dock 链接样式 */
.dock-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dock-link:hover {
  background-color: rgba(0, 113, 227, 0.1);
}

/* 移动端适配（屏幕宽度小于 900px） */
@media (max-width: 900px) {
  /* 左侧固定区域调整 */
  .left-sidebar {
    width: 100%;
    max-width: 600px;
    height: auto;
    position: relative;
    left: 0;
    top: 0;
  }

  /* 中间内容区域调整 */
  .main-content {
    margin-left: 0;
  }

  /* 左侧美化header调整 */
  .left-header {
    padding: 40px 30px;
  }

  .header-icon {
    font-size: 3.5rem;
  }

  .header-title {
    font-size: 2.2rem;
  }
}

/* 移动端适配（屏幕宽度小于 600px） */
@media (max-width: 600px) {
  body {
    padding-top: 0;
    padding-bottom: 50px;
  }

  /* 隐藏移动端的菜单栏 */
  .mac-menu-bar {
    display: none;
  }

  /* 调整移动端的 Dock 栏 */
  .mac-dock {
    padding: 6px 8px;
  }

  .dock-icon {
    font-size: 20px;
  }

  .dock-label {
    display: none;
  }

  .card {
    padding: 20px;
  }

  /* 主页按钮调整 */
  .home-buttons {
    flex-direction: column;
  }

  .home-button {
    min-width: 100%;
  }

  .home-features {
    grid-template-columns: 1fr;
  }

  /* 链接项改为垂直布局 */
  .url-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .url-info {
    margin-right: 0;
    width: 100%;
  }

  .url-meta {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  /* Toast 全宽显示 */
  .toast {
    left: 20px;
    right: 20px;
    bottom: 70px;
  }

  /* 左侧美化header调整 */
  .left-header {
    padding: 30px 20px;
  }

  .header-icon {
    font-size: 3rem;
  }

  .header-title {
    font-size: 2rem;
  }

  .header-description {
    font-size: 0.9rem;
  }

  /* 中间内容区域调整 */
  .main-content {
    padding: 20px;
  }
}

/* 移动端适配（屏幕宽度小于 400px） */
@media (max-width: 400px) {
  .header-icon {
    font-size: 2.5rem;
  }

  .header-title {
    font-size: 1.8rem;
  }

  .header-description {
    font-size: 0.85rem;
  }

  .feature-item {
    padding: 8px 16px;
  }

  .feature-item .feature-icon {
    font-size: 1rem;
  }

  .feature-text {
    font-size: 0.85rem;
  }
}

/* 平板适配（屏幕宽度大于 768px） */
@media (min-width: 768px) {
  .main-content {
    padding: 40px;
  }

  .card {
    max-width: 800px;
  }

  .header-content {
    max-width: 280px;
  }

  .header-title {
    font-size: 2.6rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* 桌面适配（屏幕宽度大于 1024px） */
@media (min-width: 1024px) {
  .left-sidebar {
    width: 350px;
  }

  .main-content {
    margin-left: 350px;
  }

  .header-content {
    max-width: 300px;
  }

  .header-title {
    font-size: 2.8rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .welcome-banner {
    padding: 80px 60px;
  }

  .welcome-title {
    font-size: 3.5rem;
  }

  .page-container {
    max-width: 1200px;
  }
}

/* 大屏幕桌面适配（屏幕宽度大于 1280px） */
@media (min-width: 1280px) {
  .left-sidebar {
    width: 380px;
  }

  .main-content {
    margin-left: 380px;
    min-height: 100%;
  }

  .header-content {
    max-width: 320px;
  }

  .header-title {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .welcome-banner {
    padding: 100px 80px;
  }

  .welcome-title {
    font-size: 4rem;
  }

  .page-container {
    max-width: 1400px;
  }

  .card {
    max-width: 900px;
  }
}
