/* ===== Design System: 墨绿 + 琥珀 · 编辑型门户 ===== */
:root {
  --primary: #1a5f4a;
  --primary-dark: #134a3a;
  --primary-light: #e8f3ef;
  --accent: #c4882f;
  --accent-light: #f5ead9;
  --accent-dark: #a06e22;
  --header-bg: #0f2e26;
  --header-bg2: #163d32;
  --bg: #f7f5f0;
  --surface: #fff;
  --text: #2c3338;
  --text-muted: #6b7280;
  --border: #e2ddd4;
  --border-light: #ede9e2;
  --danger: #c0392b;
  --orange: var(--accent);
  --blue-title: var(--primary);
  --max-width: 1140px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(15, 46, 38, 0.07);
  --shadow-lg: 0 12px 40px rgba(15, 46, 38, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; vertical-align: middle; border: 0; }
.clear { clear: both; }
.clearfix::after { content: ""; display: table; clear: both; }

.container, .body1000 {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-main { min-height: 40vh; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--header-bg);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.header-strip {
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
}
.header-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  color: rgba(255,255,255,0.55);
}
.header-welcome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.header-strip-links { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-strip-links a { color: rgba(255,255,255,0.55); }
.header-strip-links a:hover { color: var(--accent); }
.strip-divider { width: 1px; height: 12px; background: rgba(255,255,255,0.15); }
.strip-cart em {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  padding: 0 5px;
  border-radius: 8px;
  margin-left: 3px;
}
.strip-register { color: var(--accent) !important; font-weight: 600; }

.header-main-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: #fff;
}
.brand:hover { color: #fff; opacity: 0.92; }
.brand-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(196,136,47,0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  max-width: 360px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}
.header-nav a {
  color: rgba(255,255,255,0.75);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.header-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.header-nav a.is-active { color: var(--accent); background: rgba(196,136,47,0.12); font-weight: 600; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.header-search:focus-within {
  background: rgba(255,255,255,0.15);
  border-color: rgba(196,136,47,0.5);
}
.header-search input {
  border: none;
  background: transparent;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  width: 160px;
  outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.4); }
.header-search button {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.header-search button:hover { color: var(--accent); }

.btn-header-publish {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-header-publish:hover { background: var(--accent-dark); color: #fff !important; transform: translateY(-1px); }

.btn-mobile-menu {
  display: none;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Category bar */
.header-categories {
  background: var(--header-bg2);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.header-categories .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.category-wrap { position: relative; flex-shrink: 0; }
.category-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.category-trigger:hover,
.category-wrap.open .category-trigger { background: var(--accent-dark); }

.category-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 600;
  min-width: 720px;
  max-width: min(920px, calc(100vw - 40px));
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: catPanelIn 0.18s ease;
}
@keyframes catPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-panel.open,
.category-wrap:hover .category-panel { display: block; }

.category-panel-inner {
  display: flex;
  background: var(--surface);
  overflow: hidden;
}
.cat-sidebar {
  list-style: none;
  width: 180px;
  background: var(--primary-light);
  flex-shrink: 0;
}
.cat-item { border-bottom: 1px solid rgba(26,95,74,0.08); }
.cat-item:last-child { border-bottom: none; }
.cat-item > a {
  display: block;
  padding: 11px 16px;
  color: var(--text);
  font-size: 13px;
}
.cat-item > a:hover { color: var(--primary); }
.cat-item.active { background: var(--surface); }
.cat-item.active > a { color: var(--primary); font-weight: 600; border-left: 3px solid var(--accent); padding-left: 13px; }

.cat-flyout-area { flex: 1; position: relative; min-height: 200px; padding: 16px 20px; }
.cat-flyout { display: none; }
.cat-flyout.active { display: block; }
.flyout-title { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.flyout-title a { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--primary); }
.flyout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 12px;
}
.flyout-grid a {
  display: block;
  padding: 6px 8px;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: var(--radius-sm);
}
.flyout-grid a:hover { color: var(--primary); background: var(--primary-light); }

.category-quick {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-quick::-webkit-scrollbar { display: none; }
.category-quick a {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}
.category-quick a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(196,136,47,0.15);
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--surface);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  animation: slideIn 0.25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  color: #fff;
}
.mobile-drawer-head button {
  border: none;
  background: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.mobile-drawer-nav { padding: 12px 0; }
.mobile-drawer-nav a {
  display: block;
  padding: 12px 24px;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}
.mobile-drawer-nav a:hover { background: var(--primary-light); color: var(--primary); }

/* ===== Homepage Hero ===== */
.home-hero {
  background: linear-gradient(135deg, var(--header-bg) 0%, #1a4a3c 50%, var(--primary) 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(196,136,47,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}
.home-hero-badge {
  display: inline-block;
  background: rgba(196,136,47,0.2);
  color: var(--accent);
  border: 1px solid rgba(196,136,47,0.35);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.home-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 14px;
  word-break: break-word;
}
.home-hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 460px;
}
.hero-search {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  outline: none;
  background: transparent;
}
.hero-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--accent-dark); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags a {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}
.hero-tags a:hover { color: #fff; border-color: var(--accent); background: rgba(196,136,47,0.15); }

/* Banner */
.banner-modern {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 320px;
}
.banner, .banner-modern { position: relative; }
.banner .slide, .banner-modern .slide { list-style: none; margin: 0; padding: 0; }
.banner .slide li, .banner-modern .slide li {
  position: absolute;
  inset: 0;
  display: none;
}
.banner .slide li.is-show, .banner-modern .slide li.is-show { display: block; z-index: 10; }
.banner .slide li a, .banner-modern .slide li a { display: block; height: 100%; }
.banner .slide li img, .banner-modern .slide li img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.banner .slide li.is-show img, .banner-modern .slide li.is-show img { opacity: 1; }
.banner .num, .banner-modern .num {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  display: flex;
  gap: 6px;
  z-index: 20;
  padding: 6px 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 20px;
}
.banner .num li, .banner-modern .num li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s;
}
.banner .num li.active, .banner-modern .num li.active { background: var(--accent); border-color: var(--accent); }

/* Legacy banner (if used elsewhere) */
.focustop { margin-bottom: 20px; }
.banner:not(.banner-modern) { width: 100%; height: 346px; overflow: hidden; }

/* ===== Homepage Body ===== */
.home-body { padding: 32px 0 48px; }

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--text-muted); }

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.home-primary { min-width: 0; }
.home-sidebar { min-width: 0; overflow: hidden; }

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-light);
}
.panel-head h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.panel-sub { font-size: 13px; color: var(--text-muted); }
.panel-more { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 600; }
.panel-more:hover { color: var(--accent-dark); }
.panel-foot-links { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.panel-foot-links a { color: var(--primary); font-weight: 600; }

/* Featured grid */
.featured-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.featured-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s, border-color 0.2s;
  min-width: 0;
}
.featured-item:hover { box-shadow: var(--shadow); border-color: var(--border); }
.featured-item-lg {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
}
.featured-item-lg .featured-media { width: 200px; height: 140px; flex-shrink: 0; }
.featured-item-lg .featured-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.featured-item-lg h3 { font-size: 17px; }
.featured-item-lg .featured-content { flex: 1; min-width: 0; }
.featured-media { width: 100%; height: 140px; flex-shrink: 0; overflow: hidden; border-radius: var(--radius-sm); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-content { min-width: 0; flex: 1; }
.featured-cat {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.featured-content h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.featured-content h3 a { color: var(--text); }
.featured-content h3 a:hover { color: var(--primary); }
.featured-content p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* Shop scroll */
.shop-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.shop-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
  min-width: 0;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.shop-card-img { height: 140px; overflow: hidden; background: var(--border-light); }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-body { padding: 10px 12px; }
.shop-card-body h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text); line-height: 1.4; }
.shop-card-shop { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.shop-card-price { font-size: 16px; font-weight: 700; color: var(--danger); }

/* Secondhand */
.secondhand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .secondhand-grid { grid-template-columns: 264px 1fr; }
}
.secondhand-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.secondhand-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.secondhand-thumb img { width: 100%; height: 100%; object-fit: cover; }
.secondhand-list { list-style: none; }
.secondhand-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.secondhand-list li:last-child { border-bottom: none; }
.sh-cat {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 1px 6px;
  border-radius: 3px;
}
.secondhand-list a { color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secondhand-list a:hover { color: var(--primary); }
.secondhand-list li.is-hot a { color: var(--danger); font-weight: 600; }

/* Sidebar */
.side-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}
.side-card-accent { border-top: 3px solid var(--accent); }
.side-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.side-card-head h3 { font-family: var(--font-serif); font-size: 16px; color: var(--primary); font-weight: 700; }
.side-card-head a { font-size: 12px; color: var(--text-muted); }
.side-card-head a:hover { color: var(--accent); }

.side-house-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.side-house-item {
  text-align: center;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  display: block;
}
.side-house-item img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  display: block;
}
.side-house-item span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-house-item:hover span { color: var(--primary); }

.side-list { list-style: none; }
.side-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 13px;
  overflow: hidden;
}
.side-list li:last-child { border-bottom: none; }
.side-list a {
  color: var(--text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-list a:hover { color: var(--primary); }
.side-meta { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.side-cta {
  background: linear-gradient(135deg, var(--primary), var(--header-bg));
  border-radius: var(--radius);
  padding: 24px 20px;
  color: #fff;
  text-align: center;
}
.side-cta h3 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 8px; }
.side-cta p { font-size: 13px; opacity: 0.75; margin-bottom: 16px; }
.side-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
}
.side-cta-btn:hover { background: var(--accent-dark); color: #fff !important; }

.home-promo { margin-top: 8px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.home-promo img { width: 100%; display: block; }
.home-promo-text {
  background: linear-gradient(135deg, var(--header-bg), var(--primary));
  padding: 36px 28px;
  text-align: center;
  color: #fff;
}
.home-promo-inner h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 8px;
}
.home-promo-inner p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 16px;
}
.home-promo-inner a {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
}
.home-promo-inner a:hover { background: var(--accent-dark); color: #fff !important; }

/* Legacy index classes (compat) */
.index-recommend, .index-section { margin-bottom: 20px; }
#tab1 ul { list-style: none; border-bottom: 2px solid var(--primary-light); margin-bottom: 12px; }
#tab1 li { display: inline-block; padding: 8px 0; font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--primary); }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.featured-card { display: flex; gap: 12px; background: var(--surface); padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.featured-thumb img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.featured-body .title a { color: var(--text); font-weight: 600; }
.featured-body .summary { font-size: 12px; color: var(--text-muted); }
.featured-body .cat-tag { font-size: 11px; color: var(--accent); }

.index-section .hd {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  margin-bottom: 14px;
}
.index-section .hd .span { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--primary); }
.index-section .hd .more { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.shop-home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shop-home-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow 0.2s; }
.shop-home-card:hover { box-shadow: var(--shadow); }
.shop-home-thumb { height: 140px; overflow: hidden; }
.shop-home-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-home-body { padding: 10px; }
.shop-home-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.shop-home-price { color: var(--danger); font-weight: 700; font-size: 16px; }

.info-list { list-style: none; }
.info-list li { padding: 6px 0; border-bottom: 1px dashed var(--border-light); }
.info-list a { color: var(--text); }
.info-list a:hover { color: var(--primary); }
.info-list-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.index-row-housing { display: flex; gap: 20px; margin-bottom: 20px; }
.index-half { flex: 1; }
.house-strip { list-style: none; display: flex; gap: 8px; }
.house-strip .house-card img { width: 100%; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.index-promo { margin-top: 20px; }

/* ===== Inner pages ===== */
.section-block {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section-block .hd {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
}
.section-block .hd .span {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.section-block .hd .more { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.section-block .bd { padding: 16px 20px; }

.about-content { padding: 28px; line-height: 2; color: var(--text); }
.about-content h3 { font-family: var(--font-serif); margin: 24px 0 12px; color: var(--primary); }
.about-content .legal-contact { list-style: none; background: var(--primary-light); padding: 16px 20px; border-radius: var(--radius-sm); }

.location {
  padding: 16px 0 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.location a { color: var(--primary); }

.cat-list { list-style: none; }
.cat-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background 0.15s;
}
.cat-list li:hover { background: var(--primary-light); }
.cat-list .thumb { width: 90px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); }
.cat-list .meta .title { font-weight: 600; margin-bottom: 4px; }
.cat-list .meta .summary { font-size: 12px; color: var(--text-muted); }

.sub-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sub-cats a {
  padding: 6px 14px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.2s;
}
.sub-cats a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Detail pages */
.detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; margin-bottom: 24px; }
.detail-main {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.detail-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-muted); padding-bottom: 14px; border-bottom: 1px solid var(--border-light); margin-bottom: 16px; }
.detail-content { line-height: 1.9; font-size: 14px; }

.detail-house-layout { grid-template-columns: 1fr 260px; }
.detail-house-main { padding: 0; border-radius: var(--radius); overflow: hidden; }
.detail-house-title { font-family: var(--font-serif); font-size: 22px; color: var(--primary); }
.detail-house-badge { background: var(--accent); border-radius: var(--radius-sm); }
.attr-table .attr-price { color: var(--danger); }
.btn-show-phone { background: var(--primary); border-radius: var(--radius-sm); }
.detail-house-tip { background: var(--primary-light); border-color: var(--border); border-radius: var(--radius-sm); }
.tip-icon { background: var(--primary); }
.detail-house-section-hd { background: var(--primary-light); color: var(--primary); font-family: var(--font-serif); }

.detail-sidebar .sidebar-box,
.detail-house-sidebar .sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sidebar-cats-box h3 { color: var(--primary); background: var(--primary-light); font-family: var(--font-serif); }
.sidebar-box h3 { color: var(--primary); }

/* Forms */
.form-page {
  max-width: 520px;
  margin: 32px auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-page h2 { font-family: var(--font-serif); text-align: center; margin-bottom: 24px; color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); }

.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; }
.house-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 20px 0; }
.pagination a {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.2s;
}
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Footer ===== */
.site-footer { margin-top: 0; }

