/* templet2 独立样式 — 仅本模板加载，类名统一 t2- 前缀
 * 视觉：海洋深蓝 + 琥珀点缀（原创，不复用其他模板变量/选择器）
 */
:root {
  --t2-ink: #0f172a;
  --t2-muted: #64748b;
  --t2-line: #e2e8f0;
  --t2-paper: #f1f5f9;
  --t2-card: #ffffff;
  --t2-brand: #0b3d5c;
  --t2-brand-mid: #0e7490;
  --t2-brand-soft: #ecfeff;
  --t2-accent: #f59e0b;
  --t2-accent-dark: #d97706;
  --t2-cta: #e11d48;
  --t2-nav: #0f172a;
  --t2-top: #eef2f7;
  --t2-danger: #dc2626;
  --t2-radius: 12px;
  --t2-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --t2-max: 1220px;
  --t2-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.t2-body {
  margin: 0;
  font-family: var(--t2-font);
  color: var(--t2-ink);
  background: var(--t2-paper);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.t2-wrap {
  width: min(100% - 32px, var(--t2-max));
  margin-inline: auto;
}

.t2-main { min-height: 50vh; padding-bottom: 40px; }

.t2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  transition: .15s ease;
}
.t2-btn-primary {
  background: var(--t2-brand);
  color: #fff;
}
.t2-btn-primary:hover { background: #083049; }
.t2-btn-accent {
  background: var(--t2-accent);
  color: #111;
}
.t2-btn-accent:hover { background: var(--t2-accent-dark); color: #fff; }
.t2-btn-cta {
  background: var(--t2-cta);
  color: #fff;
  border-radius: 8px;
}
.t2-btn-ghost {
  background: #fff;
  border-color: var(--t2-line);
  color: var(--t2-ink);
}
.t2-btn-ghost:hover { border-color: var(--t2-brand-mid); color: var(--t2-brand); }
.t2-btn-block { width: 100%; }
.t2-btn:disabled { opacity: .55; cursor: not-allowed; }

.t2-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}
.t2-alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.t2-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.t2-empty {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px dashed var(--t2-line);
  border-radius: var(--t2-radius);
  color: var(--t2-muted);
}

/* —— 顶栏 —— */
.t2-topbar {
  background: var(--t2-top);
  color: var(--t2-muted);
  font-size: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.t2-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}
.t2-topbar p { margin: 0; }
.t2-top-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t2-top-links a:hover { color: var(--t2-brand); }
.t2-top-split { opacity: .35; }

/* —— 品牌行 —— */
.t2-header {
  background: #fff;
  padding: 16px 0 12px;
}
.t2-header-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 20px;
  align-items: center;
}
.t2-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 320px;
}
.t2-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--t2-brand), var(--t2-brand-mid));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(11, 61, 92, .25);
}
.t2-brand-name,
.t2-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--t2-brand);
  font-weight: 800;
}
.t2-brand--text .t2-brand-name {
  font-size: 20px;
}
.t2-brand img {
  max-height: 48px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.t2-search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 2px solid var(--t2-brand);
  border-radius: 999px;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.t2-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 11px 16px;
  background: transparent;
}
.t2-search button {
  border: 0;
  background: var(--t2-brand);
  color: #fff;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
}
.t2-search button:hover { background: #083049; }

.t2-trust {
  display: flex;
  gap: 14px;
  align-items: center;
}
.t2-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--t2-muted);
  min-width: 64px;
  text-align: center;
}
.t2-trust-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--t2-brand-soft);
  color: var(--t2-brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #a5f3fc;
}

/* —— 主导航 —— */
.t2-nav {
  background: var(--t2-nav);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.t2-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-height: 48px;
}
.t2-nav-link {
  color: #e2e8f0;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}
.t2-nav-link:hover { color: #fff; }
.t2-nav-link.is-on { color: #fff; }
.t2-nav-link.is-on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--t2-accent);
  border-radius: 3px 3px 0 0;
}
.t2-nav-grow { flex: 1; }
.t2-nav-join {
  align-self: center;
  margin-left: auto;
  background: var(--t2-cta);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.t2-nav-join:hover { filter: brightness(1.08); }
.t2-nav-join::after { display: none !important; }

.t2-nav-drop { position: relative; }
.t2-nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--t2-shadow);
  padding: 8px;
  z-index: 50;
}
.t2-nav-drop:hover .t2-nav-drop-menu { display: block; }
.t2-nav-drop-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--t2-ink);
  font-size: 13px;
}
.t2-nav-drop-menu a:hover {
  background: var(--t2-brand-soft);
  color: var(--t2-brand);
}

