/* ========== CSS变量 ========== */
:root {
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --accent: #ff6b35;
  --accent-purple: #a855f7;
  --bg-dark: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --bg-section: #0f1424;
  --text-primary: #e8ecf1;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: #1e293b;
  --border-light: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #f59e0b 100%);
  --gradient-purple: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  --gradient-card: linear-gradient(145deg, #111827 0%, #1a2332 100%);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景网格 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  pointer-events: none;
  z-index: -1;
}

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

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

/* ========== 顶部导航 ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
}

.nav-cta {
  background: var(--gradient-primary);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  box-shadow: var(--shadow-glow);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========== 面包屑导航 ========== */
.breadcrumb-section {
  padding: 100px 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.breadcrumb .separator {
  color: var(--text-muted);
  font-size: 12px;
}

.breadcrumb .current {
  color: var(--primary);
  font-weight: 500;
}

/* ========== 工具详情头部 ========== */
.tool-header {
  padding: 20px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-header-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.tool-header-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tool-icon {
  width: 140px;
  height: 140px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: block;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-elevated);
  position: relative;
  z-index: 1;
}

.tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-info { position: relative; z-index: 1; }

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 16px;
}

.tool-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.tool-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.tool-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.tool-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.tool-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.tool-meta-item .label { color: var(--text-secondary); font-weight: 500; }
.tool-meta-item .value { color: var(--text-primary); }

.tool-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.btn-download-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-glow);
  text-decoration: none;
  min-width: 200px;
}

.btn-download-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--primary);
}

/* ========== 主内容区 ========== */
.main-content {
  padding: 0 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ========== 左侧内容 ========== */
.content-left { min-width: 0; }

/* 区块通用 */
.section-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title .title-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* 功能特性网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.25s;
}

