/* ========================================================
 * 图文帮 www.tuwenbang.com  style.css
 * 基于 123 手机网 style.css 风格改造
 * 主色：科技蓝 #2563EB + 青蓝 #06B6D4
 * ======================================================== */

/* ============ CSS 变量 ============ */
:root {
  /* 主色（科技蓝体系） */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-deep: #1E40AF;
  --primary-light: #3B82F6;
  --accent: #06B6D4;
  --accent-dark: #0891B2;
  --brand-night: #0B1E4B;   /* 深蓝夜幕：hero / 深色背景 */

  /* 中性色 */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #F4F8FC;            /* 蓝调浅灰背景 */
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* 语义色 */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;

  /* 字体 */
  --font-sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Arial", sans-serif;

  /* 圆角 */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* 阴影（蓝调、更轻盈柔和，凸显清爽高端） */
  --shadow-sm: 0 1px 2px rgba(30, 64, 175, 0.04);
  --shadow: 0 6px 20px rgba(30, 64, 175, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 64, 175, 0.14);
  --shadow-blue: 0 10px 26px rgba(37, 99, 235, 0.16);

  /* 过渡 */
  --transition: 0.2s ease;

  /* 间距 */
  --container: 1200px;
}

/* ============ 重置 ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(37, 99, 235, 0.18); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ============ 通用工具类 ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.26);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #22d3ee 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.26);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--info-bg);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--border-light);
  color: var(--text);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ============ 卡片 ============ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 15px;
}

/* ============ 标签 ============ */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 500;
  white-space: nowrap;
}
.tag-primary { background: var(--info-bg); color: var(--primary); }
.tag-accent { background: rgba(6,182,212,0.1); color: var(--accent-dark); }
.tag-success { background: var(--success-bg); color: #065f46; }
.tag-warning { background: var(--warning-bg); color: #92400e; }
.tag-danger { background: var(--danger-bg); color: #991b1b; }
.tag-muted { background: var(--border-light); color: var(--text-secondary); }

/* ============ 提示条 ============ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--info-bg); color: #1e40af; border: 1px solid #bfdbfe; }

/* ========================================================
 *  📱 前台页面（PC + 手机浏览器）
 * ======================================================== */

/* ============ 顶部栏（深蓝夜幕）============ */
.topbar {
  background: linear-gradient(90deg, var(--brand-night) 0%, #14376F 60%, #1E40AF 100%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255, 255, 255, 0.85); }
.topbar a:hover { color: #fff; }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.topbar-user a { display: inline-flex; align-items: center; }
.topbar-user .topbar-reg {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 3px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
}
.topbar-user .topbar-reg:hover { color: #fff; filter: brightness(1.08); }
.topbar-balance {
  color: #7DD3FC;
  font-weight: 600;
}

/* ============ 头部（半透明白 + 毛玻璃）============ */
.site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 18px rgba(30, 64, 175, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary) 55%, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
  position: relative;
}
.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), transparent 55%);
  pointer-events: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}
.logo-tagline {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-list {
  display: flex;
  gap: 2px;
  max-width: 880px;
  flex-wrap: nowrap;
}
.nav-list li { flex-shrink: 0; }
.nav-list li a {
  padding: 10px 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  display: block;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-list li a:hover {
  color: var(--primary);
  background: var(--info-bg);
}
.nav-list li a.active {
  color: var(--primary);
  background: var(--info-bg);
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  max-width: 260px;
  flex-shrink: 0;
}
.header-search input {
  border: none;
  padding: 10px 12px;
  width: 190px;
  background: transparent;
  outline: none;
  font-size: 14px;
}
.header-search button {
  background: var(--primary);
  color: #fff;
  padding: 0 14px;
  height: 44px;
  font-size: 15px;
}

/* ============ 头部用户区 ============ */
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  white-space: nowrap;
}
.header-user-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.header-user-link:hover { color: var(--primary); }
.header-user-balance {
  font-size: 12px;
  color: var(--danger);
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 4px;
  padding: 2px 8px;
}

/* ============ 面包屑 ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 20px 0;
  max-width: var(--container);
  margin: 0 auto;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; color: var(--text-muted); }

/* ============ 首页 Banner（深蓝科技渐变 + 光晕网格）============ */
.home-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(820px 380px at 12% -10%, rgba(59, 130, 246, 0.5), transparent 62%),
    radial-gradient(680px 340px at 88% 12%, rgba(6, 182, 212, 0.42), transparent 62%),
    linear-gradient(135deg, #0B1E4B 0%, #1E40AF 48%, #2563EB 78%, #06B6D4 135%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  margin-bottom: 32px;
  box-shadow: 0 18px 44px rgba(11, 30, 75, 0.28);
}
.home-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 0%, #000 25%, transparent 88%);
  mask-image: radial-gradient(80% 90% at 50% 0%, #000 25%, transparent 88%);
}
.home-banner > * { position: relative; z-index: 1; }
.home-banner h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.home-banner p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
}
.home-banner .btn {
  background: #fff;
  color: var(--primary);
  font-size: 15px;
  padding: 12px 28px;
}
.home-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ============ 通用频道 Hero（software.php 等）============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(820px 380px at 12% -10%, rgba(59, 130, 246, 0.5), transparent 62%),
    radial-gradient(680px 340px at 88% 12%, rgba(6, 182, 212, 0.42), transparent 62%),
    linear-gradient(135deg, #0B1E4B 0%, #1E40AF 48%, #2563EB 78%, #06B6D4 135%);
  color: #fff;
  padding: 52px 24px;
  text-align: center;
  margin-bottom: 28px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 0%, #000 25%, transparent 88%);
  mask-image: radial-gradient(80% 90% at 50% 0%, #000 25%, transparent 88%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero p { opacity: .9; font-size: 15px; }
.hero .hero-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Hero / Banner 入场动效（克制的精致感） */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.home-banner h1, .hero h1 { animation: heroUp .5s ease both; }
.home-banner p, .hero p   { animation: heroUp .5s .08s ease both; }
.home-banner .btn, .hero .btn { animation: heroUp .5s .16s ease both; }
.home-banner .hero-chip, .hero .hero-chip { animation: heroUp .5s .24s ease both; }

/* 数字/价格用等宽感数字字体，更精致 */
.template-price, .topbar-balance { font-family: var(--font-num); }

/* ============ 首页轮播 + 最新发布 ============ */
.banner-layout {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.banner-slider {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 2.6 / 1;
}
.banner-slides,
.banner-slide {
  width: 100%;
  height: 100%;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.banner-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 44px;
  color: #fff;
  background: linear-gradient(90deg, rgba(10,20,50,0.65) 0%, rgba(10,20,50,0.2) 55%, rgba(10,20,50,0) 100%);
}
.banner-body h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.banner-body p {
  font-size: 15px;
  opacity: 0.92;
  margin-bottom: 20px;
  max-width: 520px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.banner-btns .btn {
  background: #fff;
  color: var(--primary);
  font-size: 15px;
  padding: 12px 28px;
}
.banner-btns .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 2;
}
.banner-arrow:hover { background: rgba(255,255,255,0.45); }
.banner-prev { left: 14px; }
.banner-next { right: 14px; }
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition);
}
.banner-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}
.banner-news {
  width: 320px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.banner-news .section-header { margin-bottom: 12px; }
.banner-news-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.banner-news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
  transition: color var(--transition);
}
.banner-news-item:last-child { border-bottom: none; }
.banner-news-item:hover { color: var(--primary); }
.banner-news-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.banner-news-cat {
  font-size: 11px;
  color: var(--primary);
  background: rgba(37,99,235,0.08);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.banner-news-date {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============ 区块标题 ============ */
.section { margin-bottom: 36px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-left: 12px;
  letter-spacing: 0.5px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.section-more {
  font-size: 13px;
  color: var(--text-muted);
}
.section-more:hover { color: var(--primary); }

/* ============ 工具卡片网格 ============ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tool-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}
.tool-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
/* 付费工具：卡片右上角徽标 */
.tool-paid {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--warning-bg);
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  padding: 3px 8px;
  font-weight: 600;
}

/* ============ 模板卡片网格 ============ */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.template-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.template-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.template-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 40px;
}
.template-info { padding: 14px 16px 16px; }
.template-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.template-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.template-price {
  font-weight: 700;
  color: var(--danger);
  font-size: 15px;
}
.template-price.free { color: var(--success); }

/* ============ 首页常用文库：横向图标卡片 ============ */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.lib-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lib-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-blue);
  transform: translateY(-3px);
}
.lib-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform .25s ease;
}
.lib-card:hover .lib-icon { transform: scale(1.08) rotate(-3deg); }
.lib-body { flex: 1; min-width: 0; }
.lib-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
}
.lib-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: #cbd5e1;
  transition: transform .25s ease, color .25s ease;
}
.lib-card:hover .lib-arrow { transform: translateX(4px); color: var(--primary); }
/* 12 类配色（柔和渐变图标区） */
.c-blue .lib-icon   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.c-cyan .lib-icon   { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.c-indigo .lib-icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.c-green .lib-icon  { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.c-purple .lib-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.c-pink .lib-icon   { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.c-amber .lib-icon  { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.c-red .lib-icon    { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.c-slate .lib-icon  { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); }
.c-teal .lib-icon   { background: linear-gradient(135deg, #ccfbf1, #99f6e4); }
.c-rose .lib-icon   { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }
.c-violet .lib-icon { background: linear-gradient(135deg, #ede9fe, #e9d5ff); }
@media (max-width: 768px) {
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .lib-grid { grid-template-columns: 1fr; }
}


/* ============ 门店卡片 ============ */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.store-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.store-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.store-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.store-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}
.store-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.store-cert {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  background: var(--success-bg);
  color: #065f46;
  border-radius: 4px;
}
.store-addr {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.store-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.store-tags .tag {
  font-size: 11px;
  padding: 1px 8px;
}
.store-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

/* ============ 服务品类卡片 ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 24px;
}
.service-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.service-price {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* ============ 文章卡片 ============ */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.article-thumb {
  width: 160px;
  height: 100px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 32px;
  flex-shrink: 0;
}
.article-main { flex: 1; min-width: 0; }
.article-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}
.article-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ 模板详情页 ============ */
.template-detail {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
}
.detail-preview {
  position: sticky;
  top: 90px;
}
.detail-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 60px;
  margin-bottom: 16px;
  overflow: hidden;
}
.detail-info h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.detail-info .summary {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.detail-meta-item {
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.detail-meta-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.detail-meta-value {
  font-weight: 600;
}

/* ============ 文章详情 ============ */
.article-detail {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border-light);
}
.article-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}
.article-header-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #1e293b;
}
.article-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.article-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 10px;
}
.article-content p { margin-bottom: 14px; }
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px auto;
  display: block;
}
.article-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(6,182,212,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}
.article-content ul, .article-content ol {
  margin: 14px 0;
  padding-left: 24px;
}
.article-content li {
  margin-bottom: 6px;
  color: #334155;
}
.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.article-content table th,
.article-content table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article-content table th {
  background: var(--bg);
  font-weight: 600;
}

/* ============ 表单 ============ */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.form-group { margin-bottom: 16px; }

/* ============ 分页 ============ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 32px 0;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  transition: all var(--transition);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* ============ 底部（深蓝渐变 + 顶部科技光带）============ */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0B1E4B 0%, #0F172A 45%);
  color: #94a3b8;
  margin-top: 48px;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
  opacity: 0.9;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 8px;
  font-size: 13px;
}
.footer-col ul li a { color: #94a3b8; }
.footer-col ul li a:hover { color: #fff; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom span { margin: 0 8px; opacity: 0.5; }

/* 后台表格操作列：按钮紧凑排列、文字不换行 */
.admin-table .btn { white-space: nowrap; flex-shrink: 0; }
.admin-table .btn-sm { padding: 5px 10px; }

/* 底部网站导航 + 友情链接 */
.footer-links {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.footer-links-title {
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  flex-shrink: 0;
}
.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ========================================================
 *  🔐 后台管理 myadmin
 * ======================================================== */

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, var(--primary) 50%, var(--accent) 100%);
  padding: 20px;
}
.admin-login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 380px;
  box-shadow: var(--shadow-lg);
}
.admin-login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.admin-login-logo .logo-icon {
  width: 56px;
  height: 56px;
  font-size: 22px;
  margin: 0 auto 12px;
}
.admin-login-logo h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.admin-login-logo p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.admin-sidebar {
  width: 220px;
  background: #0f172a;
  color: #cbd5e1;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}
.admin-sidebar::-webkit-scrollbar { width: 5px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

.admin-logo {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-logo .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.admin-logo .logo-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.admin-logo .logo-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.admin-menu { padding: 12px; }
.admin-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: #cbd5e1;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.admin-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.admin-menu a.active {
  background: var(--primary);
  color: #fff;
}
.admin-menu .menu-icon {
  width: 20px;
  text-align: center;
  font-size: 17px;
}
.admin-menu .menu-group {
  padding: 14px 12px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-menu .sub-link {
  padding-left: 40px;
  font-size: 14px;
}
.admin-menu .sub-link::before { content: "· "; color: #475569; }

.admin-main {
  margin-left: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: #fff;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar .page-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.admin-topbar .admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-content {
  padding: 24px;
  flex: 1;
}

/* 仪表盘统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-change {
  font-size: 12px;
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* 后台表格 */
.admin-table-wrap {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }

/* 后台筛选条 */
.admin-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
}
/* 筛选条内元素统一高度 36px，垂直居中对齐，按钮禁止换行/压缩 */
.admin-filter-bar .form-input,
.admin-filter-bar .form-select,
.admin-filter-bar .btn {
  height: 36px;
  box-sizing: border-box;
}
.admin-filter-bar .form-input,
.admin-filter-bar .form-select {
  padding: 0 12px;
  font-size: 13px;
}
.admin-filter-bar .btn {
  padding: 0 16px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 36px;
}
.admin-filter-bar input[type="text"],
.admin-filter-bar input[type="search"] {
  min-width: 200px;
}

/* 后台标签页 */
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 4px;
}
.admin-tabs a {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 后台模态框 */
.admin-modal-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
}
.admin-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}
.admin-modal-close:hover { background: var(--bg); color: var(--text); }
.admin-modal-body { padding: 20px; }

/* ========================================================
 *  📱 响应式断点
 * ======================================================== */

/* 1024px 以下：平板 */
@media (max-width: 1024px) {
  .header-main { gap: 8px; }
  .logo { gap: 8px; }
  .logo-icon { width: 42px; height: 42px; font-size: 19px; }
  .nav-list li a { padding: 8px 10px; font-size: 14px; }
  .header-search input { width: 110px; padding: 8px 10px; }
  .header-search button { padding: 0 10px; height: 40px; font-size: 14px; }
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
  .templates-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .template-detail { grid-template-columns: 1fr; }
  .detail-preview { position: static; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 768px 以下：手机 */
@media (max-width: 768px) {
  .header-main { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .main-nav { order: 3; width: 100%; display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list li a { padding: 10px 16px; }
  .header-search { display: none; }

  .home-banner { padding: 28px 20px; border-radius: var(--radius); }
  .home-banner h1 { font-size: 22px; }
  .home-banner p { font-size: 14px; }
  .banner-layout { flex-direction: column; }
  .banner-slider { aspect-ratio: 2 / 1; }
  .banner-news { width: 100%; }
  .banner-body { padding: 24px 28px; }
  .banner-body h1 { font-size: 22px; }

  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tool-card { padding: 14px 10px; }
  .tool-icon { width: 40px; height: 40px; font-size: 20px; margin-bottom: 8px; }
  .tool-name { font-size: 12px; }

  .templates-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stores-grid { grid-template-columns: 1fr; gap: 12px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .section-title { font-size: 17px; }

  .article-card { flex-direction: column; padding: 14px; gap: 10px; }
  .article-thumb { width: 100%; height: 160px; }
  .article-detail { padding: 20px; border-radius: 0; }
  .article-header h1 { font-size: 20px; }
  .article-content { font-size: 15px; }

  /* 后台侧边栏折叠 */
  .admin-sidebar { width: 60px; }
  .admin-sidebar .logo-text,
  .admin-menu a span:not(.menu-icon),
  .admin-menu .menu-group,
  .admin-menu .sub-link { display: none !important; }
  .admin-main { margin-left: 60px; }
  .admin-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .admin-topbar { padding: 10px 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* 480px 以下：小屏手机 */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  body { font-size: 14px; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .templates-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }
  .btn { padding: 8px 16px; font-size: 13px; }
  .home-banner h1 { font-size: 20px; }
  .section-title { font-size: 16px; }
}

/* ============ 首页最新内容瀑布流（文库 + 文章） ============ */
.home-feed { display: flex; gap: 24px; align-items: flex-start; }
.feed-col { flex: 1; min-width: 0; }
.feed-col-main { flex: 1.6; } /* 左侧最新文库主栏 */
.masonry { column-count: 2; column-gap: 16px; }
.masonry-item { break-inside: avoid; margin-bottom: 16px; }

/* 文库瀑布卡片 */
.masonry-tpl {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.masonry-tpl:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.masonry-tpl-cover {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.masonry-tpl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.masonry-tpl-info { padding: 12px 14px 14px; }
.masonry-tpl-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.masonry-tpl-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* 文章瀑布卡片 */
.masonry-art {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.masonry-art:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.masonry-art-thumb {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}
.masonry-art-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.masonry-art-info { padding: 12px 14px 14px; }
.masonry-art-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.masonry-art-summary {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.masonry-art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .home-feed { flex-direction: column; }
  .feed-col-main { flex: none; }
}
@media (max-width: 480px) {
  .masonry { column-count: 1; }
}

/* ===== 后台数据中心仪表盘 v2（myadmin/index.php 专用）===== */
.dash-intro {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.dash-intro h2 { font-size: 22px; font-weight: 700; margin: 0; }
.dash-intro .dash-date { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.dash-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px;
}
.dash-stat {
  position: relative; background: #fff; border-radius: 14px; padding: 18px 18px 16px;
  border: 1px solid var(--border-light); overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--transition);
}
.dash-stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--sc, var(--primary));
}
.dash-stat:hover {
  box-shadow: var(--shadow); transform: translateY(-2px);
  border-color: var(--sc, var(--primary));
}
.dash-stat-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--sb, #EFF6FF); color: var(--sc, var(--primary));
}
.dash-stat-body { min-width: 0; }
.dash-stat-label { font-size: 12px; color: var(--text-muted); }
.dash-stat-value { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.25; }
.dash-stat-value small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.dash-stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.dash-todo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash-todo-item {
  display: flex; align-items: center; gap: 10px; padding: 14px;
  background: #fff; border: 1px solid var(--border-light); border-radius: 12px;
  text-decoration: none; color: inherit; transition: all var(--transition);
}
.dash-todo-item:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.dash-todo-icon {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--bg);
}
.dash-todo-label { font-size: 13px; color: var(--text); flex: 1; }
.dash-todo-count {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.dash-todo-count.has { background: var(--danger); color: #fff; }
.dash-todo-count.none { background: #e2e8f0; color: #64748b; }
.dash-head-icon { margin-right: 6px; }
@media (max-width: 1024px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-todo { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-stat { padding: 14px; }
  .dash-stat-value { font-size: 20px; }
  .dash-todo { grid-template-columns: 1fr; }
}


/* ===== AI 图片生成模块 ===== */
.ai-prompt-box {
  background: #f8fafc; border: 1px dashed #94a3b8; border-radius: 8px;
  padding: 12px 14px; font-size: 13px; color: #334155; line-height: 1.8;
  cursor: pointer; user-select: all;
}
.ai-prompt-box:hover { border-color: var(--primary); background: #eff6ff; }
.ai-faq-item { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.ai-faq-item:last-child { border-bottom: none; }
.ai-faq-q { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.ai-faq-a { color: #64748b; line-height: 1.8; }
.ai-scene-link {
  display: block; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; text-decoration: none; color: #334155; font-weight: 600;
  transition: all var(--transition);
}
.ai-scene-link:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.ai-scene-card {
  display: block; padding: 14px; background: #fff; border: 1px solid var(--border-light);
  border-radius: 12px; text-decoration: none; color: inherit; transition: all var(--transition);
}
.ai-scene-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
