:root {
  color-scheme: light;
  --ink: #151a35;
  --muted: #515b74;
  --paper: #fff;
  --surface: #f6f7fe;
  --surface-strong: #ebedfb;
  --accent: #4138bc;
  --steel: #252052;
  --signal: #c8f4eb;
  --outline: #929ab5;
  --numbers: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4.1vw, 3.5rem); line-height: 1.13; }
h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.35; }
h3 { font-size: 1.1rem; line-height: 1.45; }
p + p { margin-top: .6rem; }
a { color: var(--accent); text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #5142ca; outline-offset: 3px; }

.wrap { width: min(1280px, calc(100% - 4rem)); margin-inline: auto; }
.top { background: var(--paper); }
.top-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
.brand, .top nav a, .account-actions a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 800; line-height: 1.35; }
.mark { width: 42px; height: 42px; background: var(--steel) url('/favicon.svg') center/cover; flex: none; }
.top nav, .account-actions { display: flex; align-items: center; gap: .25rem; }
.top nav a, .account-actions a { color: var(--ink); font-weight: 650; padding: .55rem .75rem; white-space: nowrap; }
.top nav a[aria-current] { background: var(--steel); color: white; }
.account-actions { justify-content: end; font-size: .875rem; }
.account-actions .account { background: var(--surface); }
main.wrap { padding-block: 1.8rem 4.5rem; min-height: 64vh; overflow-wrap: anywhere; }
.heading { margin-bottom: 1.35rem; }
.heading p { margin-top: .65rem; color: var(--muted); max-width: 68ch; }
.section-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 1rem; }
.section-title .heading, .section-title h2 { margin: 0; }
.section-title > a, .back { font-weight: 700; }

button, .button {
  display: inline-block;
  border: 0;
  border-radius: 0;
  padding: .66rem 1.05rem;
  background: var(--steel);
  color: white;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: wait; }
.secondary { background: var(--surface-strong); color: var(--ink); }
input, textarea, select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--outline);
  border-radius: 0;
  padding: .62rem .7rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
