:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #17191f;
  --muted: #707784;
  --line: rgba(31, 35, 42, 0.1);
  --wine: #741233;
  --wine-dark: #4c0b22;
  --gold: #c9a35d;
  --olive: #62735b;
  --teal: #236d6a;
  --shadow: 0 18px 44px rgba(38, 32, 24, 0.12);
  --soft-shadow: 0 10px 26px rgba(38, 32, 24, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-page: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr minmax(280px, 430px);
  align-items: center;
  gap: 22px;
  width: min(100% - 40px, var(--max-page));
  margin: 0 auto;
  padding: 18px 0 12px;
  background: rgba(246, 243, 238, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--wine);
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(116, 18, 51, 0.22);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-link,
.sort-chip {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.nav-link {
  padding: 10px 15px;
}

.nav-link.is-active,
.sort-chip.is-active {
  background: #fff;
  color: var(--wine);
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.search-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box button,
.primary-action,
.ghost-action {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.search-box button,
.primary-action {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(116, 18, 51, 0.22);
}

.ghost-action {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--wine);
}

main {
  width: min(100% - 40px, var(--max-page));
  margin: 0 auto;
}
