/* =============================================================
   首页专用样式（仅作用于 index.html）
   -------------------------------------------------------------
   本文件只负责「首屏到页脚之间」的中间内容区排版：
     Hero（左文案 + 右广告占位）→ 4 特性条 → 广告位 → 工具箱
     → 广告位 → 精选教程 → 热门精选
   顶部导航、页脚、日夜主题分别由 header.css / footer.css / vars.css
   管理，此处不涉及；广告占位基础样式来自共享的 ads.css。
   断点：≥1200 桌面 / 992-1199 小桌面 / 768-991 平板
         / 576-767 大屏手机 / ≤575 手机 / ≤380 超小屏
   ============================================================= */

/* ===== 通用区块节奏 =====
   各区块统一 72px 上下内边距；广告位区块自身 padding 为 0，
   其上下留白由相邻区块提供——因此 hero 下内边距与区块内边距保持一致，
   广告位左右、上下间距才是对称的（改一处时请一起改）。 */
.tools-section, .tutorial-section, .hot-picks { padding: 72px 0; }

/* ===== 区块标题（统一左对齐 + 蓝色竖条） ===== */
.section-heading { text-align: left; margin-bottom: 44px; padding: 0; }
.section-title {
    font-size: clamp(1.5rem, 2.7vw, 2.05rem); font-weight: 800; color: var(--dark);
    margin: 0 0 12px; text-decoration: none; border: none; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 12px; line-height: 1.3;
}
.section-sub { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin: 0; }

/* 标题前的蓝色竖条 */
.title-dot {
    display: inline-block; width: 5px; height: 1em; border-radius: 3px;
    background: var(--primary); flex-shrink: 0;
}

/* =============================================================
   Hero：左文案 + 右广告占位
   ============================================================= */
.hero { position: relative; padding: 72px 0; overflow: hidden; text-align: left; }
.hero-bg-shapes .shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.45; }
.s1 { width: 420px; height: 420px; background: #dbeafe; top: -120px; right: -90px; }
.s2 { width: 320px; height: 320px; background: #eff6ff; bottom: -80px; left: -70px; }

.hero-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px; align-items: stretch;
}
.hero-content { min-width: 0; align-self: center; }

.badge-top {
    display: inline-block; padding: 5px 14px;
    background: var(--primary-light); color: var(--primary);
    font-size: 0.78rem; font-weight: 700; border-radius: 99px;
    margin-bottom: 20px; letter-spacing: 2px;
}
.hero h1 {
    font-size: clamp(1.85rem, 3.4vw, 3rem); font-weight: 900;
    line-height: 1.2; margin: 0 0 22px; color: var(--dark);
}
.text-gradient { background: linear-gradient(90deg, var(--primary), #00a2ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="dark"] .text-gradient { background: linear-gradient(90deg, #5a8aff, #b47aff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc {
    max-width: 620px; margin: 0 0 34px;
    font-size: 1.05rem; color: var(--text-muted); line-height: 1.75;
}

/* Hero 行动按钮组 */
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.main-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--primary); color: #fff; text-decoration: none;
    padding: 15px 32px; border-radius: var(--radius-full);
    font-size: 1.05rem; font-weight: 700; white-space: nowrap;
    transition: var(--transition); border: none; cursor: pointer;
    box-shadow: 0 12px 28px rgba(0,82,255,0.22);
}
.main-cta:hover { transform: translateY(-3px); background: var(--primary-deep); box-shadow: 0 24px 48px rgba(0,82,255,0.32); }
.cta-arrow { transition: transform 0.3s ease; }
.main-cta:hover .cta-arrow { transform: translateX(4px); }

.cta-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 28px; border-radius: var(--radius-full);
    border: 1.5px solid var(--border); color: var(--text-main);
    text-decoration: none; font-size: 1rem; font-weight: 600;
    background: var(--card-bg); transition: var(--transition); white-space: nowrap;
}
.cta-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }

/* =============================================================
   广告位（占位框）
   基础样式来自共享 ads.css（.ad-slot / .ad-tag），
   这里只补首页需要的尺寸变体；接入 AdSense 时把 <ins> 放进 .ad-slot 即可。
   ============================================================= */
