/* =========================================================
   专注力训练 - 全站样式表（完整修复版）
   含：工具特定样式 + 移动端修复 + 深色模式
   ========================================================= */

/* ----- 基础重置 ----- */
.top-nav-link + .top-nav-link { margin-left: 8px; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: #F9FAFB;
  color: #111827;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

.app { max-width: 960px; width: 100%; margin: 0 auto; position: relative; }

/* =========================================================
   右上角快捷导航
   ========================================================= */
.top-nav { position: absolute; top: 0; right: 0; z-index: 100; }
.top-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: #FFFFFF; border: 1px solid #E5E7EB;
  border-radius: 20px; color: #374151; text-decoration: none;
  font-size: 13px; font-weight: 600; transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.top-nav-link:hover {
  background: #4338CA; color: #FFFFFF; border-color: #4338CA;
  transform: translateY(-2px); box-shadow: 0 6px 16px -6px rgba(67, 56, 202, 0.5);
}

/* =========================================================
   首页样式
   ========================================================= */
.hero { text-align: center; padding: 64px 16px 48px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.hero-sub { font-size: 1.1rem; color: #6B7280; margin-bottom: 32px; }
.main-content { max-width: 1200px; margin: 0 auto; padding: 0 24px 20px; }

.section-title {
  font-size: 1.25rem; font-weight: 700; color: #111827;
  margin: 48px 0 24px 0; padding-left: 16px;
  border-left: 4px solid #4338CA; line-height: 1;
}

.tool-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-bottom: 24px;
}
.tool-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; background: #FFFFFF;
  border-radius: 12px; text-decoration: none; color: inherit;
  border: 1px solid #E5E7EB; transition: all 0.2s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1); border-color: #D1D5DB; }
.tool-info { flex: 1; min-width: 0; }
.tool-name { font-size: 1.05rem; font-weight: 700; color: #111827; margin-bottom: 4px; }
.tool-desc { font-size: 0.85rem; color: #6B7280; }
.tool-icon {
  font-size: 24px; flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: #F3F4F6; border-radius: 10px;
}
.tool-card.featured { border-color: #4338CA; }
.tool-card.featured .tool-icon { background: #4338CA; color: #fff; }
.tool-icon img { width: 24px; height: 24px; display: block; }

/* ----- 底部关于区 ----- */
.about-section { margin-top: 64px; padding-bottom: 48px; }
.about-box {
  background: #FFFFFF; border: 1px solid #E5E7EB;
  border-radius: 12px; padding: 32px; max-width: 900px; margin: 0 auto 24px;
}
.about-box h2 { font-size: 1.2rem; color: #111827; margin-bottom: 16px; font-weight: 700; }
.about-box p { font-size: 0.95rem; color: #4B5563; line-height: 1.7; margin-bottom: 12px; }
.about-box .highlight { background: #F8FAFC; padding: 16px; border-radius: 8px; color: #4338CA; font-size: 0.9rem; margin-top: 16px; border-left: 3px solid #4338CA; }
.footer-bottom { text-align: center; padding: 32px 0 0; font-size: 0.85rem; color: #9CA3AF; border-top: 1px solid #E5E7EB; }

/* =========================================================
   工具页通用样式
   ========================================================= */
.crumb { font-size: 13px; color: #9CA3AF; margin-bottom: 24px; font-weight: 500; }
.crumb a { color: #4338CA; text-decoration: none; }

h1 { font-size: 2rem; font-weight: 800; color: #111827; letter-spacing: -0.5px; margin-bottom: 4px; text-align: center; }
.sub { color: #6B7280; font-size: 0.95rem; margin-bottom: 24px; text-align: center; }

.level, .custom-setup, .stats, .controls { justify-content: center; display: flex; flex-wrap: wrap; }
.grid { display: grid; gap: 8px; width: 100%; max-width: 480px; margin: 24px auto; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-7 { grid-template-columns: repeat(7, 1fr); }
.grid-8 { grid-template-columns: repeat(8, 1fr); }
.grid-9 { grid-template-columns: repeat(9, 1fr); }
.grid-10 { grid-template-columns: repeat(10, 1fr); }
.grid-11 { grid-template-columns: repeat(11, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

.cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; border-radius: 8px; font-size: clamp(12px, 3.5vw, 22px);
  font-weight: 600; cursor: pointer; user-select: none; -webkit-user-select: none;
  border: 1px solid #E5E7EB; transition: all 0.1s ease; color: #374151;
}
.cell:active { transform: scale(0.95); }
.cell.done { background: #4338CA; color: #fff; border-color: #4338CA; pointer-events: none; }
.cell.wrong { background: #EF4444; color: #fff; border-color: #EF4444; }
.cell.light { background: #4338CA; color: #fff; border-color: #4338CA; }

.stats { display: flex; gap: 32px; margin: 24px 0; font-size: 14px; color: #6B7280; }
.stats b { display: block; font-size: 28px; color: #111827; font-weight: 800; margin-bottom: 4px; }

.controls { text-align: center; margin: 24px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border-radius: 8px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  margin: 6px; text-decoration: none; min-height: 44px; min-width: 44px;
}
.btn-primary { background: #111827; color: #fff; box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2); }
.btn-primary:hover { background: #1F2937; transform: translateY(-1px); }
.btn-outline { background: #FFFFFF; color: #374151; border: 1px solid #D1D5DB; }
.btn-outline:hover { background: #F9FAFB; border-color: #9CA3AF; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.level { gap: 8px; margin: 16px 0; }
.level button {
  padding: 8px 20px; border-radius: 8px; border: 1px solid #E5E7EB;
  background: #FFFFFF; color: #4B5563; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s;
}
.level button:hover { border-color: #9CA3AF; }
.level button.active { background: #4338CA; color: #fff; border-color: #4338CA; }
.level button.locked { opacity: 0.6; position: relative; cursor: not-allowed; }

.result {
  text-align: center; padding: 32px 24px; background: #FFFFFF;
  border-radius: 12px; border: 1px solid #E5E7EB; display: none;
  margin: 24px auto 0;
}
.result.show { display: block; }
.result .score { font-size: 56px; font-weight: 800; color: #111827; line-height: 1.1; margin: 12px 0; }
.result .label { font-size: 14px; color: #6B7280; font-weight: 500; }
.result .tip { font-size: 14px; color: #4B5563; margin-top: 16px; padding: 12px; background: #F9FAFB; border-radius: 8px; display: inline-block; }
.result .record { font-size: 13px; color: #9CA3AF; margin-top: 16px; padding-top: 16px; border-top: 1px solid #F3F4F6; }

/* =========================================================
   ⭐ 工具特定样式（之前误删，现已加回）
   ========================================================= */

/* Stroop 测试：彩色大字 */
.stroop-word {
  font-size: 64px;
  font-weight: 700;
  text-align: center;
  margin: 30px 0;
  letter-spacing: 4px;
}

/* Stroop 颜色按钮 */
.color-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.color-btns button {
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}
.color-btns button:hover { border-color: #4338CA; }

/* N-Back 字母大字 */
.nback-letter {
  font-size: 80px;
  font-weight: 700;
  text-align: center;
  margin: 40px 0;
  color: #4338CA;
  min-height: 100px;
}

/* 反应速度方块 */
.reaction-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  margin: 16px 0;
  background: #e0e0e0;
  color: #666;
  user-select: none;
  transition: background-color 0.1s;
}
.reaction-box.ready { background: #67c23a; color: #fff; }
.reaction-box.wait { background: #e6a23c; color: #fff; }

/* 呼吸减压圆圈 */
.breath-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  transition: all 1s ease;
  background: #4338CA;
}
.breath-circle.inhale { transform: scale(1.4); background: #4338CA; }
.breath-circle.hold { transform: scale(1.4); background: #e6a23c; }
.breath-circle.exhale { transform: scale(1); background: #67c23a; }

.breath-phase {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-top: 16px;
}

/* 倒计时遮罩（备用，主要用内联样式） */
.countdown-mask {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  font-weight: 700;
  color: #409EFF;
  z-index: 99999;
}

/* =========================================================
   文章区：杂志风排版
   ========================================================= */
.article {
  background: #FFFFFF; border-radius: 16px; padding: 48px 56px;
  border: 1px solid #E5E7EB; box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.05); color: #374151;
  margin-top: 48px;
}
.article h2 {
  font-size: 1.35rem; color: #111827; margin-top: 48px; margin-bottom: 20px;
  font-weight: 800; position: relative; padding-left: 20px; line-height: 1.4;
}
.article h2:first-child { margin-top: 0; }
.article h2::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, #6366F1 0%, #4338CA 100%);
}
.article p { font-size: 15.5px; color: #4B5563; line-height: 1.9; margin-bottom: 20px; }
.article h3 { font-size: 1.1rem; color: #1F2937; margin: 28px 0 12px; font-weight: 700; }
.article ul, .article ol { margin: 16px 0 24px 0; padding-left: 20px; }
.article ul li { list-style: none; position: relative; padding-left: 24px; margin-bottom: 12px; font-size: 15px; line-height: 1.9; }
.article ul li::before { content: "•"; position: absolute; left: 0; color: #4338CA; font-size: 24px; line-height: 1; top: 2px; }
.article .highlight {
  background: #F8FAFC; padding: 20px 24px; border-radius: 12px;
  color: #4338CA; font-size: 15px; margin: 32px 0;
  border: 1px solid #E0E7FF; border-left: 4px solid #4338CA;
}

/* 相关训练 */
.related {
  margin-top: 32px; padding-top: 24px; border-top: 1px dashed #E5E7EB;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.related a.tool-card { width: 100%; }
.related a.tool-card .tool-info { flex: 1; min-width: 0; }
.related a.tool-card .tool-icon { width: 40px; height: 40px; }
.related a.tool-card .tool-icon img { width: 20px; height: 20px; }

/* =========================================================
   友情链接
   ========================================================= */
.friend-links {
  margin-top: 48px; padding: 28px 24px; background: #FFFFFF;
  border: 1px solid #E5E7EB; border-radius: 16px; text-align: center;
}
.friend-links-title { font-size: 13px; color: #9CA3AF; font-weight: 600; margin-bottom: 16px; letter-spacing: 2px; text-transform: uppercase; }
.friend-links-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.friend-links-list a {
  display: inline-block; padding: 8px 18px; background: #F3F4F6;
  color: #4B5563; text-decoration: none; border-radius: 20px;
  font-size: 13px; font-weight: 500; transition: all 0.2s ease;
  border: 1px solid transparent;
}
.friend-links-list a:hover { background: #4338CA; color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 6px 16px -6px rgba(67, 56, 202, 0.5); }

/* =========================================================
   深色模式按钮 / 回到顶部
   ========================================================= */
.theme-toggle {
  position: fixed; bottom: 90px; right: 30px; width: 44px; height: 44px;
  border-radius: 10px; background: #FFFFFF; color: #374151; border: 1px solid #E5E7EB;
  font-size: 20px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }

.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  border-radius: 10px; background: #111827; color: #fff; border: none;
  font-size: 18px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease; z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   深色模式
   ========================================================= */
body.dark { background-color: #0F172A; color: #F8FAFC; }
body.dark h1 { color: #F8FAFC; }
body.dark .sub { color: #94A3B8; }
body.dark .crumb { color: #64748B; }
body.dark .crumb a { color: #818CF8; }
body.dark .section-title { color: #E2E8F0; border-left-color: #6366F1; }

body.dark .top-nav-link { background: #1E293B; border-color: #334155; color: #E2E8F0; }
body.dark .top-nav-link:hover { background: #6366F1; border-color: #6366F1; color: #FFFFFF; }

body.dark .tool-card { background: #1E293B; border-color: #334155; }
body.dark .tool-card:hover { border-color: #475569; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
body.dark .tool-card.featured { border-color: #6366F1; }
body.dark .tool-card.featured .tool-icon { background: #6366F1; }
body.dark .tool-icon { background: #334155; }
body.dark .tool-name { color: #F8FAFC; }
body.dark .tool-desc { color: #94A3B8; }

body.dark .about-box { background: #1E293B; border-color: #334155; }
body.dark .about-box h2 { color: #F8FAFC; }
body.dark .about-box p { color: #94A3B8; }
body.dark .about-box .highlight { background: #0F172A; color: #818CF8; border-left-color: #6366F1; }
body.dark .footer-bottom { color: #64748B; border-top-color: #334155; }

body.dark .cell { background: #1E293B; border-color: #334155; color: #E2E8F0; }
body.dark .cell.done, body.dark .cell.light { background: #6366F1; border-color: #6366F1; color: #fff; }

/* 工具特定样式 - 深色模式 */
body.dark .color-btns button { background: #1E293B; border-color: #334155; }
body.dark .color-btns button:hover { border-color: #818CF8; }
body.dark .reaction-box { background: #334155; color: #94A3B8; }
body.dark .breath-circle { background: #6366F1; }
body.dark .breath-phase { color: #94A3B8; }

body.dark .article { background: #1E293B; border-color: #334155; color: #94A3B8; box-shadow: none; }
body.dark .article h2 { color: #F8FAFC; }
body.dark .article h3 { color: #E2E8F0; }
body.dark .article p, body.dark .article li { color: #94A3B8; }
body.dark .article ul li::before { color: #818CF8; }
body.dark .article .highlight { background: #0F172A; color: #818CF8; border-color: #334155; border-left-color: #6366F1; }
body.dark .related { border-top-color: #334155; }

body.dark .btn-primary { background: #6366F1; color: #fff; box-shadow: none; }
body.dark .btn-primary:hover { background: #4F46E5; }
body.dark .btn-outline { background: #1E293B; color: #E2E8F0; border-color: #334155; }
body.dark .btn-outline:hover { background: #334155; border-color: #475569; }

body.dark .level button { background: #1E293B; color: #94A3B8; border-color: #334155; }
body.dark .level button.active { background: #6366F1; border-color: #6366F1; color: #fff; }

body.dark .result { background: #1E293B; border-color: #334155; }
body.dark .result .score { color: #F8FAFC; }
body.dark .result .tip { background: #0F172A; color: #94A3B8; }
body.dark .result .record { border-top-color: #334155; color: #64748B; }

body.dark .back-to-top { background: #6366F1; }
body.dark .theme-toggle { background: #1E293B; color: #F8FAFC; border-color: #334155; }
body.dark .theme-toggle:hover { border-color: #475569; }

body.dark .friend-links { background: #1E293B; border-color: #334155; }
body.dark .friend-links-title { color: #64748B; }
body.dark .friend-links-list a { background: #334155; color: #CBD5E1; }
body.dark .friend-links-list a:hover { background: #6366F1; color: #FFFFFF; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.5); }

/* =========================================================
   桌面端适配（默认）
   ========================================================= */
@media (max-width: 768px) {
  .hero { padding: 40px 16px 24px; }
  .hero h1 { font-size: 1.8rem; }
  .main-content { padding: 0 16px 20px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tool-card { padding: 16px; gap: 12px; }
  .tool-icon { width: 40px; height: 40px; }
  .tool-name { font-size: 0.95rem; }
  .tool-desc { font-size: 0.75rem; }
  .about-box { padding: 24px; }
  .article { padding: 32px 24px; margin-top: 32px; }
  .article h2 { margin-top: 36px; font-size: 1.25rem; }
  .article p { font-size: 15px; }
  .stats { gap: 20px; }
  .stats b { font-size: 24px; }
  .related { grid-template-columns: 1fr 1fr; gap: 12px; }
  .theme-toggle { bottom: 80px; right: 20px; width: 40px; height: 40px; font-size: 18px; }
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 16px; }
  .friend-links { margin-top: 32px; padding: 20px 16px; border-radius: 12px; }
  .friend-links-list a { padding: 6px 14px; font-size: 12px; }
  .top-nav { top: 0; right: 0; }
  .top-nav-link { padding: 6px 14px; font-size: 12px; }
}

/* =========================================================
   手机端核心修复补丁
   ========================================================= */
@media (max-width: 1023px) {
  body {
    display: block !important;
    padding: 16px 12px !important;
    min-height: auto !important;
  }
  .app {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative;
  }
  .grid {
    max-width: 100% !important;
    width: 100% !important;
    margin: 16px 0 !important;
    gap: 6px !important;
  }
  .cell {
    min-width: 36px;
    min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
  }
  .btn, .level button, .tool-card, .related a, .theme-toggle, .back-to-top, .color-btns button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .level { gap: 8px; row-gap: 10px; }
  .level button { padding: 10px 18px; font-size: 14px; }
  h1 { font-size: 1.6rem; margin-bottom: 8px; }
  .sub { font-size: 0.9rem; margin-bottom: 16px; }
  .stats { gap: 20px; margin: 14px 0; }
  .stats b { font-size: 22px; }
  .custom-setup { max-width: 100% !important; margin: 12px 0 !important; }
  .finish-panel { max-width: 100% !important; margin: 20px 0 !important; padding: 32px 20px !important; border-radius: 16px !important; }
  .finish-panel .finish-avg { font-size: 48px; }

  /* 工具特定样式手机端适配 */
  .stroop-word { font-size: 56px; letter-spacing: 2px; margin: 24px 0; }
  .color-btns { gap: 8px; margin: 16px 0; }
  .color-btns button { padding: 10px 16px; font-size: 14px; }
  .nback-letter { font-size: 64px; margin: 30px 0; min-height: 80px; }
  .reaction-box { height: 160px; font-size: 18px; }
  .breath-circle { width: 160px; height: 160px; font-size: 16px; }
}

@media (max-width: 400px) {
  body { padding: 12px 10px !important; }
  .grid { gap: 5px !important; }
  .cell { min-width: 30px; min-height: 30px; font-size: clamp(11px, 4vw, 18px) !important; }
  .grid-7 .cell, .grid-8 .cell, .grid-9 .cell, .grid-10 .cell {
    min-width: 26px; min-height: 26px; font-size: 11px !important;
  }
  h1 { font-size: 1.4rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .btn { padding: 10px 20px; font-size: 14px; }
  .article { padding: 24px 16px; }
  .related { grid-template-columns: 1fr; }
  .stroop-word { font-size: 48px; }
  .color-btns button { padding: 8px 14px; font-size: 13px; }
  .nback-letter { font-size: 56px; }
}

@media (max-width: 360px) {
  .grid-8, .grid-9, .grid-10 { gap: 4px !important; }
  .grid-8 .cell, .grid-9 .cell, .grid-10 .cell {
    min-width: 24px; min-height: 24px; font-size: 10px !important; border-radius: 6px;
  }
}

/* =========================================================
   按钮点击 / 对错闪色反馈
   ========================================================= */
.flash-tap {
  background: #E5E7EB !important;
  transition: background-color 0.08s !important;
}
.flash-correct {
  background: #10B981 !important;
  color: #fff !important;
  border-color: #10B981 !important;
  transition: all 0.08s !important;
}
.flash-wrong {
  background: #EF4444 !important;
  color: #fff !important;
  border-color: #EF4444 !important;
  transition: all 0.08s !important;
}
body.dark .flash-tap { background: #475569 !important; }
body.dark .flash-correct { background: #10B981 !important; border-color: #10B981 !important; }
body.dark .flash-wrong { background: #EF4444 !important; border-color: #EF4444 !important; }


/* =========================================================
   工具页顶部"使用效果"卡片
   ========================================================= */
/* =========================================================
   工具页顶部"使用效果"卡片
   ========================================================= */
.tool-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 20px auto 24px;
  padding: 0 12px;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px 16px 18px;
  text-align: left;
  min-width: 0;
}

.benefit-icon {
  font-size: 24px;
  line-height: 1;
}

.benefit-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
}

.benefit-text strong {
  font-size: 14px;
  color: #111827;
  font-weight: 700;
  margin-bottom: 3px;
}

.benefit-text span {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
}

body.dark .benefit-item {
  background: #1E293B;
  border-color: #334155;
}
body.dark .benefit-text strong { color: #F8FAFC; }
body.dark .benefit-text span { color: #94A3B8; }

/* 平板及以下：回退到纵向堆叠 */
@media (max-width: 768px) {
  .tool-benefits {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 16px auto 20px;
    gap: 8px;
    padding: 0 8px;
  }
  .benefit-item {
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    gap: 12px;
  }
  .benefit-icon { font-size: 22px; }
}

@media (max-width: 480px) {
  .benefit-item { padding: 10px 12px; gap: 10px; }
  .benefit-icon { font-size: 20px; }
  .benefit-text strong { font-size: 13px; }
  .benefit-text span { font-size: 12px; }
}