:root {
  color-scheme: light;
  --ink: #182a3d;
  --muted: #566879;
  --accent: #145c6d;
  --accent-hover: #104958;
  --paper: #f5f7f9;
  --white: #fff;
  --line: #dbe3e9;
  --warm: #f8ead8;
  --sage: #e4f0eb;
  --slate: #e7eef6;
  --link-hover: #e6f0f3;
  --navy: #10273b;
  --gold: #f2bf79;
  --radius: 13px;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; }
p { line-height: 1.7; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #f7d9b0; color: var(--ink); }

.frame { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 2; padding: 10px 14px; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }
.muted { color: var(--muted); }
.compact { margin: 0; }
.inline { display: inline; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.stack { display: grid; gap: 16px; }
.detail-actions { margin-top: 16px; }
#member-payment:empty { display: none; }

.button, button:not(.close) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.4;
  transition: background-color .13s;
}
.button:hover, button:not(.close):hover { background: var(--accent-hover); }
.button.secondary, button.secondary {
  border-color: #d2dce4;
  background: var(--white);
  color: var(--ink);
}
.button.secondary:hover, button.secondary:hover { background: var(--link-hover); color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }
.text-link { border-radius: 4px; color: var(--accent); font-weight: 700; font-size: .9rem; }
.text-link:is(:hover,:focus-visible), .service-trail a:is(:hover,:focus-visible) { background: var(--link-hover); color: var(--accent-hover); }

#header { background: var(--white); border-bottom: 1px solid var(--line); }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand strong { display: block; font-size: 1.04rem; font-weight: 780; line-height: 1.28; }
.brand small { display: block; margin-top: 2px; font-size: .69rem; color: var(--muted); }
.mark { display: grid; place-items: center; width: 39px; aspect-ratio: 1; border-radius: 10px; background: var(--navy); color: var(--gold); font-weight: 750; font-size: 1.08rem; }
.nav, .actions { display: flex; flex-wrap: wrap; align-items: center; }
.nav { gap: clamp(4px, .8vw, 12px); }
.nav a { padding: 10px 9px; border-radius: 7px; }
.nav a, .actions a { white-space: nowrap; font-size: .875rem; line-height: 1.35; font-weight: 650; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.nav a:is(:hover,[aria-current]) { background: var(--link-hover); }
.actions { gap: 12px; flex: none; }
.actions a { border-radius: 5px; }
.actions a:hover { background: var(--link-hover); color: var(--accent-hover); }
.actions .account-link { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); }
.actions .account-link:hover { background: var(--slate); }
.actions .identity-link { color: var(--accent); }

.home-intro { margin-top: 26px; border-radius: 19px; background: var(--navy); color: var(--white); overflow: hidden; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: stretch;
}
.home-search { padding: clamp(27px, 4vw, 57px); align-self: center; min-width: 0; }
.home-search h1 {
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  letter-spacing: -.035em;
  line-height: 1.13;
}
.home-search h1 span { display: block; }
.home-search h1 span + span { color: var(--gold); }
.home-search > p { margin: 13px 0 19px; max-width: 33em; color: #dfebf1; font-size: .96rem; }
.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  padding: 4px;
  border: 1px solid #cddae4;
  border-radius: 9px;
  background: var(--white);
}
.search-bar input { min-width: 0; min-height: 42px; border: 0; background: none; }
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input:focus-visible { outline: none; }
.search-bar button { white-space: nowrap; }
.home-search .search-bar button { background: var(--accent); }
.home-categories { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.home-categories a { padding: 3px 8px; border: 1px solid #597081; border-radius: 5px; color: #e5eef2; font-size: .79rem; }
.home-categories a:hover { background: #304e63; color: var(--gold); }
.home-actions { margin-top: 21px; }
.home-actions .button { background: var(--gold); color: #162c3c; }
.home-actions .button.secondary { border-color: #8ea4b2; background: transparent; color: var(--white); }
.home-actions .button:hover { background: #f8d7a5; color: var(--navy); }
.home-feature { display: grid; position: relative; align-items: end; min-width: 0; min-height: 320px; isolation: isolate; background: #1c3947; overflow: hidden; }
.home-feature img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 47% 57%; transition: transform .28s; }
.home-feature::after { content: ""; position: absolute; inset: 35% 0 0; z-index: -1; background: linear-gradient(transparent,#091724e8); }
.home-feature:hover img { transform: scale(1.025); }
.home-feature-caption { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 22px 27px; }
.home-feature-caption strong, .home-feature-caption div > span { display: block; }
.home-feature-caption strong { font-size: clamp(1.06rem,2.2vw,1.45rem); }
.home-feature-caption div > span { margin-top: 5px; color: #e5edf2; font-size: .84rem; }
.home-feature-caption > span { color: var(--gold); font-size: 1.7rem; }
.home-feature:is(:hover,:focus-visible) strong { color: var(--gold); }
.home-feature:focus-visible { outline-offset: -4px; }
.home-body { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(17px,3vw,35px); padding-block: 32px 55px; }
.home-market { min-width: 0; }
.home-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.home-product { display: block; padding: 12px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow-wrap: anywhere; }
.home-product:hover { background: var(--link-hover); }
.home-product > div { display: grid; place-items: center; min-height: 112px; background: #f6f8fa; border-radius: 8px; margin-bottom: 9px; }
.home-product img { width: 100%; height: 112px; padding: 7px; object-fit: contain; }
.home-product strong { display: block; font-size: .91rem; }
.home-product small, .home-product p span { color: var(--muted); font-size: .76rem; }
.home-product b { color: var(--accent); font-variant-numeric: tabular-nums; }
.home-product p { margin-top: 6px; }
.home-supplier { margin-top: 12px; }

.section { padding-block: 29px; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 14px; }
.section-title h2 { font-size: clamp(1.13rem, 2.1vw, 1.42rem); font-weight: 750; }

.page { padding-block: 30px 62px; min-height: 62vh; }
.page h1 { font-size: clamp(1.85rem, 4vw, 2.9rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.page-head { padding: clamp(17px,3.25vw,33px) clamp(14px,3.6vw,40px); margin-bottom: 22px; border-inline-start: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--slate); }
.page[data-layout="mall"] .page-head, .page[data-layout="cart"] .page-head { background: #f5eadb; border-color: #a76b37; }
.page:is([data-layout="mall"],[data-layout="information"]) .page-head { padding-block: clamp(16px,2.2vw,24px); margin-bottom: 16px; }
.page:is([data-layout="mall"],[data-layout="information"]) .page-head h1 { font-size: clamp(1.75rem,3.35vw,2.55rem); }
.page:is([data-layout="merchant"],[data-layout^="merchant/"],[data-layout="identity"]) .page-head { background: var(--sage); border-color: #4b7e6a; }
.page:is([data-layout="procurement-item"],[data-layout="product"]) .page-head { padding-inline: 0; border: 0; background: transparent; margin-bottom: 12px; }
.page:is([data-layout="admin"],[data-layout="account"]) .page-head { padding-block: 13px; }
.page-head p { margin-top: 7px; }
.stack > h2 { margin-top: 12px; font-size: 1.2rem; }

.listing-tools { display: grid; gap: 13px; padding: clamp(12px,2vw,19px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.listing-tools .search-bar { width: min(100%, 570px); }
@media (min-width: 900px) {
  .listing-tools { grid-template-columns: minmax(260px,.85fr) minmax(0,1.15fr); align-items: center; }
  .listing-tools .category-list { justify-content: flex-end; }
}
.category-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.category-list a, .pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.2;
}
.category-list a { min-height: 36px; padding: 6px 12px; }
.category-list a[aria-current], .pagination a[aria-current] { border-color: #8eb6bf; background: #e6f0f3; color: var(--accent); }
.category-list a:hover, .pagination a:hover { background: var(--link-hover); color: var(--accent); }
.listing-heading { margin-top: 19px; }
.listing-heading h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.results-count { color: var(--muted); font-size: .83rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pagination a { min-height: 38px; min-width: 38px; padding: 5px 8px; }
.pagination .page-step { padding-inline: 11px; }

.service-list { display: grid; gap: 10px; }
.service-row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.service-row > a {
  display: grid;
  grid-template-columns: clamp(102px,14vw,174px) minmax(0,1fr) 33px;
  grid-template-areas: "image copy arrow";
  align-items: center;
  gap: 16px;
  min-height: 114px;
  padding: 13px 18px;
  transition: background-color .13s;
  border-radius: inherit;
}
.service-row > a:hover { background: var(--link-hover); }
.service-row > a:focus-visible { outline-offset: -3px; }
.service-row img { grid-area: image; width: 100%; aspect-ratio: 1.65; object-fit: cover; border-radius: 8px; background: var(--slate); }
.service-row-copy { grid-area: copy; min-width: 0; overflow-wrap: anywhere; }
.service-row h3 { margin: 4px 0; font-size: 1.095rem; }
.service-row a:is(:hover,:focus-visible) h3 { color: var(--accent); }
.service-row a:is(:hover,:focus-visible) .service-arrow { background: var(--white); }
.row-owner { color: var(--muted); font-size: .82rem; }
.row-owner span { display: inline; }
.service-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}
.service-arrow { grid-area: arrow; display: grid; place-items: center; min-height: 29px; color: var(--accent); border-radius: 7px; background: #edf3f5; font-size: 1.08rem; }
.compact-list .service-row > a { grid-template-columns: 95px minmax(0,1fr) 27px; min-height: 74px; padding: 9px 11px; gap: 10px; }
.compact-list .service-row h3 { font-size: .97rem; }
.compact-list .service-row .tag { padding-block: 1px; font-size: .7rem; }
.compact-list .service-row img { aspect-ratio: 1.7; }

.tag { display: inline-block; padding: 3px 7px; border-radius: 4px; background: #f0f0e9; color: #414a40; font-size: .75rem; line-height: 1.4; }
.tag:is([data-category="网络与布线"],[data-category="IT 运维"]) { background: var(--sage); color: #344b38; }
.tag[data-category="软件实施"] { background: var(--slate); color: #314c61; }
.tag:is([data-category="办公文印"],[data-category="办公配套"]) { background: var(--warm); color: #70432d; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.card, .panel, .empty {
  padding: clamp(15px, 2.3vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow-wrap: anywhere;
}
.card h3, .panel > h2 { margin-bottom: 8px; }
.card p, .panel p { margin-bottom: 9px; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 5px; }
.card a:not(.button):is(:hover,:focus-visible) { color: var(--accent); }
.product-card h3 { margin-top: 11px; }
.card-owner { font-size: .86rem; color: var(--muted); }
.product-price { color: var(--accent); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.mall-views { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.mall-views a { padding: 8px 13px; border-radius: 8px; color: var(--muted); font-size: .93rem; font-weight: 700; }
.mall-views a:is(:hover,:focus-visible) { background: var(--link-hover); color: var(--accent); }
.mall-views a[aria-current] { background: var(--navy); color: var(--white); }
.mall-views span { margin-left: 4px; font-size: .84em; font-variant-numeric: tabular-nums; }
.reference-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.reference-card { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.reference-card-link { display: block; min-width: 0; }
.reference-media { margin-bottom: 12px; border: 1px solid #edf1f4; border-radius: 9px; background: var(--white); overflow: hidden; }
.reference-thumb { width: 100%; height: clamp(126px,15vw,184px); padding: 11px; object-fit: contain; transition: transform .2s; }
.reference-card:hover { background: var(--link-hover); }
.reference-card:hover .reference-thumb { transform: scale(1.025); }
.reference-card > a:is(:hover,:focus-visible) h3 { color: var(--accent); }
.reference-copy { display: grid; gap: 4px; overflow-wrap: anywhere; }
.reference-copy h3 { font-size: 1.07rem; }
.reference-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: .8rem; }
.reference-category { padding: 2px 7px; border-radius: 4px; background: var(--slate); color: #314c61; font-weight: 650; }
.reference-category[data-category="网络设备"] { background: var(--sage); color: #344b38; }
.reference-category[data-category="耗材配件"] { background: var(--warm); color: #70432d; }
.reference-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); font-size: .84rem; }
.reference-price { border-top: 1px solid var(--line); padding-top: 8px; color: var(--muted); font-size: .82rem; }
.reference-price .product-price { font-size: 1.24rem; }
.purchase-actions { display: grid; gap: 8px; margin-block: 8px 12px; }
.purchase-actions label { display: grid; gap: 4px; width: min(100%, 96px); font-size: .85rem; }
.purchase-actions .notice { margin-bottom: 0; }
.purchase-compact { margin: 6px 0 0; }
.purchase-compact .row { gap: 6px; }
.purchase-compact button:not(.close) { min-height: 36px; padding: 6px 9px; font-size: .83rem; }
.reference-price .purchase-compact .row { justify-content: flex-start; }
.payment-label { color: var(--accent); font-size: .88rem; font-weight: 700; }
.reference-trail { margin-bottom: 14px; }
.detail.reference-detail { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
.reference-hero { padding: clamp(14px,3vw,30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.reference-detail .reference-hero img { width: 100%; height: clamp(168px, 32vw, 350px); aspect-ratio: auto; background: none; object-fit: contain; }
.reference-price-panel { padding: clamp(16px,3vw,30px); background: #faf6f0; }
.reference-total .product-price { font-size: clamp(1.65rem,3vw,2.4rem); }
.reference-specs { margin: 12px 0 17px; }
.reference-specs > div { display: grid; grid-template-columns: minmax(85px,.32fr) minmax(0,1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.5; }
.reference-specs dt { color: var(--muted); }
.reference-specs dd { margin: 0; }
.empty { padding-block: 24px; border-style: dashed; border-color: #c1d0da; color: var(--muted); }
.empty p { margin-bottom: 12px; }
.empty p:last-child { margin: 0; }
.empty p + a { margin-top: 2px; }

.detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: clamp(15px,2.5vw,25px); }
.detail img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #eef2f6; border-radius: var(--radius); }
.detail-heading { margin: 0 0 6px; font-size: 1.08rem; letter-spacing: 0; }
.detail-contact { margin-top: 10px; }

.service-page { --service-tint: var(--slate); --service-ink: #314c61; }
.service-page:is([data-category="网络与布线"], [data-category="IT 运维"]) { --service-tint: var(--sage); --service-ink: #344b38; }
.service-page:is([data-category="办公文印"], [data-category="办公配套"]) { --service-tint: var(--warm); --service-ink: #70432d; }
.service-trail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.service-trail a { border-radius: 4px; }
.service-category { padding: 3px 6px; border-radius: 4px; background: var(--service-tint); color: var(--service-ink); font-weight: 650; }
.service-title { margin: 13px 0 22px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.service-title p { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.service-title p span { white-space: normal; }
.service-detail {
  grid-template-columns: minmax(0,2fr) minmax(235px,1fr);
  grid-template-areas: "photo sidebar" "description sidebar";
}
.service-detail > img { grid-area: photo; aspect-ratio: 16/10; }
.service-sidebar {
  grid-area: sidebar;
  align-self: start;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--service-tint);
}
.service-audience, .service-contact, .service-section { padding: clamp(15px, 2.15vw, 23px); }
.service-audience p { font-size: .94rem; color: var(--muted); }
.service-contact { display: grid; gap: 10px; border-radius: 0 0 var(--radius) var(--radius); background: #ffffffa6; }
.service-contact:only-child { border-radius: inherit; }
.service-contact strong { font-size: .94rem; }
.service-contact button:not(.close) { justify-content: space-between; gap: 10px; }
.service-description { grid-area: description; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 12px; }
.service-section { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow-wrap: anywhere; }
.service-section:is([data-section="problem"], [data-section="scope"], [data-section="acceptance"]) { grid-column: 1/-1; }
.service-section[data-section="problem"] { border-left: 4px solid #b68850; background: #fbf3e6; border-top-color: #ecdeca; border-right-color: #ecdeca; border-bottom-color: #ecdeca; }
.service-section[data-section="scope"] { border: 0; padding-inline: 6px; background: none; }
.service-section[data-section="acceptance"] { border-color: transparent; background: var(--service-tint); color: var(--service-ink); }

.form { display: grid; gap: 15px; width: min(100%, 630px); }
.form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-fields label:has(textarea) { grid-column: 1/-1; }
.page[data-layout="publish"] .form { width: min(100%,850px); }
.page[data-layout="publish"] fieldset { min-width: 0; padding: 13px 0 3px; margin: 0; border: 0; border-top: 1px solid var(--line); }
.page[data-layout="publish"] legend { padding-right: 8px; font-weight: 720; }
.form label { display: grid; gap: 5px; color: var(--ink); font-weight: 650; font-size: .9rem; }
.form label.tick { display: flex; align-items: start; gap: 8px; line-height: 1.5; font-weight: 500; }
.form label a, .credits-list a, .operator-details a { border-radius: 4px; color: var(--accent); font-weight: 650; }
.form label a:is(:hover,:focus-visible), .credits-list a:is(:hover,:focus-visible),
.operator-details a:is(:hover,:focus-visible) { background: var(--link-hover); color: var(--accent-hover); }
.form button { justify-self: start; }
input, textarea, select {
  width: 100%;
  min-height: 43px;
  border: 1px solid #cbd6e0;
  border-radius: 8px;
  background: var(--white);
  padding: 8px 11px;
  color: var(--ink);
  line-height: 1.4;
}
input::placeholder, textarea::placeholder { color: #637587; opacity: 1; }
input[type="checkbox"] { flex: none; width: 17px; min-height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
input[type="file"] { font-size: .86rem; }
textarea { min-height: 105px; resize: vertical; }
.notice { color: var(--accent); font-size: .9rem; }
.notice:empty { display: none; }
.captcha { width: 150px; max-width: 100%; border: 1px solid var(--line); border-radius: 5px; }
summary { cursor: pointer; padding-block: 5px; font-weight: 650; }

.plan { display: flex; flex-direction: column; min-height: 190px; border-top: 5px solid #8da797; }
.plan[data-tier="vip"] { border-top-color: #56899a; background: #f0f6fa; }
.plan[data-tier="svip"] { border-top-color: #bab078; background: #f9f3e8; }
.plan h2 { font-size: 1.12rem; }
.plan p.plan-price { margin-top: 12px; color: var(--muted); font-size: .83rem; }
.plan-price strong { color: var(--ink); font-size: clamp(1.7rem, 3.3vw, 2.15rem); font-variant-numeric: tabular-nums; }
.plan-limit { display: flex; align-items: baseline; gap: 6px; padding-top: 13px; border-top: 1px solid var(--line); font-size: .85rem; }
.plan-limit strong { font-size: 1rem; }
.plan-action { padding-top: 8px; margin-top: auto; }
.checkout-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); grid-template-areas: "items summary" "delivery summary"; gap: 16px 22px; align-items: start; }
.checkout-items { grid-area: items; }
.checkout-delivery { grid-area: delivery; }
.checkout-delivery .form { width: 100%; }
.checkout-summary { grid-area: summary; background: #faf6f0; }
.checkout-summary h2 { font-size: 1rem; }
.checkout-summary h2 span { display: block; margin-block: 6px 10px; color: var(--accent); font-size: clamp(1.6rem,3vw,2.3rem); font-variant-numeric: tabular-nums; }
.checkout-summary .empty { margin-top: 12px; }
.cart-item { display: grid; grid-template-columns: minmax(0,1fr) 75px auto; gap: 10px; align-items: center; }
.cart-product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cart-product > div { min-width: 0; overflow-wrap: anywhere; }
.cart-product img { flex: 0 0 57px; width: 57px; height: 53px; object-fit: contain; border: 1px solid #eef1f5; border-radius: 7px; background: var(--white); }
.cart-product a { font-weight: 690; }
.cart-product a:hover { color: var(--accent); }
.cart-product p { margin-top: 5px; font-size: .82rem; }
.cart-item label { font-size: .8rem; }

.page:is([data-layout="login"],[data-layout="register"]) { max-width: 960px; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.auth-body, .auth-shortcuts { padding: clamp(18px,4vw,39px); }
.auth-body .form { width: 100%; padding: 0; border: 0; background: transparent; }
.auth-body .form > button { width: 100%; margin-top: 3px; }
.auth-code { display: grid; grid-template-columns: minmax(0,1fr) minmax(96px,138px); align-items: end; gap: 8px; }
.auth-code button:not(.close) { width: 100%; min-width: 0; height: 43px; padding: 0; }
.auth-code img { height: 41px; width: 100%; object-fit: contain; border: 0; }
.auth-switch { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.auth-shortcuts { display: flex; flex-direction: column; justify-content: center; gap: 13px; background: var(--navy); color: #e8f0f4; }
.auth-shortcuts h2 { margin-bottom: 2px; color: var(--gold); font-size: 1.3rem; }
.auth-shortcuts a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border-radius: 7px; background: #213d51; }
.auth-shortcuts a:is(:hover,:focus-visible) { background: #304e63; color: var(--gold); }
.auth-shortcuts a span { color: var(--gold); }
.account-layout, .merchant-dashboard { display: grid; grid-template-columns: minmax(235px,310px) minmax(0,1fr); align-items: start; gap: clamp(15px,2.3vw,26px); }
.merchant-dashboard { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
.merchant-dashboard .form { width: 100%; }
.account-rail, .account-history { min-width: 0; }
.account-history .section-title { margin-bottom: 0; }
.account-member { padding: clamp(17px,2.5vw,24px); border-radius: var(--radius); background: var(--navy); color: #dbe9ef; }
.account-member h2 { color: var(--white); font-size: 1.12rem; }
.account-credit { display: flex; align-items: baseline; gap: 7px; color: var(--gold); }
.account-credit strong { font-size: 2.25rem; }
.account-plan-link { display: inline-block; margin-top: 10px; border-radius: 4px; color: var(--gold); font-size: .9rem; font-weight: 700; }
.account-plan-link:is(:hover,:focus-visible) { background: #304e63; color: #fff1da; }
.account-identity .identity-fields { grid-template-columns: 1fr; gap: 7px; }
.account-identity a strong { font-size: .88rem; }
.account-record { border-inline-start: 3px solid #91aaba; }
.account-record[data-kind="membership"] { border-inline-start-color: #b49b60; }
.account-record[data-kind="publish"] { border-inline-start-color: #68968b; }
.account-record-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px 10px; margin-bottom: 9px; color: var(--muted); font-size: .8rem; }
.account-record-meta .tag:is([data-status="待审核"],[data-status="待核实供货"],[data-status="待付款"],[data-status="待核款"]) { background: var(--warm); color: #70471d; }
.account-record .row:empty { display: none; }
.member-payment { display: grid; grid-template-columns: minmax(180px,.75fr) minmax(0,1fr); gap: 17px; padding: clamp(14px,2.6vw,24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.member-payment .form { width: 100%; padding: 0; border: none; }
.member-payment h2 { margin-bottom: 8px; font-size: 1.13rem; }
.member-payment img { width: min(100%,210px); aspect-ratio: 1; height: auto; margin-block: 11px; object-fit: contain; }
.member-payment p { color: var(--muted); font-size: .88rem; }
.page:is([data-layout="terms"],[data-layout="privacy"],[data-layout="about"],[data-layout="complaint"]) > :is(article,.form) { max-width: 850px; }
.page:is([data-layout="terms"],[data-layout="privacy"],[data-layout="about"]) article .button { margin-top: 13px; }
.credits-list li { padding-bottom: 6px; border-bottom: 1px solid var(--line); }

dialog {
  width: min(430px, calc(100% - 28px));
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
dialog::backdrop { background: #272b2866; }
dialog h2 { margin: 0 30px 9px 0; font-size: 1.2rem; }
dialog p { margin-bottom: 12px; color: var(--muted); }
.close {
  display: grid;
  place-items: center;
  float: right;
  width: 30px;
  height: 30px;
  margin: -6px -6px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #eef0eb;
  color: var(--ink);
  font-size: 1.25rem;
}
.close:hover { background: var(--warm); color: var(--accent); }

footer { padding-block: 29px 16px; background: var(--navy); color: #f5f9fc; }
.foot { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 18px 28px; }
.foot-company > strong { font-size: 1.04rem; }
.foot-company-details { display: grid; gap: 5px; margin: 10px 0 0; font-size: .84rem; line-height: 1.45; }
.foot-company-details > div { display: grid; grid-template-columns: 8.3em minmax(0,1fr); gap: 8px; }
.foot-company-details dt, .foot-bottom { color: #c4d5e0; }
.foot-company-details dd { margin: 0; overflow-wrap: anywhere; }
.foot-company-details a, .foot-bottom a { color: var(--gold); }
footer a { border-radius: 4px; }
footer a:is(:hover,:focus-visible) { background: #304e63; color: #fff1da; }
.links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px 16px; color: #e7eff5; font-size: .85rem; }
.links a { white-space: nowrap; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #456075; }
.foot-filing { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.operator-panel { max-width: 760px; }
.credits-list { padding-left: 36px; line-height: 1.65; }
.credits-list li + li { margin-top: 10px; }
.credits-list + a { margin-top: 12px; }

.identity-layout, .merchant-layout { width: min(100%, 860px); margin-inline: auto; }
.identity-tabs, .identity-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.identity-tabs { margin-bottom: 15px; }
.identity-tabs a, .account-identity a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.identity-tabs a span { color: var(--muted); font-size: .84rem; }
.identity-tabs a:hover, .account-identity a:hover { background: var(--link-hover); color: var(--accent); }
.identity-tabs a[aria-current] { color: var(--accent); border-color: #8fb2bb; background: #eaf3f6; }
.identity-panel, .merchant-application, .merchant-status, .merchant-entry { padding: clamp(15px, 3vw, 29px); }
.identity-status {
  margin: 13px 0 19px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-left: 4px solid #647d8f;
  border-radius: 6px;
  background: var(--slate);
}
.identity-status[data-state="pending"] { border-left-color: #986c2c; background: #faf0db; }
.identity-status[data-state="approved"] { border-left-color: #537053; background: var(--sage); }
.identity-status[data-state="returned"] { border-left-color: var(--accent); background: var(--warm); }
.identity-status p, .identity-status small { color: var(--muted); }
.identity-status p { margin: 3px 0; }
.identity-form { width: 100%; }
.identity-form fieldset { min-width: 0; margin: 0; padding: 11px 0 0; border: 0; border-top: 1px solid var(--line); }
.identity-form legend { padding-right: 11px; font-weight: 700; }
.identity-fields label { min-width: 0; }
.identity-fields input[type="file"] { max-width: 100%; }
.identity-consent { padding: 12px 14px; border-radius: 6px; background: var(--paper); }
.identity-consent a { margin-left: 8px; }
.identity-back { margin-top: 19px; gap: 8px 18px; }
.identity-hint, .merchant-hint { font-size: .86rem; }
.member-identity-note { margin-top: 13px; }

#admin-workbench [hidden] { display: none; }
.admin-access { max-width: 440px; }
.admin-layout { display: grid; grid-template-columns: 182px minmax(0,1fr); gap: 20px; align-items: start; }
.admin-sidebar { display: grid; gap: 3px; padding: 9px; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--navy); }
.admin-sidebar button:not(.close) { justify-content: space-between; gap: 5px; border-color: transparent; background: transparent; color: #e2eef5; text-align: left; }
.admin-sidebar button:not(.close):hover { color: var(--gold); background: #203d53; }
.admin-sidebar button[aria-current]:not(.close) { background: #294b61; color: #fff; border-color: #668797; }
.admin-sidebar button span { padding: 2px 6px; border-radius: 4px; background: var(--paper); color: var(--muted); font-size: .75rem; }
.admin-column { min-width: 0; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.admin-top h2 { font-size: clamp(1.15rem,2vw,1.5rem); }
#admin-workbench button.admin-small { min-height: 34px; padding: 5px 10px; font-size: .81rem; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.admin-metrics > div { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.admin-metrics > div:nth-child(1) { border-top: 3px solid #b7796a; }
.admin-metrics > div:nth-child(2) { border-top: 3px solid #647d8f; }
.admin-metrics > div:nth-child(3) { border-top: 3px solid #97804c; }
.admin-metrics > div:nth-child(4) { border-top: 3px solid #6c8270; }
.admin-metrics span { color: var(--muted); font-size: .82rem; }
.admin-metrics strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.admin-list { padding: clamp(12px,2vw,19px); }
.admin-filter { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.admin-filter label { flex: 0 1 170px; min-width: 0; color: var(--muted); font-size: .82rem; }
.admin-filter label:first-child { flex-grow: 1; max-width: 320px; }
.admin-filter :is(input,select) { margin-top: 4px; }
.admin-total, .admin-empty { color: var(--muted); font-size: .86rem; }
.admin-total { margin-top: 13px; }
.admin-empty { padding: 17px 0; border-top: 1px solid var(--line); }
.admin-table { overflow: auto; }
.admin-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: .85rem; }
.admin-table :is(th,td) { padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { background: var(--paper); color: var(--muted); font-size: .8rem; font-weight: 650; }
.admin-table td:first-child { width: 46%; }
.admin-table td:last-child { text-align: right; }
.admin-table td:nth-child(3), .admin-table td small { color: var(--muted); }
.admin-table td small { display: block; margin-top: 3px; }
.admin-log-target { overflow-wrap: anywhere; }
.admin-status { display: inline-block; padding: 3px 7px; border-radius: 4px; background: var(--slate); color: #344a5c; white-space: nowrap; font-size: .78rem; }
.admin-status[data-tone="pending"] { background: #f5ebd8; color: #705121; }
.admin-status[data-tone="done"] { background: var(--sage); color: #36533a; }
.admin-status[data-tone="muted"] { background: #f1eeea; color: var(--muted); }
.admin-paging { margin-top: 12px; justify-content: flex-end; color: var(--muted); font-size: .83rem; }
[data-admin-feedback]:not(:empty) { margin-bottom: 12px; }
.admin-dialog { width: min(675px,calc(100% - 28px)); max-height: 87vh; }
.admin-detail-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 11px; margin-bottom: 11px; color: var(--muted); }
.admin-values { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 16px; margin: 0 0 12px; }
.admin-values > div { padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.admin-values dt { color: var(--muted); font-size: .79rem; }
.admin-values dd { margin: 3px 0 0; font-size: .9rem; }
.admin-values:empty, .admin-photos:empty { display: none; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: 9px; }
.admin-photos figure { margin: 1px 0 10px; }
.admin-photos figcaption { margin-bottom: 4px; color: var(--muted); font-size: .83rem; }
.admin-photos img { width: 100%; max-height: 315px; object-fit: contain; border-radius: 4px; background: var(--paper); }
.admin-lines { padding-left: 19px; font-size: .88rem; }
.admin-action-form { margin-top: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.admin-action-fields { display: grid; gap: 7px; }

.merchant-entry { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: start; gap: 16px 32px; }
.merchant-entry > section:last-child { border-left: 1px solid var(--line); padding-left: 22px; }
.merchant-entry p { margin-top: 6px; }
.merchant-steps {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  padding: 0;
  margin: 18px 0;
  gap: 8px;
  max-width: 810px;
  list-style: none;
}
.merchant-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 8px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 650;
}
.merchant-steps li span {
  display: grid;
  place-items: center;
  width: 23px;
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
}
.merchant-steps li[aria-current] { background: var(--slate); color: var(--accent); border-top-color: var(--accent); }
.merchant-steps li[aria-current] span { background: var(--accent); color: var(--white); border-color: var(--accent); }
.merchant-steps li[data-completed] { background: var(--sage); color: #38523a; border-top-color: #6a846a; }
.merchant-steps li[data-completed] span { border-color: #9aaf98; }
.merchant-application, .merchant-status { width: 100%; }
.merchant-agreement { width: min(100%,860px); margin-inline: auto; }
.merchant-application section[data-merchant-stage]:not([hidden]) { display: grid; gap: 14px; }
.merchant-application h2, .merchant-status h2 { font-size: 1.17rem; }
.merchant-application .section-title { margin: 0; }
.merchant-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.merchant-actions { margin-top: 12px; }
.agreement-reader { max-height: min(390px,55vh); overflow: auto; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.agreement-body .muted { font-size: .83rem; }
.agreement-body section { margin-top: 14px; }
.agreement-body h2, .agreement-body h3 { font-size: 1rem; margin-bottom: 6px; }
.agreement-body p { line-height: 1.7; }
.merchant-status .tag[data-status="审核通过"] { background: var(--sage); }
.merchant-status .tag[data-status="待审核"] { background: #faf0db; color: #805917; }
.merchant-status .tag[data-status="驳回"] { background: var(--warm); color: var(--accent); }
.merchant-review-note { padding: 9px 12px; border-radius: 6px; background: var(--paper); }
.store-logo { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.store-support { margin-top: 12px; }
.home-intro :focus-visible, .auth-shortcuts :focus-visible, .account-member :focus-visible,
.admin-sidebar :focus-visible, footer :focus-visible { outline-color: var(--gold); }

@media (max-width: 760px) {
  .frame { width: calc(100% - 32px); }
  .mast { gap: 8px; flex-wrap: wrap; padding-top: 8px; }
  .nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .nav a { padding-block: 9px 10px; }
  .home-hero, .detail, .detail.reference-detail { grid-template-columns: minmax(0,1fr); }
  .home-intro { margin-top: 15px; }
  .home-feature { min-height: 226px; }
  .home-feature img { object-position: 50% 60%; }
  .home-feature-caption { padding: 16px 19px; }
  .home-body, .account-layout, .merchant-dashboard { grid-template-columns: minmax(0,1fr); }
  .home-body { padding-block: 23px 41px; }
  .reference-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .checkout-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "items" "summary" "delivery"; }
  .service-detail { grid-template-areas: "photo" "sidebar" "description"; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .merchant-entry { grid-template-columns: 1fr; }
  .merchant-entry > section:last-child { border-left: 0; border-top: 1px solid var(--line); padding: 13px 0 0; }
  .foot { grid-template-columns: 1fr; }
  .foot .links { justify-content: flex-start; }
  .admin-layout { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .admin-sidebar { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-sidebar button:not(.close) { min-height: 39px; padding: 5px 7px; font-size: .82rem; }
}

@media (max-width: 510px) {
  .brand small { display: none; }
  .brand strong { font-size: .92rem; letter-spacing: 0; }
  .actions { gap: 9px; }
  .nav { gap: 5px; }
  .nav a, .actions a { font-size: .83rem; }
  .home-search { padding: 23px; }
  .home-search > p { margin: 9px 0 15px; font-size: .9rem; }
  .home-categories { gap: 5px; margin-top: 9px; }
  .home-feature-caption { padding: 10px 12px; }
  .home-actions .button { min-height: 39px; padding-inline: 10px; font-size: .83rem; }
  .section, .page { padding-block: 22px 33px; }
  .section-title { flex-wrap: wrap; }
  .section-title .button { min-height: 35px; padding: 5px 9px; }
  .section-title .text-link { font-size: .84rem; }
  .service-row > a, .compact-list .service-row > a {
    grid-template-columns: 79px minmax(0,1fr) 23px;
    grid-template-areas: "image copy arrow";
    gap: 5px 10px;
    align-items: start;
    min-height: 0;
    padding: 11px 10px;
  }
  .service-row img, .compact-list .service-row img { aspect-ratio: 1.15; }
  .service-row h3 { font-size: .96rem; }
  .service-row .service-arrow { align-self: center; }
  .row-owner, .service-summary { font-size: .79rem; }
  .results-count { font-size: .77rem; }
  .reference-list { grid-template-columns: 1fr; }
  .reference-card { gap: 8px; padding: 11px; }
  .reference-card.has-image > a { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 10px; align-items: center; }
  .reference-media { margin-bottom: 0; }
  .reference-thumb { height: 93px; padding: 4px; }
  .reference-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; text-align: left; }
  .reference-price .purchase-compact { flex-basis: 100%; }
  .reference-price .purchase-compact .row { justify-content: flex-start; }
  .reference-detail:has(.reference-hero) > .stack { display: contents; }
  .reference-detail:has(.reference-hero) .reference-price-panel { grid-row: 2; }
  .grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: minmax(0,1fr) 65px; }
  .cart-item button { grid-column: 2; }
  .merchant-fields, .identity-fields, .form-fields, .auth-layout, .member-payment { grid-template-columns: 1fr; }
  .auth-shortcuts { padding-block: 17px 20px; gap: 3px; }
  .auth-shortcuts h2 { font-size: 1.05rem; }
  .identity-tabs { gap: 8px; }
  .identity-tabs a { padding: 9px 11px; }
  .merchant-steps li { flex-direction: column; align-items: start; gap: 4px; padding-inline: 3px; font-size: .76rem; }
  .admin-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { padding: 8px 0; border-top: 1px solid var(--line); }
  .admin-table td, .admin-table td:first-child { width: 100%; padding: 3px 0; border: 0; }
  .admin-table td:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
