:root {
  --green-950: #163d20;
  --green-900: #1d4f2a;
  --green-800: #286638;
  --green-700: #347a43;
  --green-600: #4b9157;
  --green-100: #eaf3e8;
  --green-50: #f4f8f1;
  --gold-700: #9b681b;
  --gold-500: #c58b2a;
  --orange-600: #c7582b;
  --ink-950: #172019;
  --ink-800: #29332b;
  --ink-600: #5d675f;
  --ink-500: #7a837c;
  --line: #e2e7df;
  --line-strong: #d3dbd0;
  --paper: #fffefa;
  --paper-soft: #f8f8f3;
  --white: #ffffff;
  --shadow-sm: 0 6px 20px rgba(27, 66, 36, 0.07);
  --shadow-md: 0 18px 48px rgba(20, 52, 29, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --content: 1320px;
  --header-height: 82px;
  --ease: 180ms ease;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  padding-bottom: 62px;
  background: var(--paper);
  color: var(--ink-950);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button,
[role="button"],
.bottom-item,
.quick-item,
.list-row,
.cart-btn,
.buy-btn-new {
  -webkit-tap-highlight-color: transparent;
}

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

:focus-visible {
  outline: 3px solid rgba(197, 139, 42, 0.52);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared header */
.top-bar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding: 14px max(28px, calc((100vw - var(--content)) / 2));
  background: rgba(255, 255, 252, 0.97);
  border-bottom: 1px solid rgba(211, 219, 208, 0.78);
  position: relative;
  z-index: 20;
}

.site-name {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--green-950);
  font-size: clamp(1.05rem, 1.55vw, 1.42rem);
  font-weight: 720;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.top-bar .site-name::before,
body > .site-name::before {
  content: "";
  width: 38px;
  height: 38px;
  margin-right: 12px;
  background: url("../images/featured.png") center / contain no-repeat;
}

.user-links,
.top-links {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--green-950);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
}

.user-links a,
.top-links a {
  padding: 7px 16px;
  transition: color var(--ease);
}

.user-links a + a,
.top-links a + a {
  border-left: 1px solid var(--line-strong);
}

.user-links a:hover,
.top-links a:hover,
.back-link:hover {
  color: var(--gold-700);
}

.back-link {
  color: var(--green-800);
  font-size: 0.93rem;
  font-weight: 650;
  transition: color var(--ease);
}

/* Search */
.search-bar {
  width: min(610px, 52vw);
  height: 46px;
  display: flex;
  align-items: stretch;
  margin-inline: auto;
}

.search-bar input {
  width: 100%;
  min-width: 0;
  padding: 0 20px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.search-bar input::placeholder {
  color: #929a93;
}

.search-bar input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(52, 122, 67, 0.1);
}

.search-bar button,
.action-btn,
.login-btn,
.register-btn,
.go-shopping-btn {
  border: 0;
  background: var(--green-900);
  color: var(--white);
  font-weight: 650;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.search-bar > button {
  min-width: 82px;
  padding: 0 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.search-bar button:hover,
.action-btn:hover,
.login-btn:hover,
.register-btn:hover,
.go-shopping-btn:hover {
  background: var(--green-800);
  box-shadow: 0 8px 22px rgba(29, 79, 42, 0.16);
  transform: translateY(-1px);
}

/* Home hero */
.home-page main {
  width: 100%;
}

.carousel-container {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.carousel {
  height: clamp(320px, 25.5vw, 390px);
  position: relative;
  overflow: hidden;
  background: var(--green-100);
}

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 560ms cubic-bezier(0.22, 0.72, 0.24, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.slide-home-1 { background-image: url("../images/home1.jpg"); }
.slide-home-2 { background-image: url("../images/home2.jpg"); }
.slide-home-3 { background-image: url("../images/home3.jpg"); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(255, 255, 252, 0.92);
  color: var(--green-950);
  box-shadow: 0 10px 26px rgba(21, 50, 26, 0.2);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform var(--ease), background var(--ease);
}

.carousel-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.06);
}

.arrow-left { left: clamp(18px, 4vw, 62px); }
.arrow-right { right: clamp(18px, 4vw, 62px); }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width var(--ease), background var(--ease);
}

.carousel-dot.active {
  width: 26px;
  border-radius: 999px;
  background: var(--white);
}

/* Home categories */
.sections {
  width: min(calc(100% - 48px), var(--content));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  padding: 32px 0 26px;
  border-bottom: 1px solid var(--line);
}

.section-item {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink-800);
  font-size: 1.03rem;
  font-weight: 620;
  transition: color var(--ease), transform var(--ease);
}

.section-item + .section-item {
  border-left: 1px solid var(--line);
}

.section-item:hover {
  color: var(--green-800);
  transform: translateY(-2px);
}

.section-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: transform var(--ease);
}

