/* templet1 独立样式 — 仅本模板加载，类名统一 t1- 前缀 */
:root {
  --t1-ink: #0f172a;
  --t1-muted: #64748b;
  --t1-line: #e2e8f0;
  --t1-paper: #f1f5f9;
  --t1-card: #ffffff;
  --t1-brand: #0f766e;
  --t1-brand-dark: #0d5f59;
  --t1-accent: #0369a1;
  --t1-warm: #b45309;
  --t1-danger: #dc2626;
  --t1-top: #1e293b;
  --t1-radius: 10px;
  --t1-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --t1-max: 1200px;
  --t1-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.t1-body {
  margin: 0;
  font-family: var(--t1-font);
  color: var(--t1-ink);
  background: var(--t1-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; }

.t1-wrap {
  width: min(100% - 32px, var(--t1-max));
  margin-inline: auto;
}

.t1-main { min-height: 50vh; padding-bottom: 40px; }

/* —— 顶栏 —— */
.t1-topbar {
  background: var(--t1-top);
  color: #cbd5e1;
  font-size: 12px;
}
.t1-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}
.t1-topbar a { color: #e2e8f0; }
.t1-topbar a:hover { color: #fff; }
.t1-top-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.t1-top-split { opacity: .35; }

/* —— 头部 —— */
.t1-header {
  background: var(--t1-card);
  border-bottom: 1px solid var(--t1-line);
}
.t1-header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
}
.t1-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.t1-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--t1-brand), var(--t1-accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.t1-brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.t1-brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: .02em;
}
.t1-brand em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--t1-muted);
}
.t1-search {
  display: flex;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
  border: 2px solid var(--t1-brand);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.t1-search input {
  flex: 1;
  border: 0;
  padding: 10px 18px;
  outline: none;
  min-width: 0;
}
.t1-search button {
  border: 0;
  background: var(--t1-brand);
  color: #fff;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 600;
}
.t1-search button:hover { background: var(--t1-brand-dark); }
.t1-quick-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--t1-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.t1-quick-publish:hover {
  background: var(--t1-brand-dark);
  color: #fff;
}

/* —— 主导航（后台自定义） —— */
.t1-nav {
  background: var(--t1-card);
  border-bottom: 1px solid var(--t1-line);
}
.t1-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 46px;
}
.t1-cat-trigger {
  position: relative;
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--t1-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
  border-radius: 0;
}
.t1-cat-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 220px;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--t1-shadow);
  z-index: 50;
  max-height: 420px;
  overflow-y: auto;
}
.t1-cat-trigger:hover .t1-cat-panel { display: block; }
.t1-cat-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--t1-ink);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}
.t1-cat-panel a:hover {
  background: #f0fdfa;
  color: var(--t1-brand);
}
.t1-cat-ico {
  width: 18px;
  text-align: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.t1-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
  flex: 1;
}
.t1-nav-links > a,
.t1-nav-drop > a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t1-ink);
  position: relative;
}
.t1-nav-links > a:hover,
.t1-nav-drop > a:hover {
  color: var(--t1-brand);
}
.t1-nav-drop { position: relative; }
.t1-nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: 8px;
  box-shadow: var(--t1-shadow);
  padding: 8px 0;
  z-index: 40;
}
.t1-nav-drop:hover .t1-nav-drop-menu { display: block; }
.t1-nav-drop-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}
.t1-nav-drop-menu a:hover {
  background: #f0fdfa;
  color: var(--t1-brand);
}

/* —— 首页展台 —— */
.t1-stage {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  margin-top: 16px;
}
.t1-cats {
  background: #0f172a;
  color: #fff;
  border-radius: var(--t1-radius);
  overflow: hidden;
  min-height: 340px;
}
.t1-cats-title {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.t1-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  color: #e2e8f0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.t1-cats a:hover {
  background: rgba(15, 118, 110, .45);
  color: #fff;
}
.t1-cats i { opacity: .5; font-style: normal; }

.t1-banner {
  position: relative;
  border-radius: var(--t1-radius);
  overflow: hidden;
  background: #0f172a;
  min-height: 340px;
}
.t1-banner-track { height: 100%; min-height: 340px; }
.t1-banner-slide {
  display: none;
  position: relative;
  height: 340px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}
