/**
 * PDF在线工具 - 精美样式
 */

/* ============================================
   变量定义
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4361ee;
  --primary-dark: #3651d4;
  --primary-light: #eef1ff;
  --secondary: #7209b7;
  --accent: #f72585;
  --success: #06d6a0;
  --warning: #ffd166;
  --danger: #ef476f;

  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 20px rgba(67,97,238,0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ========== 深色模式 ========== */
[data-theme="dark"] {
  --primary: #7b8cfc;
  --primary-dark: #5a6ef0;
  --primary-light: rgba(123,140,252,0.12);

  --gray-50: #0f1117;
  --gray-100: #1a1b26;
  --gray-200: #2d3139;
  --gray-300: #3d424d;
  --gray-400: #545d68;
  --gray-500: #7d8590;
  --gray-600: #9ca3af;
  --gray-700: #b0b7c3;
  --gray-800: #d1d5db;
  --gray-900: #e1e4e8;
  --white: #1a1b26;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(123,140,252,0.2);
}

[data-theme="dark"] body { background-color: var(--gray-50); color: var(--gray-800); }
[data-theme="dark"] .site-header { background: rgba(15,17,23,0.92); border-color: var(--gray-200); }
[data-theme="dark"] .nav-links a { color: var(--gray-600); }
[data-theme="dark"] .nav-links a:hover { color: var(--gray-800); background: var(--gray-100); }
[data-theme="dark"] .nav-links a.active { color: var(--primary); background: var(--primary-light); }
[data-theme="dark"] .tool-card { background: var(--gray-100); border-color: var(--gray-200); }
[data-theme="dark"] .upload-zone { background: var(--gray-100); border-color: var(--gray-200); }
[data-theme="dark"] .upload-zone:hover { background: var(--primary-light); }
[data-theme="dark"] .file-item { background: var(--gray-100); border-color: var(--gray-200); }
[data-theme="dark"] .result-area { background: var(--gray-100); border-color: var(--gray-200); }
[data-theme="dark"] .option-group select,
[data-theme="dark"] .option-group input { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-800); }
[data-theme="dark"] .seo-section { background: var(--gray-100); }
[data-theme="dark"] .faq-answer { color: var(--gray-700); }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #1a1b26, #16213e); }
[data-theme="dark"] .page-header { background: linear-gradient(135deg, #0f1117, #1d3557); }
[data-theme="dark"] .site-footer { background: linear-gradient(135deg, #0a0b10, #0f1117); }
[data-theme="dark"] .mobile-menu-btn { color: var(--gray-700); }

/* ========== 老年模式 ========== */
[data-mode="elderly"] body { font-size: 18px; line-height: 1.8; }
[data-mode="elderly"] .nav-links a { font-size: 0.9375rem; padding: 8px 12px; }
[data-mode="elderly"] .logo { font-size: 1.375rem; }
[data-mode="elderly"] .tool-card { padding: 36px 28px; }
[data-mode="elderly"] .tool-card-title { font-size: 1.25rem; }
[data-mode="elderly"] .tool-card-desc { font-size: 1rem; }
[data-mode="elderly"] .btn { padding: 16px 36px; font-size: 1.125rem; }
[data-mode="elderly"] .upload-zone { padding: 56px 32px; }
[data-mode="elderly"] .upload-zone-text { font-size: 1.125rem; }
[data-mode="elderly"] .upload-zone-hint { font-size: 0.9375rem; }
[data-mode="elderly"] .section-title { font-size: 1.75rem; }
[data-mode="elderly"] .hero h1 { font-size: 2.75rem; }
[data-mode="elderly"] .hero p { font-size: 1.25rem; }
[data-mode="elderly"] .page-header h1 { font-size: 2.25rem; }
[data-mode="elderly"] .seo-section h2 { font-size: 1.75rem; }
[data-mode="elderly"] .faq-question { font-size: 1.0625rem; }
[data-mode="elderly"] .faq-answer { font-size: 1rem; }
[data-mode="elderly"] .feature-title { font-size: 1.25rem; }
[data-mode="elderly"] .feature-desc { font-size: 1rem; }

/* ========== 右下角浮动切换按钮 ========== */
.float-toggle-group {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}

.theme-toggle, .accessibility-toggle {
  border: none; border-radius: var(--radius-full);
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.25rem; color: white;
  transition: var(--transition); box-shadow: var(--shadow-lg); position: relative;
}

.theme-toggle { background: linear-gradient(135deg, #1a1a2e, #4a4e69); }
.accessibility-toggle { background: linear-gradient(135deg, #f4a261, #e76f51); }

.theme-toggle:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(26,26,46,0.4); }
.accessibility-toggle:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(244,162,97,0.4); }

[data-theme="dark"] .theme-toggle { background: linear-gradient(135deg, #f4a261, #e76f51); }
[data-mode="elderly"] .accessibility-toggle { background: linear-gradient(135deg, #2a9d8f, #1b7a70); }

.theme-toggle::after, .accessibility-toggle::after {
  content: attr(title); position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%); background: var(--gray-900); color: var(--white);
  padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.75rem;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--transition);
}
.theme-toggle:hover::after, .accessibility-toggle:hover::after { opacity: 1; }

/* 老年模式徽章 */
.elderly-badge {
  display: none; position: fixed; bottom: 136px; right: 20px;
  background: #f4a261; color: white; padding: 8px 16px;
  border-radius: var(--radius-full); font-size: 0.8125rem; font-weight: 600;
  z-index: 200; box-shadow: var(--shadow-md); cursor: pointer;
  transition: var(--transition); animation: fadeInUp 0.3s ease;
}
.elderly-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
[data-mode="elderly"] .elderly-badge { display: block; }

/* ========== Toast ========== */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 20px; border-radius: var(--radius-md); background: var(--gray-900);
  color: var(--white); font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-xl); animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}
.toast.success { background: #06d6a0; }
.toast.error { background: #ef476f; }

@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ========== 特色功能区 ========== */
.features-section {
  padding: 60px 20px; background: var(--gray-100);
}
.features-section .section-title {
  text-align: center; font-size: 1.5rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 40px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--max-width); margin: 0 auto;
}
.feature-item {
  text-align: center; padding: 32px 24px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 60px; height: 60px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--white));
  box-shadow: 0 4px 12px rgba(67,97,238,0.1);
}
.feature-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feature-desc { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }

/* ============================================
   Reset & Base
   ============================================ */
body {
  font-family: "LXGW WenKai", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

button { font-family: inherit; }

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(67,97,238,0.25);
  transition: var(--transition);
}

.logo:hover .logo-icon {
  transform: rotate(-10deg) scale(1.05);
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  max-width: calc(100vw - 140px);
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  color: var(--gray-600);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--gray-800);
  background: var(--gray-100);
}

.nav-links a.active {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--gray-100);
}

/* ============================================
   Search Section
   ============================================ */
.search-section {
  padding: 40px 20px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.search-box {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--gray-500);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 16px 48px 16px 52px;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-md);
}

.search-box input::placeholder {
  color: var(--gray-500);
}

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-200);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-clear:hover {
  background: var(--gray-300);
  color: var(--gray-800);
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.search-tag {
  display: inline-flex;
  padding: 6px 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.search-tag:hover,
.search-tag:focus {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  outline: none;
}

.search-count {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 12px;
  min-height: 1.5em;
}

/* ============================================
   Empty State & Error State
   ============================================ */
.empty-state,
.error-state {
  text-align: center;
  padding: 48px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.empty-state-icon,
.error-state-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state-title,
.error-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.empty-state-desc,
.error-state-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.error-state {
  background: rgba(239,71,111,0.05);
  border: 1px solid rgba(239,71,111,0.15);
  border-radius: var(--radius-lg);
}

.error-state-icon {
  color: var(--danger);
  opacity: 1;
}

.error-state-title {
  color: var(--danger);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 80px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
  position: relative;
}

.hero p {
  opacity: 0.8;
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  position: relative;
  backdrop-filter: blur(4px);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1d3557 100%);
  color: var(--white);
  padding: 48px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(67,97,238,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
}

.page-header p {
  opacity: 0.7;
  font-size: 0.9375rem;
  position: relative;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--gray-500);
}

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

.breadcrumb .separator {
  margin: 0 8px;
  color: var(--gray-400);
}

.breadcrumb .current {
  color: var(--gray-700);
}

/* ============================================
   Tools Grid (首页)
   ============================================ */
.tools-section {
  padding: 60px 20px;
}

.tools-section .section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 40px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

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

.tool-card:hover .tool-card-title {
  color: var(--primary);
}

.tool-card-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.tool-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  transition: color var(--transition);
}

.tool-card-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ============================================
   Upload Zone
   ============================================ */

/* Tool Panel (工具页面内容容器) */
.tool-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.tool-panel h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
}

[data-theme="dark"] .tool-panel {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--gray-50);
  position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.upload-zone-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.upload-zone-hint {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ============================================
   File List
   ============================================ */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.file-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-800);
}

