/* ============================================
   梦想软件 - 全站样式
   传奇主题 · 全响应式
   ============================================ */

:root {
  --gold: #d4a94a;
  --gold-light: #f0c96a;
  --gold-dark: #9a7530;
  --gold-glow: rgba(212,169,74,0.35);
  --red: #c0392b;
  --bg-deep: #080810;
  --bg-card: rgba(15,15,25,0.82);
  --bg-card2: rgba(22,22,38,0.88);
  --border: rgba(212,169,74,0.18);
  --border2: rgba(212,169,74,0.30);
  --text: #ede5d5;
  --text-sec: #a8997e;
  --text-muted: #6a5f4a;
  --font: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --nav-h: 64px;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* 全站固定背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../images/bg-hero.jpg') center 60% / cover no-repeat, var(--bg-deep);
  filter: brightness(0.28) saturate(0.7);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,16,0.5) 0%, rgba(8,8,16,0.35) 40%, rgba(8,8,16,0.75) 85%, rgba(8,8,16,0.97) 100%);
  z-index: -1;
  pointer-events: none;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ============ 导航栏 ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(8,8,16,0.90);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border2);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.nav-container {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; gap: 16px;
}
.nav-logo a { display: flex; align-items: center; gap: 8px; color: var(--text); }
.logo-icon { font-size: 1.4rem; }
.logo-text {
  font-size: 1.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  white-space: nowrap;
}
.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; }
.nav-menu li a {
  display: block; padding: 6px 14px; color: var(--text-sec); font-size: 0.93rem;
  border-radius: 6px; transition: all .2s; white-space: nowrap;
}
.nav-menu li a:hover, .nav-menu li a.active {
  color: var(--gold-light); background: rgba(212,169,74,0.1);
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border2); color: var(--gold);
  width: 38px; height: 38px; border-radius: 6px; font-size: 1.1rem; cursor: pointer;
  margin-left: auto; flex-shrink: 0; transition: background .2s;
}
.nav-toggle:hover { background: rgba(212,169,74,0.1); }

/* ============ 英雄区 ============ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 20px 60px;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background: url('../images/bg-hero.jpg') center 60% / cover no-repeat; z-index: 0;
}
.hero-bg-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,3,8,0.55) 0%, rgba(4,3,8,0.45) 25%, rgba(4,3,8,0.62) 60%, rgba(4,3,8,0.97) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; max-width: 680px; width: 100%;
  animation: heroFadeIn .9s ease both;
}
@keyframes heroFadeIn { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }
.hero-badge {
  display: inline-block; padding: 5px 18px; border: 1px solid var(--gold);
  border-radius: 30px; color: var(--gold-light); font-size: 0.85rem; letter-spacing: 1.5px;
  margin-bottom: 20px; background: rgba(212,169,74,0.08);
}
.hero-title {
  font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 900; line-height: 1.15; letter-spacing: 3px;
  margin-bottom: 14px;
}
.title-line1, .title-line2 {
  display: block;
  color: #ffffff;
  -webkit-text-stroke: 2px var(--gold);
  paint-order: stroke fill;
  text-shadow:
    0 0 20px rgba(212,169,74,0.9),
    0 0 40px rgba(212,169,74,0.5),
    2px 2px 0 rgba(0,0,0,0.85),
    -1px -1px 0 rgba(0,0,0,0.7),
    0 4px 20px rgba(0,0,0,0.95);
}
.hero-subtitle { font-size: clamp(0.95rem, 2.5vw, 1.15rem); color: #ffffff; margin-bottom: 28px; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,0.95); font-weight: 500; }
.hero-wechat {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(212,169,74,0.1); border: 1px solid var(--border2);
  border-radius: 12px; padding: 12px 24px; margin-bottom: 28px;
}
.hero-wechat .wc-icon { font-size: 1.4rem; }
.hero-wechat .wc-label { font-size: 0.82rem; color: var(--text-muted); }
.hero-wechat .wc-num { font-size: 1.3rem; font-weight: 700; color: var(--gold-light); letter-spacing: 2px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #1a0f00; font-weight: 700; border-radius: 8px; font-size: 0.97rem;
  transition: all .2s; box-shadow: 0 4px 16px rgba(212,169,74,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,169,74,0.45); color: #1a0f00; }
.btn-secondary {
  padding: 12px 30px; border: 1px solid var(--border2); color: var(--text-sec);
  border-radius: 8px; font-size: 0.97rem; transition: all .2s; background: rgba(255,255,255,0.04);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,169,74,0.08); }

/* ============ 分类区 ============ */
.category-nav { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 {
  font-size: clamp(1.5rem, 4vw, 2rem); color: var(--gold-light); letter-spacing: 2px;
  display: inline-block;
}
.section-title h2::after {
  content: ''; display: block; width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  margin: 10px auto 0; border-radius: 2px;
}
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cat-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .25s; backdrop-filter: blur(12px); position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--gold-dark), var(--gold)); opacity: 0; transition: opacity .25s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--gold-dark); background: var(--bg-card2); box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px var(--gold-glow); }
.cat-card:hover::before { opacity: 1; }
.cat-icon { font-size: 2rem; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(212,169,74,0.1); border-radius: 10px; flex-shrink: 0; }
.cat-info { flex: 1; min-width: 0; }
.cat-info h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cat-info p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-count { font-size: 0.78rem; color: var(--gold); }
.cat-arrow { color: var(--text-muted); font-size: 1.1rem; transition: transform .2s; }
.cat-card:hover .cat-arrow { transform: translateX(4px); color: var(--gold); }

