:root {
  /* 明亮大胆的配色方案 */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  --accent: #ec4899;
  --accent-hover: #db2777;
  --accent-light: rgba(236, 72, 153, 0.15);
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.15);
  --error: #ef4444;
  --error-light: rgba(239, 68, 68, 0.15);
  --info: #3b82f6;
  --info-light: rgba(59, 130, 246, 0.15);

  /* 文本颜色 */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* 背景颜色 - 更明亮 */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-gradient-start: #f0f9ff;
  --bg-gradient-end: #e0e7ff;

  /* 边框 */
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* 阴影 - 更柔和 */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08),
    0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1),
    0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1),
    0 10px 10px -5px rgba(15, 23, 42, 0.04);

  /* 圆角 */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-end) 100%
  );
  background-attachment: fixed;
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 背景层 */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-end) 100%
  );
  opacity: 0.6;
}

.bg-gradient {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(236, 72, 153, 0.1) 0%,
      transparent 50%
    );
}

/* 应用容器 */
.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

/* 顶部导航栏 */
.header-bar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-left::-webkit-scrollbar {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

.header-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.header-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.header-btn.active:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
  box-shadow: var(--shadow-md);
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  margin-right: 8px;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

.nav-item:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* 主内容区域 */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 搜索中心区域 */
.search-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  min-height: 50vh;
  background: #ffffff;
}

.search-wrapper {
  width: 100%;
  max-width: 584px;
  text-align: center;
}

/* 时间显示 */
.time-display {
  margin-bottom: 48px;
}

.time-content {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.time-hour,
.time-minute {
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.time-separator {
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

.time-date {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.search-form {
  width: 100%;
}

.search-box {
  position: relative;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  height: 56px;
  backdrop-filter: blur(10px);
}

.search-box:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.search-box:focus-within {
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-xl);
  border-color: var(--primary);
  background: var(--bg-white);
  transform: translateY(-2px);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
  background: transparent;
  padding: 0 16px;
  height: 100%;
}

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

.search-submit {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

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

/* 收藏链接 */
.favorite-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding: 0 20px;
}

.favorite-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.favorite-link:hover {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--accent-light) 100%
  );
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.favorite-link-icon {
  font-size: 1rem;
}

/* 内容区域 */
.content-area {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* 加载状态 */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

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

.loading p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 快速访问区域 - 现代化设计 */
.quick-access {
  margin-bottom: 48px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03), inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-access::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--accent) 50%,
    var(--primary) 100%
  );
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.quick-access:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.04), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

/* 项目区域特殊样式 - 无背景和边框 */
#projectsSection.quick-access {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 32px;
  box-shadow: none;
}

#projectsSection.quick-access::before {
  display: none;
}

#projectsSection.quick-access:hover {
  transform: none;
  box-shadow: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(236, 72, 153, 0.05) 100%
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.section-title:hover::before {
  left: 100%;
}

.section-title h3 {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin: 0;
  position: relative;
  z-index: 1;
}

.title-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  display: inline-block;
}

.title-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.section-title:hover .title-icon {
  transform: scale(1.1) rotate(5deg);
}

/* 快速链接网格 */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* 扁平化项目网格布局 - 紧凑清晰，无固定宽度，响应式设计 */
.projects-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
  background: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius-md);
}

