:root {
  --bg: #f6f3ee;
  --panel: #ffffff;
  --panel-soft: #fbf8f3;
  --line: #e8ddd0;
  --text: #2d241d;
  --muted: #7b6d61;
  --primary: #b86b3d;
  --primary-deep: #8c4d28;
  --accent: #e9c7a7;
  --success: #4d7c5d;
  --shadow: 0 14px 40px rgba(60, 32, 11, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(233, 199, 167, 0.26), transparent 24%),
    linear-gradient(180deg, #fbf7f1 0%, #f6f3ee 100%);
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #2a231d;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.topbar-inner,
.header-main,
.nav-inner,
.footer-meta,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-inner {
  min-height: 42px;
}

.topbar-links,
.header-actions,
.nav-links,
.hero-tags,
.meta-list,
.footer-links,
.page-crumbs,
.chip-list,
.detail-tags,
.form-actions,
.info-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-links a,
.footer-links a {
  color: rgba(255, 255, 255, 0.86);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(251, 247, 241, 0.9);
  border-bottom: 1px solid rgba(184, 107, 61, 0.1);
}

.header-main {
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  overflow: hidden;
}

.brand-copy h1,
.brand-copy p,
.page-hero h2,
.page-hero p,
.section-head h3,
.section-head p,
.auth-panel h2,
.detail-summary h2,
.detail-summary p,
.article-body h1,
.article-body p {
  margin: 0;
}

.brand-copy h1 {
  font-size: 26px;
  line-height: 1.1;
}

.brand-copy p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.header-search {
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 8px 7px 18px;
  box-shadow: var(--shadow);
}

.header-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
}

.btn,
.header-search button,
.nav-cta,
.auth-panel button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn,
.header-search button,
.auth-panel button,
.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 12px 24px rgba(184, 107, 61, 0.22);
}

.btn:hover,
.header-search button:hover,
.nav-cta:hover,
.auth-panel button:hover,
.cta-button:hover {
  transform: translateY(-1px);
}

.btn.alt,
.nav-cta {
  background: rgba(184, 107, 61, 0.08);
  color: var(--primary-deep);
  box-shadow: none;
}

.header-actions a {
  color: var(--text);
  font-size: 14px;
}

.nav-shell {
  border-top: 1px solid rgba(184, 107, 61, 0.08);
  border-bottom: 1px solid rgba(184, 107, 61, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.nav-inner {
  min-height: 54px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary-deep);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #d7986c);
}

.hero,
.page-hero {
  padding: 34px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 20px;
}

.panel,
.category-card,
.metric-card,
.product-card,
.article-card,
.detail-card,
.store-card,
.auth-panel,
.service-box,
.help-card,
.cart-card,
.order-card,
.benefit-card,
.notice-card {
  background: var(--panel);
  border: 1px solid rgba(184, 107, 61, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.side-panel,
.hero-banner,
.hero-info {
  min-height: 100%;
}

.side-panel {
  padding: 24px;
  background: linear-gradient(180deg, #fff9f3, #fff);
}

.side-panel h3,
.hero-info h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.side-list,
.detail-list,
.article-body ul,
.service-list,
.help-list,
.order-steps,
.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li,
.detail-list li,
.article-body ul li,
.service-list li,
.help-list li,
.order-steps li,
.benefit-list li {
  position: relative;
  padding-left: 18px;
}

.side-list li::before,
.detail-list li::before,
.article-body ul li::before,
.service-list li::before,
.help-list li::before,
.order-steps li::before,
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.side-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text);
}

.side-list li:last-child a {
  border-bottom: 0;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(60, 31, 10, 0.72), rgba(184, 107, 61, 0.74)),
    url("../../images/banner.jpg") center/cover;
  color: #fff;
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero-banner > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.mini-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.12);
}

.hero-banner h2 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  max-width: 640px;
}

.hero-banner p,
.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.75;
}

.hero-tags {
  margin-top: 20px;
}

.chip,
.mini-title,
.status-chip,
.detail-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
}