.feature-item:hover {
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.feature-item .item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-item .item-icon.blue { background: rgba(0, 212, 255, 0.12); }
.feature-item .item-icon.orange { background: rgba(255, 107, 53, 0.12); }
.feature-item .item-icon.purple { background: rgba(168, 85, 247, 0.12); }
.feature-item .item-icon.green { background: rgba(16, 185, 129, 0.12); }
.feature-item .item-icon.yellow { background: rgba(245, 158, 11, 0.12); }
.feature-item .item-icon.red { background: rgba(239, 68, 68, 0.12); }

.feature-item .item-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-item .item-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 截图展示 */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.screenshot-item {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a2332 0%, #111827 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: block;
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.screenshot-item:hover {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.screenshot-item .ss-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.screenshot-item .ss-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-item .ss-label {
  font-size: 13px;
  color: var(--text-muted);
}

.screenshot-item .ss-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-item:hover .ss-overlay {
  opacity: 1;
}

.ss-overlay span {
  background: var(--gradient-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
}

/* 使用教程 */
.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tutorial-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.tutorial-step:last-child { border-bottom: none; padding-bottom: 0; }
.tutorial-step:first-child { padding-top: 0; }

.step-number {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.step-content { flex: 1; }

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-content code {
  display: inline-block;
  background: rgba(0, 212, 255, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.15);
}

/* 更新日志 */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.changelog-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.changelog-version {
  min-width: 80px;
  text-align: center;
}

.changelog-version .ver {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.changelog-version .date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.changelog-content { flex: 1; }

.changelog-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-content li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.changelog-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.changelog-content li.new { color: var(--success); }
.changelog-content li.fix { color: var(--warning); }
.changelog-content li.opt { color: var(--accent-purple); }

/* ========== 右侧边栏 ========== */
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sidebar-card .card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 文件信息 */
.file-info { display: flex; flex-direction: column; gap: 12px; }

.file-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.file-info-row:last-child { border-bottom: none; }

.file-info-row .label { color: var(--text-muted); }
.file-info-row .value { color: var(--text-primary); font-weight: 500; }

.file-info-row .value.good { color: var(--success); }

/* 下载按钮 */
.sidebar-download {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-glow);
  text-decoration: none;
  margin-top: 8px;
}

.sidebar-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.5);
  color: #fff;
}

/* 评分 */
.rating-display {
  text-align: center;
  padding: 12px 0;
}

.rating-score {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.rating-stars {
  font-size: 20px;
  margin: 8px 0;
  letter-spacing: 2px;
}

.rating-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* 标签 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  background: rgba(0, 212, 255, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  transition: all 0.2s;
  cursor: default;
}

.tag:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--primary);
}

/* 相关推荐 */
.related-list { display: flex; flex-direction: column; gap: 12px; }

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}

.related-item:hover {
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateX(4px);
}

.related-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.related-icon.blue { background: rgba(0, 212, 255, 0.12); }
.related-icon.orange { background: rgba(255, 107, 53, 0.12); }
.related-icon.purple { background: rgba(168, 85, 247, 0.12); }
.related-icon.green { background: rgba(16, 185, 129, 0.12); }

.related-text { flex: 1; min-width: 0; }

.related-text h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== 评论区 ========== */
.comments-section {
  padding: 0 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.comment-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.comment-form textarea {
  resize: vertical;
  min-height: 100px;
  margin-bottom: 12px;
}

.comment-form button {
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.comment-form button:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.comment-list { display: flex; flex-direction: column; gap: 16px; }

.comment-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.comment-body { flex: 1; }

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-date {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-rating {
  font-size: 13px;
  color: var(--warning);
}

.comment-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== 底部 ========== */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* ========== 回到顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.5);
}

/* ========== 下载弹窗 ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(165deg, #131b2c 0%, #0f1424 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 32px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.08);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.modal-body input[type="text"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 42px 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 1px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-body input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.modal-body input[type="text"]::placeholder {
  color: var(--text-muted);
  font-family: inherit;
  letter-spacing: normal;
}

.modal-body input[type="text"].input-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  animation: inputShake 0.5s ease;
}

.modal-body input[type="text"].input-success {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

/* 输入框包裹器 */
.input-wrapper {
  position: relative;
}

/* 输入框右侧状态图标 */
.input-status {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.input-status.visible {
  opacity: 1;
}

/* 验证进度区域 */
.verify-progress {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  animation: fadeInUp 0.3s ease;
}

.verify-progress.active {
  display: flex;
}

.verify-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.verify-step.active {
  color: var(--primary);
}

.verify-step.done {
  color: var(--success);
}

.verify-step.error {
  color: var(--danger);
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: all 0.3s;
  flex-shrink: 0;
}

.verify-step.active .step-dot {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  animation: pulse 1.5s infinite;
}

.verify-step.done .step-dot {
  background: var(--success);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.verify-step.error .step-dot {
  background: var(--danger);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.step-text {
  font-weight: 500;
}

/* 进度条 */
.progress-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* 按钮 loading 状态 */
.modal-buy-btn {
  position: relative;
  overflow: hidden;
}

.modal-buy-btn .btn-text {
  display: inline;
  transition: opacity 0.2s;
}

.modal-buy-btn .btn-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-buy-btn.loading .btn-text {
  display: none;
}

.modal-buy-btn.loading .btn-loader {
  display: inline-flex;
}

.modal-buy-btn.loading {
  opacity: 0.85;
  cursor: not-allowed;
}

/* 加载旋转动画 */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* 输入框抖动动画（增强版） */
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-10px); }
  20% { transform: translateX(10px); }
  30% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  50% { transform: translateX(-5px); }
  60% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* 淡入上滑动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 提示文字动画 */
.modal-tip {
  min-height: 22px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.3s;
  opacity: 0;
  transform: translateY(-4px);
}

.modal-tip.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-tip.error {
  color: var(--danger);
}

.modal-tip.success {
  color: var(--success);
}

.modal-tip.info {
  color: var(--primary);
}

.modal-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-glow);
  min-height: 48px;
}

.modal-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.5);
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--text-muted);
  font-size: 12px;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.modal-buy-link {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(168, 85, 247, 0.08);
  color: var(--accent-purple);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(168, 85, 247, 0.2);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.modal-buy-link:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.modal-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.modal-footer a {
  color: var(--primary);
  font-weight: 600;
  margin-left: 4px;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .tool-header-card {
    grid-template-columns: 160px 1fr;
    gap: 24px;
    padding: 36px;
  }
  .tool-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
  }
  .main-content {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; }
  .nav-toggle { display: flex; }
  .breadcrumb-section { padding: 90px 20px 16px; }
  .tool-header { padding: 16px 20px 40px; }
  .tool-header-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 20px;
  }
  .tool-icon { margin: 0 auto; width: 100px; height: 100px; display: block; overflow: hidden; }
  .tool-meta { justify-content: center; }
  .tool-actions { flex-direction: column; }
  .main-content { padding: 0 20px 40px; }
  .section-block { padding: 24px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-gallery { grid-template-columns: 1fr; }
  .tutorial-step { flex-direction: column; gap: 12px; }
  .comment-form .form-row { grid-template-columns: 1fr; }
  .comments-section { padding: 0 20px 40px; }
  .footer { padding: 40px 20px 20px; }
  .footer-content { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .modal-box { padding: 32px 20px 20px; }
}

@media (max-width: 480px) {
  .tool-title { font-size: 26px; }
  .tool-meta { gap: 12px; }
  .section-title { font-size: 18px; }
  .changelog-item { flex-direction: column; gap: 12px; }
  .back-to-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}
</style>