.file-item-size {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.file-item-remove {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.file-item-remove:hover {
  color: var(--danger);
  background: rgba(239,71,111,0.1);
}

/* ============================================
   Buttons
   ============================================ */
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(67,97,238,0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67,97,238,0.4);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #05b48a);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(6,214,160,0.3);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6,214,160,0.4);
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-wrapper {
  display: none;
  margin: 16px 0;
}

.progress-wrapper.visible {
  display: block;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-top: 8px;
}

/* ============================================
   Result Area
   ============================================ */
.result-area {
  margin-top: 24px;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

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

.result-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.result-stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ============================================
   Options Panel
   ============================================ */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.option-group select,
.option-group input[type="text"],
.option-group input[type="number"],
.option-group input[type="range"],
.option-group input[type="date"] {
  padding: 10px 14px;
  font-size: 0.875rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
  outline: none;
}

.option-group select:focus,
.option-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ============================================
   Steps
   ============================================ */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.step-badge .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-arrow {
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ============================================
   SEO Section
   ============================================ */
.seo-section {
  padding: 60px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.seo-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.seo-section p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-800);
  padding: 4px 0;
}

.faq-toggle {
  font-size: 1.25rem;
  color: var(--gray-500);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 10px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-links a.active {
  color: var(--white);
}

.footer-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.5;
  line-height: 1.6;
}

/* ============================================
   Utilities
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden { display: none !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ============================================
   Compress comparison
   ============================================ */
.compress-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 16px 0;
}

.compress-arrow {
  font-size: 1.5rem;
  color: var(--primary);
}

/* ========== 最近使用标签深色模式适配 ========== */
[data-theme="dark"] .recent-tool-tag {
  background: var(--gray-100) !important;
  border-color: var(--gray-200) !important;
  color: var(--gray-700) !important;
}
[data-theme="dark"] .recent-tool-tag:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* ========== 加载动画 ========== */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(15,17,23,0.4); backdrop-filter: blur(4px);
  z-index: 250; display: none; align-items: center; justify-content: center; flex-direction: column;
  gap: 16px; animation: fadeIn 0.2s ease;
}
.loading-overlay.visible { display: flex; }
.loading-spinner {
  width: 48px; height: 48px; border: 4px solid var(--gray-200);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-text { font-size: 0.9375rem; color: var(--gray-700); font-weight: 500; }

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

[data-theme="dark"] .loading-overlay { background: rgba(0,0,0,0.6); }

/* ========== 深色模式 FAQ 适配 ========== */
[data-theme="dark"] .faq-question { color: var(--gray-800); }
[data-theme="dark"] .faq-toggle { color: var(--gray-600); }

/* ============================================
   美化增强 - Hero渐变动画
   ============================================ */
.hero {
  background-size: 200% 200%;
  animation: heroGradient 8s ease infinite;
}

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

/* Hero浮动光球 */
.hero-orbs {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-orbs .orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.08;
}
.hero-orbs .orb:nth-child(1) {
  width: 300px; height: 300px; top: -80px; left: 10%;
  background: #f72585; animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orbs .orb:nth-child(2) {
  width: 250px; height: 250px; bottom: -60px; right: 15%;
  background: #4cc9f0; animation: orbFloat2 10s ease-in-out infinite;
}
.hero-orbs .orb:nth-child(3) {
  width: 200px; height: 200px; top: 30%; right: 25%;
  background: #ffd166; animation: orbFloat3 14s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, -30px) scale(1.05); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

.hero h1 {
  animation: heroFadeIn 1s ease 0.2s both;
}
.hero p {
  animation: heroFadeIn 1s ease 0.5s both;
}
.hero-badge {
  animation: heroFadeIn 1s ease 0.8s both;
}

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

/* ============================================
   美化增强 - 工具卡片3D悬停
   ============================================ */
.tool-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  perspective: 800px;
}

.tool-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tool-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px -12px rgba(67,97,238,0.2), 0 8px 20px -8px rgba(67,97,238,0.1);
  border-color: rgba(67,97,238,0.3);
}

.tool-card:hover::after {
  opacity: 1;
}

.tool-card:hover .tool-card-icon {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.tool-card-icon {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-card-title {
  transition: color 0.3s ease;
}

/* ============================================
   美化增强 - 特色区卡片
   ============================================ */
.feature-item {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-xl);
  border-color: rgba(67,97,238,0.2);
}

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

.feature-icon {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================
   美化增强 - 按钮涟漪效果
   ============================================ */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   美化增强 - 上传区域动画边框
   ============================================ */
.upload-zone {
  position: relative;
}

.upload-zone::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 300% 100%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: uploadBorderMove 3s linear infinite;
}

.upload-zone:hover::before,
.upload-zone.drag-over::before {
  opacity: 1;
}

@keyframes uploadBorderMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

.upload-zone-icon {
  animation: uploadIconBounce 2s ease-in-out infinite;
}

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

/* ============================================
   美化增强 - 进度条流光效果
   ============================================ */
.progress-fill {
  position: relative;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
  background-size: 200% 100%;
  animation: progressShine 1.5s ease infinite;
}

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

/* ============================================
   美化增强 - 滚动显示动画
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   美化增强 - FAQ展开动画增强
   ============================================ */
.faq-question {
  transition: color 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-question {
  color: var(--primary);
}

.faq-toggle {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary);
}

/* ============================================
   美化增强 - 面包屑动画
   ============================================ */
.breadcrumb a {
  position: relative;
}

.breadcrumb a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
  width: 100%;
}

/* ============================================
   美化增强 - 排行列表动画
   ============================================ */
.top-tools-row {
  animation: topToolsSlideIn 0.4s ease both;
}

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

/* ============================================
   美化增强 - 回到顶部按钮
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 136px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--gray-600);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(67,97,238,0.3);
  transform: translateY(-3px);
}

[data-theme="dark"] .back-to-top {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-600);
}
[data-theme="dark"] .back-to-top:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   美化增强 - page-header渐变动画
   ============================================ */
.page-header {
  background-size: 200% 200%;
  animation: headerGradient 10s ease infinite;
}

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

/* ============================================
   美化增强 - Skeleton骨架屏
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 16px; margin-bottom: 12px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 16px; }
.skeleton-card { height: 180px; border-radius: var(--radius-lg); }

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

/* ============================================
   美化增强 - Logo呼吸光晕
   ============================================ */
.logo-icon {
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 2px 8px rgba(67,97,238,0.25); }
  50% { box-shadow: 0 2px 16px rgba(67,97,238,0.4), 0 0 20px rgba(67,97,238,0.15); }
}