.hero-actions,
.section-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn.alt {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-info {
  padding: 24px;
  background: linear-gradient(180deg, #fff, #fbf6f0);
}

.metric-grid,
.category-grid,
.product-grid,
.article-grid,
.service-grid,
.store-grid,
.help-grid,
.cart-grid,
.benefit-grid,
.info-grid {
  display: grid;
  gap: 20px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.service-box,
.help-card,
.notice-card {
  padding: 22px;
}

.metric-card strong,
.price {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.metric-card span,
.muted,
.store-card p,
.product-card p,
.category-card p,
.article-card p,
.detail-summary p,
.help-card p,
.service-box p,
.notice-card p,
.footer-meta p,
.article-body p,
.auth-tips p,
.cart-card p,
.order-card p,
.benefit-card p {
  color: var(--muted);
  line-height: 1.8;
}

.section {
  padding: 42px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h3 {
  font-size: 30px;
  line-height: 1.15;
}

.section-head p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 720px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
  overflow: hidden;
}

.category-card .visual,
.product-card .visual,
.store-card .visual,
.detail-gallery {
  aspect-ratio: 1 / 0.88;
  overflow: hidden;
  background: linear-gradient(180deg, #fff7ef, #f7ede1);
}

.product-card .visual img,
.store-card .visual img,
.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.category-card:hover .visual img,
.product-card:hover .visual img,
.store-card:hover .visual img,
.detail-gallery:hover img {
  transform: scale(1.04);
}

.category-card .content,
.product-card .content,
.store-card .content {
  padding: 20px;
}

.category-card h4,
.product-card h4,
.store-card h4,
.help-card h4,
.service-box h4,
.benefit-card h4,
.notice-card h4 {
  margin: 0 0 10px;
  font-size: 20px;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
}

.tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(184, 107, 61, 0.1);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 600;
}

.price {
  color: var(--primary-deep);
}

.price small {
  font-size: 14px;
  color: var(--muted);
  margin-left: 8px;
}

.article-grid,
.store-grid,
.service-grid,
.help-grid,
.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card,
.benefit-card {
  padding: 24px;
}

.article-card h4 {
  margin: 14px 0 10px;
  font-size: 22px;
}

.article-card .mini-title,
.page-hero .mini-title {
  background: rgba(184, 107, 61, 0.08);
  color: var(--primary-deep);
}

.info-grid {
  grid-template-columns: 1.2fr 1fr;
}

.page-hero-box {
  padding: 32px 36px;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(135deg, rgba(49, 30, 17, 0.78), rgba(184, 107, 61, 0.72)),
    url("../../static/picture/f5d64e76450f82785d0281c35f87d09e.jpg") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.page-crumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}

.page-crumbs a {
  color: rgba(255, 255, 255, 0.92);
}

.page-hero h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  margin-bottom: 12px;
}

.page-shell {
  padding: 28px 0 0;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  overflow: hidden;
}

.detail-summary {
  padding: 30px;
}

.detail-summary h2 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.detail-price {
  margin: 18px 0 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.detail-price strong {
  font-size: 34px;
  color: var(--primary-deep);
}

.detail-tags {
  margin: 16px 0 18px;
}

.detail-tags span {
  background: rgba(184, 107, 61, 0.1);
  color: var(--primary-deep);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.specs-table th,
.specs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.specs-table th {
  width: 120px;
  color: var(--muted);
  font-weight: 600;
}

.article-body,
.content-panel {
  padding: 28px 30px;
}

.article-body h1 {
  font-size: 32px;
  margin-bottom: 14px;
}

.article-body h3 {
  margin: 26px 0 12px;
  font-size: 22px;
}

.article-body ul {
  display: grid;
  gap: 10px;
}

.content-panel {
  background: var(--panel);
  border: 1px solid rgba(184, 107, 61, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.auth-wrap {
  min-height: calc(100vh - 182px);
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.auth-grid {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 22px;
}

.auth-panel {
  padding: 30px;
}

.auth-panel h2 {
  font-size: 28px;
}

.auth-panel form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.field input,
.field textarea,
.inline-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf5;
  border-radius: 16px;
  padding: 14px 16px;
  outline: 0;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.auth-tips {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px dashed var(--line);
}

.footer {
  margin-top: 52px;
  padding: 34px 0 26px;
  background: #2a231d;
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 24px;
}

.footer-brand h3,
.footer-col h4 {
  margin: 0 0 12px;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-meta {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.footer-meta strong {
  color: #fff;
}

.status-chip {
  background: rgba(77, 124, 93, 0.15);
  color: #88d1a0;
}

.empty-box {
  padding: 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fffaf5, #fff);
  border: 1px dashed var(--line);
}

.service-box .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(184, 107, 61, 0.1);
  color: var(--primary-deep);
  font-weight: 700;
}

.cart-grid {
  grid-template-columns: 1fr 320px;
}

.cart-card,
.order-card,
.benefit-card {
  padding: 24px;
}

.cart-row,
.store-meta,
.order-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-thumb {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: #f4eadf;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.center-note {
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-grid,
  .detail-card,
  .auth-grid,
  .cart-grid,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .product-grid,
  .article-grid,
  .store-grid,
  .service-grid,
  .help-grid,
  .benefit-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-main,
  .nav-inner,
  .topbar-inner,
  .footer-meta,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-search {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 22px, 100%);
  }

  .brand-copy h1 {
    font-size: 22px;
  }

  .hero-banner,
  .page-hero-box,
  .auth-side,
  .auth-panel,
  .content-panel,
  .article-body,
  .detail-summary {
    padding: 24px;
  }

  .hero-banner h2,
  .page-hero h2,
  .detail-summary h2,
  .article-body h1,
  .section-head h3 {
    font-size: 26px;
  }

  .category-grid,
  .product-grid,
  .article-grid,
  .store-grid,
  .service-grid,
  .help-grid,
  .benefit-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .cart-item .price {
    grid-column: 2;
  }
}