.t1-banner-slide.is-active { display: block; }
.t1-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t1-banner-slide.tone-a { background: linear-gradient(120deg, #0f766e, #164e63); }
.t1-banner-slide.tone-b { background: linear-gradient(120deg, #1e3a8a, #0e7490); }
.t1-banner-slide.tone-c { background: linear-gradient(120deg, #334155, #0f766e); }
.t1-banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  max-width: 520px;
  background: linear-gradient(90deg, rgba(15,23,42,.55), transparent);
}
.t1-banner-copy h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.2;
}
.t1-banner-copy p {
  margin: 0 0 18px;
  color: #e2e8f0;
  font-size: 15px;
}
.t1-banner-cta {
  display: inline-flex;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--t1-brand-dark);
  font-weight: 700;
  font-size: 13px;
}
.t1-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.t1-banner-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
}
.t1-banner-dots button.is-active { background: #fff; width: 22px; border-radius: 999px; }

/* —— 服务条 / 促销 —— */
.t1-promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.t1-promise-item {
  background: var(--t1-card);
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.t1-promise-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: var(--t1-brand);
  font-weight: 800;
  flex-shrink: 0;
}
.t1-promise strong { display: block; font-size: 14px; }
.t1-promise span { font-size: 12px; color: var(--t1-muted); }

.t1-promo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.t1-promo-card {
  background: var(--t1-card);
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 16px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.t1-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--t1-shadow);
}
.t1-promo-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.t1-promo-card p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--t1-muted);
}
.t1-promo-card img {
  margin-top: auto;
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  align-self: flex-end;
}
.t1-promo-card .t1-promo-ph {
  margin-top: auto;
  height: 72px;
  width: 72px;
  align-self: flex-end;
  border-radius: 12px;
  background: linear-gradient(135deg, #ccfbf1, #e0f2fe);
}

/* —— 楼层 —— */
.t1-floor {
  background: var(--t1-card);
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  margin-bottom: 18px;
  overflow: hidden;
}
.t1-floor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--t1-line);
  background: linear-gradient(90deg, #f0fdfa, #fff);
}
.t1-floor-head h2 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.t1-floor-no {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--t1-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.t1-floor-more {
  font-size: 13px;
  color: var(--t1-brand);
  font-weight: 600;
}
.t1-floor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--t1-line);
}
.t1-goods {
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}
.t1-goods:hover { background: #f8fafc; }
.t1-goods-cover {
  aspect-ratio: 1;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.t1-goods-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t1-goods-cover span { color: #94a3b8; font-size: 13px; }
.t1-goods-title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--t1-ink);
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.t1-goods-price {
  color: var(--t1-danger);
  font-weight: 800;
  font-size: 16px;
}
.t1-goods-meta {
  font-size: 12px;
  color: var(--t1-muted);
}

/* —— 资讯双栏 —— */
.t1-split {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 12px;
  margin-bottom: 18px;
}
.t1-panel {
  background: var(--t1-card);
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 16px 18px;
}
.t1-panel h2 {
  margin: 0 0 14px;
  font-size: 17px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--t1-brand);
  display: inline-block;
}
.t1-news-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--t1-line);
  font-size: 14px;
}
.t1-news-item:last-child { border-bottom: 0; }
.t1-news-item time { color: var(--t1-muted); font-size: 12px; white-space: nowrap; }
.t1-shop-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--t1-line);
}
.t1-shop-row:last-child { border-bottom: 0; }
.t1-shop-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ecfdf5;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--t1-brand);
  overflow: hidden;
  flex-shrink: 0;
}
.t1-shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t1-shop-row strong { display: block; font-size: 14px; }
.t1-shop-row span { font-size: 12px; color: var(--t1-muted); }

