/* templet3 — 独立前台样式（t3- 前缀），不依赖其他模板 */
:root {
  --t3-ink: #0f2c33;
  --t3-muted: #406873;
  --t3-line: #48b8cc;
  --t3-paper: #ffffff;
  --t3-paper-deep: #ffffff;
  --t3-card: #edf8fa;
  --t3-surface: #d0eff5;
  --t3-brand: #1c9db2;
  --t3-brand-dark: #147888;
  --t3-brand-soft: #c4edf3;
  --t3-brand-bright: #74d3e0;
  --t3-accent: #0e7490;
  --t3-warn: #c2410c;
  --t3-danger: #dc2626;
  --t3-radius: 10px;
  --t3-shadow: 0 10px 28px rgba(14, 90, 105, .16);
  --t3-max: 1200px;
  --t3-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.t3-body {
  margin: 0;
  font-family: var(--t3-font);
  color: var(--t3-ink);
  /* 移除原有径向+线性渐变背景，背景改为纯白色 */
  background: #ffffff;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.t3-wrap {
  width: min(100% - 32px, var(--t3-max));
  margin-inline: auto;
}
.t3-main { min-height: 48vh; padding-bottom: 28px; }
.t3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
}
.t3-btn-brand { background: var(--t3-brand); color: #fff; }
.t3-btn-brand:hover { background: var(--t3-brand-dark); color: #fff; }
.t3-btn-outline {
  background: var(--t3-card);
  border: 1px solid var(--t3-brand);
  color: var(--t3-brand);
}
.t3-btn-outline:hover { background: var(--t3-brand-soft); }
.t3-btn-dark { background: #111827; color: #fff; }
.t3-btn-full { width: 100%; }
.t3-btn-muted { background: var(--t3-surface); color: var(--t3-muted); cursor: not-allowed; }
/* topbar */
.t3-top {
  background: #1c9db2;
  border-bottom: 1px solid var(--t3-brand-dark);
  font-size: 12px;
  color: #e6f8fa;
}
.t3-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 12px;
}
.t3-top-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.t3-top-links a { color: #f0fbfc; }
.t3-top-links a:hover { color: #c6f2f7; }
/* header */
.t3-header {
  background: linear-gradient(180deg, #f4fcfe 0%, var(--t3-card) 100%);
  border-bottom: 1px solid var(--t3-line);
}
.t3-header-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
}
.t3-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.t3-brand img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.t3-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--t3-ink);
  line-height: 1.25;
}
.t3-search {
  display: flex;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
  border: 2px solid var(--t3-brand);
  border-radius: 8px;
  overflow: hidden;
  background: #f6fcfe;
}
.t3-search input {
  flex: 1;
  border: 0;
  padding: 11px 14px;
  outline: none;
  min-width: 0;
}
.t3-search button {
  border: 0;
  background: var(--t3-brand);
  color: #fff;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
}
.t3-search button:hover { background: var(--t3-brand-dark); }
.t3-header-cta .t3-btn { white-space: nowrap; }
/* nav */
.t3-nav {
  background: var(--t3-surface);
  border-top: 1px solid var(--t3-line);
  border-bottom: 2px solid var(--t3-brand);
}
.t3-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 46px;
}
.t3-nav-cats {
  position: relative;
  background: var(--t3-brand);
  color: #fff;
  min-width: 148px;
}
.t3-nav-cats > button,
.t3-nav-cats > a.t3-nav-cats-btn {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 0 16px;
}
.t3-nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  overflow-x: auto;
}
.t3-nav-link {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.t3-nav-link:hover,
.t3-nav-link.is-on { color: var(--t3-brand); }
.t3-nav-cart {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 14px;
  font-weight: 700;
  color: var(--t3-brand);
  white-space: nowrap;
}
.t3-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--t3-danger);
  color: #fff;
  font-size: 11px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.t3-nav-drop { position: relative; }