/* 注意：ads.css 在 index.html 中位于本文件之后，
   同优先级的选择器会被它覆盖，因此这里一律写成 .ad-slot.xxx 提高优先级。 */

/* 顶部广告位：桌面端由 .hero-inner 的 align-items:stretch 自动与左侧文案等高，
   左右两栏因此上下齐平、视觉对称；堆叠布局下退化为固定高度（见各断点）。 */
.ad-slot.ad-slot-hero { width: 100%; height: auto; min-height: 260px; }

/* 横幅广告位：统一 160px 高。
   区块自带对称上下内边距，让虚线占位框与上下区块背景色交界处留出呼吸感；
   上下总间距 = 相邻区块 padding + 本区块 padding，两侧恒等，故始终对称。 */
.ad-banner-section { padding: 32px 0; }
.ad-slot.ad-slot-banner { width: 100%; height: 160px; }

/* 占位框与站点卡片同圆角；角标稍向内缩，避免贴边显得局促 */
.ad-slot.ad-slot-hero,
.ad-slot.ad-slot-banner { border-radius: var(--radius-lg); }
.ad-slot.ad-slot-hero .ad-tag,
.ad-slot.ad-slot-banner .ad-tag { top: 10px; right: 12px; }

/* =============================================================
   Hero 特性条（4 项，与容器同宽）
   ============================================================= */
.hero-features {
    list-style: none; margin: 56px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.hero-feature {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-gray); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 16px 18px;
    text-align: left; transition: var(--transition);
}
.hero-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.hf-icon {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary);
}
.hf-icon svg { width: 20px; height: 20px; }
.hf-text { display: flex; flex-direction: column; min-width: 0; }
.hf-label { font-size: 0.95rem; font-weight: 800; color: var(--dark); letter-spacing: 0.5px; }
.hf-desc { font-size: 0.76rem; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }

/* =============================================================
   工具矩阵
   ============================================================= */
.tools-section { background: var(--bg-gray); }
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tool-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--card-bg); padding: 28px 26px;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    text-decoration: none; transition: var(--transition);
}
.tool-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
/* 工具图标：默认中性色（浅色主题下即「黑图标 + 浅灰底」），鼠标悬停转蓝。
   取值与 tools.zaixianps.cc 的 .icon-box 完全一致，
   日夜主题都靠变量自动切换，不再按卡片站位区分色相。 */