/* —— 首页版块（后台配置驱动） —— */
.t1-home > .t1-stage,
.t1-home > .t1-floor,
.t1-home > .t1-panel { margin-bottom: 16px; }
.t1-stage-wide { grid-template-columns: 1fr; }
.t1-stage-compact .t1-cats,
.t1-stage-compact .t1-banner,
.t1-stage-compact .t1-banner-track,
.t1-stage-compact .t1-banner-slide { min-height: 260px; height: auto; }
.t1-stage-compact .t1-banner-slide { height: 260px; }
.t1-banner-slide.mode-image .t1-banner-copy { display: none; }
.t1-banner-slide.mode-image.has-image .t1-banner-copy { display: none; }
.t1-floor-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 12px;
  font-size: 13px;
  font-weight: 500;
  vertical-align: middle;
}
.t1-floor-tabs a { color: var(--t1-muted); }
.t1-floor-tabs a.is-on,
.t1-floor-tabs a:hover { color: var(--t1-brand); }
.t1-goods-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.t1-goods-list-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 10px;
}
.t1-goods-list-cover {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--t1-muted);
}
.t1-goods-list-cover img { width: 100%; height: 100%; object-fit: cover; }
.t1-goods-list-body h3 { margin: 0 0 6px; font-size: 14px; line-height: 1.35; }
.t1-goods-list-body p { margin: 0 0 8px; font-size: 12px; color: var(--t1-muted); }
.t1-info-cols {
  display: grid;
  grid-template-columns: repeat(var(--t1-cols, 3), 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 14px 16px;
}
.t1-info-col h3 {
  margin: 0 0 8px;
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--t1-brand);
}
.t1-info-col h3 a:hover { color: var(--t1-brand); }
.t1-post-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t1-post-card {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.t1-post-card-cover {
  aspect-ratio: 1.4;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.t1-post-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.t1-post-card h3 { margin: 10px 12px 4px; font-size: 14px; line-height: 1.4; }
.t1-post-card time { margin: 0 12px 12px; font-size: 12px; color: var(--t1-muted); }
.t1-housing-grid {
  display: grid;
  grid-template-columns: repeat(var(--t1-cols, 2), 1fr);
  gap: 12px;
}
.t1-housing-card,
.t1-housing-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 12px;
}
.t1-housing-list { display: flex; flex-direction: column; gap: 10px; }
.t1-housing-thumb {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: var(--t1-muted);
}
.t1-housing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t1-housing-body h3 { margin: 0 0 6px; font-size: 15px; }
.t1-housing-body p,
.t1-housing-row p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--t1-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t1-housing-meta { font-size: 12px; color: var(--t1-muted); display: flex; gap: 12px; }
.t1-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t1-shop-card {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  overflow: hidden;
}
.t1-shop-cover {
  aspect-ratio: 1.6;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: var(--t1-muted);
}
.t1-shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.t1-shop-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
}
.t1-shop-card-meta strong { display: block; font-size: 14px; }
.t1-shop-card-meta span { font-size: 12px; color: var(--t1-muted); }
.t1-shop-rows { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--t1-line); border-radius: var(--t1-radius); padding: 4px 14px; }
.t1-shop-scroll {
  flex-direction: row;
  overflow-x: auto;
  gap: 12px;
  padding: 12px;
}
.t1-shop-scroll .t1-shop-row {
  min-width: 200px;
  border: 1px solid var(--t1-line);
  border-radius: 8px;
  padding: 10px;
}
.t1-shop-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.t1-shop-logo {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 700;
  color: var(--t1-brand);
}
.t1-shop-logo img { width: 70%; height: 70%; object-fit: contain; }
.t1-ad {
  display: block;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  overflow: hidden;
}
.t1-ad-media img { width: 100%; display: block; max-height: 280px; object-fit: cover; }
.t1-ad-body { padding: 16px 18px; }
.t1-ad-body h2 { margin: 0 0 8px; font-size: 18px; }
.t1-ad-body p { margin: 0; color: var(--t1-muted); }
.t1-ad-html img { max-width: 100%; height: auto; }
.t1-ad-ad_split .t1-ad,
.t1-ad-split .t1-ad {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.t1-ad-ad_card .t1-ad,
.t1-ad-card .t1-ad {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.t1-ad-ad_html .t1-ad-media { display: none; }

/* —— 页脚 —— */
.t1-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 24px;
  margin-top: 24px;
}
.t1-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.t1-footer h4 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 14px;
}
.t1-footer a { color: #94a3b8; font-size: 13px; }
.t1-footer a:hover { color: #fff; }
.t1-footer li { margin: 6px 0; }
.t1-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
}
.t1-footer-bottom a { color: #64748b; }

/* —— 通用列表页 —— */
.t1-page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 20px 0 14px;
}
.t1-page-head h1 {
  margin: 0;
  font-size: 24px;
}
.t1-page-head p {
  margin: 4px 0 0;
  color: var(--t1-muted);
  font-size: 13px;
}
.t1-card {
  background: var(--t1-card);
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 16px;
}
.t1-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.t1-filter input,
.t1-filter select {
  border: 1px solid var(--t1-line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
}
.t1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.t1-btn-primary { background: var(--t1-brand); color: #fff; }
.t1-btn-primary:hover { background: var(--t1-brand-dark); }
.t1-btn-ghost {
  background: #fff;
  border: 1px solid var(--t1-line);
  color: var(--t1-ink);
}
.t1-btn-block { width: 100%; }
.t1-btn:disabled { opacity: .55; cursor: not-allowed; }

.t1-plist {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  align-items: start;
}
.t1-side {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  overflow: hidden;
}
.t1-side h3 {
  margin: 0;
  padding: 12px 14px;
  background: var(--t1-brand);
  color: #fff;
  font-size: 14px;
}
.t1-side a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.t1-side a.is-on,
.t1-side a:hover {
  color: var(--t1-brand);
  background: #f0fdfa;
}
.t1-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t1-p-card {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.t1-p-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.t1-p-card .t1-goods-cover { border-radius: 0; aspect-ratio: 1.05; }
.t1-price-row { display: flex; align-items: baseline; gap: 8px; }
.t1-price-row del { color: #94a3b8; font-size: 12px; }

.t1-post-list { display: flex; flex-direction: column; gap: 12px; }
.t1-post-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 12px;
}
.t1-post-cover {
  width: 140px;
  height: 105px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
}
.t1-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.t1-post-item h3 { margin: 0 0 6px; font-size: 17px; }
.t1-post-item h3 a:hover { color: var(--t1-brand); }
.t1-post-excerpt {
  margin: 0 0 8px;
  color: var(--t1-muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t1-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: var(--t1-muted);
}
.t1-meta .t1-price { color: var(--t1-danger); font-weight: 700; font-size: 14px; }

.t1-pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.t1-pager a {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--t1-line);
  background: #fff;
  font-size: 13px;
}
.t1-pager a.is-on {
  background: var(--t1-brand);
  border-color: var(--t1-brand);
  color: #fff;
}

/* 详情 */
.t1-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin-top: 16px;
}
.t1-detail-gallery {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 14px;
}
.t1-detail-main-img {
  aspect-ratio: 1;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.t1-detail-main-img img { width: 100%; height: 100%; object-fit: contain; }
.t1-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.t1-thumbs button {
  width: 64px;
  height: 64px;
  border: 1px solid var(--t1-line);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.t1-thumbs button.is-on { border-color: var(--t1-brand); }
.t1-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.t1-detail-buy {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 18px;
}
.t1-detail-buy h1 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}
.t1-detail-price {
  background: #fff7ed;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}
.t1-detail-price strong {
  color: var(--t1-danger);
  font-size: 28px;
}
.t1-qty {
  display: inline-flex;
  border: 1px solid var(--t1-line);
  border-radius: 8px;
  overflow: hidden;
}
.t1-qty button {
  width: 36px;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
}
.t1-qty input {
  width: 56px;
  border: 0;
  text-align: center;
  outline: none;
}
.t1-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.t1-actions .t1-btn { height: 44px; font-size: 15px; }
.t1-btn-buy { background: var(--t1-warm); color: #fff; }
.t1-btn-buy:hover { filter: brightness(.95); }

.t1-info-article {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 22px;
  margin-top: 16px;
}
.t1-info-article h1 { margin: 0 0 10px; font-size: 26px; }
.t1-info-body { margin-top: 18px; line-height: 1.8; color: #334155; }
.t1-info-body img { max-width: 100%; border-radius: 8px; }
.t1-contact-box {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 16px;
  margin-top: 16px;
}
.t1-contact-box h3 { margin: 0 0 10px; font-size: 16px; }

.t1-auth {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--t1-shadow);
}
.t1-auth h1 { margin: 0 0 18px; font-size: 22px; text-align: center; }
.t1-form-group { margin-bottom: 14px; }
.t1-form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--t1-muted); }
.t1-form-group input,
.t1-form-group select,
.t1-form-group textarea {
  width: 100%;
  border: 1px solid var(--t1-line);
  border-radius: 8px;
  padding: 10px 12px;
}
.t1-alert {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}
.t1-alert-error { background: #fef2f2; color: #b91c1c; }
.t1-alert-ok { background: #ecfdf5; color: #047857; }
.t1-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--t1-muted);
  background: #fff;
  border: 1px dashed var(--t1-line);
  border-radius: var(--t1-radius);
}

.t1-merchant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.t1-merchant-card {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 16px;
  cursor: pointer;
}
.t1-merchant-card:hover { box-shadow: var(--t1-shadow); }
.t1-m-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.t1-m-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin: 12px 0;
}
.t1-m-stats strong { display: block; font-size: 16px; }
.t1-m-stats span { font-size: 12px; color: var(--t1-muted); }

.t1-fixed-cart {
  position: fixed;
  right: 18px;
  bottom: 80px;
  z-index: 50;
}
.t1-fixed-cart a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 58px;
  padding: 10px 6px;
  border-radius: 14px;
  background: var(--t1-brand);
  color: #fff;
  font-size: 11px;
  box-shadow: var(--t1-shadow);
  position: relative;
}
.t1-fixed-cart .t1-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--t1-danger);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* —— 个人中心（templet1 独立） —— */
.t1-dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
  margin: 20px auto 32px;
  width: min(100% - 32px, 1400px);
}
.t1-dash-side {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  overflow: hidden;
  position: sticky;
  top: 12px;
}
.t1-dash-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 16px;
  background: linear-gradient(145deg, #0f766e, #0e7490);
  color: #fff;
}
.t1-dash-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.t1-dash-profile strong { display: block; font-size: 15px; }
.t1-dash-profile span { font-size: 12px; opacity: .85; }
.t1-dash-nav { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.t1-dash-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--t1-ink);
  font-weight: 600;
}
.t1-dash-nav a:hover,
.t1-dash-nav a.is-on {
  background: #f0fdfa;
  color: var(--t1-brand);
}
.t1-dash-nav em {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--t1-danger);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.t1-dash-nav-label {
  margin: 10px 12px 4px;
  font-size: 11px;
  color: var(--t1-muted);
  letter-spacing: .08em;
}
.t1-dash-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.t1-dash-main > .t1-wrap,
.t1-dash-main > .t1-cart-page,
.t1-dash-main > .t1-checkout-page {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.t1-dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 18px 20px;
}
.t1-dash-hero h1 { margin: 0; font-size: 22px; }
.t1-dash-hero p { margin: 4px 0 0; color: var(--t1-muted); font-size: 13px; }
.t1-dash-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.t1-alert-warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.t1-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t1-dash-stat {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.t1-dash-stat span { font-size: 12px; color: var(--t1-muted); }
.t1-dash-stat strong { font-size: 22px; color: var(--t1-ink); line-height: 1.2; }
.t1-dash-stat a,
.t1-dash-stat em,
.t1-dash-checkin {
  font-size: 12px;
  color: var(--t1-brand);
  font-style: normal;
  font-weight: 600;
}
.t1-dash-checkin {
  border: 0;
  background: #ecfdf5;
  color: var(--t1-brand-dark);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  width: fit-content;
}
.t1-dash-checkin:hover { background: #ccfbf1; }
.t1-dash-checkin:disabled { opacity: .6; cursor: not-allowed; }
.t1-dash-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
}
.t1-dash-card {
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  padding: 16px 18px;
}
.t1-dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}
.t1-dash-card-head h2 { margin: 0; font-size: 16px; }
.t1-dash-card-head a { font-size: 13px; color: var(--t1-brand); font-weight: 600; }
.t1-dash-dl { margin: 0; display: grid; gap: 10px; }
.t1-dash-dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  font-size: 13px;
}
.t1-dash-dl dt { margin: 0; color: var(--t1-muted); }
.t1-dash-dl dd { margin: 0; color: var(--t1-ink); }
.t1-dash-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.t1-dash-tag-ok { background: #ecfdf5; color: #047857; }
.t1-dash-tag-warn { background: #fffbeb; color: #b45309; }
.t1-dash-tag-bad { background: #fef2f2; color: #b91c1c; }
.t1-dash-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.t1-dash-shortcuts a {
  border: 1px solid var(--t1-line);
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}
.t1-dash-shortcuts a:hover {
  border-color: var(--t1-brand);
  background: #f0fdfa;
}
.t1-dash-shortcuts b { display: block; font-size: 14px; margin-bottom: 4px; }
.t1-dash-shortcuts span { font-size: 12px; color: var(--t1-muted); }
.t1-dash-table-wrap { overflow-x: auto; }
.t1-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.t1-dash-table th,
.t1-dash-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  white-space: nowrap;
}
.t1-dash-table th { color: var(--t1-muted); font-weight: 600; background: #f8fafc; }
.t1-dash-table a { color: var(--t1-ink); font-weight: 600; }
.t1-dash-table a:hover { color: var(--t1-brand); }
.t1-dash-ops { display: flex; gap: 10px; }
.t1-dash-ops .is-danger { color: var(--t1-danger); }

/* 子页正文（仍用 default 的 .container）适配右侧栏 */
.t1-dash-main > .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  background: #fff;
  border: 1px solid var(--t1-line);
  border-radius: var(--t1-radius);
  box-sizing: border-box;
}
.t1-dash-main > .container + .container {
  margin-top: 12px !important;
}
body.t1-legacy .t1-dash-main > .container.custom-page-container {
  border: 1px solid var(--t1-line);
}

/* 打掉各子页内联 style 的窄栏限制（仅 templet1 个人中心右侧） */
.t1-dash-main .addresses-page,
.t1-dash-main .orders-page,
.t1-dash-main .checkin-page,
.t1-dash-main .points-log-page,
.t1-dash-main .profile-page,
.t1-dash-main .recharge-page,
.t1-dash-main .vip-page,
.t1-dash-main .review-page,
.t1-dash-main .shop-settings-page,
.t1-dash-main .product-form-page,
.t1-dash-main .products-management,
.t1-dash-main .post-form,
.t1-dash-main [class$="-page"] {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
.t1-dash-main .checkin-page,
.t1-dash-main .profile-page,
.t1-dash-main .recharge-page,
.t1-dash-main .vip-page {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.t1-dash-main .container > div[class$="-page"],
.t1-dash-main .container > .post-form,
.t1-dash-main .container > .products-management,
.t1-dash-main .container > .dashboard {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 980px) {
  .t1-header-row { grid-template-columns: 1fr; }
  .t1-cat-trigger { flex-basis: 140px; font-size: 13px; }
  .t1-stage { grid-template-columns: 1fr; }
  .t1-cats { min-height: auto; }
  .t1-promise,
  .t1-promo,
  .t1-floor-grid,
  .t1-grid-4,
  .t1-merchant-grid,
  .t1-post-cards,
  .t1-shop-grid,
  .t1-goods-list,
  .t1-housing-grid,
  .t1-info-cols,
  .t1-shop-logos,
  .t1-ad-ad_split .t1-ad,
  .t1-ad-split .t1-ad { grid-template-columns: repeat(2, 1fr); }
  .t1-split,
  .t1-plist,
  .t1-detail-layout,
  .t1-footer-grid,
  .t1-dash,
  .t1-dash-grid { grid-template-columns: 1fr; }
  .t1-dash-side { position: static; }
  .t1-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .t1-post-item { grid-template-columns: 96px 1fr; }
  .t1-post-cover { width: 96px; height: 72px; }
}

@media (max-width: 560px) {
  .t1-promise,
  .t1-promo,
  .t1-floor-grid,
  .t1-grid-4,
  .t1-merchant-grid,
  .t1-actions,
  .t1-dash-stats,
  .t1-dash-shortcuts,
  .t1-post-cards,
  .t1-shop-grid,
  .t1-goods-list,
  .t1-housing-grid,
  .t1-info-cols,
  .t1-shop-logos { grid-template-columns: 1fr; }
  .t1-banner-slide,
  .t1-banner-track { min-height: 220px; height: 220px; }
  .t1-banner-copy h2 { font-size: 22px; }
  .t1-dash-hero { flex-direction: column; align-items: flex-start; }
}