.section-item:hover img {
  transform: scale(1.06);
}

/* Home products */
.home-page .content {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.home-page .products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.home-page .product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 0;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.home-page .product-card:first-child {
  border-left: 1px solid var(--line);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.home-page .product-card:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.home-page .product-card:hover {
  position: relative;
  z-index: 2;
  border-color: #c6d5c5;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.home-page .product-card > img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
  background: var(--paper-soft);
}

.home-page .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 14px 13px;
}

.home-page .product-info h2 {
  min-height: 2.8em;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.4;
}

.home-page .product-grade {
  min-height: 2.7em;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 0.82rem;
  line-height: 1.35;
}

.home-page .price {
  margin-top: auto;
  padding-top: 11px;
  color: var(--gold-700);
  font-size: 1.17rem;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.home-page .price-custom {
  color: var(--orange-600);
  font-size: 0.96rem;
}

/* Bottom navigation and footer */
.bottom-sections {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 252, 0.98);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 30;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: 0 -8px 26px rgba(21, 50, 26, 0.07);
}

.bottom-item {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-600);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 560;
  transition: color var(--ease), background var(--ease);
}

.bottom-item:hover {
  color: var(--green-800);
  background: var(--green-50);
}

.bottom-item.active {
  color: var(--green-800);
  font-weight: 720;
}

.bottom-item p {
  color: inherit;
  font-size: inherit;
}

.icp-record {
  padding: 14px 20px 20px;
  color: var(--ink-500);
  font-size: 0.76rem;
  text-align: center;
}

.icp-record a:hover {
  color: var(--green-800);
}

/* Shared inner-page layout */
body:not(.home-page) {
  padding-bottom: 0;
  background: var(--paper-soft);
}