/* ============================================
   美化增强 - Footer波浪分隔
   ============================================ */
.site-footer::before {
  content: '';
  display: block;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%231a1a2e' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,30 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: cover;
  margin-top: -1px;
}

[data-theme="dark"] .site-footer::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%230a0b10' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,30 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: cover;
}

/* ============================================
   响应式设计 - 完整断点系统
   ============================================ */

/* ---- 平板 (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .options-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
}

/* ---- 小平板/大手机 (max-width: 768px) ---- */
@media (max-width: 768px) {
  :root { --max-width: 100%; }

  /* Header */
  .header-inner { height: 56px; padding: 0 12px; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 12px 20px; gap: 4px;
    border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
    max-width: 100%;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { padding: 10px 16px; width: 100%; font-size: 0.9375rem; }
  .mobile-menu-btn { display: block; }

  /* Hero */
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 1.875rem; letter-spacing: -0.5px; }
  .hero p { font-size: 1rem; }
  .hero-badge { font-size: 0.8125rem; padding: 6px 14px; }
  .hero-orbs .orb { opacity: 0.04 !important; }

  /* Page Header */
  .page-header { padding: 36px 16px 32px; }
  .page-header h1 { font-size: 1.625rem; }
  .page-header p { font-size: 0.875rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }
  .features-section { padding: 40px 16px; }
  .features-section .section-title { font-size: 1.25rem; margin-bottom: 24px; }

  /* Tools Grid */
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tools-section { padding: 40px 16px; }
  .tools-section .section-title { font-size: 1.375rem; margin-bottom: 28px; }
  .tool-card { padding: 24px 16px; gap: 8px; }
  .tool-card-icon { font-size: 1.75rem; }
  .tool-card-title { font-size: 1rem; }
  .tool-card-desc { font-size: 0.8125rem; }

  /* Search */
  .search-section { padding: 28px 16px 0; }
  .search-box input { padding: 14px 42px 14px 46px; font-size: 0.9375rem; }
  .search-tags { gap: 8px; margin-top: 12px; }
  .search-tag { padding: 5px 12px; font-size: 0.8125rem; }

  /* Tool Panel */
  .tool-panel { padding: 20px 16px; margin-bottom: 16px; }

  /* Upload Zone */
  .upload-zone { padding: 36px 16px; }
  .upload-zone-icon { font-size: 2rem; margin-bottom: 8px; }
  .upload-zone-text { font-size: 0.9375rem; }

  /* File List */
  .file-item { padding: 10px 12px; gap: 10px; }

  /* Options */
  .options-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Steps */
  .steps { gap: 6px; }
  .step-badge { padding: 5px 10px; font-size: 0.75rem; }
  .step-arrow { font-size: 0.75rem; }

  /* Result */
  .result-area { padding: 16px; }
  .result-stats { gap: 16px; }
  .compress-comparison { grid-template-columns: 1fr; gap: 12px; }
  .compress-arrow { display: none; }

  /* Buttons */
  .btn { padding: 10px 20px; font-size: 0.875rem; }
  .btn-group { gap: 10px; }

  /* SEO */
  .seo-section { padding: 40px 16px; }
  .seo-section h2 { font-size: 1.25rem; }

  /* FAQ */
  .faq-question { font-size: 0.9375rem; }
  .faq-answer { font-size: 0.875rem; }

  /* Float buttons */
  .float-toggle-group { bottom: 12px; right: 12px; }
  .theme-toggle, .accessibility-toggle { width: 44px; height: 44px; font-size: 1.1rem; }
  .elderly-badge { bottom: 124px; right: 12px; }
  .back-to-top { bottom: 124px; right: 12px; width: 36px; height: 36px; font-size: 1rem; }
  .toast-container { top: 72px; right: 12px; }

  /* Footer */
  .site-footer { padding: 32px 16px; }
  .footer-links { gap: 6px 12px; }
  .footer-links a { font-size: 0.75rem; }
  .site-footer::before { height: 40px; }
}