/* ============ 软件网格 ============ */
.software-section { padding: 40px 0; }
.software-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.software-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; backdrop-filter: blur(10px);
}
.software-card:hover { transform: translateY(-4px); border-color: var(--gold-dark); box-shadow: 0 10px 36px rgba(0,0,0,0.55), 0 0 18px var(--gold-glow); }
.sw-thumb {
  width: 100%; height: 140px; object-fit: cover; background: rgba(212,169,74,0.06);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--text-muted);
}
.sw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sw-body { padding: 14px; }
.sw-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.sw-tag { font-size: 0.72rem; padding: 2px 8px; border-radius: 20px; background: rgba(212,169,74,0.1); color: var(--gold); border: 1px solid rgba(212,169,74,0.2); }
.sw-tag.hot { background: rgba(192,57,43,0.15); color: #e74c3c; border-color: rgba(192,57,43,0.25); }
.sw-tag.new { background: rgba(74,205,120,0.12); color: #4acd78; border-color: rgba(74,205,120,0.2); }

/* ============ 教程卡片 ============ */
.tutorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tut-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s; backdrop-filter: blur(10px); }
.tut-card:hover { transform: translateY(-4px); border-color: var(--gold-dark); box-shadow: 0 10px 36px rgba(0,0,0,0.55); }
.tut-thumb { width: 100%; height: 160px; background: rgba(212,169,74,0.06); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tut-body { padding: 14px; }
.tut-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tut-meta { display: flex; gap: 10px; font-size: 0.78rem; color: var(--text-muted); }

/* ============ 页面标题区 ============ */
.page-hero { padding: calc(var(--nav-h) + 40px) 20px 40px; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; background: linear-gradient(135deg, #fff, var(--gold-light), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
.page-hero p { color: var(--text-sec); font-size: 0.95rem; }

/* ============ 筛选栏 ============ */
.filter-bar { background: rgba(8,8,16,0.7); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 12px 0; position: sticky; top: var(--nav-h); z-index: 90; }
.filter-bar .container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { font-size: 0.85rem; color: var(--text-muted); flex-shrink: 0; }
.filter-links { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn { padding: 5px 14px; border-radius: 20px; font-size: 0.83rem; color: var(--text-sec); border: 1px solid var(--border); background: none; cursor: pointer; transition: all .2s; font-family: var(--font); }
.filter-btn:hover, .filter-btn.active { color: var(--gold); border-color: var(--gold); background: rgba(212,169,74,0.08); }
.sort-wrap { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }

/* ============ 二级分类标签 ============ */
.subcat-bar { background: rgba(8,8,16,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: var(--nav-h); z-index: 90; }
.subcat-tabs { display: flex; gap: 6px; padding: 10px 20px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; }
.subcat-tab { display: inline-flex; align-items: center; gap: 5px; padding: 5px 16px; border-radius: 20px; border: 1px solid var(--border); color: var(--text-sec); font-size: 0.85rem; text-decoration: none; transition: all .2s; background: rgba(255,255,255,0.03); white-space: nowrap; }
.subcat-tab:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,169,74,0.08); }
.subcat-tab.active { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); border-color: var(--gold); color: #1a1000; font-weight: 600; }

/* ============ 详情页 ============ */
.detail-page { padding: calc(var(--nav-h) + 30px) 0 60px; }
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.detail-main { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(12px); }
.detail-header { display: flex; gap: 20px; padding: 24px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.detail-thumb { width: 140px; height: 140px; border-radius: 10px; overflow: hidden; background: rgba(212,169,74,0.08); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; background: rgba(212,169,74,0.06); }
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.detail-info .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-info .meta { font-size: 0.82rem; color: var(--text-muted); }
.detail-desc { padding: 24px; line-height: 1.85; color: var(--text-sec); font-size: 0.93rem; }
.detail-desc img { max-width: 100%; border-radius: 6px; margin: 10px 0; }
.detail-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(12px); }
.sidebar-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.info-list { display: flex; flex-direction: column; gap: 8px; }
.info-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; gap: 8px; }
.info-row .label { color: var(--text-muted); flex-shrink: 0; }
.info-row .value { color: var(--text-sec); text-align: right; word-break: break-all; }
.btn-download { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #1a0f00; font-weight: 700; border-radius: 8px; font-size: 0.97rem; transition: all .2s; margin-bottom: 10px; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(212,169,74,0.4); color: #1a0f00; }

/* ============ 分页 ============ */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 30px 0; flex-wrap: wrap; }
.page-btn { padding: 7px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text-sec); font-size: 0.85rem; transition: all .2s; }
.page-btn:hover, .page-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(212,169,74,0.08); }

/* ============ 空状态 ============ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.95rem; }

/* ============ 面包屑 ============ */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.83rem; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-sec); }

