/* ==========================================================
   知识付费平台 - 前台样式
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1f2937; background: #f4f6fa;
}
a { text-decoration: none; color: inherit; }
img { display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main { padding: 18px 16px 44px; }

/* ---------------- 顶部栏 ---------------- */
.topbar { background: #fff; border-bottom: 1px solid #eef0f4; }
.topbar-inner { display: flex; align-items: center; gap: 22px; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 340px; }
.logo-box {
  width: 48px; height: 48px; border-radius: 11px; flex: 0 0 48px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6 70%, #60a5fa);
  color: #fff; font-size: 23px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .28);
}
.brand-info { display: flex; flex-direction: column; }
.brand-name { font-size: 17px; font-weight: 700; color: #111827; }
.brand-company { font-size: 12.5px; color: #6b7280; margin-top: 1px; }
.brand-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.tag-badge {
  font-style: normal; font-size: 11px; line-height: 1;
  padding: 3px 6px; border-radius: 4px; border: 1px solid;
}
.tag-gold { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.tag-power { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.brand-desc { font-size: 12px; color: #9ca3af; }
.brand-desc b { color: #f59e0b; }

.search-form { flex: 1; max-width: 520px; display: flex; }
.search-input {
  flex: 1; height: 42px; border: 2px solid #ff6a00; border-right: none;
  border-radius: 8px 0 0 8px; padding: 0 14px; font-size: 13.5px; outline: none; background: #fff;
}
.search-input::placeholder { color: #b3bac6; }
.search-btn {
  width: 92px; height: 42px; border: none; cursor: pointer;
  background: linear-gradient(180deg, #ff8a00, #ff6a00); color: #fff;
  font-size: 14.5px; font-weight: 600; border-radius: 0 8px 8px 0; letter-spacing: 2px;
}
.search-btn:hover { filter: brightness(1.06); }

.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.cart-link { position: relative; font-size: 13.5px; color: #4b5563; }
.cart-link:hover { color: #2563eb; }
.cart-dot {
  position: absolute; top: -8px; right: -12px; min-width: 16px; height: 16px;
  background: #f5222d; color: #fff; font-size: 11px; font-style: normal;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 20px; border-radius: 8px; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn-blue { background: #2563eb; color: #fff; }
.btn-blue:hover { background: #1d4ed8; }
.topbar-plain { font-size: 13.5px; color: #6b7280; }
.topbar-plain:hover { color: #2563eb; }

/* ---------------- 主导航 ---------------- */
.mainnav { background: #fff; border-bottom: 1px solid #eef0f4; position: sticky; top: 0; z-index: 50; }
.mainnav-inner { display: flex; flex-wrap: wrap; padding: 0 16px; }
.nav-item {
  position: relative; padding: 13px 15px; font-size: 14px; color: #374151;
  transition: color .15s;
}
.nav-item:hover { color: #2563eb; }
.nav-item.active { color: #e53935; font-weight: 600; }
.nav-item.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: #e53935;
}
.notice-bar {
  background: #fffbeb; border-bottom: 1px solid #fde68a;
  color: #b45309; font-size: 13px; padding: 8px 0;
}

/* ---------------- 首页 Banner ---------------- */
.banner {
  position: relative; border-radius: 14px; overflow: hidden; margin-top: 18px;
  background: linear-gradient(115deg, #1e50d6, #3b77f0 55%, #6ea8ff);
  min-height: 300px; display: flex; align-items: center;
}
.banner-text { padding: 46px 0 46px 58px; color: #fff; position: relative; z-index: 2; }
.banner-text h2 { font-size: 40px; line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
.banner-text p { margin-top: 14px; font-size: 15.5px; opacity: .92; letter-spacing: .5px; }
.banner-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 26px;
  height: 44px; padding: 0 30px; border-radius: 24px; font-size: 15px; font-weight: 600;
  background: #fff; color: #1d4ed8; box-shadow: 0 10px 24px rgba(9, 30, 90, .25);
}
.banner-btn:hover { transform: translateY(-1px); }
.banner-illus { position: absolute; right: 30px; bottom: 0; top: 0; display: flex; align-items: center; z-index: 1; }
.banner-illus img { width: 470px; max-width: 42vw; opacity: .98; }

/* ---------------- 分类宫格 ---------------- */
.cat-panel { background: #fff; border-radius: 14px; padding: 26px 20px; margin-top: 18px; }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); row-gap: 26px; }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 4px; border-radius: 12px; transition: .15s;
}
.cat-item:hover { background: #f5f8ff; }
.cat-icon {
  width: 54px; height: 54px; border-radius: 15px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.cat-item .cat-name { font-size: 13.5px; color: #1f2937; font-weight: 500; }
.cat-item .cat-count { font-size: 12px; color: #9ca3af; }
.cat-item:hover .cat-name { color: #2563eb; }

/* ---------------- 区块 / 商品卡片 ---------------- */
.section { background: #fff; border-radius: 14px; padding: 24px 20px; margin-top: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 0 4px; }
.section-title { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.section-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: #2563eb; }
.section-more { font-size: 13px; color: #9ca3af; }
.section-more:hover { color: #2563eb; }

.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.goods-card {
  background: #fff; border: 1px solid #eef0f4; border-radius: 11px; overflow: hidden;
  transition: .18s; display: flex; flex-direction: column;
}
.goods-card:hover {
  box-shadow: 0 12px 28px rgba(30, 60, 120, .13); transform: translateY(-3px);
  border-color: #cfe0ff;
}
.gc-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef2f9; }
.gc-cover img { width: 100%; height: 100%; object-fit: cover; }
.gc-badge {
  position: absolute; top: 9px; left: 9px; padding: 3px 8px; border-radius: 5px;
  color: #fff; font-size: 12px; line-height: 1.4; letter-spacing: .5px;
}
.b-limit { background: #ff4d4f; }
.b-new { background: #1677ff; }
.b-sale { background: #fa8c16; }
.b-hot { background: linear-gradient(90deg, #ff512f, #f5222d); }
.gc-body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.gc-title {
  font-size: 14px; line-height: 1.5; color: #1f2937; height: 42px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gc-title:hover { color: #2563eb; }
.gc-foot { margin-top: 10px; display: flex; align-items: baseline; justify-content: space-between; }
.gc-price { color: #f5222d; font-weight: 700; font-size: 17px; }
.gc-price .cny { font-size: 12px; margin-right: 1px; }
.gc-sold { font-size: 12px; color: #9ca3af; }

/* ---------------- 分类页头部 / 筛选 ---------------- */
.cat-head { background: #fff; border-radius: 14px; padding: 30px 20px 24px; text-align: center; }
.cat-head h2 { font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.cat-head .cat-count { margin-top: 8px; font-size: 13px; color: #9ca3af; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }
.filter-item {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; color: #4b5563;
  background: #f5f6f8; transition: .15s;
}
.filter-item:hover { color: #2563eb; }
.filter-item.active { background: #2563eb; color: #fff; }

/* ---------------- 面包屑 ---------------- */
.crumbs { font-size: 13px; color: #8a94a6; padding: 6px 2px 14px; }
.crumbs a { color: #6b7280; }
.crumbs a:hover { color: #2563eb; }
.crumbs span { margin: 0 6px; color: #c3c9d4; }

/* ---------------- 商品详情 ---------------- */
 .gd-card { background: #fff; border-radius: 14px; padding: 24px; }
.gd { display: flex; gap: 26px; }
.gd-left { flex: 0 0 440px; max-width: 440px; }
.gd-cover { border-radius: 12px; overflow: hidden; border: 1px solid #eef0f4; }
.gd-cover img { width: 100%; }
.gd-right { flex: 1; min-width: 0; }
.gd-title { font-size: 22px; font-weight: 700; color: #111827; line-height: 1.45; }
.gd-sub { font-size: 13.5px; color: #6b7280; margin-top: 8px; }
.gd-badges { display: flex; gap: 8px; margin-top: 12px; }
.gd-price-box {
  margin-top: 16px; padding: 16px 20px; border-radius: 10px;
  background: linear-gradient(90deg, #fff5f5, #fff9f0);
}
.gd-price-now { font-size: 30px; font-weight: 800; color: #f5222d; }
.gd-price-now .cny { font-size: 16px; }
.gd-price-old { margin-left: 12px; color: #9ca3af; text-decoration: line-through; font-size: 14px; }
.gd-price-tip { float: right; margin-top: 8px; font-size: 12.5px; color: #f59e0b; }
.gd-meta { display: flex; gap: 28px; margin-top: 16px; font-size: 13px; color: #6b7280; }
.gd-meta b { color: #f5222d; font-weight: 600; }
.gd-serv { display: flex; gap: 18px; margin-top: 14px; font-size: 12.5px; color: #6b7280; }
.gd-serv i { font-style: normal; color: #16a34a; margin-right: 3px; }
.gd-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-buy {
  height: 48px; padding: 0 40px; font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, #ff512f, #f5222d); border-radius: 9px;
  box-shadow: 0 8px 18px rgba(245, 34, 45, .28);
}
.btn-buy:hover { filter: brightness(1.05); }
.btn-cart {
  height: 48px; padding: 0 34px; font-size: 15px; color: #f5222d; font-weight: 600;
  background: #fff; border: 1.5px solid #ffbdbd; border-radius: 9px;
}
.btn-cart:hover { background: #fff5f5; }
.btn-owned { background: #16a34a; color: #fff; cursor: default; box-shadow: none; }

.gd-cols { display: flex; gap: 18px; margin-top: 18px; align-items: flex-start; }
.gd-main { flex: 1; min-width: 0; }
.gd-side { flex: 0 0 300px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid #eef0f4; padding: 0 6px; }
.tab-item {
  padding: 14px 2px; font-size: 15px; color: #6b7280; cursor: pointer; position: relative;
}
.tab-item.active { color: #2563eb; font-weight: 600; }
.tab-item.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #2563eb;
}
.tab-panel { display: none; padding: 22px 6px 8px; }
.tab-panel.active { display: block; }
.gc-content { font-size: 14.5px; line-height: 2; color: #374151; }
.gc-content h3 {
  font-size: 16px; margin: 22px 0 10px; padding-left: 10px;
  border-left: 4px solid #2563eb; line-height: 1.3;
}
.gc-content h3:first-child { margin-top: 0; }
.gc-content ul { padding-left: 20px; }
.gc-content li { margin-bottom: 6px; }
.gc-content .hl-box {
  background: #f7f9ff; border: 1px solid #e0e9ff; border-radius: 10px;
  padding: 14px 18px; margin: 14px 0; font-size: 13.5px; color: #3b5bdb;
}
.ol-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  border-bottom: 1px dashed #eef0f4; font-size: 13.5px; color: #374151;
}
.ol-item:last-child { border-bottom: none; }
.ol-num {
  width: 24px; height: 24px; border-radius: 50%; background: #eef4ff; color: #2563eb;
  font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 24px;
}
.ol-tag { margin-left: auto; font-size: 12px; color: #9ca3af; }
.ol-item.is-free .ol-tag { color: #16a34a; }

.rel-list { display: flex; flex-direction: column; gap: 14px; }
.rel-item { display: flex; gap: 10px; }
.rel-item img { width: 92px; height: 58px; border-radius: 7px; object-fit: cover; flex: 0 0 92px; }
.rel-info { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.rel-title {
  font-size: 13px; line-height: 1.45; color: #374151;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rel-title:hover { color: #2563eb; }
.rel-price { color: #f5222d; font-weight: 600; font-size: 13.5px; }

/* ---------------- 购物车 ---------------- */
.cart-card { background: #fff; border-radius: 14px; padding: 24px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-size: 13px; color: #6b7280; font-weight: 500;
  padding: 10px 12px; background: #fafbfd; border-radius: 8px;
}
.cart-table td { padding: 14px 12px; border-bottom: 1px solid #f3f4f6; font-size: 13.5px; vertical-align: middle; }
.cart-goods { display: flex; align-items: center; gap: 12px; }
.cart-goods img { width: 110px; height: 69px; border-radius: 8px; object-fit: cover; }
.cart-goods .t { color: #1f2937; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-price { color: #f5222d; font-weight: 600; }
.cart-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  padding-top: 20px;
}
.cart-total { font-size: 14px; color: #6b7280; }
.cart-total b { color: #f5222d; font-size: 24px; font-weight: 800; }

/* ---------------- 收银台 ---------------- */
.pay-card { background: #fff; border-radius: 14px; padding: 26px 30px; max-width: 720px; margin: 0 auto; }
.pay-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f3f4f6; padding-bottom: 16px; }
.pay-head h2 { font-size: 18px; }
.pay-head .pay-amount { font-size: 14px; color: #6b7280; }
.pay-head .pay-amount b { color: #f5222d; font-size: 26px; font-weight: 800; margin-left: 4px; }
.pay-orders { margin: 16px 0; }
.pay-order-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed #f0f1f4;
}
.pay-order-item img { width: 84px; height: 53px; border-radius: 6px; object-fit: cover; }
.pay-order-item .po-title { flex: 1; font-size: 13.5px; color: #374151; }
.pay-order-item .po-price { color: #f5222d; font-weight: 600; }
.pay-methods { display: flex; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.pay-method {
  flex: 1; min-width: 140px; border: 1.5px solid #e5e7eb; border-radius: 11px;
  padding: 15px 10px; text-align: center; cursor: pointer; transition: .15s; position: relative;
}
.pay-method:hover { border-color: #bcd0ff; }
.pay-method.active { border-color: #2563eb; background: #f0f6ff; }
.pay-method.active::after {
  content: "✔"; position: absolute; top: 6px; right: 8px; color: #2563eb; font-size: 12px;
}
.pay-method .pm-icon { font-size: 24px; }
.pay-method .pm-name { font-size: 13.5px; margin-top: 6px; color: #374151; }
.pay-method .pm-tip { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }
.pay-btn {
  width: 100%; height: 50px; margin-top: 18px; border: none; cursor: pointer;
  border-radius: 10px; color: #fff; font-size: 16.5px; font-weight: 700; letter-spacing: 3px;
  background: linear-gradient(90deg, #ff512f, #f5222d);
  box-shadow: 0 10px 22px rgba(245, 34, 45, .3);
}
.pay-btn:hover { filter: brightness(1.05); }
.pay-note { margin-top: 14px; font-size: 12.5px; color: #9ca3af; text-align: center; }

/* ---------------- 结果页 / 空状态 ---------------- */
.result-card { background: #fff; border-radius: 14px; padding: 56px 30px; text-align: center; max-width: 640px; margin: 0 auto; }
.result-icon {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.result-ok { background: #e8f9ef; color: #16a34a; }
.result-warn { background: #fff7e6; color: #d48806; }
.result-card h2 { font-size: 21px; margin-bottom: 10px; }
.result-card p { color: #6b7280; font-size: 13.5px; }
.result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.empty { text-align: center; padding: 64px 20px; color: #9ca3af; }
.empty .em-icon { font-size: 46px; margin-bottom: 12px; }
.empty p { font-size: 13.5px; margin-bottom: 16px; }

/* ---------------- 用户中心 ---------------- */
.uc { display: flex; gap: 18px; align-items: flex-start; }
.uc-side { flex: 0 0 216px; background: #fff; border-radius: 14px; overflow: hidden; }
.uc-head { padding: 24px 16px 18px; text-align: center; border-bottom: 1px solid #f3f4f6; }
.uc-avatar {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg, #1d4ed8, #60a5fa); color: #fff;
  font-size: 24px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.uc-name { font-size: 15px; font-weight: 600; }
.uc-vip {
  display: inline-block; margin-top: 5px; font-size: 12px; padding: 2px 10px;
  border-radius: 10px; background: #fffbeb; color: #b45309; border: 1px solid #fde68a;
}
.uc-vip.vip2 { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.uc-menu { padding: 8px 0; }
.uc-menu a {
  display: block; padding: 12px 22px; font-size: 13.5px; color: #4b5563;
  border-left: 3px solid transparent; transition: .15s;
}
.uc-menu a:hover { background: #f7f9fd; color: #2563eb; }
.uc-menu a.active { color: #2563eb; border-left-color: #2563eb; background: #f0f6ff; font-weight: 600; }
.uc-main { flex: 1; min-width: 0; }
.uc-card { background: #fff; border-radius: 14px; padding: 24px; margin-bottom: 18px; }
.uc-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.uc-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: #2563eb; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-cell { background: #f8fafd; border-radius: 11px; padding: 16px 18px; }
.stat-cell .n { font-size: 21px; font-weight: 800; color: #1f2937; }
.stat-cell .n.red { color: #f5222d; }
.stat-cell .l { font-size: 12.5px; color: #9ca3af; margin-top: 3px; }

/* ---------------- 表格（前台复用） ---------------- */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 13px; color: #6b7280; font-weight: 500;
  padding: 11px 12px; background: #fafbfd;
}
.table td { padding: 12px; border-bottom: 1px solid #f3f4f6; font-size: 13.5px; color: #374151; }
.table tr:hover td { background: #fafcff; }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 10px; line-height: 1.6; }
.tag-blue { background: #e6f4ff; color: #1677ff; }
.tag-red { background: #fff1f0; color: #f5222d; }
.tag-gray { background: #f4f5f7; color: #8c8c8c; }
.tag-gold { background: #fffbeb; color: #b45309; }
.tag-green { background: #f0fdf4; color: #16a34a; }
.op-link { color: #2563eb; margin-right: 10px; }
.op-link:hover { text-decoration: underline; }
.op-link.danger { color: #f5222d; }

/* ---------------- 表单 / 登录注册 ---------------- */
.auth-wrap { max-width: 430px; margin: 46px auto; }
.auth-card { background: #fff; border-radius: 16px; padding: 34px 32px; box-shadow: 0 14px 40px rgba(30, 60, 120, .10); }
.auth-title { font-size: 21px; font-weight: 700; text-align: center; }
.auth-sub { text-align: center; font-size: 13px; color: #9ca3af; margin: 6px 0 22px; }
.form-item { margin-bottom: 15px; }
.form-item label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; }
.input {
  width: 100%; height: 42px; border: 1px solid #dcdfe6; border-radius: 9px;
  padding: 0 13px; font-size: 13.5px; outline: none; transition: .15s; background: #fff;
}
.input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
textarea.input { height: auto; min-height: 90px; padding: 10px 13px; resize: vertical; line-height: 1.7; }
.auth-btn { width: 100%; height: 44px; border: none; border-radius: 9px; cursor: pointer; font-size: 15px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #2563eb, #3b82f6); }
.auth-btn:hover { filter: brightness(1.05); }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; color: #6b7280; }
.auth-links a:hover { color: #2563eb; }
.alert { padding: 11px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: #fff1f0; color: #cf1322; }
.alert-info { background: #eef4ff; color: #1d4ed8; }
.alert-success { background: #f0fdf4; color: #15803d; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------------- 学习页 ---------------- */
.video-box {
  position: relative; background: linear-gradient(160deg, #0b1220, #16233f);
  border-radius: 12px; aspect-ratio: 16 / 9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #93a4c3; gap: 14px;
}
.video-play {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s;
}
.video-play:hover { background: rgba(255, 255, 255, .24); transform: scale(1.04); }
.video-play::after {
  content: ""; display: block; border-style: solid; border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff; margin-left: 5px;
}
.video-box p { font-size: 13px; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; gap: 7px; justify-content: center; margin: 24px 0 4px; flex-wrap: wrap; }
.page-item {
  min-width: 34px; height: 34px; padding: 0 11px; border: 1px solid #e5e7eb; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #4b5563; font-size: 13px; background: #fff; transition: .15s;
}
.page-item:hover { border-color: #2563eb; color: #2563eb; }
.page-item.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.page-item.disabled { opacity: .45; pointer-events: none; }

/* ---------------- 页脚 ---------------- */
.footer { background: #fff; border-top: 1px solid #eef0f4; margin-top: 30px; }
.footer-inner {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 30px; padding: 38px 16px 24px;
}
.footer-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: #6b7280; line-height: 1.9; max-width: 420px; }
.footer-slogan { color: #9ca3af !important; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; font-size: 13px; color: #6b7280; line-height: 2.05; }
.footer-col a:hover { color: #2563eb; }
.footer-copy {
  border-top: 1px solid #f3f4f6; text-align: center; padding: 16px;
  font-size: 12.5px; color: #9ca3af;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .goods-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .gd { flex-direction: column; }
  .gd-left { flex: none; max-width: 100%; }
  .gd-cols { flex-direction: column; }
  .gd-side { flex: none; width: 100%; }
}
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; }
  .brand { min-width: 0; }
  .search-form { order: 3; width: 100%; max-width: 100%; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .banner-text h2 { font-size: 28px; }
  .banner-illus { display: none; }
  .uc { flex-direction: column; }
  .uc-side { width: 100%; flex: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
