:root {
  --ink: #2b3644;
  --ink-soft: #3d4b5c;
  --accent: #c0724a;
  --accent-dark: #a85f3b;
  --text: #2e3844;
  --muted: #7a8494;
  --page: #f7f5f1;
  --white: #fff;
  --line: #ece6dc;
  --warm: #faf0ea;
  --shadow: 0 3px 14px rgba(43, 54, 68, .07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  color: rgba(255, 255, 255, .86);
  background: var(--ink);
  font-size: 12px;
}

.topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-badge {
  width: 15px;
  height: 15px;
  color: #dc966f;
}

.topbar-badge svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.topbar a:hover {
  color: #e5a17b;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 2px 15px rgba(43, 54, 68, .06);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  max-width: 260px;
  min-width: 150px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
  font-family: "Songti SC", SimSun, serif;
  font-size: 23px;
  font-weight: 700;
}

.brand img {
  max-width: 240px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.3;
}

.slogan {
  max-width: 190px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  flex-shrink: 0;
  font-size: 13px;
}

.search {
  height: 42px;
  max-width: 380px;
  margin-left: auto;
  display: flex;
  flex: 1;
  overflow: hidden;
  border: 1px solid #d7d0c5;
  border-radius: 6px;
  background: var(--white);
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 114, 74, .12);
}

.search input {
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: none;
  background: transparent;
  flex: 1;
}

.search button {
  min-width: 88px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  color: var(--white);
  background: var(--accent);
}

.search button:hover {
  background: var(--accent-dark);
}

.search button svg {
  width: 17px;
  height: 17px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-action {
  min-width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
}

.header-action:hover {
  color: var(--accent);
}

.header-action svg {
  width: 22px;
  height: 22px;
}

.main-nav {
  position: relative;
  z-index: 20;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-item,
.nav-loading {
  height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14px;
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-item.active {
  font-weight: 600;
}

.nav-loading {
  color: #aaa39a;
}

.banner-section {
  margin-top: 20px;
}

.hero {
  height: 340px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink-soft);
}

.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43, 54, 68, .89) 0%, rgba(43, 54, 68, .55) 45%, rgba(43, 54, 68, .07) 100%);
}

.hero-content {
  width: min(570px, 64%);
  height: 100%;
  padding: 0 56px;
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--white);
}

.hero-kicker {
  margin-bottom: 7px;
  color: #e0a17e;
  font-size: 11px;
  font-weight: 600;
}

.hero-content h1 {
  margin-bottom: 10px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 34px;
  letter-spacing: 0;
}

.hero-content > p:not(.hero-kicker) {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .84);
  font-size: 15px;
}