/* —— 首页展台 —— */
.t2-stage {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  margin-top: 18px;
}
.t2-stage-wide { grid-template-columns: 1fr; }
.t2-cats {
  background: linear-gradient(180deg, #0b3d5c, #164e63);
  color: #fff;
  border-radius: var(--t2-radius);
  overflow: hidden;
  min-height: 320px;
}
.t2-cats-title {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  background: rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.t2-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  color: #e0f2fe;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.t2-cats a:hover { background: rgba(245, 158, 11, .2); color: #fff; }
.t2-cats i { opacity: .5; font-style: normal; }

.t2-banner {
  position: relative;
  border-radius: var(--t2-radius);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(120deg, #e0f2fe, #f0f9ff 45%, #fff7ed);
}
.t2-banner-track { min-height: 320px; height: 100%; }
.t2-banner-slide {
  display: none;
  position: relative;
  height: 320px;
  color: var(--t2-ink);
  overflow: hidden;
}
.t2-banner-slide.is-active { display: block; }
.t2-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t2-banner-slide.tone-a { background: linear-gradient(120deg, #e0f2fe, #fff7ed); }
.t2-banner-slide.tone-b { background: linear-gradient(120deg, #ecfeff, #fef3c7); }
.t2-banner-slide.tone-c { background: linear-gradient(120deg, #f1f5f9, #dbeafe); }
.t2-banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  max-width: 520px;
}
.t2-banner-slide.has-image .t2-banner-copy {
  background: linear-gradient(90deg, rgba(255,255,255,.88), transparent);
}
.t2-banner-slide.mode-image .t2-banner-copy { display: none; }
.t2-banner-copy h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  color: var(--t2-brand);
}
.t2-banner-copy p {
  margin: 0 0 18px;
  color: var(--t2-muted);
  font-size: 15px;
}
.t2-banner-cta {
  display: inline-flex;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--t2-brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.t2-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.t2-banner-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, .25);
  cursor: pointer;
  padding: 0;
}
.t2-stage-compact .t2-cats,
.t2-stage-compact .t2-banner,
.t2-stage-compact .t2-banner-track,
.t2-stage-compact .t2-banner-slide { min-height: 260px; }
.t2-stage-compact .t2-banner-slide { height: 260px; }

/* —— 子页类名兼容（页面模板使用的补充选择器） —— */
.t2-btn-amber { background: var(--t2-accent); color: #111; }
.t2-btn-amber:hover { background: var(--t2-accent-dark); color: #fff; }
.t2-btn-outline {
  background: #fff;
  border: 1px solid var(--t2-line);
  color: var(--t2-ink);
}
.t2-btn-outline:hover { border-color: var(--t2-brand-mid); color: var(--t2-brand); }
.t2-page-title { margin: 0; font-size: 24px; }
.t2-catalog-head,
.t2-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 18px 0 14px;
  flex-wrap: wrap;
}
.t2-catalog-kw { margin: 4px 0 0; color: var(--t2-muted); font-size: 13px; }
.t2-search-bar,
.t2-filter {
  display: flex;
  gap: 8px;
}
.t2-search-bar input,
.t2-filter input {
  border: 1px solid var(--t2-line);
  border-radius: 999px;
  padding: 9px 14px;
  min-width: 200px;
  outline: none;
}
.t2-catalog-body,
.t2-plist {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
}
.t2-cat-nav,
.t2-side {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  overflow: hidden;
  align-self: start;
}
.t2-cat-nav-label,
.t2-side h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--t2-brand);
  color: #fff;
  font-weight: 700;
}
.t2-cat-list { margin: 0; padding: 0; list-style: none; }
.t2-cat-link,
.t2-side a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.t2-cat-link.t2-is-active,
.t2-cat-link:hover,
.t2-side a.is-on,
.t2-side a:hover {
  color: var(--t2-brand);
  background: var(--t2-brand-soft);
}
.t2-product-grid,
.t2-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t2-notice {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.t2-notice-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.t2-notice-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.t2-dash-hero-btns,
.t2-dash-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.t2-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.t2-dash-stat-label { font-size: 12px; color: var(--t2-muted); }
.t2-dash-stat-val { font-size: 22px; line-height: 1.2; }
.t2-dash-stat-link { font-size: 12px; color: var(--t2-brand-mid); font-weight: 600; }
.t2-dash-stat-note { font-size: 12px; color: var(--t2-muted); font-style: normal; }
.t2-dash-checkin {
  border: 0;
  background: #fff7ed;
  color: #c2410c;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.t2-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.t2-dash-card {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 16px;
}
.t2-dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.t2-dash-card-head h2 { margin: 0; font-size: 16px; }
.t2-dash-dl { margin: 0; display: grid; gap: 10px; }
.t2-dash-dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.t2-dash-dl dt { margin: 0; color: var(--t2-muted); }
.t2-dash-dl dd { margin: 0; }
.t2-dash-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.t2-dash-tag-ok { background: #ecfdf5; color: #047857; }
.t2-dash-tag-warn { background: #fffbeb; color: #b45309; }
.t2-dash-tag-bad { background: #fef2f2; color: #b91c1c; }
.t2-dash-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.t2-dash-shortcuts a {
  padding: 12px;
  border: 1px solid var(--t2-line);
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
}
.t2-dash-shortcuts a:hover { border-color: var(--t2-brand-mid); color: var(--t2-brand); }
.t2-dash-table-wrap { overflow-x: auto; }
.t2-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.t2-dash-table th,
.t2-dash-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--t2-line);
  text-align: left;
}
.t2-dash-ops { display: flex; gap: 10px; }
.t2-dash-ops-danger { color: var(--t2-danger); }
.t2-state-empty {
  text-align: center;
  padding: 28px;
  color: var(--t2-muted);
  background: #fff;
  border: 1px dashed var(--t2-line);
  border-radius: var(--t2-radius);
}
.t2-notice-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.t2-btn-navy { background: var(--t2-brand); color: #fff; }
.t2-btn-navy:hover { background: #083049; }

/* 购物车 / 结算 */
.t2-cart-head,
.t2-checkout-head { margin-bottom: 14px; }
.t2-cart-sub,
.t2-checkout-sub { margin: 4px 0 0; color: var(--t2-muted); font-size: 13px; }
.t2-cart-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}
.t2-cart-section,
.t2-checkout-block,
.t2-cart-aside {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 16px;
  margin-bottom: 14px;
}
.t2-cart-section-title,
.t2-checkout-block-title {
  margin: 0 0 12px;
  font-size: 16px;
}
.t2-cart-line,
.t2-checkout-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--t2-line);
}
.t2-cart-thumb,
.t2-checkout-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--t2-muted);
}
.t2-cart-thumb img,
.t2-checkout-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t2-cart-name { margin: 0 0 6px; font-size: 14px; }
.t2-cart-aside .t2-sum-row,
.t2-checkout-sum-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.t2-address-list { display: flex; flex-direction: column; gap: 10px; }
.t2-address-item label { display: flex; gap: 10px; cursor: pointer; align-items: flex-start; }
.t2-address-card {
  flex: 1;
  border: 1px solid var(--t2-line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.t2-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  width: fit-content;
}
.t2-tag-amber { background: #fff7ed; color: #c2410c; }
.t2-pay-options { display: flex; flex-direction: column; gap: 8px; }
.t2-checkout-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.t2-checkout-shop-name { font-weight: 700; margin: 0 0 8px; }
.t2-checkout-items { margin: 0; padding: 0; list-style: none; }

@media (max-width: 980px) {
  .t2-cart-layout,
  .t2-dash-grid { grid-template-columns: 1fr; }
  .t2-cart-line,
  .t2-checkout-item { grid-template-columns: 64px 1fr; }
}

@media (max-width: 980px) {
  .t2-catalog-body { grid-template-columns: 1fr; }
  .t2-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .t2-product-grid { grid-template-columns: 1fr; }
}

.t2-promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 14px;
}
.t2-promise-item {
  display: flex;
  gap: 10px;
  align-items: center;
}
.t2-promise-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--t2-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.t2-promise-item strong { display: block; font-size: 14px; }
.t2-promise-item span { font-size: 12px; color: var(--t2-muted); }

/* —— 楼层 / 版块 —— */
.t2-floor {
  margin-bottom: 18px;
}
.t2-floor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
}
.t2-floor-head h2 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.t2-floor-no {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--t2-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.t2-floor-more {
  color: var(--t2-brand-mid);
  font-size: 13px;
  font-weight: 600;
}
.t2-floor-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.t2-floor-tabs a { color: var(--t2-muted); }
.t2-floor-tabs a.is-on,
.t2-floor-tabs a:hover { color: var(--t2-accent-dark); }

.t2-floor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t2-goods {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .15s ease;
}
.t2-goods:hover {
  border-color: #67e8f9;
  box-shadow: var(--t2-shadow);
  transform: translateY(-2px);
}
.t2-goods-cover {
  aspect-ratio: 1;
  background: #f8fafc;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--t2-muted);
  font-size: 13px;
}
.t2-goods-cover img { width: 100%; height: 100%; object-fit: cover; }
.t2-goods-title {
  margin: 10px 12px 6px;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.t2-goods-price {
  margin: 0 12px;
  color: var(--t2-danger);
  font-weight: 800;
  font-size: 16px;
}
.t2-goods-meta {
  margin: 6px 12px 12px;
  font-size: 12px;
  color: var(--t2-muted);
}

.t2-goods-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.t2-goods-list-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 10px;
}
.t2-goods-list-cover {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--t2-muted);
}
.t2-goods-list-cover img { width: 100%; height: 100%; object-fit: cover; }
.t2-goods-list-body h3 { margin: 0 0 6px; font-size: 14px; }
.t2-goods-list-body p { margin: 0 0 8px; font-size: 12px; color: var(--t2-muted); }

.t2-info-cols {
  display: grid;
  grid-template-columns: repeat(var(--t2-cols, 3), 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 14px 16px;
}
.t2-info-col h3 {
  margin: 0 0 8px;
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--t2-accent);
}
.t2-news-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--t2-line);
  font-size: 14px;
}
.t2-news-item:last-child { border-bottom: 0; }
.t2-news-item time { color: var(--t2-muted); font-size: 12px; white-space: nowrap; }

.t2-post-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t2-post-card {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  overflow: hidden;
}
.t2-post-card-cover {
  aspect-ratio: 1.4;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.t2-post-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.t2-post-card h3 { margin: 10px 12px 4px; font-size: 14px; }
.t2-post-card time { margin: 0 12px 12px; font-size: 12px; color: var(--t2-muted); display: block; }

.t2-housing-grid {
  display: grid;
  grid-template-columns: repeat(var(--t2-cols, 2), 1fr);
  gap: 12px;
}
.t2-housing-card,
.t2-housing-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 12px;
}
.t2-housing-list { display: flex; flex-direction: column; gap: 10px; }
.t2-housing-thumb {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: var(--t2-muted);
}
.t2-housing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t2-housing-body h3 { margin: 0 0 6px; font-size: 15px; }
.t2-housing-body p,
.t2-housing-row p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--t2-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t2-housing-meta { font-size: 12px; color: var(--t2-muted); display: flex; gap: 12px; }

.t2-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t2-shop-card {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  overflow: hidden;
}
.t2-shop-cover {
  aspect-ratio: 1.6;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: var(--t2-muted);
}
.t2-shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.t2-shop-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
}
.t2-shop-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--t2-brand-soft);
  color: var(--t2-brand);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 700;
  flex-shrink: 0;
}
.t2-shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t2-shop-card-meta strong,
.t2-shop-row strong { display: block; font-size: 14px; }
.t2-shop-card-meta span,
.t2-shop-row span { font-size: 12px; color: var(--t2-muted); }
.t2-shop-rows {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 4px 14px;
}
.t2-shop-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--t2-line);
}
.t2-shop-row:last-child { border-bottom: 0; }
.t2-shop-scroll {
  flex-direction: row;
  overflow-x: auto;
  gap: 12px;
  padding: 12px;
}
.t2-shop-scroll .t2-shop-row {
  min-width: 200px;
  border: 1px solid var(--t2-line);
  border-radius: 8px;
  padding: 10px;
}
.t2-shop-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.t2-shop-logo {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 700;
  color: var(--t2-brand);
}
.t2-shop-logo img { width: 70%; height: 70%; object-fit: contain; }