.tool-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-site); color: var(--text-main);
    margin-bottom: 18px; flex-shrink: 0; transition: var(--transition);
}
.tool-card:hover .tool-icon { background: var(--primary-light); color: var(--primary); transform: scale(1.08); }
.tool-icon svg { width: 25px; height: 25px; fill: currentColor; }
.tool-meta h3 { margin: 0 0 8px; font-size: 1.14rem; font-weight: 800; color: var(--dark); }
.tool-meta p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* 工具角标（HOT / NEW）：卡片右上角，配色对齐 tools.zaixianps.cc */
.tool-badge {
    position: absolute; top: 10px; right: 10px; z-index: 1;
    color: #fff; font-size: 10px; font-weight: 800;
    line-height: 1.5; padding: 2px 7px; border-radius: 6px;
    letter-spacing: 0.3px; white-space: nowrap;
}
.badge-hot { background: #ef4444; box-shadow: 0 2px 4px rgba(239,68,68,0.3); }
.badge-new { background: #2f9e6e; box-shadow: 0 2px 4px rgba(47,158,110,0.3); }
[data-theme="dark"] .badge-hot { background: rgba(180,40,40,0.3); color: #fca5a5; box-shadow: none; }
[data-theme="dark"] .badge-new { background: rgba(47,158,110,0.28); color: #a7e8c8; box-shadow: none; }

/* 图标配色：所有工具卡图标统一，不按卡片站位区分色相。
   默认 --bg-site / --text-main（浅色主题下即浅灰底 + 黑图标），
   悬停 --primary-light / --primary（蓝），规则见上方 .tool-icon。
   轮询会不断换工具，按站位上色会让同一个工具每次出现颜色都不一样。 */

/* 第 7 格：全部工具入口（固定，不参与轮询）——淡蓝底，与普通工具卡区分开。
   深色模式下由文末 [data-theme="dark"] .tool-card 规则覆盖回玻璃拟态。 */
.tool-card-all { background: var(--primary-light); border-color: rgba(0,82,255,0.16); }
.tool-card-all:hover { background: #e2edff; }
.tool-card-all .tool-meta h3 { color: var(--primary); }


/* 工具推广卡：浅色模式改为浅蓝底 + 深色文字，
   避免原先的深蓝大色块压过整页；深色模式在下方另有一套覆盖规则保持原样。 */
.tool-promo-card {
    display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(135deg, #e6f0ff 0%, #dbeafe 55%, #eff6ff 100%);
    border: 1px solid rgba(0,82,255,0.16);
    border-radius: var(--radius-lg); padding: 28px 26px;
    color: var(--dark); position: relative; overflow: hidden;
}
.tool-promo-card h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 10px; line-height: 1.4; color: var(--dark); }
.tool-promo-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 18px; }
.tool-promo-btn {
    display: inline-block; padding: 10px 24px; border-radius: var(--radius-full);
    background: var(--primary); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 0.9rem; transition: var(--transition);
    width: fit-content; border: none;
    box-shadow: 0 8px 20px rgba(0,82,255,0.22);
}
.tool-promo-btn:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,82,255,0.3); }
.tool-promo-img { position: absolute; right: 16px; bottom: 16px; width: 56px; height: 56px; object-fit: contain; opacity: 0.16; }

/* =============================================================
   精选 PS 学习教程
   ============================================================= */
.tutorial-section { background: var(--bg-gray); }
.tut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tut-card {
    background: var(--card-bg); padding: 28px 26px;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    text-decoration: none; transition: var(--transition);
    display: flex; flex-direction: column;
}
.tut-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.card-tag {
    display: inline-block; align-self: flex-start;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
    color: var(--primary); margin-bottom: 14px;
    background: var(--primary-light); padding: 3px 10px; border-radius: 99px;
}
.tag-beginner { color: #2563eb; background: #dbeafe; }
.tag-processing { color: #059669; background: #d1fae5; }
.tag-advanced { color: #d97706; background: #fef3c7; }
.tag-design { color: #7c3aed; background: #ede9fe; }
.tut-card h3 { font-size: 1.12rem; line-height: 1.55; margin: 0 0 10px; color: var(--dark); flex: none; }
.tut-card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 0 0 18px; flex: 1 1 auto; }
.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border); padding-top: 16px; flex: none;
}
.card-date { font-size: 0.82rem; color: var(--text-muted); }
.read-link {
    color: var(--primary); font-weight: 700; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; margin: -6px -6px -6px 0; border-radius: 99px;
    text-decoration: none; transition: background 0.25s ease;
}
.read-link:hover { background: var(--primary-light); }

/* =============================================================
   热门精选
   ============================================================= */
.hot-picks { background: var(--bg-white); }
.hot-picks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hot-pick-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-gray); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px 20px;
    text-decoration: none; text-align: left; transition: var(--transition);
}
.hot-pick-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.hot-pick-icon {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary);
}
.hot-pick-icon svg { width: 22px; height: 22px; }
.hot-pick-meta { min-width: 0; }
.hot-pick-meta h3 { margin: 0 0 4px; font-size: 0.98rem; font-weight: 700; color: var(--dark); }
.hot-pick-meta p { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* =============================================================
   响应式
   ============================================================= */

/* 小桌面 / 平板横屏（992–1199px） */
@media (max-width: 1199px) {
    .hero-inner { gap: 36px; }
    .hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
    .hero-desc { font-size: 1rem; }
    .tools-grid, .tut-grid { gap: 18px; }
    .tut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hot-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding: 64px 0; }
    .tools-section, .tutorial-section, .hot-picks { padding: 64px 0; }
    .hero-features { margin-top: 48px; gap: 14px; }
    .hero-feature { padding: 14px 15px; gap: 10px; }
}

/* 平板竖屏（768–991px）：Hero 改为上下堆叠 */
@media (max-width: 991px) {
    .hero { padding: 56px 0; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hero-desc { max-width: 100%; margin-bottom: 28px; }
    .ad-slot.ad-slot-hero { min-height: 220px; }
    .ad-banner-section { padding: 24px 0; }
    .hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; gap: 14px; }
    .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .tut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .hot-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .section-heading { margin-bottom: 36px; }
    .tools-section, .tutorial-section, .hot-picks { padding: 56px 0; }
}