.primary-button {
  min-width: 126px;
  height: 42px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 21px;
  color: var(--white);
  background: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.trust-section {
  margin-top: 20px;
}

.trust-bar {
  min-height: 92px;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.trust-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--warm);
  flex: 0 0 40px;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-item h2 {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.trust-item p {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section-block {
  margin-top: 30px;
}

.section-heading {
  min-height: 34px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.heading-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.heading-main > span {
  width: 4px;
  height: 21px;
  border-radius: 2px;
  background: var(--accent);
  flex: 0 0 4px;
}

.heading-main h2 {
  overflow: hidden;
  font-family: "Songti SC", SimSun, serif;
  font-size: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section-heading > p,
.section-more {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 12px;
}

.section-more:hover {
  color: var(--accent);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  min-height: 138px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.category-card:hover {
  border-color: #e7d6c8;
  box-shadow: 0 8px 22px rgba(43, 54, 68, .1);
  transform: translateY(-3px);
}

.category-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-icon svg {
  width: 25px;
  height: 25px;
}

.category-card h3 {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.product-card:hover {
  border-color: #e7d6c8;
  box-shadow: 0 9px 25px rgba(43, 54, 68, .11);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  background: #f0eee9;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.product-image img.image-error {
  opacity: 0;
}

.product-card:hover .product-image img:not(.image-error) {
  transform: scale(1.025);
}

.product-body {
  padding: 15px 16px 17px;
}

.product-name {
  height: 46px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 23px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  min-height: 31px;
  margin-top: 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  min-width: 0;
  overflow: hidden;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-price small {
  margin-right: 1px;
  font-size: 12px;
}

.product-sales {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 11px;
}

.detail-button {
  width: 100%;
  height: 38px;
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.detail-button:hover {
  background: var(--accent-dark);
}

.empty-floor {
  padding: 44px 20px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

.category-skeleton,
.product-skeleton {
  min-height: 138px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eeeae4 25%, #f8f6f2 50%, #eeeae4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.product-skeleton {
  min-height: 350px;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.process-section {
  margin-top: 34px;
}

.process-panel {
  padding: 32px 36px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.process-title h2 {
  font-family: "Songti SC", SimSun, serif;
  font-size: 20px;
}

.process-title p {
  margin-top: 3px;
  color: rgba(255, 255, 255, .67);
  font-size: 13px;
}

.process-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.process-step {
  min-height: 134px;
  padding: 17px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  text-align: center;
}

.process-step b {
  width: 34px;
  height: 34px;
  margin: 0 auto 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 14px;
}

.process-step h3 {
  font-size: 14px;
}

.process-step p {
  margin-top: 4px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.site-footer {
  margin-top: 44px;
  color: rgba(255, 255, 255, .74);
  background: var(--ink);
}

.footer-main {
  padding-block: 34px 27px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  max-width: 680px;
}

.footer-brand h2 {
  color: var(--white);
  font-family: "Songti SC", SimSun, serif;
  font-size: 20px;
}

.footer-brand p {
  margin-top: 9px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 5px;
  font-size: 12px;
}

.footer-links a:hover {
  border-color: var(--accent);
  color: var(--white);
}

.footer-bottom {
  min-height: 58px;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .52);
  font-size: 12px;
  text-align: center;
}

.footer-bottom a:hover {
  color: #e5a17b;
}

.mobile-tabs {
  display: none;
}

.notice {
  max-width: min(420px, calc(100% - 32px));
  min-height: 42px;
  padding: 9px 14px;
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 100;
  border-radius: 6px;
  color: var(--white);
  background: rgba(43, 54, 68, .94);
  box-shadow: 0 7px 28px rgba(0, 0, 0, .18);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -12px);
  transition: opacity .2s, transform .2s;
}

.notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1000px) {
  .shell {
    width: min(100% - 32px, 920px);
  }

  .header-inner {
    min-height: 74px;
    gap: 16px;
  }

  .brand {
    max-width: 210px;
  }

  .brand img {
    max-width: 200px;
    height: 46px;
  }

  .slogan {
    display: none;
  }

  .hero,
  .hero > img {
    height: 270px;
  }

  .hero-content {
    padding-inline: 32px;
  }

  .hero-content h1 {
    font-size: 27px;
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .shell {
    width: calc(100% - 24px);
  }

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

  .topbar-left {
    gap: 7px;
  }

  .topbar-right,
  .company-line {
    display: none;
  }

  .site-header {
    top: 0;
  }

  .header-inner {
    min-height: 116px;
    padding-block: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 48px 42px;
    gap: 6px 12px;
  }

  .brand {
    min-width: 0;
    max-width: 100%;
    font-size: 19px;
  }

  .brand img {
    max-width: 210px;
    height: 43px;
  }

  .header-actions {
    gap: 14px;
  }

  .header-action {
    min-width: 34px;
  }

  .header-action svg {
    width: 20px;
    height: 20px;
  }

  .search {
    width: 100%;
    max-width: none;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .search button {
    min-width: 68px;
    padding-inline: 13px;
  }

  .search button span {
    display: none;
  }

  .nav-inner {
    width: 100%;
    padding-inline: 5px;
  }

  .nav-item,
  .nav-loading {
    height: 44px;
    padding-inline: 14px;
  }

  .banner-section {
    margin-top: 12px;
  }

  .hero,
  .hero > img {
    height: 230px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(43, 54, 68, .9), rgba(43, 54, 68, .38));
  }

  .hero-content {
    width: 88%;
    padding-inline: 20px;
  }

  .hero-kicker {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .hero-content h1 {
    margin-bottom: 7px;
    font-size: 23px;
  }

  .hero-content > p:not(.hero-kicker) {
    margin-bottom: 15px;
    font-size: 13px;
  }

  .primary-button {
    min-width: 110px;
    height: 37px;
    padding-inline: 19px;
    font-size: 13px;
  }

  .trust-section {
    margin-top: 12px;
  }

  .trust-bar {
    min-height: auto;
    padding: 13px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .trust-item {
    gap: 7px;
  }

  .trust-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .trust-icon svg {
    width: 17px;
    height: 17px;
  }

  .trust-item h2 {
    font-size: 13px;
  }

  .trust-item p {
    font-size: 10px;
  }

  .section-block {
    margin-top: 24px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .heading-main h2 {
    font-size: 18px;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-card {
    min-height: 96px;
    padding: 14px 16px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 13px;
    text-align: left;
  }

  .category-icon {
    margin: 0;
    flex: 0 0 50px;
  }

  .category-card p {
    display: none;
  }

  .product-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .product-body {
    min-width: 0;
    padding: 13px 12px;
    display: flex;
    flex-direction: column;
  }

  .product-name {
    height: 44px;
    font-size: 13px;
    line-height: 22px;
  }

  .product-meta {
    margin-top: 5px;
  }

  .product-price {
    font-size: 18px;
  }

  .detail-button {
    height: 34px;
    margin-top: auto;
  }

  .product-skeleton {
    min-height: 150px;
  }

  .process-section {
    margin-top: 26px;
  }

  .process-panel {
    padding: 24px 18px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .process-step {
    min-height: 124px;
    padding-inline: 7px;
  }

  .site-footer {
    margin-top: 30px;
  }

  .footer-main {
    padding-block: 27px 21px;
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .mobile-tabs {
    height: calc(60px + env(safe-area-inset-bottom));
    width: 100vw;
    padding-bottom: env(safe-area-inset-bottom);
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -4px 14px rgba(43, 54, 68, .07);
  }

  .mobile-tabs a {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: var(--muted);
    font-size: 10px;
  }

  .mobile-tabs a.active {
    color: var(--accent);
  }

  .mobile-tabs svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 390px) {
  .header-action span {
    display: none;
  }

  .header-actions {
    gap: 9px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