.t2-ad {
  display: block;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  overflow: hidden;
}
.t2-ad-media img { width: 100%; display: block; max-height: 280px; object-fit: cover; }
.t2-ad-body { padding: 16px 18px; }
.t2-ad-body h2 { margin: 0 0 8px; font-size: 18px; }
.t2-ad-body p { margin: 0; color: var(--t2-muted); }
.t2-ad-html img { max-width: 100%; height: auto; }
.t2-ad-split .t2-ad {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.t2-ad-card .t2-ad {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.t2-panel {
  background: var(--t2-card);
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 16px 18px;
}
.t2-panel h2 {
  margin: 0 0 14px;
  font-size: 17px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--t2-brand);
  display: inline-block;
}

/* —— 列表页通用 —— */
.t2-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 18px 0 14px;
  flex-wrap: wrap;
}
.t2-page-head h1 { margin: 0; font-size: 24px; }
.t2-page-head p { margin: 4px 0 0; color: var(--t2-muted); font-size: 13px; }
.t2-filter {
  display: flex;
  gap: 8px;
}
.t2-filter input {
  border: 1px solid var(--t2-line);
  border-radius: 999px;
  padding: 9px 14px;
  min-width: 200px;
  outline: none;
}
.t2-filter input:focus { border-color: var(--t2-brand-mid); }