/* ---- 手机 (max-width: 480px) ---- */
@media (max-width: 480px) {
  /* Hero */
  .hero { padding: 40px 12px 32px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9375rem; }
  .hero-badge { margin-top: 16px; padding: 6px 12px; font-size: 0.75rem; }

  /* Page Header */
  .page-header { padding: 28px 12px 24px; }
  .page-header h1 { font-size: 1.375rem; }

  /* Features */
  .feature-item { padding: 24px 16px; }
  .feature-icon { width: 48px; height: 48px; font-size: 1.5rem; }

  /* Tools Grid */
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tools-section { padding: 32px 12px; }
  .tool-card { padding: 20px 12px; border-radius: var(--radius-md); }
  .tool-card:hover { transform: translateY(-3px) scale(1.01); }

  /* Search */
  .search-section { padding: 24px 12px 0; }
  .search-box input { padding: 12px 38px 12px 40px; font-size: 0.875rem; border-radius: var(--radius-md); }
  .search-tags { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .search-tag { flex-shrink: 0; }

  /* Upload Zone */
  .upload-zone { padding: 28px 12px; border-radius: var(--radius-md); }

  /* Options */
  .options-grid { grid-template-columns: 1fr; }

  /* Result */
  .result-stats { gap: 12px; }
  .result-stat-value { font-size: 1.25rem; }
  .result-stat-label { font-size: 0.6875rem; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.75rem; }

  /* Steps */
  .steps { flex-direction: column; align-items: flex-start; gap: 8px; }
  .step-badge { width: 100%; justify-content: center; }
  .step-arrow { display: none; }

  /* Buttons */
  .btn { padding: 12px 20px; width: 100%; justify-content: center; }
  .btn-group { flex-direction: column; }

  /* SEO */
  .seo-section { padding: 32px 12px; }
  .seo-section h2 { font-size: 1.125rem; }
  .seo-section p, .seo-section li { font-size: 0.9375rem; }

  /* Empty / Error State */
  .empty-state, .error-state { padding: 32px 16px; }
  .empty-state-icon, .error-state-icon { font-size: 2.5rem; }

  /* Footer */
  .footer-inner { padding: 0; }
  .footer-links { gap: 4px 8px; justify-content: flex-start; flex-wrap: wrap; }
  .site-footer::before { height: 30px; }
}

/* ---- 超小屏 (max-width: 360px) ---- */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.25rem; }
  .hero p { font-size: 0.875rem; }
  .tools-grid { grid-template-columns: 1fr; gap: 10px; }
  .logo { font-size: 1rem; gap: 6px; }
  .logo-icon { width: 30px; height: 30px; font-size: 0.875rem; }
}