input[type="file"]::file-selector-button { margin-inline-end: .55rem; padding: .35rem .55rem; border: 0; background: var(--surface-strong); color: var(--ink); cursor: pointer; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.search:has(select) { grid-template-columns: minmax(0, 2fr) repeat(2,minmax(0,1fr)) auto; }
.search button { white-space: nowrap; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.23fr); gap: .75rem; }
.home-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  padding: clamp(1.25rem, 4vw, 3.6rem);
}
.home-location { align-self: start; background: var(--signal); padding: .15rem .55rem; font-size: .875rem; font-weight: 800; }
.home-intro h1 { margin: 1rem 0 .7rem; font-size: clamp(2.3rem, 5.25vw, 5rem); line-height: 1.07; letter-spacing: -.045em; }
.home-intro > p:not(.home-location) { color: var(--muted); max-width: 33ch; }
.home-intro .search { margin: 1.5rem 0 1rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-weight: 700; }
.home-feature { min-width: 0; display: grid; grid-template-rows: 1fr auto; background: var(--steel); color: white; text-decoration: none; }
.home-feature img { width: 100%; height: 100%; min-height: 0; max-height: 480px; object-fit: cover; }
.home-feature-caption { padding: .9rem 1.25rem; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .2rem .85rem; align-items: center; }
.home-feature-caption strong { grid-column: 1; font-size: clamp(1.08rem, 2vw, 1.45rem); }
.home-feature-caption > span:first-child { grid-column: 1; color: #d9e1e6; font-size: .875rem; }
.home-feature-action { grid-area: 1 / 2 / 3 / 3; color: var(--signal); font-size: 1.5rem; }
.home-category-band { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin: .75rem 0 2.75rem; }
.home-category-band a { display: grid; align-content: start; gap: .45rem; color: var(--category-ink); background: var(--category); padding: 1rem; text-decoration: none; }
.home-category-name { display: flex; justify-content: space-between; gap: .4rem; flex-wrap: wrap; }
.home-category-name span, .home-category-band a > span:last-child { font-size: .875rem; }
.home-category-name span { font-family: var(--numbers); }

.software { --category: #e9ebff; --category-ink: #39329b; }
.network { --category: #e5f8f4; --category-ink: #235753; }
.industry { --category: #f4ebff; --category-ink: #603287; }
.data { --category: #edf4ff; --category-ink: #304f80; }
.market-header { background: var(--surface); padding: clamp(1rem, 3vw, 2.35rem); }
.market-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; font-size: .9rem; }
.market-filters span, .tag { display: inline-block; background: var(--category, var(--surface-strong)); color: var(--category-ink, var(--ink)); padding: .16rem .52rem; font-size: .82rem; font-weight: 700; }
.results { margin-top: 1.8rem; }
.results p { color: var(--muted); font-size: .9rem; }
.grid { display: grid; gap: .95rem; }
.market-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-service-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.service-card { min-width: 0; background: var(--surface); }
.service-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media .service-visual { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-bottom: .55rem; color: var(--muted); font-size: .82rem; }
.card-copy p { margin-block: .4rem .8rem; color: var(--muted); }
.card-copy small { margin-top: auto; font-weight: 750; }
.card-copy .card-audience { margin-bottom: 0; font-size: .86rem; }
.card-action { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; margin-top: .95rem; color: var(--accent); font-weight: 750; font-size: .88rem; }
.card-action span { font-family: var(--numbers); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1.6rem; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: .35rem .7rem; background: var(--surface); text-decoration: none; color: var(--ink); }
.pagination [aria-current] { background: var(--steel); color: white; }

.panel, .tier { padding: clamp(1rem, 2.6vw, 1.75rem); background: var(--surface); min-width: 0; }
.detail { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 1rem; align-items: start; margin-top: 1rem; }
.detail > div:first-child { display: grid; gap: 1rem; min-width: 0; }
.detail .service-visual { width: 100%; max-height: 470px; object-fit: contain; background: var(--surface); }
.detail-summary .heading { margin-top: .65rem; }
.detail-summary h1 { font-size: clamp(1.7rem, 3.3vw, 2.7rem); }
.detail-summary #consult { width: 100%; background: var(--signal); color: var(--ink); }
.detail-summary dl { margin-block: 1.2rem; }
dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .55rem .8rem; margin: .8rem 0; }
dt { color: var(--muted); }
dd { margin: 0; }
#contact { background: var(--category); padding: .9rem; margin-top: .7rem; }
.phone { font: 750 1.2rem var(--numbers); }
.service-body p, .legal p { margin: .5rem 0 1.35rem; }
.service-body p:last-child, .legal p:last-child { margin-bottom: 0; }

.tiers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.tier { display: flex; flex-direction: column; align-items: start; background: var(--surface); }
.tier.vip { background: #e9ebff; }
.tier.svip { background: #f4ebff; }
.tier .price { margin: .85rem 0 .15rem; font: 750 clamp(1.7rem,4vw,2.75rem)/1.2 var(--numbers); letter-spacing: -.055em; }
.tier-quota { display: flex; align-items: baseline; gap: .45rem; margin: 1.15rem 0; }
.tier-quota strong { font: 750 2rem/1 var(--numbers); }
.tier .button, .tier button { width: 100%; margin-top: auto; }
.tier.svip :is(.button,button) { background: var(--signal); color: var(--ink); }
.terms, .rows { margin-top: 1rem; }
.terms h2, .rows > h2 { margin-bottom: .65rem; }
.quota { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .45rem; margin-bottom: 1rem; }
.quota > * { padding: .65rem .8rem; background: var(--surface); font-variant-numeric: tabular-nums; }
.quota > strong { background: var(--steel); color: white; }

.form-shell, .publish-form { max-width: 780px; }
.form-shell { margin-inline: auto; }
.form-stack { display: grid; gap: .95rem; }
.form-stack label:not(.check) { display: grid; gap: .35rem; font-weight: 650; }
.form-stack button { justify-self: start; }
.form-columns, .captcha { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.captcha { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.captcha img { width: 110px; }
.captcha button { padding: .2rem; }
.check { display: flex; align-items: flex-start; gap: .45rem; }
.check input { flex: none; margin-top: .43em; }
.message { color: var(--accent); }
.message:empty { display: none; }
.record, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; }
.record { justify-content: space-between; padding: .65rem .8rem; margin-top: .45rem; background: white; }
.review { padding: 1rem; margin-top: .7rem; background: white; }
.payment-qr { width: min(100%,240px); }
main[data-page="orders"] > .panel, .legal, .photo-credits { max-width: 860px; }
.photo-credits { list-style: none; }
.photo-credits li + li { margin-top: 1rem; }
.photo-credits p { margin-top: .2rem; color: var(--muted); }
.approval-notice { display: grid; gap: .2rem; margin-bottom: .85rem; padding: .8rem 1rem; background: #f4ebff; color: #68400d; }
.approval-status, .identity-badge { display: inline-block; padding: .15rem .5rem; background: var(--surface-strong); color: var(--ink); font-size: .85rem; font-weight: 750; }
.approval-status.pending, .identity-badge.pending { background: #ffefcb; color: #704815; }
.approval-status.approved, .identity-badge.approved { background: #dcefe1; color: #225440; }
.approval-status.rejected, .identity-badge.rejected { background: #f8e3e3; color: #792f38; }
#admin-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; align-items: start; }
#admin-content > section { margin: 0; }
#admin-content img { max-height: 380px; object-fit: contain; }
.identity-review-slot:empty { display: none; }
.identity-review-slot { margin-top: 1rem; }

.identity-layout { max-width: 900px; display: grid; gap: .75rem; }
.identity-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.identity-tabs a { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem; padding: .85rem; background: var(--surface); color: var(--ink); text-decoration: none; }
.identity-tabs a[aria-current] { background: var(--steel); color: white; }
.identity-panel { display: grid; gap: 1rem; }
.identity-state { display: grid; justify-items: start; gap: .3rem; padding: .85rem 1rem; background: white; }
.identity-state p, .identity-form p { margin: 0; }
.identity-links { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.identity-form fieldset { min-width: 0; border: 0; margin: 0; padding: .8rem; background: white; }
.identity-form legend { padding: .18rem .55rem; background: var(--surface-strong); font-weight: 750; }
.identity-form fieldset p { margin-top: .45rem; }

footer { background: var(--surface); padding: 2.25rem 0; color: var(--ink); }
.foot-inner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 1.5rem; }
.foot-brand { font-weight: 800; }
footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: .45rem 1rem; font-size: .9rem; }
.foot-contact, .foot-registration { font-size: .87rem; }
.foot-registration { margin-top: .85rem; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: absolute; top: .35rem; left: .35rem; z-index: 3; background: white; padding: .45rem; }

@media (max-width: 1020px) {
  .top-inner { grid-template-columns: minmax(0,1fr) auto; gap: .55rem .75rem; padding-block: .75rem; min-height: 0; }
  .top nav { grid-area: 2 / 1 / 3 / -1; }
  .account-actions { grid-area: 1 / 2; }
  .home-service-grid, .home-category-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  main.wrap { padding-block: 1rem 3rem; }
  .home-hero, .detail, #admin-content { grid-template-columns: minmax(0,1fr); }
  .home-intro h1 br { display: none; }
  .home-feature img { height: auto; aspect-ratio: 1.85; }
  .market-grid, .quota { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .search:has(select) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .search:has(select) :is(input,button) { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 1.5rem); }
  .brand { font-size: .83rem; gap: .4rem; }
  .mark { width: 32px; height: 32px; }
  .top nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .top nav a { text-align: center; font-size: .86rem; padding-inline: .1rem; }
  .account-actions { gap: .15rem; }
  .account-actions a { padding: .35rem; font-size: .76rem; }
  .market-grid, .home-service-grid, .tiers, .form-columns, .foot-inner { grid-template-columns: minmax(0,1fr); }
  .home-category-band a { padding: .7rem; }
  .identity-tabs a { flex-direction: column; align-items: start; }
  .home-intro .search button { padding-inline: .6rem; }
}

/* Light technology theme */
button, .button { border-radius: 10px; background: var(--accent); }
.secondary { background: var(--surface-strong); color: var(--accent); }
input, textarea, select { border-radius: 10px; }
.mark, .top nav a, .account-actions a { border-radius: 10px; }
.top nav a[aria-current] { color: var(--accent); background: var(--surface-strong); }
.home-hero { gap: 1.75rem; align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.home-intro { background: #fff; padding: clamp(.2rem, 2vw, 1.9rem) 0; }
.home-location { align-self: start; border-radius: 999px; background: var(--surface-strong); color: var(--accent); padding: .25rem .7rem; }
.home-intro h1 { color: var(--steel); font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.12; }
.home-intro .search { padding: .35rem; background: var(--surface); border-radius: 14px; }
.home-intro .search input { border-color: transparent; }
.home-actions a { text-decoration: none; }
.home-actions a:first-child { color: var(--accent); }
.home-feature { border-radius: 20px; overflow: hidden; background: #252052; color: white; }
.home-feature img { height: auto; aspect-ratio: 1.75; max-height: 340px; object-position: center 45%; }
.home-feature-caption > span:first-child { color: #d9d7fb; }
.home-feature-action { color: #c8f4eb; }
.home-category-band a, .market-header, .panel, .tier { border-radius: 16px; }
.home-category-band a { padding: 1rem; }
.service-card { border-radius: 16px; overflow: hidden; }
.card-copy { padding: 1.15rem; }
.tag, .market-filters span, .approval-status, .identity-badge { border-radius: 999px; }
.pagination a, .pagination span, .quota > *, .record, .review,
.identity-tabs a, .identity-state, .identity-form fieldset, #contact { border-radius: 10px; }
.detail .service-visual { border-radius: 16px; }
.tier.vip { background: #ebedff; }
.tier.svip { background: #e5f8f4; }
.approval-notice { background: #fff0d9; }
.identity-form legend { border-radius: 6px; }
footer { background: #f8f9fe; }

.home-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.2rem;
}
.home-scenarios a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.home-scenarios a:hover, .home-scenarios a:focus-visible { background: #e3defe; }
.home-category-band a { gap: .6rem; }
.category-symbol {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: .65rem;
  color: var(--category-ink);
  background: #ffffffbd;
}
.category-symbol::before, .category-symbol::after { grid-area: 1 / 1; }
.software .category-symbol::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 4px 4px 0 -1px currentColor;
  margin: 0 4px 4px 0;
}
.network .category-symbol::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -7px 6px 0 -2px currentColor, 7px 6px 0 -2px currentColor;
  margin-bottom: 6px;
}
.industry .category-symbol::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 3px dotted currentColor;
  border-radius: 50%;
}
.industry .category-symbol::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.data .category-symbol::before {
  content: "";
  align-self: center;
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: -6px 3px 0 -1px currentColor, 6px -3px 0 -1px currentColor;
}

.home-category-band { margin-top: 1.4rem; }
.home-category-band a {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .18rem .65rem;
}
.home-category-band .category-symbol { grid-row: span 2; }
.home-category-name span { white-space: nowrap; }
@media (max-width: 760px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .home-feature img { max-height: 290px; }
}
@media (max-width: 460px) {
  .home-category-band a { grid-template-columns: minmax(0, 1fr); }
  .home-category-band .category-symbol { grid-row: auto; }
}

/* Card interaction on the homepage and service market */
.home-feature-media { overflow: hidden; }
:is(.market-grid, .home-service-grid) .card-media { overflow: hidden; }
:is(.market-grid, .home-service-grid) .service-card:focus-within { background: var(--category); }
.service-card-link:focus-visible { outline-offset: -3px; }
.home-feature:focus-visible { background: #4138bc; }
.home-category-band a:focus-visible { background: color-mix(in srgb, var(--category) 88%, var(--category-ink)); }

@media (hover: hover) and (pointer: fine) {
  :is(.market-grid, .home-service-grid) .service-card:hover { background: var(--category); }
  .home-feature:hover { background: #4138bc; }
  .home-category-band a:hover { background: color-mix(in srgb, var(--category) 88%, var(--category-ink)); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.market-grid, .home-service-grid) .service-card,
  .home-feature, .home-category-band a { transition: background-color .18s ease; }
  :is(.market-grid, .home-service-grid) .card-media img,
  .home-feature img { transition: transform .24s ease; }
  :is(.market-grid, .home-service-grid) .service-card:hover .card-media img,
  .home-feature:hover img { transform: scale(1.045); }
}