.t2-plist {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
}
.t2-side {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  overflow: hidden;
  align-self: start;
}
.t2-side h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--t2-brand);
  color: #fff;
}
.t2-side a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.t2-side a.is-on,
.t2-side a:hover {
  color: var(--t2-brand);
  background: var(--t2-brand-soft);
}
.t2-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t2-p-card {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.t2-p-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.t2-p-card .t2-goods-cover { border-radius: 0; aspect-ratio: 1.05; }
.t2-price-row { display: flex; align-items: baseline; gap: 8px; }
.t2-price-row del { color: #94a3b8; font-size: 12px; }
.t2-price { color: var(--t2-danger); font-weight: 700; }

.t2-post-list { display: flex; flex-direction: column; gap: 12px; }
.t2-post-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 12px;
}
.t2-post-cover {
  width: 140px;
  height: 105px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
}
.t2-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.t2-post-item h3 { margin: 0 0 6px; font-size: 17px; }
.t2-post-item h3 a:hover { color: var(--t2-brand); }
.t2-post-excerpt {
  margin: 0 0 8px;
  color: var(--t2-muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t2-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: var(--t2-muted);
}
.t2-meta .t2-price { color: var(--t2-danger); font-weight: 700; font-size: 14px; }

.t2-pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.t2-pager a {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--t2-line);
  background: #fff;
  font-size: 13px;
  padding: 0 8px;
}
.t2-pager a.is-on,
.t2-pager a:hover {
  background: var(--t2-brand);
  color: #fff;
  border-color: var(--t2-brand);
}

.t2-card {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 16px;
}
.t2-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  margin-top: 18px;
}
.t2-detail-price {
  font-size: 28px;
  color: var(--t2-danger);
  font-weight: 800;
}
.t2-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.t2-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--t2-line);
  border-radius: 999px;
  overflow: hidden;
}
.t2-qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
}
.t2-qty input {
  width: 48px;
  border: 0;
  text-align: center;
  outline: none;
}

