:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ink: #16201b;
  --muted: #68736d;
  --line: #dfe7e2;
  --paper: #fbfdfb;
  --soft: #f2f7f3;
  --green: #168a43;
  --green-dark: #0d6632;
  --green-light: #e8f7ee;
  --orange: #ff8a2a;
  --shadow: 0 24px 70px rgba(20, 65, 40, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid rgba(205, 218, 210, 0.78);
  background: rgba(251, 253, 251, 0.9);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; overflow: hidden; border-radius: 13px; background: white; box-shadow: 0 7px 20px rgba(18, 71, 40, 0.13); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 20px; letter-spacing: 0.12em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.main-nav a, .nav-button { padding: 8px 0; border: 0; color: #465049; background: transparent; text-decoration: none; font-size: 14px; font-weight: 650; }
.main-nav a:hover, .nav-button:hover { color: var(--green); }
.account-actions { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.account-summary { max-width: 210px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

.login-menu { position: relative; }
.login-menu summary {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  color: white;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(22, 138, 67, 0.2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
}
.login-menu summary::-webkit-details-marker { display: none; }
.login-menu[open] summary { background: var(--green-dark); }
.login-menu summary span { transition: transform 160ms ease; }
.login-menu[open] summary span { transform: rotate(180deg); }
.login-menu-panel {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  width: min(320px, calc(100vw - 30px));
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 22px 60px rgba(16, 51, 31, 0.2);
}
.login-entry {
  width: 100%;
  min-height: 65px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  text-decoration: none;
}
.login-entry:hover { background: var(--soft); }
.login-entry.resident-entry { background: var(--green-light); }
.entry-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--green-dark); background: white; font-weight: 800; }
.login-entry > span:last-child { display: grid; gap: 4px; }
.login-entry strong { font-size: 14px; }
.login-entry small { color: var(--muted); font-size: 11px; }

.outline-button, .primary-button, .filter-button, .text-button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}
.outline-button { border: 1px solid #cbd8d0; color: var(--green-dark); background: white; }
.outline-button:hover { border-color: var(--green); background: var(--green-light); }
.primary-button { border: 1px solid var(--green); color: white; background: var(--green); box-shadow: 0 10px 24px rgba(22, 138, 67, 0.2); }
.primary-button:hover { border-color: var(--green-dark); background: var(--green-dark); }
.primary-button:disabled, .outline-button:disabled { opacity: 0.55; cursor: wait; }
.text-button { padding: 0 6px; border: 0; color: var(--green-dark); background: transparent; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  padding: 82px clamp(24px, 7vw, 112px) 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 19%, rgba(255, 190, 104, 0.24), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(94, 204, 129, 0.18), transparent 30%),
    linear-gradient(135deg, #f8fcf8 0%, #edf8f1 100%);
}
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.hero-kicker, .section-kicker, .modal-kicker { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; }
.hero h1 { margin: 23px 0 22px; font-size: clamp(48px, 5.2vw, 72px); line-height: 1.07; letter-spacing: -0.055em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy > p { max-width: 630px; margin: 0; color: #55635b; font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 34px 0 0; padding: 0; list-style: none; color: #4e5b53; font-size: 13px; }
.trust-list span { width: 20px; height: 20px; display: inline-grid; place-items: center; margin-right: 5px; border-radius: 50%; color: white; background: var(--green); font-size: 11px; }

.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid rgba(22, 138, 67, 0.2); border-radius: 50%; }
.orbit-one { width: 470px; height: 470px; }
.orbit-two { width: 350px; height: 350px; border-style: dashed; }
.visual-card { position: relative; z-index: 2; border: 1px solid rgba(255, 255, 255, 0.86); background: rgba(255, 255, 255, 0.86); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.main-card { width: min(430px, 90%); padding: 34px; border-radius: 28px; transform: rotate(-2deg); }
.main-card .card-label { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
.main-card > strong { display: block; margin: 12px 0 28px; font-size: 29px; line-height: 1.35; }
.card-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.card-row b { color: var(--green-dark); }
.floating-card { position: absolute; right: 0; bottom: 60px; min-width: 164px; padding: 18px 20px; border-radius: 18px; transform: rotate(3deg); }
.floating-card span, .floating-card strong { display: block; }
.floating-card span { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.page-code { position: absolute; bottom: 2px; color: rgba(51, 86, 65, 0.45); font-size: 10px; letter-spacing: 0.12em; }

.service-band { max-width: 1240px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: -30px auto 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--line); box-shadow: 0 20px 54px rgba(26, 61, 39, 0.09); }
.service-band article { min-height: 132px; display: flex; align-items: center; gap: 18px; padding: 26px; background: white; }
.service-icon { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: var(--green-dark); background: var(--green-light); font-weight: 800; }
.service-band strong { display: block; margin-bottom: 8px; font-size: 16px; }
.service-band p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.catalog-section { max-width: 1400px; margin: 0 auto; padding: 112px clamp(22px, 5vw, 70px) 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 38px; }
.section-heading h2 { margin: 10px 0 8px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.catalog-filters { display: grid; grid-template-columns: 180px minmax(220px, 300px) auto; align-items: end; gap: 10px; }
.catalog-filters label, .form-field { display: grid; gap: 7px; }
.catalog-filters label > span, .form-field > span:first-child { color: #4b5650; font-size: 12px; font-weight: 700; }
.catalog-filters input, .catalog-filters select, .form-field input, .form-field textarea { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #d5dfd9; border-radius: 11px; outline: none; color: var(--ink); background: white; }
.form-field textarea { min-height: 112px; padding: 12px 13px; resize: vertical; line-height: 1.6; }
.catalog-filters input:focus, .catalog-filters select:focus, .form-field input:focus, .form-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 138, 67, 0.1); }
.catalog-filters select:disabled { color: var(--green-dark); background: var(--green-light); opacity: 1; }
.filter-button { height: 44px; border: 0; color: white; background: var(--ink); }
.catalog-status { min-height: 22px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; transition: transform 180ms ease, box-shadow 180ms ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 52px rgba(20, 65, 40, 0.1); }
.product-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, #e7f2e9, #f7efe3); }
.product-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 300ms ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-badge { position: absolute; top: 15px; left: 15px; padding: 7px 10px; border-radius: 999px; color: white; background: rgba(13, 45, 28, 0.78); backdrop-filter: blur(8px); font-size: 11px; font-weight: 750; }
.product-content { padding: 22px; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.product-content h3 { margin: 12px 0 9px; overflow: hidden; font-size: 20px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.product-description { min-height: 44px; display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-bottom { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 20px; }
.price { display: block; color: #e76523; font-size: 25px; font-weight: 850; letter-spacing: -0.03em; }
.stock { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.trade-label { display: block; margin-top: 7px; color: var(--green-dark); font-size: 11px; font-weight: 750; }
.card-action { min-height: 40px; padding: 0 17px; border: 0; border-radius: 999px; color: white; background: var(--green); font-weight: 750; }
.card-action:hover { background: var(--green-dark); }
.card-action.secondary { color: var(--green-dark); background: var(--green-light); }
.empty-catalog { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; padding: 40px; border: 1px dashed #cbd8d0; border-radius: 22px; color: var(--muted); text-align: center; }
.empty-catalog strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 18px; }
.skeleton-card { height: 430px; border-radius: 22px; background: linear-gradient(100deg, #edf2ef 20%, #f8faf9 35%, #edf2ef 50%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 46px clamp(24px, 7vw, 112px); color: #dce7e0; background: #13251b; }
.site-footer strong { font-size: 18px; }
.site-footer p { margin: 9px 0 0; color: #93a69a; font-size: 13px; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a { color: #afc0b5; text-decoration: none; font-size: 13px; }

.modal { width: min(100% - 28px, 600px); max-height: min(90vh, 820px); padding: 0; overflow: auto; border: 0; border-radius: 24px; color: var(--ink); background: transparent; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(14, 28, 20, 0.58); backdrop-filter: blur(5px); }
.modal-card { position: relative; display: block; margin: 0; padding: 34px; border: 0; background: white; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: #66716a; background: var(--soft); font-size: 24px; line-height: 1; }
.modal-card h2 { margin: 10px 0 8px; font-size: 29px; }
.modal-lead { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.form-field { margin-bottom: 17px; }
.form-field small { color: var(--muted); font-size: 11px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 68px; }
.password-field button { position: absolute; top: 5px; right: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--green-dark); background: var(--green-light); font-size: 12px; }
.captcha-field { display: grid; grid-template-columns: 1fr 150px; gap: 9px; }
.captcha-field button { height: 44px; padding: 0; overflow: hidden; border: 1px solid #d5dfd9; border-radius: 11px; background: var(--soft); }
.captcha-field img { width: 100%; height: 100%; display: block; object-fit: cover; }
.form-message { min-height: 20px; margin: -2px 0 10px; color: #b54f51; font-size: 12px; }
.wide-button { width: 100%; }
.product-detail-modal { width: min(100% - 28px, 780px); }
.product-detail-card { padding: 0; overflow: hidden; }
.product-detail-hero { display: grid; grid-template-columns: minmax(260px, .92fr) 1.08fr; min-height: 360px; }
.product-detail-image { min-height: 360px; background: linear-gradient(145deg, #e7f2e9, #f7efe3); }
.product-detail-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-detail-copy { padding: 42px 42px 34px; }
.detail-chip { display: inline-flex; padding: 7px 10px; border-radius: 999px; color: var(--green-dark); background: var(--green-light); font-size: 11px; font-weight: 800; }
.product-detail-copy h2 { margin: 18px 42px 12px 0; font-size: clamp(27px, 4vw, 38px); line-height: 1.2; }
.detail-price { display: block; margin-bottom: 18px; color: #e76523; font-size: 31px; font-weight: 850; }
.detail-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--line); }
.detail-facts div { min-width: 0; padding: 16px 22px; background: var(--soft); }
.detail-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.detail-facts dd { margin: 0; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 28px; background: white; }
.detail-actions p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-actions .primary-button { flex: 0 0 auto; min-width: 168px; }
.order-product { display: grid; grid-template-columns: 88px 1fr; gap: 15px; margin: 24px 0; padding: 14px; border-radius: 15px; background: var(--soft); }
.order-product img { width: 88px; height: 74px; object-fit: cover; border-radius: 11px; }
.order-product strong, .order-product span { display: block; }
.order-product strong { margin: 7px 0; }
.order-product span { color: var(--muted); font-size: 12px; }
.order-total { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 16px; padding-top: 17px; border-top: 1px solid var(--line); }
.order-total strong { color: #e76523; font-size: 25px; }
.order-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 11px; color: #6f5a2e; background: #fff7e5; font-size: 12px; line-height: 1.55; }
.orders-card { min-height: 300px; }
.orders-list { display: grid; gap: 12px; margin-top: 22px; }
.order-row { padding: 17px; border: 1px solid var(--line); border-radius: 14px; }
.order-row-top, .order-row-bottom { display: flex; justify-content: space-between; gap: 14px; }
.order-row-top { margin-bottom: 10px; }
.order-row-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row span { color: var(--muted); font-size: 12px; }
.status-pill { flex: 0 0 auto; color: var(--green-dark) !important; font-weight: 750; }
.order-row-bottom b { color: #e76523; }
.success-card { padding: 44px 38px; text-align: center; }
.success-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; color: white; background: var(--green); font-size: 30px; font-weight: 800; }
.success-card p { margin: 0 0 26px; color: var(--muted); line-height: 1.7; }
.success-actions { display: flex; justify-content: center; gap: 10px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; max-width: min(90vw, 520px); padding: 12px 18px; border-radius: 999px; color: white; background: #173524; box-shadow: 0 14px 35px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: 180ms ease; font-size: 13px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-visual { min-height: 410px; }
  .service-band { width: calc(100% - 44px); }
  .section-heading { align-items: start; flex-direction: column; }
  .catalog-filters { width: 100%; grid-template-columns: 1fr 1.5fr auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { min-height: 68px; padding: 9px 16px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand small, .account-summary { display: none; }
  .outline-button { padding: 0 14px; }
  .login-menu summary { padding: 0 13px; }
  .hero { min-height: auto; padding: 58px 22px 72px; }
  .hero h1 { font-size: clamp(43px, 13vw, 60px); }
  .hero-copy > p { font-size: 15px; }
  .hero-visual { min-height: 340px; }
  .orbit-one { width: 330px; height: 330px; }
  .orbit-two { width: 250px; height: 250px; }
  .main-card { padding: 25px; }
  .main-card > strong { font-size: 23px; }
  .floating-card { right: 4px; bottom: 20px; }
  .service-band { grid-template-columns: 1fr; margin-top: -24px; }
  .service-band article { min-height: 0; }
  .catalog-section { padding-top: 80px; }
  .catalog-filters { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .modal-card { padding: 30px 22px; }
  .product-detail-card { padding: 0; }
  .product-detail-hero { grid-template-columns: 1fr; }
  .product-detail-image { min-height: 230px; max-height: 300px; }
  .product-detail-copy { padding: 28px 22px 24px; }
  .detail-facts { grid-template-columns: 1fr 1fr; }
  .detail-facts div { padding: 14px 16px; }
  .detail-actions { align-items: stretch; flex-direction: column; padding: 20px 22px 24px; }
  .detail-actions .primary-button { width: 100%; }
  .captcha-field { grid-template-columns: 1fr 126px; }
  .success-actions { flex-direction: column; }
}
