﻿/* 全局CSS变量定义（核心，所有页面样式的基础，不能删） */
:root {
  /* 主色调 - 更现代的蓝色系 */
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-bg: #eff6ff;
  /* 辅助色 - 更丰富的调色板 */
  --secondary: #64748b;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --accent: #8b5cf6;
  --accent-light: #ede9fe;
  /* 全局渐变变量（统一管理，一键修改主题） */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-primary-dark: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-success: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #475569 100%);
  --gradient-warning: linear-gradient(135deg, var(--warning-light) 0%, var(--warning) 100%);
  /* 【优化新增】导航栏专属渐变 */
  --gradient-nav: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
  /* 渐变色系 */
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --aurora-1: #ff6b6b;
  --aurora-2: #4ecdc4;
  --aurora-3: #45b7d1;
  /* 中性色 */
  --text-title: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-disabled: #94a3b8;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --bg-dark: #0f172a;
  /* 间距 - 微调更精致 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  /* 圆角 - 更现代 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  /* 阴影 - 更柔和层次 */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.12), 0 12px 24px -6px rgba(0, 0, 0, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  /* 动画 - 更流畅 */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  /* 布局 */
  --container-max-width: 1200px;
  --nav-height: 72px;
}
/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  /* 优化背景渐变，和导航栏更呼应 */
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f0f4f8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Aurora背景效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 60%, rgba(78, 205, 196, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}
/* 导航切换按钮容器 */
.nav-toggle-wrapper {
  position: relative;
}
/* 导航切换按钮样式 */
.nav-toggle-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 101;
}
.nav-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.nav-toggle-btn.active svg {
  transform: rotate(180deg);
}
.nav-toggle-btn svg {
  transition: transform var(--transition-fast);
}
/* 导航菜单样式 */
.nav-menu {
  display: none;
  flex-direction: column;
  width: 240px;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 0;
  position: fixed;
  right: 16px;
  top: calc(var(--nav-height) + 8px);
  z-index: 99999;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition-normal);
}
.nav-menu.show {
  display: flex;
  max-height: 70vh;
  opacity: 1;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.nav-menu .nav-link {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #0f172a !important;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-menu .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(59, 130, 246, 0.08);
}
/* 【优化】导航栏样式 - 品牌渐变毛玻璃 */
nav {
  background: var(--gradient-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: nowrap;
  width: 100%;
  position: relative;
}
/* 【优化】logo改为白色，在渐变导航上更醒目 */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  letter-spacing: -0.02em;
}
.logo:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}
.logo svg {
  stroke: #ffffff;
}
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all var(--transition-fast);
}
.icon-white {
  color: #ffffff;
}
.icon-primary {
  color: var(--primary);
}