.t2-merchant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.t2-auth {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 28px;
  box-shadow: var(--t2-shadow);
}
.t2-auth h1 { margin: 0 0 18px; font-size: 22px; text-align: center; }
.t2-form-group { margin-bottom: 14px; }
.t2-form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.t2-form-group input,
.t2-form-group select,
.t2-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--t2-line);
  border-radius: 10px;
  outline: none;
}
.t2-form-group input:focus,
.t2-form-group select:focus,
.t2-form-group textarea:focus { border-color: var(--t2-brand-mid); }

/* —— 个人中心 —— */
.t2-dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
  margin: 20px auto 32px;
  width: min(100% - 32px, 1400px);
}
.t2-dash-side {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  overflow: hidden;
  position: sticky;
  top: 12px;
}
.t2-dash-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--t2-brand), var(--t2-brand-mid));
  color: #fff;
}
.t2-dash-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.t2-dash-profile strong { display: block; font-size: 15px; }
.t2-dash-profile span { font-size: 12px; opacity: .85; }
.t2-dash-nav { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.t2-dash-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.t2-dash-nav a:hover,
.t2-dash-nav a.is-on {
  background: var(--t2-brand-soft);
  color: var(--t2-brand);
  font-weight: 600;
}
.t2-dash-nav em {
  font-style: normal;
  background: var(--t2-accent);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.t2-dash-nav-label {
  margin: 10px 12px 4px;
  font-size: 11px;
  color: var(--t2-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.t2-dash-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.t2-dash-main > .t2-wrap,
.t2-dash-main > .t2-cart-page,
.t2-dash-main > .t2-checkout-page {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.t2-dash-main .addresses-page,
.t2-dash-main .orders-page,
.t2-dash-main .checkin-page,
.t2-dash-main .points-log-page,
.t2-dash-main .profile-page,
.t2-dash-main .recharge-page,
.t2-dash-main .vip-page,
.t2-dash-main .review-page,
.t2-dash-main .shop-settings-page,
.t2-dash-main .product-form-page,
.t2-dash-main .products-management,
.t2-dash-main .post-form,
.t2-dash-main [class$="-page"] {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
.t2-dash-main .checkin-page,
.t2-dash-main .profile-page,
.t2-dash-main .recharge-page,
.t2-dash-main .vip-page {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.t2-dash-hero {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.t2-dash-hero h1 { margin: 0; font-size: 22px; }
.t2-dash-hero p { margin: 4px 0 0; color: var(--t2-muted); font-size: 13px; }
.t2-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t2-dash-stat {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.t2-dash-stat span { font-size: 12px; color: var(--t2-muted); }
.t2-dash-stat strong { font-size: 22px; color: var(--t2-ink); }

.t2-fixed-cart {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 60;
}
.t2-fixed-cart a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--t2-brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--t2-shadow);
  position: relative;
  font-size: 12px;
  font-weight: 700;
}
.t2-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--t2-accent);
  color: #111;
  font-size: 11px;
  display: grid;
  place-items: center;
}

/* —— 页脚 —— */
.t2-footer {
  background: #0b1727;
  color: #94a3b8;
  padding: 36px 0 20px;
  margin-top: 24px;
}
.t2-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.t2-footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
}
.t2-footer a:hover { color: var(--t2-accent); }
.t2-footer li { margin-bottom: 8px; font-size: 13px; }
.t2-footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 12px;
}
.t2-footer-bottom p { margin: 4px 0; }

@media (max-width: 980px) {
  .t2-header-row { grid-template-columns: 1fr; }
  .t2-trust { display: none; }
  .t2-stage { grid-template-columns: 1fr; }
  .t2-cats { min-height: auto; }
  .t2-promise,
  .t2-floor-grid,
  .t2-grid-4,
  .t2-merchant-grid,
  .t2-post-cards,
  .t2-shop-grid,
  .t2-goods-list,
  .t2-housing-grid,
  .t2-info-cols,
  .t2-shop-logos,
  .t2-ad-split .t2-ad { grid-template-columns: repeat(2, 1fr); }
  .t2-plist,
  .t2-detail-layout,
  .t2-footer-grid,
  .t2-dash { grid-template-columns: 1fr; }
  .t2-dash-side { position: static; }
  .t2-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .t2-post-item { grid-template-columns: 96px 1fr; }
  .t2-post-cover { width: 96px; height: 72px; }
  .t2-nav-inner { overflow-x: auto; }
}

@media (max-width: 560px) {
  .t2-promise,
  .t2-floor-grid,
  .t2-grid-4,
  .t2-merchant-grid,
  .t2-actions,
  .t2-dash-stats,
  .t2-post-cards,
  .t2-shop-grid,
  .t2-goods-list,
  .t2-housing-grid,
  .t2-info-cols,
  .t2-shop-logos { grid-template-columns: 1fr; }
  .t2-banner-slide,
  .t2-banner-track { min-height: 220px; height: 220px; }
  .t2-banner-copy h2 { font-size: 22px; }
}