/* ============ 页脚 ============ */
.footer { background: rgba(5,5,12,0.96); border-top: 1px solid var(--border); padding: 40px 20px 28px; text-align: center; }
.footer-content { max-width: 700px; margin: 0 auto; }
.footer-logo { font-size: 1.3rem; font-weight: 700; background: linear-gradient(135deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; }
.footer-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-beian { font-size: 0.78rem; color: var(--text-muted); }

/* ============ 登录 ============ */
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { width: 100%; max-width: 400px; background: var(--bg-card2); border: 1px solid var(--border2); border-radius: 14px; padding: 36px 32px; box-shadow: var(--shadow); }
.login-box h1 { text-align: center; font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-sec); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--border2); border-radius: 8px; color: var(--text); font-size: 0.92rem; font-family: var(--font); transition: border-color .2s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); background: rgba(212,169,74,0.05); }
.form-group select option { background: #111; }
.btn-submit { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #1a0f00; font-weight: 700; border: none; border-radius: 8px; font-size: 0.97rem; cursor: pointer; font-family: var(--font); transition: all .2s; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,169,74,0.4); }
.alert { padding: 10px 14px; border-radius: 6px; font-size: 0.85rem; margin-bottom: 14px; }
.alert-error { background: rgba(192,57,43,0.15); border: 1px solid rgba(192,57,43,0.3); color: #e74c3c; }
.alert-success { background: rgba(74,205,120,0.12); border: 1px solid rgba(74,205,120,0.25); color: #4acd78; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr 260px; gap: 18px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(8,8,16,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border2); flex-direction: column; padding: 14px 16px; gap: 3px; max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .nav-menu li a { padding: 10px 14px; font-size: 1rem; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .hero { padding: calc(var(--nav-h) + 24px) 16px 40px; min-height: 85svh; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; max-width: 300px; text-align: center; }
  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .software-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tutorial-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .detail-header { flex-direction: column; gap: 14px; }
  .detail-thumb { width: 100%; height: 200px; font-size: 3.5rem; }
  .filter-bar .container { gap: 8px; }
  .sort-wrap { margin-left: 0; }
  .page-hero { padding: calc(var(--nav-h) + 24px) 16px 28px; }
  .container { padding: 0 14px; }
  .pagination { gap: 4px; }
  .page-btn { padding: 6px 10px; font-size: 0.8rem; }
  .login-box { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .software-grid { grid-template-columns: 1fr; }
  .hero-badge { font-size: 0.75rem; padding: 4px 14px; }
  .hero-wechat { flex-direction: column; gap: 4px; text-align: center; }
  .cat-card { padding: 16px 14px; gap: 12px; }
  .cat-icon { width: 44px; height: 44px; font-size: 1.6rem; }
}

@keyframes fadeInUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.fade-in { animation: fadeInUp .5s ease both; }

/* ============ 兼容旧类名 ============ */
#particles-bg { display: none; }
.page-hero-content { max-width: 800px; margin: 0 auto; }
.page-stats { font-size: 0.88rem; color: var(--text-muted); margin-top: 8px; }
.page-stats strong { color: var(--gold); }

/* 搜索表单 */
.search-form { display: flex; gap: 8px; align-items: center; }
.search-input-wrap { display: flex; border: 1px solid var(--border2); border-radius: 8px; overflow: hidden; }
.search-input-wrap input { background: rgba(255,255,255,0.05); border: none; outline: none; padding: 8px 14px; color: var(--text); font-family: var(--font); font-size: 0.88rem; min-width: 0; flex: 1; }
.search-input-wrap button { background: rgba(212,169,74,0.15); border: none; color: var(--gold); padding: 8px 14px; cursor: pointer; font-size: 0.95rem; transition: background .2s; }
.search-input-wrap button:hover { background: rgba(212,169,74,0.25); }

/* sort-btn = filter-btn */
.sort-btn { padding: 5px 12px; border-radius: 20px; font-size: 0.82rem; color: var(--text-sec); border: 1px solid var(--border); background: none; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block; }
.sort-btn:hover, .sort-btn.active { color: var(--gold); border-color: var(--gold); background: rgba(212,169,74,0.08); }

/* empty-icon = .empty-state .icon */
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-sec); margin-bottom: 8px; }

/* software-grid aliases */
.software-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* section helper */
.section { padding: 30px 0 60px; }

/* 软件详情页附加 */
.sw-card-price { font-size: 0.9rem; color: var(--gold); font-weight: 700; margin-top: 6px; }
.sw-card-price .free { color: #4acd78; }

@media (max-width: 768px) {
  .software-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .search-form { flex-direction: column; width: 100%; }
  .search-input-wrap { width: 100%; }
  .sort-wrap { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .software-grid-4 { grid-template-columns: 1fr; }
}

/* ============ 软件卡片 (card组件) ============ */
.software-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s; backdrop-filter: blur(10px); position: relative; display: flex; flex-direction: column; }
.software-card:hover { transform: translateY(-4px); border-color: var(--gold-dark); box-shadow: 0 10px 36px rgba(0,0,0,0.55), 0 0 18px var(--gold-glow); }
.badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
  z-index: 2;
  font-weight: 600;
}
.badge-hot { background: rgba(192,57,43,0.85); color: #fff; }
.badge-new { background: rgba(74,205,120,0.85); color: #fff; }

.card-thumb-link { display: block; }
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(212,169,74,0.06);
  position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; background: rgba(212,169,74,0.06); }
.card-thumb:hover img { transform: scale(1.05); }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--text-muted); }
.card-thumb-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 0.88rem; font-weight: 600;
  opacity: 0; transition: opacity .2s;
}
.card-thumb:hover .card-thumb-overlay { opacity: 1; }

