﻿:root {
  --tm-red: #f5b400;
  --tm-red-dark: #d99a00;
  --tm-text: #111;
  --tm-muted: #666;
  --tm-bg: #fff8e6;
  --tm-card: #fff;
  --tm-border: #eadfbd;
}

body.mall-home {
  margin: 0;
  font: 12px/1.5 "Microsoft YaHei", Arial, Helvetica, sans-serif;
  background: var(--tm-bg);
  color: var(--tm-text);
}
body.mall-home a { color: inherit; text-decoration: none; }
body.mall-home a:hover { color: var(--tm-red); }
body.mall-home img { border: 0; vertical-align: middle; }
body.mall-home * { box-sizing: border-box; }

.tm-container { width: 1190px; margin: 0 auto; }
.tm-topbar {
  background: #fff4cc;
  border-bottom: 1px solid #eadfbd;
  height: 36px;
}
.tm-topbar .tm-container {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8a7650;
}
.tm-topbar .tm-left a { color: #8a7650; margin-right: 10px; }
.tm-topbar .tm-left a:hover { color: var(--tm-red); }
.tm-topbar .tm-right { display: flex; gap: 14px; }
.tm-topbar .tm-right a { color: #8a7650; }

.tm-head {
  background: #fff;
  border-bottom: 2px solid var(--tm-red);
}
.tm-head .tm-container {
  display: grid;
  grid-template-columns: 280px 1fr 180px;
  align-items: center;
  gap: 16px;
  padding: 18px 0 16px;
}
.tm-logo {
  display: flex;
  align-items: center;
  min-width: 0;
}
/* logo-badge removed: company title shows as plain text */
.tm-logo-name {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.tm-search {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: stretch;
  border: 2px solid var(--tm-red);
  border-radius: 999px;
  overflow: hidden;
  height: 42px;
}
.tm-search input {
  border: 0;
  padding: 0 18px;
  outline: none;
  font-size: 14px;
}
.tm-search button {
  border: 0;
  background: linear-gradient(180deg, #ffd65f, #e4a600);
  color: #3d2b00;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.tm-search button:hover { background: var(--tm-red-dark); }
.tm-cart {
  justify-self: end;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #f0f0f0;
  border-radius: 999px;
  background: #fff;
  color: #333;
}
.tm-cart b { color: var(--tm-red); }

.tm-nav {
  background: #fff;
}
.tm-nav .tm-container {
  display: flex;
  gap: 18px;
  align-items: center;
  height: 40px;
}
.tm-nav a {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}
.tm-nav a.is-active { color: var(--tm-red); }

.tm-hero {
  background: linear-gradient(135deg, #fff0b8, #fffaf0);
  padding: 14px 0 18px;
}
.tm-hero-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
}
.tm-cate {
  background: var(--tm-card);
  border-radius: 10px;
  border: 1px solid var(--tm-border);
  overflow: hidden;
}
.tm-cate-hd {
  background: linear-gradient(180deg, #ffd65f, #e4a600);
  color: #3d2b00;
  font-weight: 800;
  padding: 10px 12px;
}
.tm-cate ul { margin: 0; padding: 10px 12px 12px; list-style: none; }
.tm-cate li { padding: 7px 0; border-bottom: 1px dashed #eadfbd; }
.tm-cate li:last-child { border-bottom: 0; }
.tm-cate a { color: #333; }
.tm-cate a:hover { color: var(--tm-red); }

.tm-banner {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
}
.tm-banner img { width: 100%; height: 300px; object-fit: cover; display: block; }
.tm-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.tm-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.78);
  cursor: pointer;
}
.tm-dots button.is-active { background: linear-gradient(180deg, #ffd65f, #e4a600); }

.tm-floor { padding: 18px 0 10px; }
.tm-floor-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tm-floor-title {
  font-size: 18px;
  font-weight: 900;
  color: #111;
}
.tm-floor-more { color: #8a7650; }

.tm-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.tm-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: 10px;
  padding: 10px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.tm-card:hover {
  border-color: rgba(245,180,0,.48);
  box-shadow: 0 10px 26px rgba(154,105,0,.14);
  transform: translateY(-2px);
}
.tm-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf0;
  aspect-ratio: 1 / 1;
}
.tm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-title {
  margin-top: 8px;
  font-size: 13px;
  line-height: 18px;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tm-price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.tm-price strong { color: var(--tm-red); font-size: 18px; }
.tm-price span { color: #8a7650; font-size: 12px; }

/* Yellow theme text accents */
body.mall-home a:hover,
.tm-nav a.is-active,
.tm-cart b,
.tm-price strong {
  color: #9f6a00;
}

@media (max-width: 1280px) {
  .tm-container { width: min(1190px, calc(100vw - 24px)); }
  .tm-head .tm-container { grid-template-columns: 240px 1fr 160px; }
}
@media (max-width: 980px) {
  .tm-head .tm-container { grid-template-columns: 1fr; }
  .tm-cart { justify-self: start; }
  .tm-hero-layout { grid-template-columns: 1fr; }
  .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