.t3-nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--t3-card);
  border: 1px solid var(--t3-line);
  border-radius: 8px;
  box-shadow: var(--t3-shadow);
  z-index: 40;
  padding: 6px;
}
.t3-nav-drop:hover .t3-nav-drop-menu { display: block; }
.t3-nav-drop-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.t3-nav-drop-menu a:hover { background: var(--t3-brand-soft); color: var(--t3-brand); }
/* hero */
.t3-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 12px;
  margin: 14px auto 18px;
}
.t3-hero-cats {
  background: #0b4c58;
  color: #fff;
  border-radius: var(--t3-radius);
  padding: 10px 0;
  overflow: hidden;
}
.t3-hero-cat {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.t3-hero-cat:hover { background: rgba(255,255,255,.06); }
.t3-hero-cat strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.t3-hero-cat span {
  display: block;
  font-size: 12px;
  color: #a2e3ed;
  line-height: 1.5;
}
.t3-hero-banner {
  position: relative;
  border-radius: var(--t3-radius);
  overflow: hidden;
  background: #0b4c58;
  min-height: 320px;
}
.t3-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.t3-hero-slide.is-on {
  opacity: 1;
  pointer-events: auto;
}
.t3-hero-slide a { display: block; height: 100%; }
.t3-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t3-hero-slide-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  background: linear-gradient(135deg, #147888, #1c9db2 55%, #74d3e0);
  color: #fff;
  text-align: center;
}
.t3-hero-slide-fallback strong {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}
.t3-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.t3-hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
}
.t3-hero-dots button.is-on { background: #fff; width: 18px; border-radius: 999px; }
.t3-hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.t3-user-card,
.t3-news-card {
  background: var(--t3-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 14px;
}
.t3-user-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.t3-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--t3-surface);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--t3-muted);
  margin: 0 auto;
}
.t3-user-card p {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--t3-muted);
}
.t3-user-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t3-news-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--t3-brand);
  display: inline-block;
}
.t3-news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.t3-news-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px dashed var(--t3-line);
  font-size: 13px;
}
.t3-news-list li:last-child { border-bottom: 0; }
.t3-news-list b {
  flex: 0 0 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--t3-surface);
  color: var(--t3-muted);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.t3-news-list li:nth-child(-n+3) b {
  background: var(--t3-brand);
  color: #fff;
}
.t3-news-list a {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t3-news-list a:hover { color: var(--t3-brand); }
/* quick tiles */
.t3-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 auto 18px;
}
.t3-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 110px;
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #334155;
}
.t3-tile:nth-child(1) { background: linear-gradient(145deg, #0e7486, #22b8cf); }
.t3-tile:nth-child(2) { background: linear-gradient(145deg, #0e766e, #2dd4bf); }
.t3-tile:nth-child(3) { background: linear-gradient(145deg, #1d4ed8, #38bdf8); }
.t3-tile:nth-child(4) { background: linear-gradient(145deg, #165e6b, #36c2d8); }
.t3-tile strong { font-size: 18px; }
.t3-tile span { font-size: 12px; opacity: .85; margin-top: 4px; }
/* floors */
.t3-floor {
  background: var(--t3-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(14, 90, 105, .08);
}
.t3-floor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--t3-line);
}
.t3-floor-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}
.t3-floor-title i {
  width: 8px;
  height: 18px;
  border-radius: 3px;
  background: var(--t3-brand);
  display: inline-block;
}
.t3-floor-more {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--t3-muted);
}
.t3-floor-more a:hover { color: var(--t3-brand); }
.t3-floor-body { padding: 14px; }
.t3-goods-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t3-goods {
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: .15s ease;
  color: inherit;
  background: #f6fcfe;
}
.t3-goods:hover {
  border-color: var(--t3-line);
  box-shadow: var(--t3-shadow);
  transform: translateY(-2px);
}
.t3-goods-cover {
  aspect-ratio: 1;
  background: var(--t3-surface);
  overflow: hidden;
}
.t3-goods-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t3-goods-body { padding: 10px; }
.t3-goods-body h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.t3-goods-price {
  color: var(--t3-danger);
  font-weight: 800;
  font-size: 16px;
}
.t3-goods-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--t3-muted);
}
.t3-post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.t3-post-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--t3-line);
  font-size: 14px;
}
.t3-post-list li:last-child { border-bottom: 0; }
.t3-post-list em {
  font-style: normal;
  color: var(--t3-brand);
  font-size: 12px;
  white-space: nowrap;
}
.t3-post-list a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t3-post-list a:hover { color: var(--t3-brand); }
.t3-post-list time {
  color: var(--t3-muted);
  font-size: 12px;
  white-space: nowrap;
}
.t3-trust {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 8px auto 20px;
  background: var(--t3-card);
  border: 1px solid var(--t3-line);
  border-radius: var(--t3-radius);
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(14, 90, 105, .08);
}
.t3-trust a,
.t3-trust span {
  font-size: 13px;
  color: var(--t3-muted);
}
.t3-trust b {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--t3-brand-soft);
  color: var(--t3-brand);
  display: grid;
  place-items: center;
  font-size: 12px;
}
/* footer */
.t3-footer {
  background: #0b3842;
  color: #94c9d3;
  padding: 28px 0 18px;
  margin-top: 12px;
  font-size: 13px;
}
.t3-footer a:hover { color: #fff; }
.t3-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.t3-footer h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
}
.t3-footer ul { margin: 0; padding: 0; list-style: none; }
.t3-footer li { margin: 6px 0; }
.t3-footer-copy {
  border-top: 1px solid #0e4753;
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
}
.t3-state-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--t3-muted);
  background: var(--t3-card);
  border: 1px dashed var(--t3-line);
  border-radius: var(--t3-radius);
}

@media (max-width: 980px) {
  .t3-header-row { grid-template-columns: 1fr; }
  .t3-hero { grid-template-columns: 1fr; }
  .t3-hero-cats { display: none; }
  .t3-hero-banner { min-height: 220px; }
  .t3-tiles { grid-template-columns: repeat(2, 1fr); }
  .t3-goods-grid { grid-template-columns: repeat(3, 1fr); }
  .t3-trust { grid-template-columns: repeat(4, 1fr); }
  .t3-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .t3-nav-cats { display: none; }
}
@media (max-width: 560px) {
  .t3-goods-grid { grid-template-columns: repeat(2, 1fr); }
  .t3-tiles { grid-template-columns: 1fr; }
  .t3-trust { grid-template-columns: repeat(2, 1fr); }
  .t3-header-cta { display: none; }
  .t3-user-actions { grid-template-columns: 1fr; }
}