/* 大屏手机（576–767px） */
@media (max-width: 767px) {
    .hero { padding: 48px 0; }
    .hero h1 { font-size: clamp(1.7rem, 6vw, 2.15rem); }
    .hero-desc { font-size: 0.95rem; }
    .ad-slot.ad-slot-hero { min-height: 200px; }
    .hero-features { margin-top: 36px; gap: 12px; }
    .hero-feature { padding: 13px 14px; }
    .hf-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; }
    .hf-icon svg { width: 18px; height: 18px; }
    .hf-label { font-size: 0.9rem; }
    .hf-desc { font-size: 0.74rem; }
    .tools-grid { gap: 14px; }
    .tool-card { padding: 22px 20px; }
    .tut-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .hot-picks-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .section-heading { margin-bottom: 30px; }
    .section-sub { font-size: 0.94rem; }
    .tools-section, .tutorial-section, .hot-picks { padding: 48px 0; }
}

/* 手机（≤575px） */
@media (max-width: 575px) {
    .hero { padding: 40px 0; }
    .badge-top { font-size: 0.72rem; padding: 4px 12px; margin-bottom: 16px; letter-spacing: 1px; }
    .hero h1 { font-size: clamp(1.6rem, 7.4vw, 2rem); margin-bottom: 18px; }
    .hero-desc { font-size: 0.92rem; line-height: 1.7; margin-bottom: 24px; }
    .ad-slot.ad-slot-hero { min-height: 160px; }
    .ad-banner-section { padding: 18px 0; }

    /* 按钮：整行铺开，方便点按 */
    .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .main-cta, .cta-ghost { width: 100%; padding: 14px 20px; font-size: 0.98rem; }

    /* 特性条：2 列紧凑 */
    .hero-features { margin-top: 32px; gap: 10px; }
    .hero-feature { padding: 12px 12px; gap: 9px; border-radius: 12px; }
    .hf-icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; }
    .hf-icon svg { width: 16px; height: 16px; }
    .hf-label { font-size: 0.84rem; }
    .hf-desc { font-size: 0.7rem; }

    .section-heading { margin-bottom: 26px; }
    .section-title { font-size: 1.35rem; gap: 9px; }
    .title-dot { width: 4px; }
    .section-sub { font-size: 0.88rem; }

    /* 工具箱：2 列，卡片回归竖排 */
    .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tool-card { padding: 16px 14px; border-radius: 16px; }
    .tool-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 12px; }
    .tool-badge { top: 8px; right: 8px; font-size: 9px; padding: 2px 6px; }
    .tool-icon svg { width: 20px; height: 20px; }
    .tool-meta h3 { font-size: 0.95rem; margin-bottom: 5px; }
    .tool-meta p { font-size: 0.74rem; line-height: 1.55; }
    .tool-promo-card { grid-column: 1 / -1; padding: 20px 18px; }
    .tool-promo-card h3 { font-size: 1.05rem; }
    .tool-promo-card p { font-size: 0.82rem; margin-bottom: 14px; }
    .tool-promo-img { width: 44px; height: 44px; right: 14px; bottom: 14px; }

    /* 教程卡 / 热门精选 */
    .tut-card { padding: 22px 18px; border-radius: 18px; }
    .tut-card h3 { font-size: 1.02rem; }
    .tut-card-desc { font-size: 0.84rem; }
    .hot-pick-item { padding: 16px 14px; gap: 12px; border-radius: 16px; }
    .hot-pick-icon { flex: 0 0 40px; width: 40px; height: 40px; }
    .hot-pick-icon svg { width: 20px; height: 20px; }
    .hot-pick-meta h3 { font-size: 0.92rem; }
    .hot-pick-meta p { font-size: 0.76rem; }

    .tools-section, .tutorial-section, .hot-picks { padding: 40px 0; }
}

