:root {
  color-scheme: light;
  --ink: #1d2d28;
  --muted: #52635b;
  --pine: #173e35;
  --teal: #146350;
  --paper: #fff;
  --white: #fff;
  --line: #d9e1d8;
  --mint: #e5f1e8;
  --sand: #f7ead3;
  --lilac: #efe9f4;
  --ochre: #775016;
  --shadow: 0 10px 28px rgb(30 65 47 / 7%);
  font: 16px/1.55 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #8c5c18; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(2rem,5vw,3.7rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.25rem,2.3vw,1.65rem); }
h3 { font-size: 1.12rem; }
p { line-height: 1.7; }
img { max-width: 100%; display: block; }
.frame { width: min(1200px,calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: white; padding: .7rem; }
.muted, .compact { color: var(--muted); }
.detail-actions { margin-top: 1rem; }

header { background: var(--white); border-bottom: 1px solid var(--line); }
.mast { min-height: 80px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(12px,2vw,30px); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; font-size: .8rem; margin-top: .18rem; color: var(--muted); }
.mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 2px solid var(--teal); border-radius: 50%; background: var(--mint); color: var(--teal); }
.mark::before { content: ""; width: 21px; height: 19px; background: currentColor; clip-path: polygon(0 100%, 37% 26%, 54% 57%, 75% 0, 100% 100%, 69% 77%, 53% 94%, 37% 67%); }
.nav, .actions, .row, .links { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.nav { justify-content: center; gap: .3rem; }
.nav a, .actions a { font-size: .875rem; font-weight: 650; }
.nav a { padding: .55rem .65rem; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--teal); background: var(--mint); }
.actions { justify-content: flex-end; }
.actions a:not(.button):hover { color: var(--teal); }
.button, button:not(.close) {
  display: inline-flex; align-items: center; justify-content: center; padding: .56rem 1rem; min-height: 42px;
  border: 1px solid transparent; border-radius: 9px; background: var(--teal); color: #fff; font-weight: 700;
  transition: background .18s, border-color .18s, color .18s;
}
.button:hover, button:not(.close):hover { background: #0e4a3b; }
.button.secondary, button.secondary { border-color: var(--line); background: white; color: var(--pine); }
.button.secondary:hover, button.secondary:hover { border-color: var(--teal); background: var(--mint); color: var(--teal); }
button:disabled { opacity: .5; cursor: default; }

.home { padding-block: 28px 62px; }
.noticeboard { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.13fr); min-height: 390px; background: var(--white); border: 1px solid var(--line); border-radius: 19px; overflow: hidden; box-shadow: var(--shadow); }
.headline { padding: clamp(24px,4.3vw,60px); color: var(--ink); align-self: center; }
.headline h1 { margin: .27em 0 .37em; }
.headline p { color: var(--muted); margin-bottom: 1.25rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--teal); font-size: .875rem; font-weight: 750; }
.eyebrow::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: #e8ad49; box-shadow: 0 0 0 3px #faedce; }
.hero-form { display: flex; gap: .5rem; max-width: 445px; }
.hero-form input { flex: 1; min-width: 0; }
.hero-form button { flex: none; background: #f4d38b; color: #49340f; }
.hero-form button:hover { background: #fae2ac; }
.featured-photo { position: relative; min-width: 0; min-height: 280px; display: block; overflow: hidden; }
.featured-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.featured-photo > span { position: absolute; inset: auto 0 0; background: rgb(13 42 35 / 88%); color: white; padding: .8rem 1rem; }
.featured-photo::after {
  content: ""; position: absolute; top: 1rem; right: 1rem; width: 38px; height: 30px; pointer-events: none;
  --corner: linear-gradient(#fff, #fff);
  background: var(--corner) top left / 10px 2px, var(--corner) top left / 2px 10px,
    var(--corner) top right / 10px 2px, var(--corner) top right / 2px 10px,
    var(--corner) bottom left / 10px 2px, var(--corner) bottom left / 2px 10px,
    var(--corner) bottom right / 10px 2px, var(--corner) bottom right / 2px 10px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px #173e35);
}
.featured-photo small { display: block; color: #dcefe5; font-size: .82rem; }
.featured-photo:hover strong { color: #f4d38b; }
.home-categories { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem 1.6rem; }
.home-categories a { padding: .45rem .85rem; font-weight: 700; font-size: .9rem; border-radius: 8px; color: var(--teal); background: var(--mint); }
.home-categories a { display: inline-flex; align-items: center; gap: .45rem; transition: box-shadow .18s ease; }
.home-categories a::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.home-categories a:hover { box-shadow: inset 0 0 0 1px currentColor; }
.desk { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.lane { padding: 1.1rem 1.25rem; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: .8rem; background: var(--mint); }
.lane h2 { margin-bottom: .2rem; }
.lane p { color: var(--muted); font-size: .9rem; }
.lane .button { flex: none; }
.market-lane { background: var(--sand); }
.section { padding-top: 2.55rem; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.home .section-title h2 { display: flex; align-items: center; gap: .5rem; }
.home .section-title h2::before {
  content: ""; width: .8rem; height: .8rem; flex: none; background: #63a58d;
  clip-path: polygon(50% 0, 64% 35%, 100% 50%, 64% 65%, 50% 100%, 36% 65%, 0 50%, 36% 35%);
}
.home .section:last-child h2::before { background: #d39a3c; }
.section-link, .back-link { color: var(--teal); font-weight: 700; }
.section-link:hover, .back-link:hover, .page a:not(.button):hover { color: var(--ochre); }

.page { padding-block: 35px 65px; min-height: 60vh; }
.page-head { padding: clamp(18px,3vw,34px); margin-bottom: 24px; border-radius: 15px; background: var(--mint); border-left: 5px solid var(--teal); }
.page-head h1 { font-size: clamp(1.9rem,4vw,2.8rem); }
.page-head p { margin-top: .43rem; }
[data-page="mall"] .page-head, [data-page="product"] .page-head, [data-page="shop"] .page-head { background: var(--sand); border-color: var(--ochre); }
[data-page="membership"] .page-head, [data-page="identity"] .page-head, [data-page="merchant"] .page-head { background: var(--lilac); border-color: #684e79; }
[data-page="login"], [data-page="register"] { max-width: 640px; }
[data-page="login"] .page-head, [data-page="register"] .page-head { text-align: center; border-left: 0; }
[data-page="login"] .detail-actions, [data-page="register"] .detail-actions { text-align: center; }
.back-link { display: inline-block; margin: 0 0 .8rem; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; }
.stack { display: grid; gap: 1.05rem; }
.card, .panel, .empty { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 1.1rem; overflow-wrap: anywhere; }
.panel { padding: clamp(14px,2.5vw,26px); }
.panel h2, .panel h3, .empty p { margin-bottom: .55rem; }
.card h3 { margin-bottom: .45rem; }
.card p, .panel p { color: var(--muted); }
.card p + p, .panel p + p { margin-top: .35rem; }
.card:not(.catalog-card) img { border-radius: 9px; }
.catalog-card { overflow: hidden; display: flex; flex-direction: column; padding: 0; box-shadow: var(--shadow); transition: box-shadow .2s ease; }
.catalog-card:hover, .catalog-card:focus-within { box-shadow: 0 13px 30px rgb(30 65 47 / 13%); }
.card-media { display: block; overflow: hidden; background: #edf3eb; }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .2s ease; }
.card-media:hover img { transform: scale(1.035); }
.product-card .card-media { background: white; border-bottom: 1px solid var(--line); }
.product-card .card-media img { object-fit: contain; padding: .7rem; }
.card-body { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 1rem; gap: .35rem; }
.card-body h3 { margin: .2rem 0 0; }
.card-body h3 a:hover { color: var(--teal); }
.card-owner, .image-caption { font-size: .875rem; }
.card-price { display: grid; gap: .1rem; width: 100%; margin-top: auto; padding-top: .65rem; color: var(--ochre); font-size: .9rem; }
.price-amount { color: #9b421b; font-size: 1.45rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .8rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: .65rem;
  background: var(--sand);
  color: var(--ochre);
}
.product-price .price-amount { font-size: clamp(1.75rem, 4vw, 2.2rem); }
.tag { display: inline-block; padding: .19rem .52rem; border-radius: 6px; background: var(--mint); color: var(--teal); font-size: .8rem; font-weight: 700; }
[data-category="会展执行"], [data-category="展陈物料"] { color: var(--ochre); background: var(--sand); }
[data-category="项目需求"] { color: #28577e; background: #e8f2fa; }
.home-categories [data-category="商业摄影"] { color: #914765; background: #f8eaf0; }
[data-category="品牌印制"], [data-category="印刷成品"], [data-category="商业摄影"] { color: #634773; background: var(--lilac); }
.service-summary { font-size: .93rem; }
.listing-filters { align-items: end; padding: .9rem; margin-bottom: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.listing-filters > input { flex: 1; min-width: 150px; }
.listing-filters label { display: grid; gap: .25rem; font-size: .875rem; font-weight: 700; }
.listing-heading h2 { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.results-count { color: var(--muted); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.pagination { justify-content: center; margin-top: .6rem; }
.pagination a { min-width: 76px; }

.detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 1.2rem; }
.detail.text-detail { grid-template-columns: minmax(0,780px); }
.entry-photo { margin: 0; border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
.entry-photo img { width: 100%; height: auto; max-height: 510px; object-fit: contain; }
.entry-photo figcaption { padding: .55rem .8rem; color: var(--muted); font-size: .875rem; }
.detail-heading { font-size: 1.04rem; margin-top: 1rem; }
.detail-contact { margin: .2rem 0 .7rem; }
.plan { display: grid; gap: .65rem; align-content: start; padding: 1.35rem; border-top: 5px solid #37836c; background: #edf7ef; }
.plan:nth-child(2) { border-color: #a77327; background: #fbf2dd; }
.plan:nth-child(3) { border-color: #79598c; background: #f5eff7; }
.plan h2 { font-size: 1.2rem; }
.card .amount { font-size: clamp(1.75rem,3vw,2.4rem); font-weight: 800; color: var(--ink); line-height: 1.15; }
.plan .button, .plan button { justify-self: start; margin-top: .3rem; }

.form { display: grid; gap: .9rem; max-width: 720px; }
.form[hidden] { display: none; }
.form label { display: grid; gap: .3rem; font-weight: 650; }
.form label.tick { display: flex; align-items: flex-start; flex-wrap: wrap; font-weight: 500; }
.form button { justify-self: start; }
input, textarea, select { width: 100%; min-height: 44px; border: 1px solid #aebfb2; border-radius: 8px; padding: .5rem .65rem; color: var(--ink); background: white; }
input[type="checkbox"] { width: 18px; min-height: 18px; margin: .2rem 0 0; accent-color: var(--teal); }
input[type="file"] { font-size: .875rem; }
textarea { min-height: 96px; resize: vertical; }
.notice { color: var(--ochre); margin: 0; }
.notice:empty { display: none; }
.captcha { width: 150px; }
.cart-item { display: grid; grid-template-columns: minmax(0,1fr) 96px auto; gap: .75rem; align-items: center; }

.process { max-width: 900px; display: grid; gap: 1rem; }
.identity-tabs, .process-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .72rem; }
.identity-tabs a, .process-steps li { border: 1px solid var(--line); background: white; padding: .8rem; border-radius: 9px; }
.identity-tabs a { display: grid; gap: .2rem; }
.identity-tabs a span { color: var(--muted); font-size: .9rem; }
.identity-tabs a[aria-current], .process-steps li[aria-current] { background: var(--lilac); border-color: #79598c; }
.process-status { background: var(--lilac); border-left: 4px solid #79598c; border-radius: 7px; padding: .85rem 1rem; }
.process-status p { margin-top: .3rem; }
.process-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .5rem; list-style: none; padding: 0; margin: 0; }
.process-steps li { display: flex; align-items: center; gap: .4rem; }
.process-steps span { display: inline-grid; place-items: center; flex: none; border-radius: 50%; width: 1.55rem; height: 1.55rem; background: var(--mint); font-weight: 700; }
.process .form { max-width: none; }
.process fieldset { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: .85rem; }
.process legend { font-weight: 750; padding-inline: .35rem; }
.process-grid input { min-width: 0; max-width: 100%; }
.admin-tabs { padding: .8rem; border: 1px solid var(--line); border-radius: 13px; background: white; }
.admin-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; }
.admin-metrics strong { font-size: 1.85rem; color: var(--teal); }
details > summary { cursor: pointer; color: var(--teal); font-weight: 700; }
details[open] > summary { margin-bottom: .55rem; }
.close { float: right; border: 0; background: none; color: var(--pine); font-size: 1.65rem; }
dialog { width: min(650px,calc(100% - 28px)); border: 1px solid var(--line); border-radius: 16px; padding: 1.15rem; color: var(--ink); }
dialog h2 { margin: .35rem 0 .55rem; }
dialog p { margin-bottom: .5rem; }
dialog::backdrop { background: rgb(13 42 35 / 57%); }

footer { padding: 35px 0 24px; color: var(--muted); background: var(--white); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 1.2rem; }
.foot-company { display: grid; gap: .35rem; }
.foot-company strong { color: var(--ink); }
.foot-company address { font-style: normal; }
.foot-contact, .foot-record { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.foot-contact a { overflow-wrap: anywhere; }
.foot .links { align-content: start; align-items: start; font-size: .9rem; }
.foot-record { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .8rem; }
.foot-record small { color: var(--muted); }
footer a:hover { color: var(--teal); }

@media (max-width: 1090px) {
  .mast { grid-template-columns: 1fr auto; gap: .5rem 1rem; padding-block: .65rem; }
  .mast .nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; }
}
@media (max-width: 800px) {
  .frame { width: calc(100% - 36px); }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .noticeboard { min-height: 0; }
  .lane { align-items: start; flex-direction: column; }
}
@media (max-width: 590px) {
  .frame { width: calc(100% - 28px); }
  .mast { grid-template-columns: minmax(0,1fr); }
  .mast .actions { grid-row: 2; justify-content: start; }
  .mast .nav { grid-row: 3; }
  .nav a { padding: .43rem .45rem; }
  .home { padding-top: 16px; }
  .noticeboard, .detail, .grid, .desk, .process-grid, .foot { grid-template-columns: minmax(0,1fr); }
  .featured-photo { min-height: 230px; }
  .headline { padding: 22px 17px; }
  .page { padding-block: 22px 40px; }
  .listing-filters > input { flex-basis: 100%; }
  .listing-filters label { min-width: 0; flex: 1 1 110px; }
  .process-steps, .admin-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cart-item { grid-template-columns: minmax(0,1fr) 72px; }
  .cart-item button { grid-column: 2; }
  .foot-record { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card-media:hover img { transform: none; }
}

.card-purchase { margin-top: .55rem; gap: .5rem; }
.card-purchase .notice { flex-basis: 100%; }

.noticeboard:not(:has(.featured-photo)) { grid-template-columns: minmax(0,1fr); min-height: 0; }
