/* ===== 发卡网系统 全局样式 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: #f4f6f9;
  color: #333;
  line-height: 1.6;
}
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: #888; font-size: 13px; }
.center { text-align: center; }
.small { font-size: 12px; }

/* 顶部导航 */
.site-header { background: #0f172a; color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.logo { font-size: 20px; font-weight: 700; color: #fff; }
.logo:hover { color: #fff; }
.nav a { color: #cbd5e1; margin-left: 18px; font-size: 14px; }
.nav a:hover { color: #fff; }
.nav a.admin-link { color: #fbbf24; }
.notice-bar { background: linear-gradient(135deg, #1e3a8a, #2563eb 45%, #1d4ed8); color: #fff; font-size: 13.5px; padding: 9px 0; border-bottom: 3px solid #172554; box-shadow: 0 3px 0 rgba(23,37,84,.35), inset 0 1px 0 rgba(255,255,255,.18); }
.notice-bar-inner { display: flex; align-items: center; gap: 10px; position: relative; padding-right: 34px; }
.notice-bar-title { flex: 0 0 auto; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 2px 10px; border-radius: 999px; box-shadow: 0 2px 0 rgba(0,0,0,.2); white-space: nowrap; }
.notice-bar-text { flex: 1 1 auto; overflow: hidden; }
.notice-bar-text p { display: inline; margin: 0; }
.notice-bar-close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; line-height: 24px; text-align: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.notice-bar-close:hover { background: rgba(255,255,255,.28); }
.main { min-height: 60vh; padding: 24px 16px 40px; }
.site-footer { background: #0f172a; color: #94a3b8; text-align: center; font-size: 13px; padding: 20px 0; }
.footer-sitemap { max-width: 860px; margin: 0 auto 14px; text-align: left; }
.footer-sitemap-title { font-size: 14px; font-weight: 700; color: #e2e8f0; margin-bottom: 12px; text-align: center; }
.footer-sitemap-xml { font-size: 12px; font-weight: 400; color: #818cf8; margin-left: 8px; }
.footer-sitemap-cols { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.footer-sitemap-col { min-width: 150px; display: flex; flex-direction: column; gap: 7px; }
.footer-sitemap-caption { font-size: 12px; color: #64748b; margin-bottom: 2px; font-weight: 700; }
.footer-sitemap-col a { color: #94a3b8; font-size: 13px; }
.footer-sitemap-col a:hover { color: #fff; }
.footer-links { margin-bottom: 6px; }

/* 网站地图页 */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 30px; }
.sitemap-col { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 8px rgba(15,23,42,.04); display: flex; flex-direction: column; gap: 8px; }
.sitemap-col-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 4px; padding-bottom: 6px; border-bottom: 2px solid #4f46e5; display: inline-block; }
.sitemap-sub { margin-top: 12px; }
.sitemap-col a { color: #475569; font-size: 13px; }
.sitemap-col a:hover { color: #2563eb; }

/* Flash */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* 页面标题 */
.page-title { font-size: 22px; margin-bottom: 18px; }
.sub-title { font-size: 17px; margin: 20px 0 12px; }

/* 公告 */
.announce-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.announce-title { font-weight: 700; margin-bottom: 8px; }
.announce-box ul { list-style: none; }
.announce-box li { padding: 4px 0; font-size: 14px; border-bottom: 1px dashed #f0f0f0; }
.announce-box li:last-child { border-bottom: none; }

/* 分类标签 */
.cat-tabs { margin-bottom: 18px; }
.cat-tab { display: inline-block; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 5px 16px; margin: 0 6px 8px 0; font-size: 13px; color: #555; }
.cat-tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.cat-tab:hover { border-color: #2563eb; }

/* 商品网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: box-shadow .15s; display: flex; flex-direction: column; height: 100%; }
.card:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
.card-cover { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; background: #f8fafc; overflow: hidden; }
.card-cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 15px; margin-bottom: 8px; }
.card-title a { color: #1e293b; }
.card-meta { display: flex; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.card .btn-block { margin-top: auto; }
.price { color: #dc2626; font-weight: 700; }
.price-old { color: #888; font-size: 12px; text-decoration: line-through; }
.price-vip { color: #7c3aed; font-weight: 700; }
.price-lg { font-size: 22px; color: #dc2626; font-weight: 700; }
.empty { text-align: center; color: #999; padding: 60px 0; }

/* 按钮 */
.btn { display: inline-block; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; padding: 7px 16px; font-size: 14px; cursor: pointer; color: #374151; }
.btn:hover { border-color: #2563eb; color: #2563eb; }
.btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; color: #fff; }
.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-lg { padding: 11px 26px; font-size: 15px; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 10px; }

/* 表单 */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 5px; color: #555; }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=number], .form-row input[type=email],
.form-row select, .form-row textarea {
  width: 100%; max-width: 460px; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.form-row textarea { min-height: 90px; }

/* 后台软件下载行 */
.dl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.dl-row input { flex: 1; }
.dl-row .dl-in { min-width: 160px; }
.dl-row .dl-in-sm { max-width: 130px; }
.form-row .radio { display: inline-block; margin-right: 18px; font-size: 14px; }
.form-row input[type=file] { margin-top: 6px; }
.form-row .muted { display: block; margin-top: 4px; }

/* 各类盒子 */
.auth-box, .query-box, .buy-box, .pay-box, .order-box, .article-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; max-width: 620px; }
.query-box, .buy-box, .pay-box { max-width: 640px; margin: 0 auto; }
.buy-product { padding: 12px; background: #f8fafc; border-radius: 8px; margin-bottom: 16px; display: flex; justify-content: space-between; }
.product-detail { display: flex; gap: 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.product-cover img { max-width: 320px; width: 100%; border-radius: 10px; }
.product-info { flex: 1; min-width: 280px; }
.info-table { width: 100%; margin: 10px 0 16px; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.info-table th { width: 100px; color: #888; font-weight: 400; }
.desc-box, .article-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px; }
.desc-content { margin-top: 8px; font-size: 14px; color: #444; }
.crumb { font-size: 13px; color: #888; margin-bottom: 14px; }

/* 卡密展示 */
.card-result { margin-top: 16px; }
.card-list { margin-top: 10px; }
.card-item { background: #0f172a; color: #a5f3fc; font-family: Consolas, monospace; padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; word-break: break-all; }

/* 标签 */
.tag { display: inline-block; background: #e2e8f0; color: #475569; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.tag-success { background: #dcfce7; color: #166534; }
.tag-fail { background: #fee2e2; color: #991b1b; }

/* 列表 */
.list-box .list-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; font-size: 13px; text-align: left; }
.table th { background: #f8fafc; color: #64748b; font-weight: 600; }
.table tr:hover td { background: #fafbfc; }

/* ===== 管理后台 ===== */
.admin-body { background: #f1f5f9; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side { width: 200px; background: #0f172a; color: #cbd5e1; padding: 20px 0; flex-shrink: 0; }
.admin-logo { color: #fff; font-weight: 700; padding: 0 20px 16px; border-bottom: 1px solid #1e293b; margin-bottom: 12px; }
.admin-nav a { display: block; color: #cbd5e1; padding: 10px 20px; font-size: 14px; }
.admin-nav a:hover { background: #1e293b; color: #fff; }
.admin-main { flex: 1; min-width: 0; }
.admin-top { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; }
.admin-title { font-size: 16px; font-weight: 700; }
.admin-user a { font-size: 13px; }
.admin-content { padding: 24px; }
.admin-login-body { background: #0f172a; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.admin-login-body .auth-box { width: 380px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.stat-label { font-size: 13px; color: #888; }
.stat-num { font-size: 26px; font-weight: 700; margin: 6px 0; color: #0f172a; }
.stat-sub { font-size: 12px; color: #94a3b8; }

/* 面板与工具栏 */
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; overflow-x: auto; }
.panel-head { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.toolbar { margin-bottom: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar-form input, .toolbar-form select { padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; }
.inline-form { display: inline-block; margin-right: 6px; }
.inline-form input { margin: 0 2px; }
.form-panel { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.form-box { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; }
.form-box h4 { margin-bottom: 10px; }

/* 柱状图（纯CSS，无外部依赖） */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; min-height: 170px; padding: 12px 0; overflow-x: auto; }
.bar-col { flex: 1; min-width: 42px; text-align: center; }
.bar-row { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 140px; }
.bar { width: 12px; border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-succ { background: #22c55e; }
.bar-fail { background: #ef4444; }
.bar-label { font-size: 10px; color: #64748b; margin-top: 4px; word-break: break-all; }
.bar-value { font-size: 10px; color: #94a3b8; }

/* 响应式 */
@media (max-width: 720px) {
  .header-inner { flex-direction: column; gap: 8px; }
  .nav a { margin-left: 10px; }
  .admin-side { width: 150px; }
  .product-detail { flex-direction: column; }
}

/* ===== 扩展功能样式 ===== */
.ads-box { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ad-item img { max-width: 100%; border-radius: 10px; max-height: 120px; }
.tip-box { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.tip-box.warn { background: #fef9c3; border-color: #fde047; color: #713f12; }
.gift-box { background: #f8fafc; border: 1px dashed #e5e7eb; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.gift-box h4 { font-size: 15px; margin-bottom: 8px; }
.promo-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px; margin-bottom: 16px; max-width: 640px; }
.promo-box .form-row label { font-weight: 600; }
.stat-mini { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #555; margin-top: 10px; }
.word-cloud { margin-bottom: 8px; }
.word-chip { display: inline-block; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 2px 10px; margin: 3px 4px 3px 0; font-size: 13px; }
.word-chip form { display: inline-block; }
.word-chip button { background: none; border: none; color: #888; cursor: pointer; font-size: 14px; margin-left: 2px; }
.tag-vip { background: #ede9fe; color: #5b21b6; }
.float-qq { position: fixed; right: 18px; bottom: 120px; background: #2563eb; color: #fff; border-radius: 10px; padding: 10px 8px; font-size: 12px; text-align: center; box-shadow: 0 4px 12px rgba(37,99,235,.3); z-index: 99; }
.float-qq a { color: #fff; text-decoration: none; display: block; }
.footer-links { margin-bottom: 8px; font-size: 13px; }
.footer-links a { color: #94a3b8; margin: 0 4px; }
.logo-img img { height: 36px; width: auto; vertical-align: middle; }
.buyer-history { margin-top: 18px; }
.invite-tip { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
.form-box h5 { margin-bottom: 8px; color: #475569; }

/* ===== 订单查询三模式选项卡 ===== */
.query-tabs { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.query-tab { border: 1px solid #dbe1ea; background: #fff; color: #475569; padding: 7px 18px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.query-tab:hover { border-color: #93c5fd; color: #2563eb; }
.query-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.order-item { border-bottom: 1px dashed #e5e7eb; padding: 12px 0; }
.order-item:last-child { border-bottom: none; }
#browser-result .order-box { margin-top: 14px; }

/* ===== 购买提示 ===== */
.buy-notice { background: #fff7ed; border-color: #fdba74; color: #7c2d12; }
.buy-notice strong { color: #c2410c; }

/* =================================================
   V2 界面改版：新导航 / Hero / 商品卡片 / 购买弹窗
   ================================================= */

/* 新式导航：白底吸顶 + 胶囊菜单 */
.site-header { background: #fff; box-shadow: 0 1px 12px rgba(15, 23, 42, .07); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
.logo { font-size: 19px; font-weight: 800; color: #0f172a; background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo:hover { color: #0f172a; }
.logo-img img { height: 36px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #475569; margin: 0; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.nav a:hover { color: #2563eb; background: #eff6ff; }
.nav a.active { color: #fff; background: #2563eb; }
.header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.header-actions .act-link { color: #475569; font-size: 14px; }
.header-actions .act-link:hover { color: #2563eb; }

/* 按钮扩展 */
.btn-outline { background: transparent; border-color: #2563eb; color: #2563eb; }
.btn-outline:hover { background: #eff6ff; color: #2563eb; }
.btn-dark { background: #0f172a; border-color: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-ghost { background: #eef2f7; border-color: transparent; color: #475569; }
.btn-ghost:hover { background: #e2e8f0; color: #1e293b; }

/* Hero 首页头图 */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #7c3aed 100%); border-radius: 16px; padding: 44px 28px; margin-bottom: 22px; text-align: center; color: #fff; box-shadow: 0 10px 30px rgba(37, 99, 235, .25); }
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero h1 { font-size: 32px; font-weight: 800; letter-spacing: 1px; }
.hero-dot { color: #fbbf24; }
.hero-sub { color: #dbeafe; font-size: 14px; margin: 8px 0 18px; }
.hero-search { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.hero-search input { flex: 1; border: none; outline: none; padding: 8px 18px; font-size: 14px; border-radius: 999px; color: #1e293b; }
.hero-search button { background: #2563eb; color: #fff; border: none; border-radius: 999px; padding: 8px 22px; font-size: 14px; font-weight: 600; cursor: pointer; }
.hero-search button:hover { background: #1d4ed8; }

/* 商品卡片升级 */
.grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { border: 1px solid #eef0f4; border-radius: 14px; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); transition: transform .15s, box-shadow .15s; position: relative; display: flex; flex-direction: column; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(15, 23, 42, .12); }
.card-cover { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; background: #f8fafc; overflow: hidden; }
.card-cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.cover-placeholder { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; font-size: 62px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); text-shadow: 0 4px 14px rgba(0,0,0,.2); }
.card-type { position: absolute; top: 10px; right: 10px; background: rgba(15, 23, 42, .72); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 11px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.card-title a { color: #0f172a; }
.price-row { align-items: baseline; margin-bottom: 6px; }
.price { color: #dc2626; font-weight: 800; font-size: 18px; }
.price-old { color: #94a3b8; text-decoration: line-through; font-size: 12px; }
.card-meta { display: flex; gap: 12px; font-size: 12px; margin-bottom: 6px; color: #64748b; }
.card .btn-block { margin-top: auto; border-radius: 999px; font-weight: 600; padding: 9px 16px; background: #2563eb; }
.card .btn-block:hover { background: #1d4ed8; }

/* 首页友情链接区块 */
.home-links { margin-top: 26px; background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 16px 20px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }
.home-links-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #4f46e5; display: inline-block; }
.home-links-list { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.home-links-list a { color: #475569; font-size: 13px; }
.home-links-list a:hover { color: #2563eb; }

/* 广告 */
.ads-box { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.ad-item { flex: 1; min-width: min(240px, 100%); display: block; }
.ad-item img { width: 100%; border-radius: 12px; display: block; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.ad-placeholder { width: 100%; height: 120px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 1px; text-align: center; padding: 0 14px; box-shadow: 0 2px 10px rgba(15,23,42,.12); }
.ad-item:nth-child(odd) .ad-placeholder { background: linear-gradient(135deg, #f43f5e, #f97316); }
.ad-item:nth-child(even) .ad-placeholder { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.cat-tab { background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 6px 18px; margin: 0 6px 8px 0; font-size: 13px; color: #475569; font-weight: 500; transition: all .15s; }
.cat-tab.active { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; border-color: transparent; }
.cat-tab:hover { border-color: #2563eb; color: #2563eb; }

/* 首页购买成功滚动广播（参考图：红框实时交易动态） */
.buy-ticker { display: flex; align-items: center; background: #fff; border: 2px solid #ef4444; border-radius: 8px; padding: 8px 14px; margin-bottom: 18px; overflow: hidden; box-shadow: 0 2px 8px rgba(239,68,68,.08); }
.buy-ticker-track { display: flex; gap: 48px; white-space: nowrap; animation: ticker-scroll 26s linear infinite; }
.buy-ticker:hover .buy-ticker-track { animation-play-state: paused; }
.buy-ticker-item { font-size: 13px; color: #333; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 公告盒 */
.announce-box { background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid #eef0f4; border-radius: 14px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.announce-title { color: #1e3a8a; }

/* ===== 购买提示弹窗（图2样式） ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; z-index: 999; }
.modal-box { background: #f1f3f5; border-radius: 14px; width: 92%; max-width: 480px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(135deg, #f97316, #ea580c); }
.modal-head h3 { font-size: 16px; color: #fff; }
.modal-close { background: none; border: none; font-size: 22px; color: #fff; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #fff; opacity: .85; }
.modal-body { padding: 16px 18px 14px; }
.modal-content { background: #fff; border: 1px solid #fde68a; border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #dc2626; line-height: 1.9; }
.modal-qq { margin-top: 12px; font-size: 14px; font-weight: 700; color: #16a34a; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 18px 16px; }

/* ===== 文章列表页（高端卡片模式，参考 svip.chat/blog） ===== */
.article-hero { background: linear-gradient(135deg, #111827 0%, #1e293b 50%, #312e81 100%); border-radius: 16px; padding: 42px 28px; margin-bottom: 24px; text-align: center; color: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); }
.article-hero-inner { max-width: 640px; margin: 0 auto; }
.article-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.article-hero-sub { color: #c7d2fe; font-size: 14px; margin: 10px 0 16px; }
.article-hero-count { display: inline-block; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 4px 16px; font-size: 12px; color: #e0e7ff; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.article-card { display: block; background: #fff; border: 1px solid #eef0f4; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); transition: transform .15s, box-shadow .15s; color: inherit; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, .14); color: inherit; }
.article-cover { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #d946ef 100%); }
.article-cover-text { font-size: 54px; font-weight: 800; color: rgba(255, 255, 255, .92); text-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.article-cat { position: absolute; top: 10px; right: 10px; background: rgba(15, 23, 42, .6); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 11px; }
.article-body { padding: 16px 18px 18px; }
.article-title { font-size: 16px; font-weight: 700; color: #111827; line-height: 1.45; margin-bottom: 8px; }
.article-summary { font-size: 13px; color: #64748b; line-height: 1.7; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.article-date { color: #94a3b8; }
.article-more { color: #4f46e5; font-weight: 600; }

/* ===== 文章详情页（高端阅读版式） ===== */
.article-detail-head { background: linear-gradient(135deg, #111827 0%, #1e293b 55%, #312e81 100%); border-radius: 16px; padding: 40px 30px; margin-bottom: 22px; color: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); }
.article-detail-inner { max-width: 760px; margin: 0 auto; }
.article-detail-head h1 { font-size: 26px; font-weight: 800; line-height: 1.5; letter-spacing: .5px; }
.article-detail-meta { margin-top: 14px; font-size: 13px; color: #c7d2fe; display: flex; gap: 16px; flex-wrap: wrap; }
.article-detail-desc { color: #a5b4fc; }
.article-detail-body { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 28px 32px; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.article-detail-body .desc-content { font-size: 15px; line-height: 2; color: #334155; }
.article-detail-back { margin-top: 24px; padding-top: 16px; border-top: 1px dashed #e2e8f0; font-size: 13px; }
.article-detail-back a { color: #4f46e5; }

/* 软件下载 */
.dl-box { margin-top: 26px; background: linear-gradient(180deg, #f8fafc, #fff); border: 1px solid #eef0f4; border-radius: 14px; padding: 18px 20px; }
.dl-title { font-size: 15px; font-weight: 800; color: #111827; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #4f46e5; display: inline-block; }
.dl-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #eef0f4; border-radius: 10px; margin-bottom: 10px; background: #fff; }
.dl-item:last-child { margin-bottom: 0; }
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-size: 14px; font-weight: 700; color: #111827; }
.dl-size { font-size: 12px; color: #64748b; font-weight: 400; margin-left: 8px; background: #f1f5f9; padding: 2px 8px; border-radius: 999px; }
.dl-note { font-size: 12px; color: #64748b; margin-top: 3px; }
.dl-btn { flex-shrink: 0; background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 999px; }
.dl-btn:hover { color: #fff; opacity: .9; }

/* 教程中心 */
.crumb { font-size: 13px; color: #94a3b8; margin-bottom: 16px; }
.crumb a { color: #4f46e5; }
.crumb-cur { color: #475569; }
.tutorial-tabs { margin-bottom: 20px; }
.tutorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 30px; }
.tutorial-card { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,.04); transition: all .15s; }
.tutorial-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,23,42,.1); border-color: #c7d2fe; }
.tutorial-cover { height: 120px; overflow: hidden; background: linear-gradient(135deg, #6366f1, #8b5cf6); display: flex; align-items: center; justify-content: center; }
.tutorial-cover img { width: 100%; height: 100%; object-fit: cover; }
.tutorial-letter { font-size: 46px; font-weight: 800; color: #fff; text-shadow: 0 4px 14px rgba(0,0,0,.2); }
.tutorial-body { padding: 14px 16px 16px; }
.tutorial-title { font-size: 15px; font-weight: 800; color: #111827; margin-bottom: 6px; }
.tutorial-summary { font-size: 12px; color: #64748b; line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tutorial-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tutorial-tag { font-size: 11px; color: #4f46e5; background: #eef2ff; padding: 2px 10px; border-radius: 999px; }
.tutorial-detail-head { background: linear-gradient(135deg, #1e293b, #312e81); border-radius: 16px; padding: 38px 28px; margin-bottom: 22px; color: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.25); }
.tutorial-detail-inner { max-width: 780px; margin: 0 auto; }
.tutorial-detail-head h1 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.tutorial-detail-meta { color: #c7d2fe; font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; }
.tutorial-detail-body { background: #fff; border: 1px solid #eef0f4; border-radius: 16px; padding: 32px 38px; box-shadow: 0 4px 16px rgba(15,23,42,.06); margin-bottom: 30px; }
.tutorial-content { font-size: 15px; line-height: 2.1; color: #1e293b; }
.tutorial-buy-box { margin-top: 26px; background: linear-gradient(180deg, #f8fafc, #fff); border: 1px solid #eef0f4; border-radius: 12px; padding: 16px 18px; }
.tutorial-buy-title { font-size: 14px; font-weight: 800; color: #111827; margin-bottom: 10px; }
.tutorial-buy-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tutorial-buy-name { font-size: 15px; font-weight: 700; color: #111827; margin-right: 10px; }
.tutorial-buy-price { font-size: 15px; font-weight: 800; color: #ef4444; margin-right: 8px; }
.tutorial-buy-member { font-size: 13px; color: #94a3b8; }

/* 下载软件中心 */
.cat-tab-dl { background: linear-gradient(135deg, #f59e0b, #f43f5e); color: #fff !important; border-color: transparent !important; }

/* 公告列表（独立页） */
.announce-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.announce-item { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 16px 20px; display: block; box-shadow: 0 2px 8px rgba(15,23,42,.04); transition: all .15s; }
.announce-item:hover { border-color: #f59e0b; box-shadow: 0 4px 14px rgba(245,158,11,.15); transform: translateY(-1px); }
.announce-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.announce-item-title { font-size: 15px; font-weight: 700; color: #111827; }
.announce-item-date { font-size: 12px; color: #94a3b8; flex-shrink: 0; }
.announce-item-summary { font-size: 13px; color: #64748b; margin-top: 6px; line-height: 1.7; }

/* 公告详情（专业版） */
.announce-detail-head { background: linear-gradient(135deg, #1e293b 0%, #334155 55%, #78350f 100%); border-radius: 16px; padding: 46px 32px 40px; margin-bottom: 24px; color: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); text-align: center; }
.announce-detail-inner { max-width: 760px; margin: 0 auto; }
.announce-detail-tag { display: inline-block; background: rgba(249,115,22,.18); border: 1px solid rgba(249,115,22,.5); color: #fdba74; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; letter-spacing: 2px; }
.announce-detail-head h1 { font-size: 28px; font-weight: 800; line-height: 1.5; margin: 0 0 14px; }
.announce-detail-meta { color: #cbd5e1; font-size: 13px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.announce-detail-body { background: #fff; border: 1px solid #eef0f4; border-radius: 16px; padding: 36px 42px; box-shadow: 0 4px 16px rgba(15, 23, 42, .06); margin-bottom: 30px; }
.announce-detail-content { font-size: 15px; line-height: 2.1; color: #1e293b; }
.announce-detail-footer { margin-top: 30px; padding-top: 20px; border-top: 1px dashed #e2e8f0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.announce-detail-note { font-size: 13px; color: #94a3b8; }
.dl-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.dl-card { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.dl-card-info { flex: 1; min-width: 0; }
.dl-card-name { font-size: 15px; font-weight: 800; color: #111827; }
.dl-card-note { font-size: 13px; color: #64748b; margin-top: 4px; }
.dl-card-from { font-size: 12px; color: #4f46e5; display: inline-block; margin-top: 6px; }
.dl-card-from:hover { text-decoration: underline; }

/* ===== 博客页：分类/搜索/侧边栏 ===== */
.article-hero-search { max-width: 480px; margin: 4px auto 0; }
.blog-layout { display: flex; gap: 24px; align-items: flex-start; }
.blog-main { flex: 1; min-width: 0; }
.blog-side { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.blog-widget { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }
.blog-widget h4 { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #4f46e5; display: inline-block; }
.blog-widget ul { list-style: none; }
.blog-widget li { padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #f1f5f9; }
.blog-widget li:last-child { border-bottom: none; }
.blog-widget li a { color: #334155; display: block; line-height: 1.5; }
.blog-widget li a:hover { color: #4f46e5; }
.blog-widget li .muted { display: block; font-size: 11px; margin-top: 2px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tag { display: inline-block; background: #eef2ff; color: #4f46e5; border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 500; }
.blog-tag:hover { background: #4f46e5; color: #fff; }
.blog-tag small { opacity: .7; margin-left: 2px; }
.blog-tag-light { background: rgba(255, 255, 255, .14); color: #e0e7ff; border: 1px solid rgba(255, 255, 255, .22); }
.blog-tag-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.article-detail-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.article-views { color: #94a3b8; }
.article-card .article-views { color: #94a3b8; }
@media (max-width: 860px) {
  .blog-layout { flex-direction: column; }
  .blog-side { width: 100%; }
}

/* =================================================
   移动端响应式美化（手机/平板）
   ================================================= */
@media (max-width: 860px) {
  .header-inner { flex-direction: row; flex-wrap: wrap; padding: 10px 14px; }
  .logo { font-size: 17px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; width: 100%; order: 3; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 12px; font-size: 13px; min-height: 38px; line-height: 26px; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { padding: 6px 12px; font-size: 13px; }

  .container { padding-left: 12px; padding-right: 12px; }
  .main { padding-top: 14px; padding-bottom: 24px; }

  /* 商品网格：手机双列 */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-cover { height: 120px; }
  .card-cover img { max-width: 100%; max-height: 100%; }
  .cover-placeholder { height: 120px; font-size: 42px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 13px; line-height: 1.4; }
  .price { font-size: 15px; }
  .price-old { font-size: 10px; }
  .card-meta { font-size: 11px; gap: 8px; }
  .card .btn-block { padding: 8px 12px; font-size: 13px; border-radius: 999px; min-height: 40px; }
  .card-type { font-size: 10px; top: 6px; right: 6px; }

  /* 教程中心 */
  .tutorial-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tutorial-cover { height: 88px; }
  .tutorial-letter { font-size: 34px; }
  .tutorial-body { padding: 10px 12px 12px; }
  .tutorial-title { font-size: 13px; }
  .tutorial-summary { font-size: 11px; }
  .tutorial-tag { font-size: 10px; padding: 2px 8px; }
  .tutorial-detail-head { padding: 24px 16px; border-radius: 12px; }
  .tutorial-detail-head h1 { font-size: 19px; }
  .tutorial-detail-body { padding: 18px 16px; border-radius: 12px; }
  .tutorial-content { font-size: 14px; line-height: 1.9; }
  .tutorial-buy-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tutorial-buy-row .dl-btn, .tutorial-buy-row .btn { width: 100%; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }

  /* 分类标签：横向滚动 */
  .cat-tabs, .tutorial-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar, .tutorial-tabs::-webkit-scrollbar { display: none; }
  .cat-tab, .tutorial-tabs .cat-tab { white-space: nowrap; flex-shrink: 0; }

  /* 弹窗全屏 */
  .modal-box { width: 94%; max-width: 94%; border-radius: 16px; }
  .modal-body { max-height: 62vh; overflow-y: auto; }

  /* 表格横向滚动 */
  .panel, .table-wrap { overflow-x: auto; }
  .table { min-width: 640px; }

  /* 博客文章卡片 */
  .article-card { padding: 14px 12px; }
  .article-card h3 { font-size: 15px; }
  .desc-content { font-size: 14px; line-height: 1.9; padding: 0 4px; }

  /* 公告列表 */
  .announce-card, .list-item { padding: 12px; }

  /* 表单 */
  .form-box, .promo-box { padding: 16px 14px; }
  .form-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .form-row input, .form-row textarea, .form-row select { width: 100%; box-sizing: border-box; min-height: 44px; font-size: 15px; }
  .btn { min-height: 40px; }

  /* 购买页 / 商品详情 */
  .product-detail { flex-direction: column; }
  .product-info { width: 100%; }
  .product-info .btn-block, .product-actions .btn { width: 100%; text-align: center; min-height: 46px; display: flex; align-items: center; justify-content: center; }

  /* 页脚地图：两列 */
  .footer-sitemap-cols { gap: 12px; }
  .footer-sitemap-col { flex: 1 1 42%; min-width: 42%; }
  .float-qq { right: 10px; bottom: 100px; padding: 8px 6px; font-size: 11px; }
  .float-qq a { padding: 2px 0; }

  /* 订单查询选项卡 */
  .query-tab { padding: 8px 12px; font-size: 13px; }
}

/* 小屏手机 400px 以下：保持单列安全 */
@media (max-width: 400px) {
  .grid, .tutorial-grid { grid-template-columns: 1fr; }
  .header-actions { width: 100%; }
  .footer-sitemap-col { flex: 1 1 100%; min-width: 100%; }
}

/* 后台移动端：侧栏收成顶部横条 */
@media (max-width: 760px) {
  .admin-wrap { flex-direction: column; }
  .admin-side { width: 100%; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
  .admin-side a { display: inline-block; padding: 7px 12px; margin: 2px 2px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.06); }
  .admin-main { width: 100%; padding: 14px 10px; }
  .admin-main .panel { padding: 12px; }
  .admin-main .toolbar { flex-wrap: wrap; gap: 8px; }
}

/* ===== 富文本编辑器（后台） ===== */
.rich-editor { border: 1px solid #d1d5db; border-radius: 8px; background: #fff; overflow: hidden; }
.rich-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.rich-btn { border: 0; background: transparent; padding: 5px 9px; min-width: 30px; cursor: pointer; border-radius: 5px; font-size: 13px; color: #334155; }
.rich-btn:hover { background: #e2e8f0; }
.rich-btn.active { background: #dbeafe; color: #1d4ed8; }
.rich-btn.is-loading { opacity: .5; pointer-events: none; }
.rich-sep { width: 1px; height: 20px; background: #e2e8f0; margin: 0 5px; }
.rich-select { border: 1px solid #cbd5e1; border-radius: 5px; font-size: 12px; padding: 3px 4px; background: #fff; color: #334155; }
.rich-wrap { margin: 0 4px; }
.rich-content { min-height: 220px; max-height: 560px; overflow-y: auto; padding: 12px 14px; font-size: 14px; line-height: 1.7; outline: none; }
.rich-content:empty::before { content: "在这里输入内容…"; color: #94a3b8; }
.rich-content table { border-collapse: collapse; margin: 8px 0; }
.rich-content table td, .rich-content table th { border: 1px solid #cbd5e1; padding: 5px 9px; min-width: 40px; }
.rich-content pre { background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 6px; font-size: 13px; overflow-x: auto; }
.rich-content blockquote { border-left: 3px solid #94a3b8; padding: 4px 12px; margin: 8px 0; color: #475569; background: #f8fafc; }
.rich-content img { max-width: 100%; height: auto; }
.rich-content a { color: #2563eb; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4, .rich-content h5, .rich-content h6 { margin: 10px 0 6px; line-height: 1.4; }
.rich-content ul, .rich-content ol { padding-left: 22px; margin: 6px 0; }

/* 前台富文本内容样式 */
.desc-content, .announce-detail-content, .tutorial-content, .dl-note, .dl-card-note, .tip-box { overflow-wrap: break-word; }
.desc-content img, .announce-detail-content img, .tutorial-content img, .dl-note img, .dl-card-note img, .tip-box img { max-width: 100%; height: auto; border-radius: 6px; }
.desc-content table, .announce-detail-content table, .tutorial-content table { border-collapse: collapse; margin: 10px 0; width: 100%; }
.desc-content table td, .desc-content table th, .announce-detail-content table td, .announce-detail-content table th, .tutorial-content table td, .tutorial-content table th { border: 1px solid #e2e8f0; padding: 7px 10px; }
.desc-content pre, .announce-detail-content pre, .tutorial-content pre { background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 6px; overflow-x: auto; font-size: 13px; }
.desc-content blockquote, .announce-detail-content blockquote, .tutorial-content blockquote { border-left: 3px solid #94a3b8; padding: 4px 12px; margin: 8px 0; color: #475569; background: #f8fafc; }
.desc-content h1, .desc-content h2, .desc-content h3, .announce-detail-content h1, .announce-detail-content h2, .announce-detail-content h3, .tutorial-content h1, .tutorial-content h2, .tutorial-content h3 { margin: 10px 0 6px; }
.desc-content ul, .desc-content ol, .announce-detail-content ul, .announce-detail-content ol, .tutorial-content ul, .tutorial-content ol { padding-left: 22px; margin: 6px 0; }

/* ===== Logo 上传 ===== */
.logo-upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.logo-preview { margin-top: 8px; }
.logo-preview img { max-height: 48px; max-width: 260px; border: 1px solid #e2e8f0; border-radius: 6px; padding: 4px; background: #fff; }
.site-header .logo-img img { max-height: 34px; width: auto; display: block; }

/* ===== 会员中心（高端仪表盘） ===== */
.user-hero { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; border-radius: 12px; padding: 20px 24px; margin-bottom: 16px; }
.user-hero-name { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.user-hero-actions { display: flex; gap: 8px; }
.user-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 12px; text-align: center; }
.stat-num { font-size: 20px; font-weight: 700; color: #0f172a; }
.stat-label { font-size: 12px; color: #64748b; margin-top: 2px; }
@media (max-width: 560px) {
  .user-hero { padding: 14px 16px; }
  .user-hero-name { font-size: 18px; }
  .user-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 二级分类 ===== */
.cat-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; padding: 8px 0; border-top: 1px dashed #e2e8f0; }
.cat-subtab { background: #f1f5f9; color: #475569; font-size: 13px; padding: 4px 12px; border-radius: 14px; }
.cat-subtab:hover { background: #e2e8f0; color: #0f172a; }
table .cat-big td { background: #f8fafc; }
.cat-sub-name { padding-left: 24px !important; color: #475569; }
.cat-empty td { font-size: 12px; }
.tag-info { background: #dbeafe; color: #1d4ed8; }

/* ===== 后台导航分组（大类/小类） ===== */
.admin-nav .admin-group-title { display: flex; align-items: center; justify-content: space-between; color: #94a3b8; font-size: 12px; font-weight: 600; letter-spacing: 1px; padding: 14px 14px 6px; cursor: pointer; user-select: none; }
.admin-nav .admin-group-title:hover { color: #cbd5e1; }
.admin-nav .g-arrow { font-size: 10px; transition: transform .2s; }
.admin-nav .admin-group-title.collapsed .g-arrow { transform: rotate(-90deg); }
.admin-nav .admin-group-body { display: none; padding: 0 8px 6px; }
.admin-nav .admin-link { display: block; padding: 8px 12px; margin: 2px 0; border-radius: 8px; color: #cbd5e1; font-size: 13.5px; }
.admin-nav .admin-link:hover { background: #334155; color: #fff; }
.admin-nav .admin-link.active { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,.35); }

/* ===== 分类管理：分组卡片（大类色块 + 小类列表） ===== */
.cat-group { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.cat-group-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; flex-wrap: wrap; }
.cat-group-name { font-size: 15.5px; letter-spacing: .5px; }
.cat-group-meta { font-size: 12px; opacity: .85; }
.cat-group-ops { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cat-group-ops .btn-sm { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.cat-group-ops .btn-sm:hover { background: rgba(255,255,255,.3); }
.cat-group-ops .btn-sm.btn-danger { background: rgba(220,38,38,.75); border-color: transparent; }
.cat-group-ops input[type=text], .cat-group-ops input[type=number] { background: rgba(255,255,255,.9); color: #0f172a; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 4px 6px; }
.cat-group-ops select { background: rgba(255,255,255,.9); color: #0f172a; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 4px; }
.cat-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; line-height: 1.5; }
.cat-badge-big { background: #fff; color: #6366f1; font-weight: 700; }
.cat-badge-sub { background: #e0e7ff; color: #4f46e5; }
.cat-group-subs { padding: 6px 12px 10px; }
.cat-sub-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; margin-top: 6px; background: #f8fafc; border: 1px solid #eef2f7; }
.cat-sub-row:hover { background: #f1f5f9; }
.cat-sub-name { font-size: 14px; color: #1e293b; min-width: 120px; }
.cat-sub-ops { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cat-sub-ops input[type=text], .cat-sub-ops input[type=number], .cat-sub-ops select { border: 1px solid #cbd5e1; border-radius: 6px; padding: 4px 6px; }
.cat-group-empty { padding: 12px 14px; color: #94a3b8; font-size: 13px; background: #f8fafc; border-top: 1px dashed #e2e8f0; }

/* ===== 前台分类胶囊层级强化 ===== */
.cat-tab.cat-big { border: 1px solid #c7d2fe; color: #4f46e5; background: #f5f3ff; }
.cat-tab.cat-big:hover { border-color: #6366f1; background: #eef2ff; color: #4338ca; }
.cat-tab.cat-big.active { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-color: transparent; box-shadow: 0 2px 10px rgba(99,102,241,.35); }
.cat-subtab { border: 1px solid #dbeafe; background: #eff6ff; color: #1d4ed8; }
.cat-subtab:hover { background: #dbeafe; color: #1e40af; }
.cat-subtab-label { font-size: 12px; color: #64748b; padding: 4px 0; }

/* ===== 分类面包屑（小类页） ===== */
.cat-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; padding: 8px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 13.5px; }
.cat-crumbs a { color: #6366f1; font-weight: 600; }
.cat-crumbs a:hover { text-decoration: underline; }
.cat-crumbs .cat-crumb-cur { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; padding: 3px 12px; border-radius: 999px; font-weight: 600; }
.cat-crumbs > span:not(.cat-crumb-cur) { color: #94a3b8; }

/* ===== 全局立体化（前后台按钮/导航/胶囊） ===== */
/* 前台胶囊导航：立体胶囊 */
.nav a { box-shadow: 0 2px 0 rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.6); }
.nav a:hover { transform: translateY(-1px); box-shadow: 0 3px 6px rgba(37,99,235,.25), inset 0 1px 0 rgba(255,255,255,.7); }
.nav a.active { background: linear-gradient(180deg, #3b82f6, #2563eb); box-shadow: 0 3px 0 #1d4ed8, 0 6px 12px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.35); transform: translateY(-1px); }

/* 通用按钮：3D 立体 */
.btn { box-shadow: 0 2px 0 #cbd5e1, 0 4px 10px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.7); transition: all .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 3px 0 #94a3b8, 0 8px 16px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.8); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #94a3b8, 0 2px 6px rgba(15,23,42,.12); }
.btn-primary { background: linear-gradient(180deg, #3b82f6, #2563eb); box-shadow: 0 3px 0 #1d4ed8, 0 6px 12px rgba(37,99,235,.3), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { background: linear-gradient(180deg, #4f8ef7, #2f6ff0); box-shadow: 0 4px 0 #1e40af, 0 10px 18px rgba(37,99,235,.4); }
.btn-primary:active { background: #2563eb; box-shadow: 0 1px 0 #1e40af; }
.btn-danger { background: linear-gradient(180deg, #ef4444, #dc2626); box-shadow: 0 3px 0 #b91c1c, 0 6px 12px rgba(220,38,38,.3), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-danger:hover { box-shadow: 0 4px 0 #991b1b, 0 10px 18px rgba(220,38,38,.4); }
.btn-danger:active { box-shadow: 0 1px 0 #991b1b; }
.btn-dark { background: linear-gradient(180deg, #1e293b, #0f172a); box-shadow: 0 3px 0 #0b1220, 0 6px 12px rgba(15,23,42,.3); }
.btn-outline { box-shadow: 0 2px 0 #bfdbfe, 0 4px 10px rgba(37,99,235,.12); }
.btn-ghost { box-shadow: 0 2px 0 #cbd5e1, inset 0 1px 0 rgba(255,255,255,.8); }

/* 分类胶囊：立体 */
.cat-tab { box-shadow: 0 2px 0 #e2e8f0, inset 0 1px 0 rgba(255,255,255,.8); transition: all .12s; }
.cat-tab:hover { transform: translateY(-1px); }
.cat-tab.active { background: linear-gradient(180deg, #3b82f6, #2563eb); box-shadow: 0 3px 0 #1d4ed8, 0 6px 12px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.35); transform: translateY(-1px); }
.cat-tab.cat-big { box-shadow: 0 2px 0 #c7d2fe, inset 0 1px 0 rgba(255,255,255,.9); }
.cat-tab.cat-big.active { background: linear-gradient(180deg, #818cf8, #6366f1); box-shadow: 0 3px 0 #4f46e5, 0 6px 12px rgba(99,102,241,.4), inset 0 1px 0 rgba(255,255,255,.4); }
.cat-subtab { box-shadow: 0 2px 0 #bfdbfe, inset 0 1px 0 rgba(255,255,255,.9); transition: all .12s; }
.cat-subtab:hover { transform: translateY(-1px); }

/* 教程卡片按钮 */
.dl-btn { box-shadow: 0 3px 0 #d97706, 0 6px 12px rgba(245,158,11,.3), inset 0 1px 0 rgba(255,255,255,.35); transition: all .12s; }
.dl-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #d97706; }

/* 后台导航：立体 */
.admin-nav .admin-group-title { text-shadow: 0 1px 0 rgba(255,255,255,.06); }
.admin-nav .admin-link { box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: all .12s; }
.admin-nav .admin-link:hover { transform: translateX(2px); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.admin-nav .admin-link.active { background: linear-gradient(180deg, #818cf8, #6366f1); box-shadow: 0 3px 0 #4f46e5, 0 6px 12px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.4); }

/* 后台卡片：微立体 */
.stat-card, .panel, .card, .tutorial-card { box-shadow: 0 2px 0 rgba(15,23,42,.06), 0 6px 18px rgba(15,23,42,.08); }
.stat-card:hover, .panel:hover { box-shadow: 0 4px 0 rgba(15,23,42,.06), 0 12px 24px rgba(15,23,42,.12); }

/* ===== 强 3D 立体感（增强覆盖） ===== */
.btn { border: 1px solid #94a3b8; background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 55%, #cbd5e1 100%); box-shadow: 0 6px 0 #94a3b8, 0 10px 18px rgba(15,23,42,.22), inset 0 2px 0 rgba(255,255,255,1); }
.btn:hover { transform: translateY(1px); box-shadow: 0 5px 0 #94a3b8, 0 12px 22px rgba(15,23,42,.26), inset 0 2px 0 rgba(255,255,255,1); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #64748b, 0 3px 8px rgba(15,23,42,.2), inset 0 1px 0 rgba(255,255,255,.9); }
.btn-primary { border: 1px solid #1e40af; background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 55%, #2563eb 100%); box-shadow: 0 6px 0 #1e40af, 0 10px 18px rgba(37,99,235,.45), inset 0 2px 0 rgba(255,255,255,.65); }
.btn-primary:hover { transform: translateY(1px); box-shadow: 0 5px 0 #1e40af, 0 14px 24px rgba(37,99,235,.5), inset 0 2px 0 rgba(255,255,255,.7); }
.btn-primary:active { transform: translateY(5px); box-shadow: 0 1px 0 #1e3a8a, 0 4px 10px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-danger { border: 1px solid #991b1b; background: linear-gradient(180deg, #f87171 0%, #ef4444 55%, #dc2626 100%); box-shadow: 0 6px 0 #991b1b, 0 10px 18px rgba(220,38,38,.4), inset 0 2px 0 rgba(255,255,255,.5); }
.btn-danger:hover { transform: translateY(1px); box-shadow: 0 5px 0 #991b1b, 0 14px 24px rgba(220,38,38,.45); }
.btn-danger:active { transform: translateY(5px); box-shadow: 0 1px 0 #7f1d1d, 0 4px 10px rgba(220,38,38,.3); }
.btn-dark { border: 1px solid #020617; background: linear-gradient(180deg, #334155 0%, #1e293b 55%, #0f172a 100%); box-shadow: 0 6px 0 #020617, 0 10px 18px rgba(15,23,42,.4), inset 0 2px 0 rgba(255,255,255,.25); }
.btn-dark:active { transform: translateY(5px); box-shadow: 0 1px 0 #020617, 0 4px 10px rgba(15,23,42,.3); }
.btn-outline { background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 55%, #bfdbfe 100%); box-shadow: 0 6px 0 #93c5fd, 0 8px 14px rgba(37,99,235,.18), inset 0 2px 0 rgba(255,255,255,.95); }
.btn-outline:active { transform: translateY(5px); box-shadow: 0 1px 0 #93c5fd; }
.btn-ghost { background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 55%, #e2e8f0 100%); box-shadow: 0 6px 0 #cbd5e1, 0 8px 14px rgba(15,23,42,.14), inset 0 2px 0 rgba(255,255,255,.95); }
.btn-ghost:active { transform: translateY(5px); box-shadow: 0 1px 0 #cbd5e1; }
.btn-sm { box-shadow: 0 4px 0 rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.8); }
.btn-sm:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(15,23,42,.2); }
.btn-lg { box-shadow: 0 8px 0 rgba(15,23,42,.2), 0 12px 22px rgba(15,23,42,.2), inset 0 2px 0 rgba(255,255,255,.9); }
.btn-lg:active { transform: translateY(6px); box-shadow: 0 2px 0 rgba(15,23,42,.2); }

/* 前台导航胶囊：实体 3D */
.nav a { border: 1px solid #d1d5db; background: linear-gradient(180deg, #ffffff 0%, #eef2f7 60%, #dbe2ea 100%); box-shadow: 0 4px 0 #cbd5e1, 0 6px 12px rgba(15,23,42,.15), inset 0 2px 0 rgba(255,255,255,1); }
.nav a:hover { transform: translateY(1px); box-shadow: 0 3px 0 #cbd5e1, 0 8px 16px rgba(37,99,235,.2), inset 0 2px 0 rgba(255,255,255,1); }
.nav a.active { border: 1px solid #1d4ed8; background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 55%, #2563eb 100%); box-shadow: 0 4px 0 #1e40af, 0 8px 16px rgba(37,99,235,.45), inset 0 2px 0 rgba(255,255,255,.55); transform: translateY(1px); }

/* 分类胶囊：实体 3D */
.cat-tab { border: 1px solid #cbd5e1; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #e2e8f0 100%); box-shadow: 0 4px 0 #cbd5e1, 0 6px 12px rgba(15,23,42,.12), inset 0 2px 0 rgba(255,255,255,1); }
.cat-tab:hover { transform: translateY(1px); box-shadow: 0 3px 0 #cbd5e1, 0 8px 14px rgba(37,99,235,.18); }
.cat-tab.active { border: 1px solid #1e40af; background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 55%, #2563eb 100%); box-shadow: 0 4px 0 #1e40af, 0 8px 16px rgba(37,99,235,.45), inset 0 2px 0 rgba(255,255,255,.55); transform: translateY(1px); }
.cat-tab.cat-big { border: 1px solid #a5b4fc; background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 60%, #ddd6fe 100%); box-shadow: 0 4px 0 #a5b4fc, 0 6px 12px rgba(99,102,241,.16), inset 0 2px 0 rgba(255,255,255,.95); }
.cat-tab.cat-big.active { border: 1px solid #4f46e5; background: linear-gradient(180deg, #a5b4fc 0%, #818cf8 55%, #6366f1 100%); box-shadow: 0 4px 0 #4338ca, 0 8px 16px rgba(99,102,241,.5), inset 0 2px 0 rgba(255,255,255,.5); }
.cat-subtab { border: 1px solid #93c5fd; background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 60%, #bfdbfe 100%); box-shadow: 0 3px 0 #93c5fd, 0 5px 10px rgba(37,99,235,.12), inset 0 1px 0 rgba(255,255,255,.95); }
.cat-subtab:hover { transform: translateY(1px); box-shadow: 0 2px 0 #93c5fd, 0 6px 12px rgba(37,99,235,.18); }

/* 教程下载按钮 */
.dl-btn { border: 1px solid #b45309; background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%); box-shadow: 0 5px 0 #b45309, 0 8px 16px rgba(245,158,11,.4), inset 0 2px 0 rgba(255,255,255,.5); }
.dl-btn:hover { transform: translateY(1px); box-shadow: 0 4px 0 #b45309, 0 10px 18px rgba(245,158,11,.45); }
.dl-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #92400e, 0 3px 8px rgba(245,158,11,.3); }

/* 后台导航：实体 3D */
.admin-nav .admin-link { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 0 rgba(0,0,0,.18); }
.admin-nav .admin-link:hover { transform: translateX(2px); box-shadow: 0 3px 0 rgba(0,0,0,.3), 0 6px 12px rgba(0,0,0,.25); }
.admin-nav .admin-link.active { border: 1px solid #4338ca; background: linear-gradient(180deg, #a5b4fc 0%, #818cf8 55%, #6366f1 100%); box-shadow: 0 4px 0 #4338ca, 0 8px 16px rgba(99,102,241,.5), inset 0 2px 0 rgba(255,255,255,.5); transform: translateX(2px); }

/* 卡片：底座厚度 3D */
.card, .tutorial-card, .stat-card, .panel { box-shadow: 0 5px 0 #e2e8f0, 0 14px 28px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.9); }
.card:hover, .tutorial-card:hover, .stat-card:hover { box-shadow: 0 6px 0 #cbd5e1, 0 20px 34px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.95); transform: translateY(-3px); }

/* ===== 后台导航放大（文字/箭头更清晰） ===== */
.admin-nav .admin-group-title { font-size: 14.5px; padding: 18px 14px 8px; color: #b8c4d6; letter-spacing: 1px; }
.admin-nav .g-arrow { font-size: 17px; font-weight: 900; color: #cbd5e1; width: 24px; height: 24px; line-height: 22px; text-align: center; border-radius: 7px; background: rgba(255,255,255,.09); box-shadow: 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.3); flex-shrink: 0; }
.admin-nav .admin-group-title:hover .g-arrow { color: #fff; background: rgba(255,255,255,.18); }
.admin-nav .admin-link { font-size: 15px; padding: 11px 14px; }
.admin-nav .admin-group-body { padding: 2px 10px 8px; }
@media (min-width: 769px) { .admin-side { width: 242px; } }
/* ===== 下载按钮文字清晰（深蓝底白字，修复黄底白字看不清） ===== */
.dl-btn { border: 1px solid #1e40af; background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 55%, #2563eb 100%); box-shadow: 0 5px 0 #1e40af, 0 8px 16px rgba(37,99,235,.45), inset 0 2px 0 rgba(255,255,255,.55); color: #fff; }
.dl-btn:hover { color: #fff; transform: translateY(1px); box-shadow: 0 4px 0 #1e40af, 0 10px 18px rgba(37,99,235,.5); }
.dl-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #1e3a8a, 0 3px 8px rgba(37,99,235,.3); }
/* ===== 修复博客导航“下载软件”按钮文字被白底白字掩盖 ===== */
.cat-tab-dl { border: 1px solid #be185d; background: linear-gradient(180deg, #fb7185 0%, #f43f5e 55%, #e11d48 100%); box-shadow: 0 4px 0 #be185d, 0 6px 12px rgba(244,63,94,.4), inset 0 2px 0 rgba(255,255,255,.5); color: #fff !important; }
.cat-tab-dl:hover { transform: translateY(1px); box-shadow: 0 3px 0 #be185d, 0 8px 14px rgba(244,63,94,.45); }
.cat-tab-dl:active { transform: translateY(3px); box-shadow: 0 1px 0 #9f1239, 0 3px 8px rgba(244,63,94,.3); }
/* ===== 登录/注册页底部文字遮挡修复（加大留白） ===== */
.main { padding-bottom: 64px; }
.auth-box { padding: 26px 26px 32px; }
.auth-box .muted.center { margin-top: 14px; line-height: 1.8; }
.auth-box form + .muted.center { margin-top: 18px; }

/* 后台：系统公告配置 */
.notice-config-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.notice-config-item { display: flex; align-items: center; gap: 6px; }
.notice-config-item > span { min-width: 64px; }
.notice-config-item input[type=text] { width: 180px; }

/* ===== 教程详情：内容+目录双列 ===== */
.tutorial-detail-body { display: flex; gap: 20px; align-items: flex-start; }
.tutorial-main { flex: 1 1 auto; min-width: 0; }
.tutorial-side { flex: 0 0 300px; position: sticky; top: 16px; }
@media (max-width: 860px) {
  .tutorial-detail-body { flex-direction: column; }
  .tutorial-side { flex: 1 1 auto; width: 100%; position: static; }
}
.tut-badge { display: inline-block; background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; border-radius: 999px; padding: 1px 10px; font-size: 12px; margin-left: 6px; }
.tut-badge-top { background: linear-gradient(135deg,#b45309,#f59e0b); color: #fff; border: 1px solid #92400e; box-shadow: 0 2px 0 rgba(146,64,14,.3); }
.tut-dir-box { background: #fff; border: 2px solid #dc2626; border-radius: 14px; overflow: hidden; box-shadow: 0 5px 0 rgba(220,38,38,.12), 0 12px 24px rgba(15,23,42,.08); }
.tut-dir-head { background: linear-gradient(135deg,#dc2626,#ef4444); color: #fff; padding: 12px 14px; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.tut-dir-tip { font-size: 12px; font-weight: 400; opacity: .85; }
.tut-dir-tags { padding: 10px 12px 2px; display: flex; gap: 8px; }
.tut-dir-tag { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 999px; font-size: 12px; padding: 2px 10px; }
.tut-dir-list { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.tut-dir-item { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border: 1px solid #f1f5f9; border-radius: 10px; background: #fafbfc; color: #334155; font-size: 13.5px; box-shadow: 0 2px 0 #e2e8f0; }
.tut-dir-item:hover { border-color: #fca5a5; background: #fff1f2; color: #b91c1c; }
.tut-dir-badge { flex: 0 0 auto; background: linear-gradient(135deg,#b45309,#f59e0b); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; box-shadow: 0 2px 0 rgba(146,64,14,.3); }
.tut-dir-title { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tut-dir-all { display: block; text-align: center; background: #f8fafc; color: #dc2626; font-size: 13px; padding: 10px; border-top: 1px dashed #e2e8f0; font-weight: 600; }
.tut-dir-all:hover { background: #fff1f2; }

/* ===== 视频教程：列表卡片 ===== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { display: block; background: #fff; border-radius: 14px; overflow: hidden; border: 2px solid #e2e8f0; box-shadow: 0 5px 0 rgba(15,23,42,.06), 0 12px 24px rgba(15,23,42,.08); transition: transform .15s, box-shadow .15s; }
.video-card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(15,23,42,.08), 0 18px 32px rgba(15,23,42,.14); border-color: #7c3aed; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1e1b4b, #312e81); display: flex; align-items: center; justify-content: center; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-cover-fallback { font-size: 34px; font-weight: 800; color: #fff; opacity: .9; }
.video-play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; border: 2px solid rgba(255,255,255,.6); }
.video-badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg,#b45309,#f59e0b); color: #fff; font-size: 11px; border-radius: 999px; padding: 2px 9px; box-shadow: 0 2px 0 rgba(146,64,14,.4); }
.video-badge.video-badge-prod { background: linear-gradient(135deg,#4f46e5,#7c3aed); box-shadow: 0 2px 0 rgba(67,56,202,.4); left: auto; right: 8px; }
.video-card-body { padding: 12px 14px 14px; }
.video-title { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.4; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 10px; font-size: 12px; color: #64748b; align-items: center; }
.video-cat { display: inline-block; background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; border-radius: 999px; padding: 1px 9px; font-size: 12px; }

/* ===== 视频播放页 ===== */
.video-detail-wrap { max-width: 1080px; margin: 0 auto; }
.video-player-box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 0 rgba(15,23,42,.08), 0 20px 40px rgba(15,23,42,.15); border: 2px solid #1e293b; }
.video-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-detail-head { padding: 18px 4px 8px; }
.video-detail-title { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.video-detail-meta { display: flex; gap: 14px; font-size: 13px; color: #64748b; align-items: center; }
.video-detail-layout { display: flex; gap: 20px; align-items: flex-start; margin-top: 14px; }
.video-detail-main { flex: 1 1 auto; min-width: 0; }
.video-detail-side { flex: 0 0 320px; }
@media (max-width: 860px) {
  .video-detail-layout { flex-direction: column; }
  .video-detail-side { flex: 1 1 auto; width: 100%; }
}
.video-intro { margin-bottom: 14px; }
.video-note { margin-bottom: 14px; }
.video-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.video-related-list li a { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid #f1f5f9; border-radius: 10px; background: #fafbfc; }
.video-related-list li a:hover { border-color: #a78bfa; background: #f5f3ff; }
.vr-thumb { flex: 0 0 110px; height: 62px; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #1e1b4b, #312e81); display: flex; align-items: center; justify-content: center; }
.vr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vr-fb { color: #fff; font-weight: 700; }
.vr-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vr-title { font-size: 13.5px; font-weight: 600; color: #0f172a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vr-meta { font-size: 12px; color: #64748b; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 6px; }
.page-info { color: #64748b; font-size: 13px; }

/* ===== 前台导航下拉（查看教程 ▸ 视频教程） ===== */
.nav .nav-item { position: relative; display: flex; align-items: center; margin-left: 0; }
.nav .nav-item > a { margin-left: 0; display: flex; align-items: center; height: 100%; }
.nav .nav-drop { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #dbe2ea; border-radius: 12px; min-width: 132px; padding: 6px; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; box-shadow: 0 8px 0 rgba(15,23,42,.06), 0 18px 34px rgba(15,23,42,.18); z-index: 120; }
.nav .nav-item:hover .nav-drop,
.nav .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav .nav-drop a { display: block; margin: 0; padding: 9px 16px; border-radius: 9px; font-size: 14px; text-align: center; white-space: nowrap; color: #334155; border: 1px solid transparent; background: transparent; box-shadow: none; }
.nav .nav-drop a:hover { color: #2563eb; background: #eff6ff; transform: none; box-shadow: none; }
.nav .nav-drop a.active { color: #fff; background: linear-gradient(180deg, #3b82f6, #2563eb); box-shadow: 0 3px 0 #1d4ed8; }
@media (max-width: 768px) {
  .nav .nav-item { margin-left: 0; }
  .nav .nav-drop { left: 50%; top: calc(100% + 8px); }
  .nav .nav-drop a { padding: 10px 18px; }
}

.admin-menu-btn { display: none; }
/* ===== 博客评论区 / 发帖页 ===== */
.article-comments { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin: 20px 0; box-shadow: 0 2px 10px rgba(15,23,42,.05); }
.comment-item { padding: 12px 0; border-bottom: 1px dashed #eef0f4; }
.comment-item:last-child { border-bottom: none; }
.comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.comment-name { font-weight: 600; color: #1e40af; }
.comment-time { font-size: 12px; color: #94a3b8; }
.comment-content { color: #334155; line-height: 1.7; word-break: break-all; }
.comment-form { margin-top: 16px; }
.comment-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 14px; resize: vertical; min-height: 72px; }
.comment-form .btn { margin-top: 8px; }
.article-hero-actions { margin-top: 12px; text-align: center; }
/* ===== 全站移动端自适应（手机 768px 及以下） ===== */
@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 14px; }
  .container { padding-left: 12px; padding-right: 12px; }
  /* 顶部导航紧凑换行 */
  .site-header .header-inner { padding: 8px 10px; gap: 8px; }
  .logo { font-size: 17px; }
  .logo-img { max-height: 34px; }
  .nav { gap: 3px; }
  .nav a, .nav .nav-item > a { padding: 5px 9px; font-size: 12.5px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { font-size: 12px; padding: 4px 10px; }
  /* 系统公告条 */
  .notice-bar-inner { padding: 8px 12px; font-size: 12.5px; }
  /* 首页 Hero */
  .hero-inner { padding: 28px 12px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 13px; }
  .hero-search { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-search input, .hero-search select { width: 100% !important; flex: 1 1 auto; }
  .hero-search button { width: 100%; }
  /* 商品网格：窄屏强制单列/双列 */
  .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .card { border-radius: 12px; }
  /* 博客/教程/视频网格 */
  .article-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .video-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .tutorial-grid, .tut-grid { grid-template-columns: 1fr !important; gap: 14px; }
  /* 商品详情单列 */
  .product-detail { flex-direction: column; gap: 14px; padding: 16px; }
  .product-cover { width: 100% !important; }
  .product-cover img { width: 100%; height: auto; }
  /* 表格横向滚动（前台+后台所有 table） */
  .table, .info-table, .admin-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  /* 富文本/正文图片自适应 */
  .rich-content img, .article-body img, .tutorial-content img, .video-intro img,
  .notice-content img, .announcement-content img, .product-desc img, .tut-dir-box img,
  iframe, video, embed { max-width: 100% !important; height: auto; }
  /* 页脚网站地图竖排 */
  .footer-sitemap-cols { flex-direction: column; gap: 10px; }
  .footer-sitemap-col { width: 100% !important; }
  .footer-links { flex-wrap: wrap; gap: 6px; }
  .footer-bottom { font-size: 12px; }
  /* 区块标题/面板 */
  .section-title { font-size: 17px; }
  .panel, .card { padding: 14px; }
  /* 表单：输入框/按钮触屏友好 */
  input[type=text], input[type=email], input[type=password], input[type=number],
  input[type=search], select, textarea { max-width: 100%; font-size: 15px; }
  .auth-box { padding: 18px 16px 24px; }
  /* 分页 */
  .pagination { gap: 8px; flex-wrap: wrap; }
  .page-info { font-size: 12px; }
  /* 教程详情双列已由既有断点处理；视频播放页保留16:9 */
  .video-player-box { border-radius: 10px; }
  .video-detail-title { font-size: 17px; }
  /* 订单查询/会员中心等操作按钮 */
  .btn { font-size: 13px; padding: 7px 14px; }
  /* 后台：侧栏滑出式菜单 */
  .admin-wrap { display: block; }
  .admin-side { position: fixed; top: 0; left: 0; bottom: 0; width: 240px !important; z-index: 900;
                transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 6px 24px rgba(15,23,42,.35); }
  .admin-side.open { transform: translateX(0); }
  .admin-main { margin-left: 0 !important; width: 100%; }
  .admin-top { padding: 8px 10px; }
  .admin-menu-btn { display: inline-flex !important; align-items: center; justify-content: center;
                    width: 36px; height: 36px; border: 1px solid #cbd5e1; border-radius: 8px;
                    background: linear-gradient(180deg,#fff,#eef2f7); color: #1e293b; font-size: 18px; cursor: pointer;
                    box-shadow: 0 2px 0 #cbd5e1; margin-right: 8px; user-select: none; }
  .admin-menu-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #cbd5e1; }
  .admin-content { padding: 12px 10px; }
  .admin-content .table, .admin-content .admin-table { white-space: nowrap; }
  /* 后台统计卡片 */
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .stat-card { padding: 12px; }
  /* 后台搜索筛选行 */
  .admin-filters, .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .admin-filters form, .filter-bar form { flex-direction: column; align-items: stretch; gap: 8px; }
  /* 公告/文章列表 */
  .ann-item, .article-item, .tut-item { padding: 12px; }
  .ann-title, .article-title, .tut-title { font-size: 15px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 21px; }
  .hero-sub { font-size: 12px; }
  .nav a, .nav .nav-item > a { padding: 4px 7px; font-size: 12px; }
  .grid, .video-grid { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: 1fr !important; }
  .video-title { font-size: 14px; }
  .video-meta { font-size: 11px; }
  .video-play-icon { width: 38px; height: 38px; }
  .flash { font-size: 13px; padding: 8px 12px; }
}

/* =================================================
   全站移动端兜底加固（表格/弹窗/表单/内嵌元素防溢出）
   ================================================= */
@media (max-width: 860px) {
  /* 表格横向滚动防溢出 */
  .panel table, .admin-main table, .user-stats + table, .order-box table, .data-table, .admin-table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* 弹窗自适应 */
  .modal-box { width: 92%; max-width: 430px; }
  .modal-body { max-height: 62vh; overflow-y: auto; }
  /* 正文/播放器内嵌宽元素 */
  .container iframe, .admin-main iframe, .dl-detail-wrap iframe,
  .article-detail-body iframe, .tutorial-detail-body iframe, .video-detail-wrap iframe,
  .rich-content iframe, .desc-content iframe, .tutorial-content iframe {
    max-width: 100%; }
  .rich-content video, .desc-content video, .tutorial-content video,
  .rich-content img, .desc-content img, .tutorial-content img { max-width: 100%; height: auto; }
  /* 首页 hero 搜索 */
  .hero-search { flex-wrap: wrap; }
  .hero-search input { flex: 1 1 100%; }
  .hero-search button { width: 100%; }
  /* 表单自适应 */
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row label { width: 100%; margin-bottom: 4px; }
  .form-box { padding: 16px 14px; }
  /* 商品配套服务卡片换行安全 */
  .rel-cat-item { flex-wrap: wrap; row-gap: 6px; }
  .rel-cat-item .rel-tag { margin-left: 0; }
  /* 订单查询/会员操作行 */
  .query-tabs, .order-actions, .member-actions { flex-wrap: wrap; }
  /* 详情页头部 */
  .article-detail-head, .video-detail-head, .tutorial-detail-head, .dl-detail-head { padding: 14px 14px; }
  .article-detail-head h1, .video-detail-head h1 { font-size: 17px; }
  /* 购买提示弹窗底部按钮 */
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 40%; min-height: 40px; }
  /* 页脚网站地图两列 */
  .footer-sitemap-cols { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* 广播滚动条 */
  .buy-ticker { font-size: 12px; }
}
@media (max-width: 420px) {
  .footer-sitemap-cols { grid-template-columns: 1fr; }
  .header-actions .btn { padding: 5px 10px; font-size: 12px; }
  .btn { font-size: 12.5px; padding: 6px 12px; }
  .modal-box { padding: 12px; }
}