/* 超小屏（≤380px） */
@media (max-width: 380px) {
    .container { padding: 0 14px; }
    .hero { padding: 34px 0; }
    .hero h1 { font-size: 1.5rem; }
    .tool-card { padding: 14px 12px; }
    .tool-meta p { font-size: 0.7rem; }
    .section-title { font-size: 1.22rem; }
    .tools-section, .tutorial-section, .hot-picks { padding: 34px 0; }
}

/* =============================================================
   暖夜（dark）模式
   —— 主题开关由 header.css / vars.css 提供，这里只补中间内容区的夜间配色
   ============================================================= */
[data-theme="dark"] .tool-card,
[data-theme="dark"] .tut-card,
[data-theme="dark"] .hero-feature,
[data-theme="dark"] .hot-pick-item {
  background: rgba(26,22,18,0.65);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--warm-border-glass);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}
[data-theme="dark"] .tool-card:hover,
[data-theme="dark"] .tut-card:hover,
[data-theme="dark"] .hero-feature:hover,
[data-theme="dark"] .hot-pick-item:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(36,30,26,0.78);
  backdrop-filter: blur(20px) saturate(1.3);
  border-color: rgba(106,154,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(106,154,255,0.06);
}
[data-theme="dark"] .tool-card h3,
[data-theme="dark"] .tut-card h3,
[data-theme="dark"] .hot-pick-meta h3 { color: var(--warm-text-title); text-shadow: var(--warm-text-shadow); }
[data-theme="dark"] .section-title { color: var(--warm-text-title); text-shadow: var(--warm-text-shadow); }
/* 工具图标不在此列：它由 --bg-site / --text-main → --primary-light / --primary
   自动适配，与 tools.zaixianps.cc 行为一致（默认中性、悬停蓝）。 */