/* 【优化】导航链接改为白色，hover效果更协调 */
.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: all var(--transition-fast);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 60%;
}
/* 主容器样式 */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}
/* 【优化】标题样式 - 字号微调，排版更合理 */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-title) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.02em;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}
.page-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-6);
  line-height: 1.8;
}
/* 【优化】按钮容器，实现居中对齐 */
.jump-btn-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-10);
}
.jump-to-tools {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.jump-to-tools::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;
}
.jump-to-tools:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.jump-to-tools:hover::before {
  left: 100%;
}
h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: var(--space-6);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  letter-spacing: -0.01em;
}
h2 svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  padding: var(--space-2);
  border-radius: var(--radius-md);
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: var(--space-3);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}
.about-title {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
}
/* 卡片样式 */
.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
}
.card:hover::before {
  opacity: 1;
}
.card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}
.card p:last-child {
  margin-bottom: 0;
}
/* 按钮样式 */
.btn-group {
  display: flex;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  flex-wrap: wrap;
}
button {
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
button:first-of-type {
  background: var(--gradient-primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
button:first-of-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
button:first-of-type:active {
  transform: translateY(0);
}
.btn-success {
  background: var(--gradient-success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--border-medium);
  color: var(--text-primary);
  font-weight: 500;
}
.btn-outline:hover {
  background: var(--bg-white);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-print {
  background: var(--gradient-secondary);
  color: #fff;
}
.btn-print:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
/* 结果展示样式 */
.result {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, rgba(237, 233, 254, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  font-size: 1.05rem;
  line-height: 2;
  display: none;
  box-shadow: var(--shadow-md);
}
.result strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.tax-note {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.8) 0%, rgba(254, 240, 138, 0.6) 100%);
  backdrop-filter: blur(8px);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
/* 工具网格样式 - 优化间距，适配首屏展示 */
.tools-nav {
  margin: var(--space-8) 0;
  position: relative;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
  width: 100%;
}
/* 工具卡片样式 */
.tool-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}
.tool-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(59, 130, 246, 0.3);
}
.tool-card:hover::before {
  transform: scaleX(1);
}
.tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
  color: var(--text-title);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.tool-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
  flex: 1;
  line-height: 1.7;
}
.tool-card-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}
.tool-inner-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.tool-inner-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}
.tool-inner-link:hover {
  color: var(--primary-dark);
  gap: var(--space-2);
}
.tool-inner-link:hover::after {
  transform: translateX(4px);
}
/* 高亮卡片 */
.tool-card.highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid rgba(59, 130, 246, 0.2);
}
.tool-card.highlight::after {
  content: '★ 热门';
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
/* 文章卡片样式 */
.article-card {
  display: block;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform var(--transition-normal);
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: rgba(59, 130, 246, 0.2);
}
.article-card:hover::before {
  transform: scaleY(1);
}
.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
  color: var(--text-title);
  font-weight: 600;
}
.article-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
/* 展开按钮 */
.toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--border-medium);
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.toggle-btn:hover {
  background: var(--bg-white);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.article-hidden {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.article-hidden.show {
  display: block;
  opacity: 1;
}
/* 列表样式 */
.advantage-list {
  padding-left: 0;
  margin: var(--space-4) 0;
  list-style: none;
}
.advantage-list li {
  margin-bottom: var(--space-4);
  line-height: 1.8;
  padding-left: var(--space-8);
  position: relative;
}
.advantage-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--gradient-success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.advantage-list li strong {
  color: var(--text-title);
  font-weight: 700;
}
.faq-item {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.faq-item h3::before {
  content: 'Q';
  background: var(--gradient-primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item p {
  color: var(--text-secondary);
  padding-left: var(--space-8);
  line-height: 1.7;
}
/* 页脚样式 */
.footer-links {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-10) var(--space-6);
  margin-top: auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-links::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.footer-links nav {
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  position: static;
  margin-bottom: var(--space-4);
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 0 var(--space-3);
  transition: all var(--transition-fast);
  font-weight: 500;
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width var(--transition-fast);
}
.footer-links a:hover {
  color: #fff;
}
.footer-links a:hover::after {
  width: 100%;
}
.footer-links p {
  margin-top: var(--space-4);
  font-size: 0.875rem;
  opacity: 0.8;
}
/* Cookie弹窗样式 - Glassmorphism */
.cookie-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: var(--space-6);
  max-width: 900px;
  width: 95%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  transition: all var(--transition-normal);
}
.cookie-popup.show {
  transform: translateX(-50%) translateY(0);
}
.cookie-content h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
  color: var(--text-title);
}
.cookie-content h3 svg {
  background: var(--gradient-warning);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--warning);
}
.cookie-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.cookie-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
.cookie-content a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}
.cookie-content a:hover::after {
  transform: scaleX(1);
}
.cookie-buttons {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
  white-space: nowrap;
}
#acceptCookies {
  background: var(--gradient-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
#acceptCookies:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
#rejectCookies {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--border-medium);
  color: var(--text-secondary);
  font-weight: 600;
}
#rejectCookies:hover {
  background: var(--bg-white);
  border-color: var(--danger);
  color: var(--danger);
}
/* 打印样式 */
@media print {
  nav, .btn-group, .tools-nav, .footer-links, .cookie-popup, .back-link, .hamburger-btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .container {
    padding: 20px;
    max-width: 100%;
  }
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    background: #fff;
  }
  .result {
    border: 1px solid #2563eb;
    break-inside: avoid;
    background: #fff;
  }
  h1, h2, h3, h4 {
    color: #000;
    break-after: avoid;
    background: none;
    -webkit-text-fill-color: #000;
  }
}
/* 渐变文字动画效果 */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* 悬浮粒子效果（装饰性） */
@media (min-width: 1024px) {
  .tools-nav::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    pointer-events: none;
    z-index: -1;
  }
}
/* 响应式样式适配 */
@media (max-width: 1200px) {
  .nav-container {
    height: var(--nav-height);
    padding: 0 var(--space-4);
  }
  .cookie-popup {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  .cookie-buttons {
    justify-content: flex-end;
  }
  h1 {
    font-size: 2.25rem;
  }
}
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.625rem;
  }
  .container {
    padding: var(--space-8) var(--space-5);
  }
}
@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }
  .nav-menu {
    width: calc(100vw - 32px);
    max-width: 260px;
    right: 16px;
    top: calc(var(--nav-height) + 8px);
    z-index: 99999;
  }
  .container {
    padding: var(--space-6) var(--space-4);
  }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .btn-group {
    width: 100%;
  }
  button {
    flex: 1;
    width: 100%;
  }
  input[type="number"], input[type="text"], textarea, select {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
    box-sizing: border-box;
  }
  h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
  }
  h2 {
    font-size: 1.375rem;
    margin-bottom: var(--space-4);
  }
  .card {
    padding: var(--space-5);
    margin-bottom: var(--space-5);
  }
  .result {
    padding: var(--space-4);
    font-size: 0.95rem;
  }
  .cookie-popup {
    width: 92%;
    padding: var(--space-4);
    bottom: 12px;
  }
  .tool-card {
    min-height: 180px;
    padding: var(--space-5);
  }
  .advantage-list li {
    padding-left: var(--space-6);
  }
  .advantage-list li::before {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
  }
  button {
    width: 100%;
    justify-content: center;
  }
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  .cookie-buttons button {
    width: 100%;
    justify-content: center;
  }
  .tool-card.highlight::after {
    font-size: 0.7rem;
    padding: var(--space-1) var(--space-2);
  }
  h1 {
    font-size: 1.5rem;
  }
  .page-desc {
    font-size: 1rem;
  }
  .jump-to-tools {
    padding: var(--space-3) var(--space-5);
    font-size: 0.9rem;
  }
}