.footer-cta {
  background: linear-gradient(135deg, var(--header-bg), var(--primary));
  padding: 40px 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-cta-text h2 { font-family: var(--font-serif); font-size: 22px; color: #fff; margin-bottom: 8px; }
.footer-cta-text p { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.footer-btn {
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.footer-btn-primary { background: var(--accent); color: #fff !important; }
.footer-btn-primary:hover { background: var(--accent-dark); color: #fff !important; }
.footer-btn-outline { border: 1px solid rgba(255,255,255,0.4); color: #fff !important; }
.footer-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff !important; }

.footer-main { background: var(--surface); padding: 48px 0 36px; border-top: 1px solid var(--border-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand h3 { font-family: var(--font-serif); font-size: 17px; color: var(--primary); margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); line-height: 1.85; font-size: 13px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-col a { color: var(--text-muted); font-size: 13px; }
.footer-col a:hover { color: var(--primary); }
.footer-contact li { color: var(--text-muted); font-size: 13px; line-height: 1.8; }

.footer-bottom {
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
}
.footer-bottom-inner { text-align: center; }
.footer-bottom-inner p { color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }
.footer-beian a { color: var(--text-muted); }
.footer-beian a:hover { color: var(--primary); }
.footer-beian span { margin: 0 8px; color: var(--border); }
.footer-psb img { vertical-align: -3px; margin-right: 4px; }

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 400;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--accent); }

/* Category page bg variants */
.bodybgblue0, .bodybggreen0, .bodybgorange0, .bodybgred0 { background: var(--bg); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .btn-mobile-menu { display: flex; }
  .header-search input { width: 120px; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-visual { order: -1; }
  .banner-modern, .banner-modern .slide li img { height: 220px; }
  .home-layout { grid-template-columns: 1fr; }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .header-strip { display: none; }
  .header-main-inner { padding: 12px 16px; gap: 12px; }
  .brand-text strong { font-size: 12px; max-width: 200px; }
  .header-search { display: none; }
  .btn-header-publish { padding: 8px 14px; font-size: 12px; }
  .category-quick { display: none; }
  .category-panel { min-width: calc(100vw - 40px); }
  .category-wrap:hover .category-panel { display: none; }
  .category-panel.open { display: block; }
  .flyout-grid { grid-template-columns: 1fr 1fr; }

  .home-hero { padding: 32px 0 40px; }
  .home-hero-title { font-size: 24px; }
  .featured-masonry { grid-template-columns: 1fr; }
  .featured-item-lg { flex-direction: column; }
  .featured-item-lg .featured-media { width: 100%; height: 160px; }
  .shop-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secondhand-grid { grid-template-columns: 1fr; }
  .home-stats { grid-template-columns: 1fr 1fr; }

  .featured-grid, .shop-home-grid, .info-list-cols, .two-col, .detail-layout, .detail-house-layout { grid-template-columns: 1fr; }
  .index-row-housing { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-house-summary { flex-direction: column; }
  .detail-house-gallery { width: 100%; }
}
