/* ===== 百事娱乐 CMS - 全局样式（纯 CSS，独立文件） ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { margin:0; padding:0; }
body {
  font-family:"Microsoft YaHei","PingFang SC",-apple-system,"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR","Segoe UI",sans-serif;
  background:#f0f2f5; color:#333; font-size:13px; line-height:1.6;
}
a { color:#1565c0; text-decoration:none; }
a:hover { color:#0d47a1; }
img { max-width:100%; height:auto; }
button { cursor:pointer; font-family:inherit; }

/* ===== 顶部通栏 ===== */
.topbar {
  height:56px; margin:0; background:#fff; border-bottom:1px solid #e5e5e5;
  display:flex; align-items:center; padding:0 16px; gap:24px;
  position:sticky; top:0; z-index:100;
}
.hamburger { width:22px; height:22px; cursor:pointer; color:#555; flex-shrink:0; }
.hamburger:hover { color:#1565c0; }
.logo { display:flex; align-items:center; gap:10px; }
.logo-circle {
  width:38px; height:38px; border-radius:50%;
  background:conic-gradient(#e53935 0 50%, #1565c0 50% 100%);
  position:relative; overflow:hidden;
}
.logo-circle::after {
  content:''; position:absolute; top:50%; left:0; right:0; height:4px; background:#fff;
  transform:translateY(-50%);
}
.logo-text { font-size:20px; font-weight:700; color:#222; }
.top-icons-center { display:flex; gap:36px; margin:0 auto; align-items:center; }
.top-icons-center svg { width:26px; height:26px; color:#555; cursor:pointer; }
.top-right { display:flex; align-items:center; gap:14px; margin-left:auto; }
.avatar-emoji {
  width:38px; height:38px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #ffd54f, #ffb300);
  display:flex; align-items:center; justify-content:center; font-size:22px;
  border:2px solid #fff; box-shadow:0 0 0 1px #ddd; position:relative;
}
.avatar-emoji svg { width:22px; height:22px; color:#8a5a00; }
.balance { font-size:14px; color:#333; }
.balance b { color:#e53935; font-weight:600; }
.top-right svg { width:20px; height:20px; color:#666; cursor:pointer; }
.top-right .nav-link {
  color:#555; font-size:13px; padding:6px 12px; border-radius:4px;
  border:none; background:transparent; cursor:pointer; font-family:inherit;
}
.top-right .nav-link:hover { background:#f5f5f5; color:#1565c0; }
.top-right .nav-link.primary { background:#e53935; color:#fff; }
.top-right .nav-link.primary:hover { background:#c62828; color:#fff; }

/* ===== 主体布局 ===== */
.body-layout { display:flex; align-items:stretch; min-height:calc(100vh - 56px); }
.content-col { flex:1; min-width:0; display:flex; flex-direction:column; }
.main-row { display:flex; align-items:flex-start; flex:1; min-width:0; }

/* ===== 左侧边栏 ===== */
.sidebar {
  width:190px; background:#fff; border-right:1px solid #e5e5e5;
  flex-shrink:0; padding:12px 0;
  position:sticky; top:56px; height:calc(100vh - 56px); overflow-y:auto;
  align-self:flex-start;
}
.deposit-btns { display:flex; gap:10px; padding:0 12px 16px; }
.btn-red {
  flex:1; padding:10px 0; background:#e53935; color:#fff; border:none;
  border-radius:3px; font-size:14px; font-weight:600; cursor:pointer; text-align:center;
}
.btn-red:hover { background:#c62828; color:#fff; }
.btn-blue {
  flex:1; padding:10px 0; background:#1565c0; color:#fff; border:none;
  border-radius:3px; font-size:14px; font-weight:600; cursor:pointer; text-align:center;
}
.btn-blue:hover { background:#0d47a1; color:#fff; }
.menu-item {
  display:flex; align-items:center; gap:10px; padding:8px 14px;
  cursor:pointer; transition:background .15s;
}
.menu-item:hover { background:#f5f5f5; }
.menu-item.active { background:#e3f2fd; border-left:3px solid #1565c0; padding-left:11px; }
.menu-icon {
  width:32px; height:32px; border-radius:8px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  color:#fff; background:linear-gradient(135deg,#546e7a,#37474f);
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}
.menu-icon svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.mi-service { background:linear-gradient(135deg,#4facfe,#1565c0); }
.mi-soft    { background:linear-gradient(135deg,#43e97b,#128c7e); }
.mi-news    { background:linear-gradient(135deg,#fa709a,#e53935); }
.mi-hosting { background:linear-gradient(135deg,#5ee7df,#1565c0); }
.mi-security{ background:linear-gradient(135deg,#ff9a44,#e53935); }
.mi-webdev  { background:linear-gradient(135deg,#667eea,#764ba2); }
.mi-softdev { background:linear-gradient(135deg,#30cfd0,#330867); }
.mi-appdev  { background:linear-gradient(135deg,#a18cd1,#f5576c); }
.mi-promo   { background:linear-gradient(135deg,#0aa2c0,#0b2447); }
.menu-label { font-size:13px; color:#333; }
.sidebar-divider { border-top:1px solid #eee; margin:8px 0; }
.sidebar-group-title { padding:10px 14px 6px; font-size:12px; color:#999; }

/* 侧栏折叠 */
body.nav-collapsed .sidebar { display:none; }

/* ===== 主内容区 ===== */
.main { flex:1; padding:16px; min-width:0; }

/* 搜索栏 */
.search-bar {
  background:#fff; border:1px solid #e5e5e5; border-radius:6px;
  padding:16px 20px; margin-bottom:16px;
  display:flex; align-items:center; gap:12px;
}
.search-input {
  flex:1; display:flex; align-items:center; gap:10px;
  background:#f5f5f5; border-radius:6px; padding:10px 14px;
}
.search-input svg { width:18px; height:18px; color:#999; flex-shrink:0; }
.search-input input {
  flex:1; border:none; background:transparent; outline:none;
  font-size:14px; color:#333; min-width:0;
}
.search-btn {
  padding:10px 28px; background:#1565c0; color:#fff; border:none;
  border-radius:6px; font-size:14px; font-weight:500; cursor:pointer;
}
.search-btn:hover { background:#0d47a1; }

/* 区块标题 */
.section-head {
  display:flex; align-items:center; justify-content:space-between;
  margin:20px 0 14px;
}
.section-title { font-size:16px; font-weight:700; color:#333; display:flex; align-items:center; gap:8px; }
.section-title::before {
  content:''; width:3px; height:16px; background:#1565c0; border-radius:2px;
}
.section-more { font-size:12px; color:#1565c0; cursor:pointer; }

/* ===== 文章卡片网格 ===== */
.tpl-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
  margin-bottom:20px;
}
.tpl-card {
  background:#fff; border:1px solid #e5e5e5; border-radius:6px;
  overflow:hidden; cursor:pointer; transition:all .2s;
  display:flex; flex-direction:column;
}
.tpl-card:hover {
  border-color:#1565c0; box-shadow:0 4px 12px rgba(21,101,192,.1);
  transform:translateY(-2px);
}
.tpl-card a { color:inherit; }
.tpl-thumb {
  aspect-ratio:16/10; display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.9); font-size:28px; font-weight:700;
  position:relative; overflow:hidden;
  background:linear-gradient(135deg,#667eea,#764ba2);
}
.tpl-thumb img { width:100%; height:100%; object-fit:cover; }
.tpl-thumb .badge {
  position:absolute; top:8px; left:8px;
  padding:2px 8px; background:rgba(0,0,0,.5); color:#fff;
  font-size:10px; border-radius:3px; font-weight:400;
}
.tpl-info { padding:12px; flex:1; display:flex; flex-direction:column; }
.tpl-name { font-size:14px; font-weight:600; color:#333; margin-bottom:6px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tpl-meta { display:flex; justify-content:space-between; align-items:center; margin-top:auto; }
.tpl-price { font-size:16px; font-weight:700; color:#e53935; }
.tpl-price small { font-size:11px; font-weight:400; color:#999; }
.tpl-downloads { font-size:11px; color:#999; }

/* 主题色渐变 */
.tt1 { background:linear-gradient(135deg,#667eea,#764ba2); }
.tt2 { background:linear-gradient(135deg,#f093fb,#f5576c); }
.tt3 { background:linear-gradient(135deg,#4facfe,#00f2fe); }
.tt4 { background:linear-gradient(135deg,#43e97b,#38f9d7); }
.tt5 { background:linear-gradient(135deg,#fa709a,#fee140); }
.tt6 { background:linear-gradient(135deg,#30cfd0,#330867); }
.tt7 { background:linear-gradient(135deg,#ff9a9e,#fecfef); }
.tt8 { background:linear-gradient(135deg,#a18cd1,#fbc2eb); }

/* ===== 栏目卡片网格（网站应用 / 软件下载） ===== */
.cat-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:20px;
}
.cat-card {
  background:#fff; border:1px solid #e5e5e5; border-radius:8px; overflow:hidden;
  display:flex; flex-direction:column; transition:all .22s; color:inherit;
}
.cat-card:hover {
  border-color:#1565c0; box-shadow:0 10px 26px rgba(21,101,192,.14);
  transform:translateY(-3px); color:inherit;
}
.cat-thumb {
  position:relative; aspect-ratio:16/9; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.92); font-size:30px; font-weight:700;
  background:linear-gradient(135deg,#667eea,#764ba2);
}
.cat-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.cat-card:hover .cat-thumb img { transform:scale(1.05); }
.cat-thumb .tag {
  position:absolute; top:10px; left:10px; padding:3px 9px; border-radius:3px;
  font-size:11px; font-weight:400; background:rgba(0,0,0,.55); color:#fff;
}
.cat-thumb .tag.free { background:rgba(67,160,71,.92); }
.cat-thumb .tag.pay  { background:rgba(229,57,53,.92); }
.cat-body { padding:14px 16px 16px; flex:1; display:flex; flex-direction:column; }
.cat-title {
  font-size:15px; font-weight:600; color:#222; line-height:1.5; margin-bottom:6px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.cat-card:hover .cat-title { color:#1565c0; }
.cat-desc {
  font-size:12px; color:#8a8f99; line-height:1.75; margin-bottom:12px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.cat-meta {
  margin-top:auto; display:flex; align-items:center; justify-content:space-between;
  padding-top:10px; border-top:1px dashed #eee; font-size:11px; color:#aaa;
}
.cat-price { font-size:15px; font-weight:700; color:#e53935; }
.cat-price.free { color:#43a047; font-size:13px; }

/* ===== 右侧边栏 ===== */
.right-sidebar {
  width:430px; background:#fff; border:1px solid #e5e5e5; border-radius:10px;
  flex-shrink:0; padding:18px 18px 6px; margin:16px 16px 24px 0;
  position:sticky; top:72px; max-height:calc(100vh - 88px); overflow-y:auto;
  align-self:flex-start;
}
.rs-head {
  display:flex; justify-content:space-between; align-items:center;
  padding-bottom:12px; border-bottom:1px solid #eef1f5; margin-bottom:6px;
}
.rs-title {
  font-size:16px; font-weight:700; color:#222;
  display:flex; align-items:center; gap:7px;
}
.rs-title .ic { width:19px; height:19px; color:#ff7043; }
.rs-link { font-size:12px; color:#1565c0; cursor:pointer; }
.rec-item {
  display:flex; gap:14px; padding:12px 10px; margin:0 -10px;
  border-radius:10px; border-bottom:1px solid #f4f6f9;
  text-decoration:none; color:inherit; cursor:pointer;
  transition:background .18s, box-shadow .18s;
}
.rec-item:last-child { border-bottom:none; }
.rec-item:hover {
  background:#f7f9fc; color:inherit;
  box-shadow:0 2px 10px rgba(21,101,192,.07);
}
.rec-thumb {
  width:120px; height:86px; border-radius:9px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.92); font-size:26px; font-weight:700;
  background:linear-gradient(135deg,#667eea,#764ba2);
  overflow:hidden;
}
.rec-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.rec-item:hover .rec-thumb img { transform:scale(1.06); }
.rec-info {
  flex:1; min-width:0; padding:2px 0;
  display:flex; flex-direction:column;
}
.rec-name {
  font-size:14px; color:#252b37; font-weight:600; line-height:1.5; margin-bottom:5px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.rec-item:hover .rec-name { color:#1565c0; }
.rec-desc {
  font-size:12px; color:#8a94a6; line-height:1.65; margin-bottom:auto;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.rec-meta {
  display:flex; align-items:center; gap:12px; margin-top:8px;
}
.rec-price {
  font-size:12px; color:#e53935; font-weight:700; line-height:1.6;
  background:#fff1f0; padding:1px 9px; border-radius:20px;
}
.rec-price.free { color:#2e9e4f; background:#eafaf0; }
.rec-dl {
  margin-left:auto; font-size:12px; color:#9aa3b2;
  display:inline-flex; align-items:center; gap:4px;
}
.rec-dl .ic { width:14px; height:14px; }

/* ===== 列表页（新闻资讯） ===== */
.list-layout { display:flex; gap:16px; }
.list-main { flex:1; min-width:0; }
.list-card {
  background:#fff; border:1px solid #e5e5e5; border-radius:6px; padding:16px;
  margin-bottom:14px; display:flex; gap:16px; cursor:pointer; transition:all .2s;
  color:inherit;
}
.list-card:hover { border-color:#1565c0; box-shadow:0 2px 8px rgba(21,101,192,.1); color:inherit; }
.list-card .lc-thumb {
  width:200px; height:120px; border-radius:4px; flex-shrink:0; overflow:hidden;
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; font-weight:700;
  background:linear-gradient(135deg,#667eea,#764ba2);
}
.list-card .lc-thumb img { width:100%; height:100%; object-fit:cover; }
.list-card .lc-body { flex:1; min-width:0; }
.list-card .lc-title { font-size:16px; font-weight:600; color:#333; margin-bottom:8px; }
.list-card:hover .lc-title { color:#1565c0; }
.list-card .lc-desc { font-size:13px; color:#666; line-height:1.8; margin-bottom:8px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.list-card .lc-meta { display:flex; gap:14px; font-size:12px; color:#999; }
.list-card .lc-price { color:#e53935; font-weight:700; }

/* ===== 内容页 ===== */
.article-wrap {
  background:#fff; border:1px solid #e5e5e5; border-radius:6px; padding:24px 32px;
}
.article-title { font-size:22px; font-weight:700; color:#222; margin-bottom:14px; line-height:1.4; }
.article-meta {
  display:flex; gap:18px; padding-bottom:14px; margin-bottom:20px;
  border-bottom:1px solid #eee; font-size:12px; color:#999; flex-wrap:wrap;
}
.article-content { font-size:15px; line-height:2; color:#333; }
.article-content p { margin-bottom:16px; }
.article-content img { border-radius:4px; margin:8px 0; }

/* ===== 软件下载详情：软件信息卡 ===== */
.soft-hero {
  display:flex; align-items:stretch; gap:30px; padding:26px 28px; margin-bottom:20px;
  background:linear-gradient(150deg,#fbfdff 0%,#f1f7fe 60%,#eaf3fd 100%);
  border:1px solid #e2ebf7; border-radius:14px;
  box-shadow:0 6px 24px rgba(21,101,192,.06);
}
.soft-cover {
  flex:0 0 450px; width:450px; aspect-ratio:450/320; border-radius:12px; overflow:hidden;
  background:#fff; border:1px solid #e8eef7; display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(21,101,192,.10);
}
.soft-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.soft-cover-ph {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#f7fafe,#e9f1fb); color:#b3c6dd;
}
.soft-cover-ph svg { width:84px; height:84px; }
.soft-main { flex:1; min-width:0; display:flex; flex-direction:column; padding:2px 0; }
.soft-title { font-size:26px; font-weight:700; color:#1a2b3f; line-height:1.35; margin:0 0 14px; letter-spacing:.2px; }
.soft-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.soft-tag {
  display:inline-flex; align-items:center; gap:5px; font-size:12.5px; color:#1565c0;
  background:#fff; border:1px solid #d5e6fb; border-radius:20px; padding:4px 12px;
  box-shadow:0 1px 3px rgba(21,101,192,.06);
}
.soft-tag svg { width:14px; height:14px; }
.soft-facts {
  list-style:none; margin:0 0 20px; padding:0;
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 34px;
}
.soft-facts li { min-width:0; }
.soft-facts li span { display:block; color:#93a0b3; font-size:12px; margin-bottom:4px; letter-spacing:.3px; }
.soft-facts li b {
  display:block; color:#243447; font-weight:600; font-size:15px; line-height:1.5;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.soft-facts li b a { color:#1565c0; display:inline-flex; align-items:center; gap:4px; max-width:100%; }
.soft-facts li b a:hover { text-decoration:underline; }
.soft-facts li b svg { width:13px; height:13px; flex:0 0 auto; }
.soft-stats {
  display:flex; flex-wrap:wrap; gap:20px; font-size:12.5px; color:#8a94a6;
  margin-top:auto; padding-top:16px; border-top:1px dashed #dbe7f5;
}
.soft-stats span { display:inline-flex; align-items:center; gap:5px; }
.soft-stats svg { width:14px; height:14px; color:#a8b6c9; }
.soft-intro { background:#fff; border:1px solid #e6e9ef; border-radius:12px; padding:20px 24px; margin-bottom:20px; }
.soft-intro-head { display:flex; align-items:center; gap:7px; font-size:15px; font-weight:700; color:#1f2d3d; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid #f0f3f7; }
.soft-intro-head svg { width:17px; height:17px; color:#1565c0; }
.soft-intro p { margin:0; font-size:14px; line-height:1.95; color:#5a6675; }
@media(max-width:1200px){
  .soft-cover { flex:0 0 380px; width:380px; }
  .soft-title { font-size:23px; }
}
@media(max-width:900px){
  .soft-cover { flex:0 0 300px; width:300px; }
  .soft-title { font-size:20px; }
  .soft-hero { gap:20px; padding:20px; }
  .soft-facts { gap:12px 20px; }
}
@media(max-width:768px){
  .soft-hero { flex-direction:column; gap:16px; padding:16px; }
  .soft-cover { width:100%; flex:0 0 auto; aspect-ratio:450/320; }
  .soft-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; }
  .soft-title { font-size:18px; }
  .soft-stats { margin-top:4px; }
}

/* 付费预览 + 购买框 */
.pay-preview { position:relative; max-height:300px; overflow:hidden; }
.pay-preview::after {
  content:''; position:absolute; left:0; right:0; bottom:0; height:130px;
  background:linear-gradient(rgba(255,255,255,0), #fff);
  pointer-events:none;
}
.pay-box {
  border:1px solid #ffe0b2; background:linear-gradient(180deg,#fffaf3,#fff3e0);
  border-radius:10px; padding:28px; text-align:center; margin:22px 0 6px;
}
.pay-box .lock { font-size:34px; margin-bottom:8px; }
.pay-box h3 { font-size:18px; color:#e65100; margin-bottom:8px; }
.pay-box .price-line { color:#666; margin-bottom:16px; font-size:13px; }
.pay-box .price-line b { color:#e53935; font-size:22px; }
.pay-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.pay-btn {
  display:inline-block; padding:11px 30px; border-radius:6px; font-size:14px;
  font-weight:600; border:none; cursor:pointer; font-family:inherit;
}
.pay-btn.buy { background:#e53935; color:#fff; }
.pay-btn.buy:hover { background:#c62828; color:#fff; }
.pay-btn.ghost { background:#fff; border:1px solid #1565c0; color:#1565c0; }
.pay-btn.ghost:hover { background:#e3f2fd; color:#1565c0; }

/* ===== 表单样式（登录/注册独立页） ===== */
.form-box {
  background:#fff; border:1px solid #e5e5e5; border-radius:8px;
  padding:32px; max-width:440px; margin:40px auto;
}
.form-box h2 { font-size:20px; color:#222; margin-bottom:8px; text-align:center; }
.form-box .sub { text-align:center; color:#999; margin-bottom:24px; font-size:13px; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:13px; color:#555; margin-bottom:6px; }
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:5px;
  font-size:14px; outline:none; font-family:inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:#1565c0; }
.form-group .inline { display:flex; gap:10px; }
.form-group .inline input { flex:1; }
.form-btn {
  width:100%; padding:12px; background:#1565c0; color:#fff; border:none;
  border-radius:5px; font-size:15px; font-weight:600; cursor:pointer;
}
.form-btn:hover { background:#0d47a1; }
.form-links { text-align:center; margin-top:14px; font-size:13px; color:#666; }
.form-tip {
  background:#fff3e0; padding:10px 14px; border-radius:5px; margin-bottom:16px;
  font-size:13px; color:#e65100; line-height:1.6;
}

/* ===== 登录 / 注册弹窗 ===== */
.modal-mask {
  position:fixed; inset:0; background:rgba(15,23,42,.55); z-index:300;
  display:none; align-items:center; justify-content:center; padding:20px;
  backdrop-filter:blur(3px);
}
.modal-mask.open { display:flex; }
.auth-modal {
  position:relative; width:420px; max-width:100%; background:#fff;
  border-radius:14px; overflow:hidden; box-shadow:0 24px 70px rgba(0,0,0,.32);
  animation:authPop .22s ease;
}
@keyframes authPop { from { opacity:0; transform:translateY(14px) scale(.98);} to { opacity:1; transform:none; } }
.modal-close {
  position:absolute; top:12px; right:14px; width:28px; height:28px; border:none;
  background:rgba(255,255,255,.18); color:#fff; font-size:20px; line-height:1; border-radius:50%;
}
.modal-close:hover { background:rgba(255,255,255,.32); color:#fff; }
.auth-head {
  background:linear-gradient(135deg,#1565c0,#4facfe); color:#fff; padding:24px 26px 20px;
}
.auth-head h3 { font-size:19px; margin-bottom:4px; }
.auth-head p { font-size:12px; opacity:.85; }
.auth-tabs { display:flex; border-bottom:1px solid #eee; background:#fafbfc; }
.auth-tab {
  flex:1; padding:13px 0; text-align:center; font-size:14px; font-weight:600;
  color:#8a8f99; background:transparent; border:none; position:relative;
}
.auth-tab.active { color:#1565c0; background:#fff; }
.auth-tab.active::after {
  content:''; position:absolute; left:24%; right:24%; bottom:0; height:2px;
  background:#1565c0; border-radius:2px;
}
.auth-body { padding:22px 26px 26px; }
.auth-panel { display:none; }
.auth-panel.active { display:block; }
.auth-msg { display:none; padding:9px 12px; border-radius:5px; font-size:12px; margin-bottom:14px; }
.auth-msg.show { display:block; }
.auth-msg.err { background:#ffebee; color:#c62828; }
.auth-msg.ok { background:#e8f5e9; color:#2e7d32; }
.auth-row { margin-bottom:14px; }
.auth-row label { display:block; font-size:12px; color:#666; margin-bottom:6px; }
.auth-row input {
  width:100%; padding:11px 13px; border:1px solid #e0e0e0; border-radius:6px;
  font-size:14px; outline:none; font-family:inherit; background:#fafbfc;
}
.auth-row input:focus { border-color:#1565c0; background:#fff; }
.auth-captcha { display:flex; gap:10px; align-items:stretch; }
.auth-captcha input { flex:1; }
.auth-captcha img { height:42px; width:110px; object-fit:cover; border-radius:6px; cursor:pointer; border:1px solid #eee; }
.auth-submit {
  width:100%; padding:12px; border:none; border-radius:6px; font-size:15px;
  font-weight:600; color:#fff; background:#1565c0; margin-top:4px;
}
.auth-submit:hover { background:#0d47a1; }
.auth-submit:disabled { opacity:.6; cursor:not-allowed; }
.auth-foot { text-align:center; font-size:12px; color:#999; margin-top:14px; }

/* ===== 消息提示 ===== */
.msg-box { padding:12px 16px; border-radius:5px; margin-bottom:16px; font-size:14px; }
.msg-success { background:#e8f5e9; color:#2e7d32; border:1px solid #a5d6a7; }
.msg-error   { background:#ffebee; color:#c62828; border:1px solid #ef9a9a; }
.msg-info    { background:#e3f2fd; color:#1565c0; border:1px solid #90caf9; }

/* ===== 分页 ===== */
.pagination {
  display:flex; gap:8px; justify-content:center; margin:24px 0; flex-wrap:wrap;
}
.pagination a, .pagination span {
  padding:8px 14px; border:1px solid #ddd; border-radius:4px;
  font-size:13px; color:#555;
}
.pagination a:hover { border-color:#1565c0; color:#1565c0; }
.pagination .current { background:#1565c0; color:#fff; border-color:#1565c0; }

/* ===== Footer（位于主内容列底部） ===== */
.footer-card {
  background:#fff; border:1px solid #e5e5e5; border-radius:6px;
  padding:16px 24px; margin:0 16px 20px; text-align:center;
}
.footer-card .foot-line {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:8px; font-size:12px; color:#999; line-height:1.8;
}
.footer-card .f-site { font-size:13px; font-weight:600; color:#0057b8; }
.footer-card .f-sep { color:#ddd; }
.footer-card .f-copy { color:#999; }
.footer-card .f-addr { color:#999; }
.footer-card .f-icp { color:#999; text-decoration:none; }
.footer-card .f-icp:hover { color:#1565c0; text-decoration:underline; }

/* ===== 首页服务项目 ===== */
.service-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px;
}
.service-item {
  background:#fff; border:1px solid #e5e5e5; border-radius:8px; padding:26px;
  text-align:center; transition:all .2s;
}
.service-item:hover { border-color:#1565c0; box-shadow:0 8px 22px rgba(21,101,192,.12); transform:translateY(-3px); }
.service-item .si-icon { width:58px; height:58px; border-radius:14px; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; font-size:26px; }
.service-item h3 { font-size:16px; color:#333; margin-bottom:10px; }
.service-item p { font-size:13px; color:#666; line-height:1.8; }
.service-item .si-price { color:#e53935; font-weight:700; margin-top:12px; font-size:15px; }

/* ===== 服务单页（每个服务独立排版） ===== */
.sv-hero {
  position:relative; border-radius:12px; overflow:hidden; margin-bottom:18px;
  color:#fff; display:flex; align-items:center; gap:36px; padding:46px 42px;
  background:linear-gradient(120deg,#1565c0,#4facfe);
}
.sv-hero::after {
  content:''; position:absolute; right:-80px; top:-80px; width:320px; height:320px;
  border-radius:50%; background:rgba(255,255,255,.07);
}
.sv-hero .sv-text { flex:1; min-width:0; position:relative; z-index:1; }
.sv-hero .sv-tag {
  display:inline-block; padding:5px 14px; border-radius:20px;
  background:rgba(255,255,255,.18); font-size:12px; letter-spacing:1px; margin-bottom:16px;
}
.sv-hero h1 { font-size:33px; line-height:1.32; margin-bottom:14px; font-weight:700; }
.sv-hero .sv-lead { font-size:14px; line-height:1.95; opacity:.9; margin-bottom:22px; max-width:560px; }
.sv-hero .sv-img { width:44%; flex-shrink:0; position:relative; z-index:1; }
.sv-hero .sv-img img { width:100%; display:block; border-radius:10px; box-shadow:0 20px 44px rgba(0,0,0,.28); }
.sv-btns { display:flex; gap:12px; flex-wrap:wrap; }
.sv-btn {
  display:inline-block; padding:12px 26px; border-radius:6px; font-size:14px;
  font-weight:600; background:#fff; color:#0d47a1; border:1px solid transparent;
}
.sv-btn:hover { background:#f1f5fb; color:#0d47a1; }
.sv-btn.ghost { background:transparent; border-color:rgba(255,255,255,.55); color:#fff; }
.sv-btn.ghost:hover { background:rgba(255,255,255,.12); color:#fff; }
.sv-stats { display:flex; gap:46px; margin-top:26px; flex-wrap:wrap; }
.sv-stat b { display:block; font-size:26px; font-weight:700; line-height:1.2; }
.sv-stat span { font-size:12px; opacity:.75; }

/* 主题变体 */
.sv-hosting  { background:linear-gradient(120deg,#0f2027,#203a43 55%,#2c5364); }
.sv-security { background:linear-gradient(120deg,#141e30,#243b55); }
.sv-webdev   { background:linear-gradient(120deg,#1565c0,#5b8def); }
.sv-softdev  { background:linear-gradient(120deg,#232526,#414345); }
.sv-appdev   { background:linear-gradient(120deg,#4a00e0,#8e2de2); }
.sv-promo    { background:linear-gradient(120deg,#0b2447,#1565c0 55%,#0aa2c0); }

/* 深色居中横幅（安全维护 / 软件开发） */
.sv-hero.center { flex-direction:column; text-align:center; padding:56px 40px; }
.sv-hero.center .sv-lead { margin:0 auto 24px; }
.sv-hero.center .sv-btns { justify-content:center; }
.sv-hero.center .sv-stats { justify-content:center; }

.sv-section {
  background:#fff; border:1px solid #e5e5e5; border-radius:10px;
  padding:28px 30px; margin-bottom:18px;
}
.sv-sec-title { font-size:20px; font-weight:700; color:#222; margin-bottom:6px; }
.sv-sec-sub { font-size:13px; color:#98a2b3; margin-bottom:24px; }
.sv-grid { display:grid; gap:16px; }
.sv-grid.g3 { grid-template-columns:repeat(3,1fr); }
.sv-grid.g4 { grid-template-columns:repeat(4,1fr); }
.sv-grid.g2 { grid-template-columns:repeat(2,1fr); }
.sv-feature {
  border:1px solid #eef1f5; border-radius:9px; padding:22px 20px; background:#fafcff;
  transition:all .2s;
}
.sv-feature:hover { background:#fff; transform:translateY(-3px); box-shadow:0 12px 26px rgba(21,101,192,.1); }
.sv-f-icon {
  width:44px; height:44px; border-radius:11px; display:flex; align-items:center;
  justify-content:center; font-size:21px; margin-bottom:13px; background:#e8f1fc;
}
.sv-feature h4 { font-size:15px; color:#222; margin-bottom:8px; }
.sv-feature p { font-size:13px; color:#77808c; line-height:1.85; }

.sv-list { display:grid; grid-template-columns:repeat(2,1fr); gap:10px 28px; }
.sv-list li {
  list-style:none; font-size:13px; color:#555; line-height:2; padding-left:26px; position:relative;
}
.sv-list li::before {
  content:''; position:absolute; left:2px; top:9px; width:6px; height:11px;
  border-right:2px solid #1565c0; border-bottom:2px solid #1565c0;
  transform:rotate(45deg);
}
/* 纯 CSS 右箭头，避免特殊字符在部分系统显示为小方块 */
.arw {
  display:inline-block; width:6px; height:6px; margin-left:5px; vertical-align:1px;
  border-top:1.5px solid currentColor; border-right:1.5px solid currentColor;
  transform:rotate(45deg);
}

.sv-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.sv-step {
  border:1px dashed #dbe4f0; border-radius:9px; padding:22px 18px; background:#f8fafd;
}
.sv-step .no { font-size:24px; font-weight:800; color:#1565c0; opacity:.75; margin-bottom:8px; }
.sv-step h4 { font-size:14px; color:#222; margin-bottom:6px; }
.sv-step p { font-size:12px; color:#8a8f99; line-height:1.8; }

.sv-price-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.sv-price-card {
  border:1px solid #e5e5e5; border-radius:9px; padding:26px 22px; text-align:center;
  background:#fff; transition:all .2s;
}
.sv-price-card:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(21,101,192,.12); }
.sv-price-card.hot { border-color:#1565c0; box-shadow:0 14px 34px rgba(21,101,192,.16); position:relative; }
.sv-price-card.hot::before {
  content:'推荐'; position:absolute; top:-11px; left:50%; transform:translateX(-50%);
  background:#e53935; color:#fff; font-size:11px; padding:3px 12px; border-radius:12px;
}
.sv-price-card .plan { font-size:14px; color:#666; margin-bottom:10px; }
.sv-price-card .amount { font-size:30px; font-weight:800; color:#e53935; line-height:1.2; }
.sv-price-card .amount small { font-size:13px; font-weight:400; color:#999; }
.sv-price-card ul { list-style:none; margin:16px 0 18px; }
.sv-price-card li { font-size:12px; color:#77808c; line-height:2.1; }

.sv-cta {
  display:flex; align-items:center; justify-content:space-between; gap:22px;
  background:linear-gradient(120deg,#0d47a1,#1565c0); color:#fff;
  border-radius:10px; padding:30px 34px; margin-bottom:18px; flex-wrap:wrap;
}
.sv-cta h3 { font-size:20px; margin-bottom:6px; }
.sv-cta p { font-size:13px; opacity:.85; }

/* 服务图文分栏 */
.sv-split { display:flex; gap:28px; align-items:center; }
.sv-split .sv-split-img { width:42%; flex-shrink:0; }
.sv-split .sv-split-img img { width:100%; border-radius:9px; display:block; }
.sv-split .sv-split-text { flex:1; min-width:0; }
.sv-split.reverse { flex-direction:row-reverse; }

/* 多语言推广：语种标签云 */
.lang-cloud { display:flex; flex-wrap:wrap; gap:10px; }
.lang-chip {
  padding:9px 16px; border-radius:999px; font-size:13px; color:#3d4a5c;
  background:linear-gradient(135deg,#f6f9fd,#eaf1fa); border:1px solid #e0e9f5;
  transition:all .2s; cursor:default;
  font-family:"Microsoft YaHei","Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR","Segoe UI",sans-serif;
}
.lang-chip:hover {
  color:#1565c0; border-color:#b9d2ee; background:#fff;
  transform:translateY(-2px); box-shadow:0 6px 16px rgba(21,101,192,.12);
}

/* ===== 详情页版权声明卡片 ===== */
.site-notice {
  display:flex; align-items:flex-start; gap:12px;
  margin-top:28px; padding:14px 18px;
  background:linear-gradient(135deg,#f8f9fb,#eef1f5);
  border:1px solid #e5e9ef; border-left:3px solid #9aa7b8;
  border-radius:8px; color:#5b6675; font-size:13px; line-height:1.8;
}
.site-notice .sn-icon {
  width:30px; height:30px; border-radius:50%; flex-shrink:0;
  background:#fff; box-shadow:0 1px 4px rgba(90,102,120,.16);
  display:flex; align-items:center; justify-content:center; color:#7b8798;
  margin-top:1px;
}
.site-notice .sn-icon .ic { width:17px; height:17px; }
.site-notice .sn-text { flex:1; min-width:0; }
.site-notice b { color:#39424f; font-weight:700; }

/* ===== 详情页推荐下载（仅标题，无缩略图） ===== */
.detail-recos {
  margin-top:30px; padding-top:22px; border-top:1px solid #eef1f5;
}
.reco-head {
  font-size:15px; font-weight:700; color:#222;
  display:flex; align-items:center; gap:7px; margin-bottom:12px;
}
.reco-head .ic { width:18px; height:18px; color:#ff7043; }
.reco-list {
  list-style:none; display:grid; grid-template-columns:repeat(2,1fr);
  gap:4px 26px; margin:0; padding:0;
}
.reco-list li { min-width:0; }
.reco-list a {
  display:flex; align-items:center; gap:9px;
  padding:8px 10px; margin:0 -10px; border-radius:6px;
  font-size:13px; color:#4a5568; text-decoration:none;
  transition:background .15s, color .15s;
}
.reco-list a::before {
  content:''; width:5px; height:5px; border-radius:50%;
  background:#c9d3e0; flex-shrink:0; transition:background .15s;
}
.reco-list a:hover { background:#f5f8fd; color:#1565c0; }
.reco-list a:hover::before { background:#1565c0; }
.reco-list .rn {
  flex:1; min-width:0; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;
}

/* ===== 响应式 ===== */
@media (max-width:1440px){
  .right-sidebar{width:360px;}
  .rec-thumb{width:100px;height:72px;}
}
@media (max-width:1200px){
  .right-sidebar{display:none;}
  .tpl-grid{grid-template-columns:repeat(3,1fr);}
  .top-icons-center{gap:20px;}
  .service-grid{grid-template-columns:repeat(2,1fr);}
  .sv-grid.g4{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:900px){
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .sv-hero{flex-direction:column;align-items:flex-start;padding:32px 24px;gap:24px;}
  .sv-hero .sv-img{width:100%;}
  .sv-split, .sv-split.reverse{flex-direction:column;}
  .sv-split .sv-split-img{width:100%;}
  .sv-grid.g3{grid-template-columns:repeat(2,1fr);}
  .sv-steps{grid-template-columns:repeat(2,1fr);}
  .sv-price-grid{grid-template-columns:1fr;}
}
@media (max-width:768px){
  html, body { overflow-x:hidden; max-width:100%; }
  .topbar{padding:0 12px;gap:10px;}
  .logo-text{font-size:16px;}
  .top-icons-center{display:none;}
  .balance{display:none;}
  .main{width:100%;max-width:100%;padding:10px;flex:none;}
  .tpl-grid{grid-template-columns:repeat(2,1fr);}
  .search-bar{flex-direction:column;align-items:stretch;padding:12px;gap:10px;}
  .search-input{width:100%;}
  .search-input input{min-width:0;width:100%;}
  .search-btn{width:100%;}
  .section-head{flex-wrap:wrap;gap:6px;}
  .list-layout{flex-direction:column;}
  .service-grid{grid-template-columns:1fr;}
  .list-card{flex-direction:column;}
  .list-card .lc-thumb{width:100%;height:160px;}
  .footer-card{margin:0 10px 16px;padding:18px;}
  .reco-list{grid-template-columns:1fr;gap:2px;}
  .sv-section{padding:20px 16px;}
  .sv-grid.g4,.sv-grid.g3,.sv-grid.g2{grid-template-columns:1fr;}
  .sv-steps{grid-template-columns:1fr;}
  .sv-list{grid-template-columns:1fr;}
  .sv-hero h1{font-size:24px;}
  .sv-cta{flex-direction:column;align-items:flex-start;}
  /* 移动端侧栏抽屉 */
  .sidebar{
    display:block; position:fixed; left:0; top:56px; height:calc(100vh - 56px);
    z-index:150; transform:translateX(-100%); transition:transform .25s ease;
    box-shadow:4px 0 20px rgba(0,0,0,.16); padding-bottom:30px;
  }
  .sidebar.show{ transform:translateX(0); }
  body.nav-collapsed .sidebar{ display:none; }
  .right-sidebar{display:none;}
}
@media (max-width:600px){
  .tpl-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
  .cat-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
  .tpl-info{padding:10px;}
  .tpl-name{font-size:13px;}
  .cat-body{padding:10px 12px 12px;}
  .cat-title{font-size:13px;}
  .cat-desc{display:none;}
  .article-wrap{padding:16px;}
  .article-title{font-size:18px;}
  .auth-modal{width:100%;}
}
@media (max-width:420px){
  .tpl-grid{grid-template-columns:1fr;}
  .cat-grid{grid-template-columns:1fr;}
  .cat-desc{display:-webkit-box;}
}

/* ===== 内联 SVG 图标尺寸 ===== */
.ic { width:1.15em; height:1.15em; display:inline-block; vertical-align:-.18em; flex-shrink:0; }
.section-title .ic { width:18px; height:18px; color:#1565c0; }
.si-icon .ic { width:28px; height:28px; stroke-width:1.7; }
.sv-f-icon .ic { width:22px; height:22px; stroke-width:1.7; }
.lc-meta .ic, .article-meta .ic, .cat-meta .ic, .rec-meta .ic { width:13px; height:13px; vertical-align:-.2em; }
.pay-box .lock .ic { width:34px; height:34px; color:#e65100; }
.user-menu a .ui-icon .ic { width:26px; height:26px; }
.topbar .avatar-emoji .ic { width:22px; height:22px; color:#8a5a00; }

/* ===== 侧栏微信二维码 ===== */
.sidebar { display:flex; flex-direction:column; }
.sidebar-wechat {
  margin:auto 12px 8px; margin-top:auto; flex-shrink:0;
  padding-top:14px; border-top:1px solid #eee; text-align:center;
}
.sidebar-wechat img {
  width:104px; height:104px; display:block; margin:0 auto 8px;
  border:1px solid #eee; border-radius:6px; padding:4px; background:#fff;
}
.sidebar-wechat .sw-title { font-size:12px; color:#555; font-weight:600; }
.sidebar-wechat .sw-sub { font-size:11px; color:#aaa; margin-top:2px; }

/* ===== 移动端底部菜单 ===== */
.mobile-tabbar { display:none; }
@media (max-width:768px){
  body { padding-bottom:64px; }
  .footer-card { margin-bottom:16px; }
  .mobile-tabbar {
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:200;
    background:#fff; border-top:1px solid #e5e5e5;
    padding:5px 0 calc(5px + env(safe-area-inset-bottom));
    box-shadow:0 -2px 10px rgba(0,0,0,.05);
  }
  .mobile-tabbar a {
    flex:1; display:flex; flex-direction:column; align-items:center; gap:2px;
    font-size:11px; color:#777; padding:2px 0;
  }
  .mobile-tabbar a .ic { width:22px; height:22px; }
  .mobile-tabbar a.active { color:#1565c0; }
  .mobile-tabbar a.call { color:#e53935; }
  .mobile-tabbar a.call .mtb-ic {
    background:#e53935; color:#fff; border-radius:50%; width:40px; height:40px;
    display:flex; align-items:center; justify-content:center; margin-top:-18px;
    box-shadow:0 4px 10px rgba(229,57,53,.35);
  }
  .mobile-tabbar a.call .ic { width:20px; height:20px; }
  .mobile-tabbar a.call span:last-child { margin-top:2px; }

  /* 顶栏手机端优化 */
  .top-right { gap:6px; margin-left:auto; }
  .top-right .nav-link { padding:5px 8px; font-size:12px; }
  .avatar-emoji { display:none; }
  .main { padding:8px; }
  .sidebar { width:230px; }
  .sidebar-wechat img { width:120px; height:120px; }
  .sidebar-wechat { margin-bottom:16px; }
  .form-box { padding:22px 18px; margin:20px auto; }
  .sv-hero { padding:26px 18px; }
  .sv-hero h1 { font-size:22px; }
  .sv-stat { text-align:center; }
  .sv-stats { gap:24px; }
}


/* 扫码支付弹窗 */
.pay-modal{position:fixed;inset:0;z-index:9999;display:none}
.pay-modal.show{display:block}
.pay-modal-mask{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(2px)}
.pay-modal-card{position:relative;width:340px;max-width:calc(100% - 32px);margin:8vh auto 0;background:#fff;border-radius:14px;padding:24px 22px 20px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.25);animation:payIn .2s ease}
@keyframes payIn{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
.pay-modal-card h3{font-size:17px;color:#222;margin-bottom:4px}
.pay-modal-amt{font-size:26px;color:#e53935;font-weight:700;margin:8px 0 14px}
.pay-modal-qr{width:208px;height:208px;margin:0 auto 12px;padding:8px;border:1px solid #eee;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#fff}
.pay-modal-qr canvas,.pay-modal-qr img{width:100%!important;height:100%!important;object-fit:contain;display:block}
.pay-modal-tip{font-size:13px;color:#555}
.pay-modal-status{font-size:12.5px;color:#999;margin-top:8px}
.pay-modal-open{display:block;margin-top:10px;font-size:12.5px;color:#1565c0;text-decoration:underline}
.pay-modal-open:hover{color:#0d47a1}
.pay-modal-cancel{margin-top:16px;padding:9px 26px;border:1px solid #ddd;background:#fff;border-radius:7px;font-size:13.5px;color:#666;cursor:pointer;font-family:inherit}
.pay-modal-cancel:hover{border-color:#bbb;color:#333}
@media(max-width:600px){
  .pay-modal-card{margin-top:6vh;padding:20px 18px 16px}
}

/* ===== 会员中心：沿用站点布局（左侧主栏目 + 内容区会员导航） ===== */
.uc-hero{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:16px 20px;margin-bottom:16px}
.uc-hero .uc-avatar{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;background:linear-gradient(135deg,#1565c0,#667eea);color:#fff}
.uc-hero .uc-avatar svg{width:26px;height:26px}
.uc-hero .uc-userinfo{display:flex;flex-direction:column;gap:3px;min-width:0}
.uc-hero .uc-userinfo b{font-size:16px;color:#222}
.uc-hero .uc-userinfo span{font-size:12.5px;color:#999}
.uc-tabs{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.uc-tabs a{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:8px;background:#f3f6fb;color:#4b5b6f;font-size:13px;text-decoration:none;transition:.18s}
.uc-tabs a svg{width:16px;height:16px;flex:none}
.uc-tabs a:hover{background:#e7effa;color:#1565c0}
.uc-tabs a.active{background:#1565c0;color:#fff;box-shadow:0 4px 12px rgba(21,101,192,.25)}
.uc-main{flex:1;min-width:0}
.uc-panel{background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:22px;margin-bottom:16px}
.uc-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.uc-panel-head h2{font-size:17px;color:#222}
.uc-panel-head p{font-size:12.5px;color:#999;margin-top:3px}
@media(max-width:768px){
  .uc-hero{padding:14px 16px;gap:12px}
  .uc-tabs{margin-left:0;width:100%;display:grid;grid-template-columns:repeat(2,1fr)}
  .uc-tabs a{justify-content:center;font-size:13px;padding:9px 6px}
  .uc-panel{padding:16px}
}

/* ===== 文章套餐购买 / 下载 ===== */
.pkg-box{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid #dbe7f5;background:#f7fbff;border-radius:10px;padding:14px 16px;margin:16px 0}
.pkg-info{flex:1;min-width:170px}
.pkg-name{font-size:14.5px;font-weight:600;color:#222;display:flex;align-items:center;gap:6px}
.pkg-name svg{width:17px;height:17px;color:#1565c0}
.pkg-price{font-size:12.5px;color:#888;margin-top:4px}
.pkg-price b{color:#e53935;font-size:19px;margin-right:2px}
.pkg-action{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.pkg-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#1565c0;color:#fff;border:1px solid #1565c0;border-radius:6px;padding:9px 18px;font-size:13.5px;font-weight:600;cursor:pointer;text-decoration:none;font-family:inherit;white-space:nowrap}
.pkg-btn:hover{background:#0d47a1;border-color:#0d47a1;color:#fff}
.pkg-btn svg{width:15px;height:15px}
.pkg-btn-dl{background:#2e7d32;border-color:#2e7d32}
.pkg-btn-dl:hover{background:#1b5e20;border-color:#1b5e20}
.pkg-btn-ghost{background:#fff;color:#e53935;border-color:#f0b4b4}
.pkg-btn-ghost:hover{background:#fff5f5;color:#c62828;border-color:#e57373}
.pkg-pwd{font-size:12px;color:#666}
.pkg-pwd code{background:#eef4ff;border:1px solid #d6e4ff;border-radius:4px;padding:1px 6px;color:#1565c0;font-family:Consolas,Monaco,monospace;letter-spacing:1px}
.pkg-box form{display:inline}
.pkg-detail-list{margin-top:10px}
.pkg-detail-title{font-size:15px;font-weight:600;color:#222;margin:22px 0 4px;display:flex;align-items:center;gap:6px}
.pkg-detail-title svg{width:17px;height:17px;color:#1565c0}
/* 套餐卡片 */
.pkg-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;margin:12px 0 4px}
.pkg-card{display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#fbfdff,#f4f9ff);border:1px solid #dbe7f5;border-radius:12px;padding:16px 18px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;box-shadow:0 1px 3px rgba(21,101,192,.04)}
.pkg-card:hover{transform:translateY(-2px);border-color:#b9d5f2;box-shadow:0 10px 24px rgba(21,101,192,.12)}
.pkg-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.pkg-card-name{font-size:15px;font-weight:700;color:#1a2733;display:flex;align-items:center;gap:6px;line-height:1.5}
.pkg-card-name svg{width:17px;height:17px;color:#1565c0;flex:none}
.pkg-card-price{font-size:12px;color:#8a94a6;white-space:nowrap}
.pkg-card-price b{font-size:22px;color:#e53935;margin-right:2px}
.pkg-desc{font-size:12.5px;line-height:1.8;color:#6b7789;margin:0;flex:1;word-break:break-word}
.pkg-desc-empty{color:#9aa5b5}
.pkg-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:12px;border-top:1px dashed #e3edf8}
.pkg-card-foot form{display:inline;margin:0}
.pkg-card-inline{max-width:560px;margin:18px 0}
@media(max-width:600px){
  .pkg-box{padding:12px}
  .pkg-action{align-items:stretch;width:100%}
  .pkg-btn{width:100%}
  .pkg-cards{grid-template-columns:1fr}
}

/* ================= 前台代码块 ================= */
.article-content pre {
  margin: 18px 0; padding: 16px 18px; background: #1b2330; color: #e6edf3;
  border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.75;
  font-family: Consolas, Monaco, "Courier New", monospace;
}
.article-content pre code {
  background: none; padding: 0; color: inherit; font-family: inherit;
  font-size: inherit; white-space: pre; border: 0;
}
.article-content :not(pre) > code {
  background: #eef2f8; color: #c7254e; padding: 2px 6px; border-radius: 4px;
  font-size: 13px; font-family: Consolas, Monaco, monospace;
}
.code-shell {
  margin: 18px 0; border-radius: 10px; overflow: hidden;
  background: #1b2330; border: 1px solid #223047;
  box-shadow: 0 6px 18px rgba(15, 27, 45, .12);
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; background: #243247; border-bottom: 1px solid #2f3f58;
}
.code-bar-left { display: flex; align-items: center; gap: 8px; }
.code-dots { display: inline-flex; gap: 5px; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.code-dots i:nth-child(1) { background: #ff6058; }
.code-dots i:nth-child(2) { background: #ffbd2e; }
.code-dots i:nth-child(3) { background: #28c840; }
.code-lang { color: #9fb2c9; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.code-copy {
  border: 1px solid rgba(255, 255, 255, .18); background: transparent;
  color: #cfe0f5; font-size: 12px; padding: 4px 12px; border-radius: 5px;
  cursor: pointer; font-family: inherit; transition: all .18s;
}
.code-copy:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.code-copy.done { color: #7ee2a8; border-color: rgba(126, 226, 168, .45); }
.code-shell pre { margin: 0; border-radius: 0; box-shadow: none; border: 0; }