/* 扁平化项目卡片 - 紧凑清晰的设计 */
.project-card-modern {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.project-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-card-modern:hover::before {
  opacity: 1;
}

.project-card-modern:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 扁平化项目卡片头部 */
.project-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.project-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.project-card-modern:hover .project-icon-wrapper {
  background: var(--primary);
}

.project-icon {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.project-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.project-card-modern:hover .project-icon,
.project-card-modern:hover .project-icon-img {
  transform: scale(1.1);
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.project-name-modern {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.project-card-modern:hover .project-name-modern {
  color: var(--primary);
}

.project-desc-modern {
  margin: 0 0 12px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 扁平化项目工具标签 */
.project-tools-modern {
  margin-bottom: 12px;
}

.tools-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: none; /* 隐藏标签，节省空间 */
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tag-modern {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.tool-tag-modern:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tool-tag-icon-modern {
  font-size: 0.85rem;
}

.tool-tag-name {
  font-weight: 500;
}

.tool-tag-icon {
  font-size: 0.8rem;
}

/* 扁平化项目环境 */
.project-environments-modern {
  margin-top: 0;
}

.environments-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: none; /* 隐藏标签，节省空间 */
}

.environments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.env-item-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  border-left-width: 3px;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.env-item-modern.env-status-green {
  border-left-color: var(--success);
}

.env-item-modern.env-status-yellow {
  border-left-color: var(--warning);
}

.env-item-modern.env-status-red {
  border-left-color: var(--error);
}

.env-item-modern:hover {
  background: var(--bg-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.env-status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.env-item-modern.env-status-green .env-status-indicator {
  background: var(--success);
}

.env-item-modern.env-status-yellow .env-status-indicator {
  background: var(--warning);
}

.env-item-modern.env-status-red .env-status-indicator {
  background: var(--error);
}

.env-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex-wrap: wrap;
}

.env-name-modern {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.env-status-badge-modern {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}

.env-status-badge-modern.status-green {
  background: var(--success);
}

.env-status-badge-modern.status-yellow {
  background: var(--warning);
}

.env-status-badge-modern.status-red {
  background: var(--error);
}

.env-url-modern {
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  display: none; /* 隐藏 URL，节省空间，悬停时显示 */
}

.env-item-modern:hover .env-url-modern {
  display: block;
}

.env-arrow {
  font-size: 0.9rem;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.env-item-modern:hover .env-arrow {
  opacity: 1;
}

.env-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.env-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  word-break: keep-all;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.env-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  margin-left: auto;
}

.env-status-badge.status-green {
  background-color: var(--success);
}

.env-status-badge.status-yellow {
  background-color: var(--warning);
}

.env-status-badge.status-red {
  background-color: var(--error);
}

.env-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.env-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* 工具网格 - 统一设计规范 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  background: var(--bg-white);
  transform: translateY(-4px);
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
}

.tool-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* 页脚 */
.footer-bar {
  padding: 20px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.separator {
  color: var(--border);
}

/* 响应式设计 - 移动端优先 */

/* 超大屏幕 (1400px+) */
@media (min-width: 1400px) {
  .projects-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
  }

  .content-area {
    max-width: 1400px;
  }
}

/* 大屏幕桌面 (1024px - 1400px) */
@media (min-width: 1024px) and (max-width: 1399px) {
  .projects-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
}

/* 平板横屏 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .projects-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
  }

  .project-card-modern {
    padding: 14px;
  }

  .project-name-modern {
    font-size: 1.05rem;
  }

  .tool-tag-modern {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .env-item-modern {
    padding: 10px 12px;
  }
}

/* 移动端和平板竖屏 (最大 767px) */
@media (max-width: 767px) {
  .header-bar {
    padding: 10px 16px;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .header-left {
    order: 2;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .header-right {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .logo {
    font-size: 1rem;
    margin-right: 0;
  }

  .header-nav {
    gap: 8px;
  }

  .header-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .header-btn svg {
    width: 14px;
    height: 14px;
  }

  .search-hero {
    padding: 40px 16px 40px;
    min-height: 40vh;
  }

  .time-hour,
  .time-minute {
    font-size: 3.5rem;
  }

  .time-separator {
    font-size: 3.5rem;
  }

  .time-date {
    font-size: 0.9rem;
  }

  .time-display {
    margin-bottom: 32px;
  }

  .favorite-links {
    gap: 8px;
    padding: 0 12px;
  }

  .favorite-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .content-area {
    padding: 24px 16px 40px;
  }

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

  .projects-grid-modern {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card-modern {
    padding: 12px;
  }

  .project-card-header {
    gap: 8px;
    margin-bottom: 8px;
  }

  .project-icon-wrapper {
    width: 28px;
    height: 28px;
  }

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

  .project-name-modern {
    font-size: 1rem;
  }

  .project-desc-modern {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .project-tools-modern {
    margin-bottom: 8px;
  }

  .tools-list {
    gap: 6px;
  }

  .tool-tag-modern {
    padding: 4px 8px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .tool-tag-icon-modern {
    font-size: 0.75rem;
  }

  .environments-list {
    gap: 6px;
  }

  .env-item-modern {
    padding: 8px 10px;
    gap: 6px;
  }

  .env-status-indicator {
    width: 5px;
    height: 5px;
  }

  .env-name-modern {
    font-size: 0.8rem;
  }

  .env-status-badge-modern {
    padding: 2px 5px;
    font-size: 0.6rem;
  }

  .env-arrow {
    font-size: 0.8rem;
  }

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

  .project-card {
    padding: 16px;
  }

  .tool-card {
    padding: 16px 12px;
  }
}

/* 小屏幕手机 (最大 480px) */
@media (max-width: 480px) {
  .content-area {
    padding: 20px 12px 32px;
  }

  .projects-grid-modern {
    gap: 10px;
  }

  .project-card-modern {
    padding: 10px;
  }

  .project-name-modern {
    font-size: 0.95rem;
  }

  .project-desc-modern {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .tool-tag-modern {
    padding: 3px 6px;
    font-size: 0.7rem;
  }

  .env-item-modern {
    padding: 6px 8px;
  }

  .env-name-modern {
    font-size: 0.75rem;
  }

  .search-box {
    height: 48px;
  }

  .search-input {
    font-size: 0.9rem;
  }
}

/* 搜索引擎选择器 */
.search-engine-selector {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-engine-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.search-engine-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.search-engine-btn.active {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.search-engine-btn.active:hover {
  background: linear-gradient(
    135deg,
    var(--primary-hover) 0%,
    var(--primary) 100%
  );
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