.card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--gold); }
.card-version { font-size: 0.75rem; color: var(--text-muted); }
.card-desc { font-size: 0.8rem; color: var(--text-muted); margin: 6px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-prices { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.price-item { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 60px; }
.price-label { font-size: 0.72rem; color: var(--text-muted); }
.price-val { font-size: 0.88rem; font-weight: 700; }
.price-val.monthly { color: var(--gold); }
.price-val.yearly { color: var(--gold-light); }
.price-val.lifetime { color: #e74c3c; }

.card-actions { display: flex; gap: 8px; margin-top: auto; }
.btn-detail { flex: 1; text-align: center; padding: 7px 10px; border: 1px solid var(--border2); border-radius: 6px; font-size: 0.82rem; color: var(--text-sec); transition: all .2s; }
.btn-detail:hover { border-color: var(--gold); color: var(--gold); }
.btn-buy { flex: 1; text-align: center; padding: 7px 10px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #1a0f00; border-radius: 6px; font-size: 0.82rem; font-weight: 700; transition: all .2s; }
.btn-buy:hover { opacity: 0.9; color: #1a0f00; }

/* ============ 教程卡片 (tut-card组件) ============ */
.tut-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s; backdrop-filter: blur(10px); }
.tut-card:hover { transform: translateY(-4px); border-color: var(--gold-dark); box-shadow: 0 10px 36px rgba(0,0,0,0.55); }
.tut-thumb-wrap { width: 100%; height: 160px; overflow: hidden; background: rgba(212,169,74,0.06); position: relative; }
.tut-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.tut-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; color: var(--text-muted); }
.tut-body { padding: 14px; }
.tut-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tut-body h3 a { color: var(--text); }
.tut-body h3 a:hover { color: var(--gold); }
.tut-meta-row { display: flex; gap: 10px; font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap; }

/* ============ 英雄区文字/按钮外发光增强 ============ */
.hero-badge {
  background: rgba(10,8,4,0.55) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 12px rgba(212,169,74,0.4), inset 0 0 8px rgba(212,169,74,0.08);
  text-shadow: 0 0 10px rgba(212,169,74,0.8);
  backdrop-filter: blur(6px);
}
/* hero-title glow handled in base styles */
.hero-subtitle {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,1), 0 0 25px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95) !important;
}
.hero-wechat {
  background: rgba(8,6,2,0.65) !important;
  border-color: rgba(212,169,74,0.5) !important;
  box-shadow: 0 0 18px rgba(212,169,74,0.25), 0 4px 20px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}
.hero-wechat .wc-label {
  color: #a89878 !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
.hero-wechat .wc-num {
  text-shadow: 0 0 14px rgba(212,169,74,0.7), 0 2px 8px rgba(0,0,0,0.9);
}
.hero-actions .btn-primary {
  box-shadow: 0 0 20px rgba(212,169,74,0.5), 0 4px 20px rgba(0,0,0,0.6) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-actions .btn-secondary {
  background: rgba(8,6,2,0.6) !important;
  border-color: rgba(212,169,74,0.45) !important;
  color: #d5c8a8 !important;
  box-shadow: 0 0 14px rgba(0,0,0,0.5), inset 0 0 8px rgba(212,169,74,0.05);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.hero-actions .btn-secondary:hover {
  border-color: var(--gold) !important;
  color: var(--gold-light) !important;
  box-shadow: 0 0 20px rgba(212,169,74,0.3), 0 4px 16px rgba(0,0,0,0.5) !important;
}

/* ── 价格三框样式 ── */
.price-panel { background: var(--bg-card); border: 1px solid var(--border2); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.price-panel-title { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.price-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; text-align: center; transition: border-color 0.2s; }
.price-box:hover { border-color: rgba(212,169,74,0.4); }
.price-box-featured { background: rgba(212,169,74,0.07); border-color: rgba(212,169,74,0.35); }
.pbox-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #000; font-size: 0.68rem; font-weight: 800; padding: 2px 10px; border-radius: 0 0 6px 6px; letter-spacing: 0.05em; white-space: nowrap; }
.pbox-icon { font-size: 1.6rem; line-height: 1; margin-top: 4px; }
.pbox-name { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.pbox-desc { font-size: 0.72rem; color: var(--text-muted); }
.pbox-price { font-size: 1.2rem; font-weight: 800; color: var(--gold-light); margin-top: 4px; }
.price-box-featured .pbox-price { color: var(--gold); font-size: 1.35rem; }
.pbox-price-lifetime { color: #e8845a !important; }
.pbox-save { font-size: 0.7rem; color: #4caf50; background: rgba(76,175,80,0.12); padding: 2px 8px; border-radius: 4px; }
@media (max-width: 480px) { .price-boxes { grid-template-columns: 1fr; } }

/* ── 首页教程卡片 ── */
.section-alt { background: rgba(255,255,255,0.015); }
.tutorial-card { display: flex; gap: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-decoration: none; transition: border-color 0.2s, transform 0.2s; overflow: hidden; align-items: flex-start; }
.tutorial-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.tutorial-thumb { flex: 0 0 100px; width: 100px; height: 70px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,0.05); }
.tutorial-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tutorial-thumb .thumb-placeholder, .tutorial-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.tutorial-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tutorial-body h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tutorial-body p { font-size: 0.78rem; color: var(--text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tutorial-meta { display: flex; gap: 8px; font-size: 0.72rem; color: var(--text-muted); margin-top: auto; flex-wrap: wrap; }
.tutorial-info { flex: 1; min-width: 0; }
.tutorial-info h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tutorial-info p { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tutorial-date { font-size: 0.7rem; color: var(--text-dim); }
@media (max-width: 600px) { .tutorial-card { flex-direction: column; } .tutorial-thumb { width: 100%; height: 120px; flex: unset; } }