[data-theme="dark"] .hf-icon,
[data-theme="dark"] .hot-pick-icon {
  background: rgba(106,154,255,0.14); color: var(--primary-warm);
}
[data-theme="dark"] .hot-pick-item:hover .hot-pick-icon { background: var(--primary-warm); color: #0d0a08; }
[data-theme="dark"] .tool-promo-card {
  background: linear-gradient(135deg, rgba(90,138,255,0.3) 0%, rgba(30,22,40,0.8) 100%);
  border-color: transparent; color: #fff;
}
/* 深色模式恢复推广卡原有观感（白字 + 半透明按钮），不受浅色模式改动影响 */
[data-theme="dark"] .tool-promo-card h3 { color: #fff; }
[data-theme="dark"] .tool-promo-card p { color: #fff; opacity: 0.85; }
[data-theme="dark"] .tool-promo-btn {
  background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); box-shadow: none;
}
[data-theme="dark"] .tool-promo-btn:hover { background: rgba(255,255,255,0.35); }
[data-theme="dark"] .tool-promo-img { opacity: 0.3; }
[data-theme="dark"] .hot-pick-item { background: rgba(26,22,18,0.65); border: 1px solid var(--warm-border-glass); }
[data-theme="dark"] .tutorial-section,
[data-theme="dark"] .tools-section { background: rgba(10,8,6,0.55); }
[data-theme="dark"] .hero-feature:hover { transform: translateY(-3px) scale(1.01); }

[data-theme="dark"] .card-tag { color: var(--primary-warm); background: rgba(106,154,255,0.12); border: 1px solid rgba(106,154,255,0.1); }
[data-theme="dark"] .tag-beginner { color: #93c5fd; background: rgba(37,99,235,0.2); border-color: rgba(147,197,253,0.15); }
[data-theme="dark"] .tag-processing { color: #6ee7b7; background: rgba(5,150,105,0.2); border-color: rgba(110,231,183,0.15); }
[data-theme="dark"] .tag-advanced { color: #fcd34d; background: rgba(217,119,6,0.2); border-color: rgba(252,211,77,0.15); }
[data-theme="dark"] .tag-design { color: #c4b5fd; background: rgba(124,58,237,0.2); border-color: rgba(196,181,253,0.15); }
[data-theme="dark"] .read-link { color: var(--primary-warm); }
[data-theme="dark"] .read-link:hover { color: #8aafff; background: rgba(90,138,255,0.14); }

/* ---- 光球动画 ---- */
@keyframes orbFadeIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes orbFloat {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(40px,-60px) scale(1.04); }
  66%  { transform: translate(-30px,20px) scale(0.96); }
  100% { transform: translate(60px,-30px) scale(1.02); }
}
@keyframes orbBreath {
  0%   { opacity: 0.85; filter: blur(120px) saturate(1.3); }
  50%  { opacity: 1; filter: blur(140px) saturate(1.6); }
  100% { opacity: 0.9; filter: blur(110px) saturate(1.2); }
}

[data-theme="dark"] {
  --warm-bg-deep: #0a0806;
  --warm-border-glass: rgba(255, 235, 210, 0.08);
  --warm-text-title: #f0e8df;
  --warm-text-body: #cbc0b5;
  --warm-text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  --primary-warm: #6a9aff;
  --primary-warm-glow: rgba(106, 154, 255, 0.15);
  --orb-orange: rgba(234, 88, 12, 0.30);
  --orb-pink: rgba(219, 39, 119, 0.25);
  --orb-yellow: rgba(234, 179, 8, 0.18);
  --orb-blue-accent: rgba(30, 58, 138, 0.20);
}

[data-theme="dark"] .hero {
  background: var(--warm-bg-deep);
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.01) 0%, transparent 50%);
  isolation: isolate;
}
[data-theme="dark"] .hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(20,16,14,0.4) 0%, var(--warm-bg-deep) 100%);
  pointer-events: none;
}
[data-theme="dark"] .hero .container { position: relative; z-index: 1; }
[data-theme="dark"] .hero-bg-shapes { display: none; }

[data-theme="dark"] .orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  will-change: transform, filter; z-index: -1;
  opacity: 0; animation: orbFadeIn 3s cubic-bezier(0.2,0.8,0.4,1) forwards;
}
[data-theme="dark"] .orb-1 {
  width: 750px; height: 750px; top: -15%; right: -10%;
  background: radial-gradient(circle at center, var(--orb-orange) 0%, transparent 70%);
  mix-blend-mode: screen; filter: blur(120px) saturate(1.3);
  animation: orbFloat 28s ease-in-out infinite alternate, orbBreath 18s ease-in-out infinite alternate;
}
[data-theme="dark"] .orb-2 {
  width: 550px; height: 550px; bottom: -10%; left: -8%;
  background: radial-gradient(circle at center, var(--orb-pink) 0%, transparent 70%);
  mix-blend-mode: screen; filter: blur(100px) saturate(1.2);
  animation: orbFloat 22s ease-in-out infinite alternate-reverse, orbBreath 15s ease-in-out infinite alternate;
}
[data-theme="dark"] .orb-3 {
  width: 400px; height: 400px; top: 50%; left: 40%;
  background: radial-gradient(circle at center, var(--orb-yellow) 0%, transparent 70%);
  mix-blend-mode: screen; filter: blur(90px) saturate(1.1);
  animation: orbFloat 18s ease-in-out infinite alternate, orbBreath 20s ease-in-out infinite alternate;
}
[data-theme="dark"] .orb-4 {
  width: 300px; height: 300px; top: 20%; right: 20%;
  background: radial-gradient(circle at center, var(--orb-blue-accent) 0%, transparent 70%);
  mix-blend-mode: screen; filter: blur(80px);
  animation: orbFloat 25s ease-in-out infinite alternate-reverse;
}
@media (max-width: 1024px) {
  [data-theme="dark"] .orb-1 { width: 600px; height: 600px; filter: blur(100px); }
  [data-theme="dark"] .orb-2 { width: 450px; height: 450px; filter: blur(80px); }
  [data-theme="dark"] .orb-3 { width: 350px; height: 350px; filter: blur(70px); }
  [data-theme="dark"] .orb-4 { display: none; }
}
@media (max-width: 768px) {
  [data-theme="dark"] .orb-1 { width: 420px; height: 420px; top: -15%; right: -30%; filter: blur(60px); animation-duration: 20s; }
  [data-theme="dark"] .orb-2 { width: 360px; height: 360px; bottom: -12%; left: -25%; filter: blur(55px); animation-duration: 22s; }
  [data-theme="dark"] .orb-3,
  [data-theme="dark"] .orb-4 { display: none; }
}