body:not(.home-page) > .site-name {
  min-height: var(--header-height);
  display: flex;
  justify-content: center;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

body:not(.home-page) .content,
.detail-content {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 42px 0 96px;
}

body:not(.home-page) .content > h2,
.cart-title {
  margin-bottom: 26px;
  color: var(--green-950);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

body:not(.home-page) > .search-bar,
.goods-page > .search-bar {
  width: 100%;
  min-height: 68px;
  height: auto;
  justify-content: center;
  padding: 11px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

body:not(.home-page) > .search-bar input {
  max-width: 520px;
  flex: 1 1 360px;
}

/* Goods */
.goods-page .top-bar .user-links a {
  padding-inline: 13px;
}

.goods-page > .search-bar > div {
  width: min(100%, 960px);
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: wrap;
  padding: 0 !important;
}

.goods-page > .search-bar button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white) !important;
  color: var(--ink-600) !important;
}

.goods-page > .search-bar button:first-child {
  border-color: var(--green-900);
  background: var(--green-900) !important;
  color: var(--white) !important;
}

.goods-page > .search-bar button[aria-pressed="true"] {
  border-color: var(--green-900);
  background: var(--green-900) !important;
  color: var(--white) !important;
}

.goods-page > .search-bar button[aria-pressed="false"] {
  border-color: var(--line-strong);
  background: var(--white) !important;
  color: var(--ink-600) !important;
}

.goods-page .products {
  width: min(calc(100% - 40px), var(--content));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 34px auto 0;
}

.goods-page .product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.goods-page .product-card:hover {
  border-color: #c9d7c8;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.goods-page .product-img img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
}

.goods-page .product-info {
  padding: 18px;
}

.goods-page .product-title {
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.45;
}

.goods-page .product-grade {
  min-height: 2.7em;
  margin: 7px 0 13px;
  color: var(--ink-500);
  font-size: 0.84rem;
  line-height: 1.35;
}

.price-section {
  margin-bottom: 15px;
}

.current-price {
  color: var(--gold-700);
  font-size: 1.18rem;
  font-weight: 720;
}

.custom-price {
  color: var(--orange-600);
  font-size: 0.98rem;
}

.product-actions {
  display: flex;
  gap: 9px;
}

.action-btn {
  min-height: 40px;
  flex: 1;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.product-actions .action-btn:first-child:not(:only-child) {
  border: 1px solid var(--green-800);
  background: transparent;
  color: var(--green-800);
}

.product-actions .action-btn:first-child:not(:only-child):hover {
  background: var(--green-50);
  box-shadow: none;
}

.goods-page > .rural-section {
  width: min(calc(100% - 40px), var(--content)) !important;
  margin: 26px auto 46px !important;
  padding: 24px !important;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.goods-page > .rural-section h3 {
  color: var(--green-950) !important;
}

.goods-page > .rural-section > div {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  columns: 2;
  column-gap: 38px;
  color: var(--ink-600);
}

.goods-page > .rural-section p {
  break-inside: avoid;
  margin: 10px 0;
}

/* Product details */
.detail-page .detail-content {
  max-width: 1180px;
}

.card-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.hero-price {
  order: 2;
  margin: 20px 0 3px;
  color: var(--gold-700);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 760;
  line-height: 1.15;
}

.hero-price span {
  margin-left: 8px;
  color: var(--ink-500);
  font-size: 0.8rem;
  font-weight: 450;
  text-decoration: line-through;
}

.hero-title {
  order: 1;
  color: var(--green-950);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.hero-desc {
  order: 3;
  margin-top: 11px;
  color: var(--ink-600);
  font-size: 0.94rem;
  line-height: 1.85;
}

.tags {
  order: 4;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.tag-item {
  padding: 9px 12px;
  background: var(--green-50);
  border-left: 2px solid var(--green-600);
  color: var(--ink-600);
  font-size: 0.85rem;
}

.tag-item.tag-gold {
  background: #fbf6e9;
  border-left-color: var(--gold-500);
}

.btn-group {
  order: 5;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
  margin-top: 24px;
}

.cart-btn,
.buy-btn-new {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 680;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.cart-btn {
  border: 1px solid var(--green-800);
  color: var(--green-800);
}

.buy-btn-new {
  background: var(--green-900);
  color: var(--white);
}

.cart-btn:hover {
  background: var(--green-50);
}

.buy-btn-new:hover {
  background: var(--green-800);
  box-shadow: 0 10px 24px rgba(29, 79, 42, 0.18);
  transform: translateY(-1px);
}

.detail-page .section,
.notice-section {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.section-title {
  margin: 0 0 16px;
  color: var(--green-950);
  font-size: 1.08rem;
  font-weight: 720;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.info-item {
  padding: 16px 18px;
  color: var(--ink-600);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.91rem;
}

.info-item strong {
  color: var(--ink-800);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink-600);
  font-size: 0.91rem;
}

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

.spec-table th {
  width: 150px;
  color: var(--green-950);
  font-weight: 680;
}

.notice-section {
  background: var(--green-950);
  border-color: var(--green-950);
  color: rgba(255, 255, 255, 0.82);
}

.notice-title {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 700;
}

.notice-desc {
  font-size: 0.92rem;
  line-height: 1.85;
}

/* News */
.news-page .content {
  max-width: 1040px;
}

.news-list {
  display: grid;
  gap: 20px;
}

.news-item {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: 11px 28px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.news-item h3,
.rural-section h3 {
  color: var(--green-950);
  font-size: 1.18rem;
  line-height: 1.35;
}

.news-item p {
  color: var(--ink-600);
  font-size: 0.92rem;
}

.news-item img {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 100%;
  height: 100%;
  min-height: 180px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.news-link,
.rural-link {
  color: var(--green-700);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(52, 122, 67, 0.3);
  text-underline-offset: 3px;
}

/* Rural */
.rural-page .content {
  max-width: 1080px;
}

.rural-page .rural-section {
  margin-top: 20px !important;
  padding: 28px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.rural-page .rural-section:first-of-type {
  margin-top: 0 !important;
}

.rural-page .rural-section > img {
  width: 100%;
  height: min(300px, 34vw) !important;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.rural-page .rural-section p,
.rural-page .rural-section ul {
  margin-top: 12px;
  color: var(--ink-600);
  font-size: 0.93rem;
}

.rural-page .rural-section ul {
  padding-left: 1.25em;
}

.rural-page .rural-section li + li {
  margin-top: 5px;
}

.rural-case-grid,
.rural-gallery {
  display: grid;
  gap: 20px;
  margin: 16px 0;
}

.rural-case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rural-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rural-case-grid img {
  height: 190px;
}

.rural-gallery img {
  height: 140px;
}

.rural-tech-image {
  width: min(42%, 380px) !important;
  height: 230px !important;
  float: right;
  margin: 0 0 16px 24px !important;
}

.clear-float {
  clear: both;
}

.rural-page .rural-section div img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Cart */
.cart-page .content {
  min-height: calc(100vh - 150px);
  max-width: 920px;
}

.empty-cart {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-cart svg {
  display: none;
}

.empty-cart::before {
  content: "";
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  background: url("../images/featured.png") center / contain no-repeat;
  filter: grayscale(1);
  opacity: 0.24;
}

.empty-text {
  max-width: 420px;
  color: var(--ink-500);
}

.go-shopping-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
}

/* Account pages */
.my-page .content {
  max-width: 1040px;
}

.profile-card,
.data-panel,
.quick-grid,
.list-card,
.contact-card,
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.profile-card {
  padding: 30px;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.8);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  overflow: hidden;
  color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94) url("../images/village.png") center / 42px no-repeat;
}

.profile-main h2 {
  color: var(--white);
  font-size: 1.45rem;
}

.profile-main p {
  margin-top: 4px;
  font-size: 0.91rem;
}

.profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.profile-tags .tag {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
}

.data-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  padding: 22px;
}

.data-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.data-item + .data-item {
  border-left: 1px solid var(--line);
}

.data-item strong {
  color: var(--green-950);
  font-size: 1.45rem;
}

.data-item span {
  color: var(--ink-500);
  font-size: 0.82rem;
}

.my-page .section-title {
  margin-top: 30px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.quick-item {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px;
  cursor: pointer;
  color: var(--ink-800);
  font-size: 0.9rem;
  transition: color var(--ease), background var(--ease);
}

.quick-item + .quick-item {
  border-left: 1px solid var(--line);
}

.quick-item:hover,
.list-row:hover {
  color: var(--green-800);
  background: var(--green-50);
}

.quick-icon,
.list-icon {
  display: none;
}

.list-card {
  overflow: hidden;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 20px;
  cursor: pointer;
  transition: color var(--ease), background var(--ease);
}

.list-row + .list-row {
  border-top: 1px solid var(--line);
}

.list-left {
  min-width: 0;
  display: flex;
  align-items: center;
}

.list-text h3,
.contact-card h3,
.about-card h3 {
  color: var(--ink-800);
  font-size: 0.98rem;
}

.list-text p,
.contact-card p,
.about-card p {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.85rem;
}

.arrow {
  color: var(--ink-500);
  font-size: 1.4rem;
}

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

.contact-item {
  padding: 22px;
}

.contact-item + .contact-item {
  border-left: 1px solid var(--line);
}

.about-card {
  padding: 24px;
}

.about-card p {
  line-height: 1.9;
}

/* Login and register */
.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.error-content {
  width: min(100%, 620px);
  padding: clamp(40px, 8vw, 72px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.error-content .site-name {
  justify-content: center;
}

.error-code {
  margin-top: 32px;
  color: var(--green-100);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
}

.error-content h1 {
  margin-top: -16px;
  color: var(--green-950);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.error-content > p:not(.error-code) {
  margin-top: 10px;
  color: var(--ink-500);
}

.error-content .go-shopping-btn {
  margin-top: 26px;
}

.auth-page .content {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding-top: 56px;
  padding-bottom: 90px;
}

.login-box,
.register-box {
  width: min(100%, 460px);
  padding: clamp(28px, 5vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.login-box h2,
.register-box h2 {
  margin-bottom: 26px;
  color: var(--green-950);
  font-size: 1.55rem;
  line-height: 1.3;
  text-align: center;
}

.form-group {
  margin-top: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-800);
  font-size: 0.88rem;
  font-weight: 620;
}

.form-group input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-group input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(52, 122, 67, 0.1);
}

.login-btn,
.register-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  border-radius: var(--radius-sm);
}

.helper-links {
  margin-top: 18px;
  color: var(--green-700);
  font-size: 0.88rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1100px) {
  .home-page .products,
  .goods-page .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-page .product-card,
  .home-page .product-card:first-child,
  .home-page .product-card:last-child {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }

  .home-page .products {
    gap: 16px;
    border: 0;
  }

  .top-bar {
    gap: 18px;
    padding-inline: 24px;
  }

  .search-bar {
    width: min(520px, 48vw);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  body {
    font-size: 15px;
  }

  .top-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    padding: 14px 18px;
  }

  .top-bar .site-name::before,
  body > .site-name::before {
    width: 32px;
    height: 32px;
    margin-right: 9px;
  }

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

  .search-bar {
    height: 44px;
  }

  .carousel {
    height: clamp(250px, 48vw, 360px);
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }

  .sections {
    width: calc(100% - 28px);
    padding: 22px 0 18px;
  }

  .section-item {
    min-height: 84px;
    font-size: 0.9rem;
  }

  .section-item img {
    width: 46px;
    height: 46px;
  }

  .home-page .content,
  body:not(.home-page) .content,
  .detail-content {
    width: calc(100% - 28px);
  }

  .home-page .products,
  .goods-page .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goods-page .products {
    width: calc(100% - 28px);
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-img {
    min-height: 0;
    aspect-ratio: 1.45 / 1;
  }

  .hero-info {
    padding: 26px;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item img {
    grid-column: 1;
    grid-row: 2;
    height: 230px;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 60px;
  }

  .top-bar {
    position: relative;
  }

  .site-name {
    font-size: 1rem;
  }

  .user-links a,
  .top-links a {
    padding: 5px 8px;
    font-size: 0.84rem;
  }

  .search-bar > button {
    min-width: 68px;
    padding: 0 14px;
  }

  .carousel {
    height: 230px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .arrow-left { left: 12px; }
  .arrow-right { right: 12px; }

  .sections {
    width: 100%;
    padding-inline: 8px;
  }

  .section-item + .section-item {
    border-left-color: rgba(226, 231, 223, 0.8);
  }

  .home-page .content {
    width: calc(100% - 20px);
    padding-top: 14px;
  }

  .home-page .products,
  .goods-page .products {
    gap: 10px;
  }

  .home-page .product-info,
  .goods-page .product-info {
    padding: 12px;
  }

  .home-page .product-info h2,
  .goods-page .product-title {
    font-size: 0.9rem;
  }

  .home-page .product-grade,
  .goods-page .product-grade {
    font-size: 0.76rem;
  }

  .home-page .price,
  .current-price {
    font-size: 1rem;
  }

  .bottom-sections {
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 26px rgba(21, 50, 26, 0.08);
  }

  .bottom-item {
    min-height: 58px;
  }

  .icp-record {
    padding-bottom: 16px;
  }

  body:not(.home-page) .content,
  .detail-content {
    width: calc(100% - 20px);
    padding-top: 24px;
    padding-bottom: 30px;
  }

  .goods-page .products {
    width: calc(100% - 20px);
    margin-top: 20px;
  }

  .goods-page > .rural-section {
    width: calc(100% - 20px) !important;
    padding: 18px !important;
  }

  .goods-page > .rural-section > div {
    columns: 1;
  }

  .product-actions {
    flex-direction: column;
  }

  .action-btn {
    min-height: 38px;
  }

  .hero-info {
    padding: 22px 18px 24px;
  }

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

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .spec-table td {
    padding-top: 3px;
  }

  .btn-group {
    grid-template-columns: 1fr 1fr;
  }

  .news-item,
  .rural-page .rural-section {
    padding: 18px;
  }

  .news-item img {
    height: 200px;
  }

  .rural-case-grid,
  .rural-gallery {
    grid-template-columns: 1fr;
  }

  .rural-tech-image {
    width: 100% !important;
    height: 210px !important;
    float: none;
    margin: 0 0 18px !important;
  }

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

  .quick-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .quick-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-item + .contact-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .data-panel {
    padding-inline: 10px;
  }

  .profile-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
