:root {
    color-scheme: light;
    --paper: #f5f2f7;
    --white: #fff;
    --ink: #261e31;
    --red: #7c2856;
    --accent-dark: #5b1c3d;
    --hero: #322044;
    --tint: #f4e6ee;
    --line: #e1dae7;
    --muted: #63586c;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.65 system-ui, "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font: 900 clamp(2.15rem, 5vw, 3.6rem)/1.15 "Songti SC", SimSun, Georgia, serif; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.12rem; }
.wrap { width: min(75rem, 92%); margin-inline: auto; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.bar, nav, .actions, .masthead { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem; }
.bar { justify-content: space-between; padding-block: 1rem; }
.brand { font-weight: 850; text-decoration: none; display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { display: inline-grid; place-items: center; width: 2.65rem; height: 2.65rem; flex: 0 0 auto; background: var(--red); color: white; font-size: 1.2rem; font-weight: 850; border-radius: .65rem .65rem .65rem .16rem; }
.brand-name { line-height: 1.25; }
.brand-name small { display: block; margin-top: .28rem; color: var(--muted); font-size: .75rem; font-weight: 500; }
nav a, .quiet { font-size: .9rem; text-decoration: none; }
nav form { margin: 0; }
.nav-publish { background: var(--red); color: white; border-radius: .42rem; padding: .38rem .72rem; }
.nav-publish:hover { background: var(--accent-dark); color: white; }
main { flex: 1; padding-block: clamp(1.5rem, 5vw, 3.6rem); }
.portal-home { padding-top: clamp(1rem, 3vw, 2rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.market-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, .48fr);
    align-items: center;
    gap: clamp(1.2rem, 4vw, 3.25rem);
    padding: clamp(1.3rem, 4vw, 3.2rem);
    background: var(--hero);
    color: white;
    border-radius: 1.1rem;
}
.market-hero-compact { grid-template-columns: minmax(0, 1fr); }
.market-hero h1 { font: 850 clamp(2rem, 4.8vw, 3.6rem)/1.15 system-ui, "Microsoft YaHei", sans-serif; }
.market-hero p { margin-top: .65rem; color: #e5d9ef; }
.market-search { display: flex; gap: .45rem; max-width: 39rem; margin-top: 1.35rem; padding: .32rem; border-radius: .64rem; background: white; }
.market-search input:not([type="checkbox"]) { border: 0; flex: 1; border-radius: .35rem; }
.market-search input:focus-visible { outline-offset: -2px; }
.market-search button { flex-shrink: 0; border-radius: .39rem; }
.hero-action { padding: 1.25rem; border: 1px solid #ffffff37; border-radius: .8rem; background: #ffffff09; }
.hero-action h2 { font-size: 1.08rem; }
.hero-action p { margin-bottom: .9rem; font-size: .94rem; }
.hero-action a, .hero-action a:hover { background: #f1c6d9; color: #3e1934; border-color: #f1c6d9; border-radius: .42rem; font-weight: 750; }
.market-hero :focus-visible { outline-color: #f1c6d9; }
.market-search :focus-visible { outline-color: var(--red); }
.category-strip { margin-top: 1.75rem; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem 1rem; margin-bottom: .75rem; }
.section-title h2 { font-size: 1.28rem; }
.section-title a, .section-title p { color: var(--muted); font-size: .9rem; }
.quick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.quick-grid a { height: 100%; display: grid; align-content: start; gap: .65rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); text-decoration: none; box-shadow: 0 4px 10px #32204407; }
.category-copy { display: grid; gap: .2rem; overflow-wrap: anywhere; }
.category-copy small { font-size: .8rem; color: var(--muted); }
.quick-grid a:hover { border-color: var(--red); }
.tone-tools { --art-bg: #e7f3ed; --art-ink: #1c624b; }
.tone-brief { --art-bg: #f7ecdd; --art-ink: #85451e; }
.tone-chat { --art-bg: #f3e7f3; --art-ink: #713d74; }
.tone-product { --art-bg: #e5edf7; --art-ink: #3a548b; }
.tone-partners { --art-bg: #f9e7ee; --art-ink: #8b2e54; }
.tone-play { --art-bg: #f1ebfa; --art-ink: #60458f; }
.tone-book { --art-bg: #e8eff2; --art-ink: #3c606e; }
.category-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; color: var(--art-ink, var(--red)); background: var(--art-bg, var(--tint)); border-radius: .65rem; }
.directory-title { display: flex; align-items: center; gap: .65rem; }
.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 16.5rem); align-items: start; gap: 1.15rem; margin-top: 2rem; }
.guides-layout { grid-template-columns: minmax(0, 1fr); }
#results { min-width: 0; scroll-margin-top: .75rem; }
.market-filters { gap: .4rem; margin-bottom: .85rem; }
.market-filters a { padding: .32rem .62rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--white); }
.market-filters [aria-current] { border-color: var(--red); background: var(--tint); color: var(--red); font-weight: 750; }
.market-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.market-card { display: flex; flex-direction: column; align-items: start; gap: .7rem; min-height: 14.5rem; padding: .75rem .75rem .95rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--white); box-shadow: 0 4px 10px #32204407; }
.market-card:focus-within, .market-card:hover { border-color: #b99bb2; box-shadow: 0 8px 20px #32204411; }
.card-cover { width: 100%; min-height: 6.2rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem; border-radius: .55rem; color: var(--art-ink, var(--red)); background: linear-gradient(135deg, var(--art-bg, var(--tint)), #fff); }
.card-cover svg { flex-shrink: 0; width: 2.25rem; height: 2.25rem; }
.card-cover:has(.post-pin) { position: relative; padding-top: 1.5rem; }
.post-pin { position: absolute; top: .35rem; left: .5rem; padding: .05rem .42rem; border-radius: .3rem; background: var(--red); color: white; font-size: .75rem; }
.cover-category { font-size: .8rem; padding: .15rem .45rem; border: 1px solid currentColor; border-radius: 999px; overflow-wrap: anywhere; }
.price-label { color: var(--red); font-weight: 800; font-variant-numeric: tabular-nums; }
.card-meta .price-label { font-size: 1rem; }
.market-card h3 { font-size: 1rem; line-height: 1.45; }
.market-card h3 a { text-decoration: none; }
.market-card h3 a:hover { text-decoration: underline; }
.card-excerpt { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { width: 100%; margin-top: auto; padding-top: .55rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .2rem .6rem; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: .79rem; }
.market-side { display: grid; gap: .75rem; }
.market-side section { padding: 1rem; border-radius: .72rem; }
.market-side h2 { font-size: 1rem; margin-bottom: .55rem; }
.market-side p, .market-side li { font-size: .9rem; color: var(--muted); }
.market-side ul { list-style: none; padding: 0; margin: 0; }
.market-side li { border-bottom: 1px solid var(--line); padding: .47rem 0; }
.market-side ul:empty { display: none; }
.side-more { display: inline-block; margin-top: .6rem; color: var(--red); font-size: .9rem; }
.masthead {
    justify-content: space-between;
    align-items: end;
    padding: clamp(1rem, 4vw, 2.4rem);
    border-top: .3rem solid var(--red);
    background: var(--white);
}
.masthead p, .form-card p { margin-top: .7rem; color: var(--muted); }
.tabs { margin-block: 1.5rem .75rem; }
.tabs a { padding: .35rem .65rem; }
.tabs [aria-current] { color: var(--red); background: #f4e1db; font-weight: 750; }
.panel { background: var(--white); border: 1px solid var(--line); }
.pad, .form-card { padding: clamp(1rem, 4vw, 2rem); }
.pad { margin-top: 1rem; }
.pad h2 { margin-bottom: .65rem; }
.directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 0 1rem; }
.directory ul { margin: 0; padding-inline-start: 1.2rem; }
details { padding: .75rem 0; }
details + details { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 750; }
details p { margin-top: .5rem; }
.form-card { max-width: 36rem; margin: 0 auto; }
.auth-layout { width: min(100%, 53rem); margin-inline: auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border-radius: 1rem; overflow: hidden; box-shadow: 0 14px 45px #32204416; }
.auth-side { background: var(--hero); color: white; display: flex; flex-direction: column; align-items: start; justify-content: center; gap: .9rem; padding: clamp(1.4rem, 4vw, 2.65rem); }
.auth-side p { color: #e5d9ef; }
.auth-side a:hover { color: #f1c6d9; }
.auth-side a:focus-visible { outline-color: #f1c6d9; }
.auth-card { width: 100%; max-width: none; padding: clamp(1.2rem, 4vw, 2.4rem); }
.auth-card h1 { font: 850 clamp(1.65rem, 4vw, 2.3rem)/1.2 system-ui, "Microsoft YaHei", sans-serif; }
.auth-tabs { margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.auth-tabs a { padding: .45rem .65rem; border-bottom: 2px solid transparent; }
.auth-tabs a[aria-current] { color: var(--red); border-bottom-color: var(--red); font-weight: 750; }
.auth-card input:not([type="checkbox"]) { border-color: var(--line); border-radius: .48rem; }
.auth-card button { border-radius: .48rem; width: 100%; }
.wide { max-width: 52rem; }
.entry { padding: 1rem clamp(.8rem, 3vw, 1.5rem); }
.entry + .entry, .pad .entry { border-top: 1px solid var(--line); }
.entry h2 { margin-block: .3rem; }
.tag { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--red); background: var(--tint); padding: .16rem .45rem; border-radius: .32rem; }
.meta, .empty { color: var(--muted); }
.meta { font-size: .88rem; }
.empty { padding: 2rem 1rem; }
.pagination { margin-top: 1rem; }
.notice { background: #e7eee5; padding: .65rem .9rem; margin-bottom: 1rem; border-left: .25rem solid #4f6c4f; }
.notice.error { background: #f4e1db; border-color: var(--red); }
.reason { color: var(--red); }
.content { white-space: pre-wrap; margin-top: .9rem; }
.post-breadcrumb { gap: .35rem .6rem; margin-bottom: 1rem; color: var(--muted); }
.post-header { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; border-radius: .9rem; padding: clamp(1.15rem, 3.5vw, 2.4rem); border-top: .25rem solid var(--red); }
.post-heading { min-width: 0; }
.post-heading h1 { margin: .45rem 0 .6rem; font: 800 clamp(1.65rem, 3.6vw, 2.6rem)/1.3 system-ui, "Microsoft YaHei", sans-serif; }
.post-heading p { color: var(--muted); font-size: .9rem; }
.post-icon { display: grid; place-items: center; flex: 0 0 auto; width: clamp(3.2rem, 8vw, 5.25rem); aspect-ratio: 1; border-radius: .8rem; background: var(--art-bg, var(--tint)); color: var(--art-ink, var(--red)); }
.post-icon svg { width: 51%; height: 51%; }
.post-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem); gap: 1rem; margin-top: 1rem; }
.post-article, .post-facts { border-radius: .8rem; padding: clamp(1rem, 2.7vw, 1.75rem); }
.post-article > h2 { border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.post-summary { color: var(--muted); }
.post-section { padding: .8rem 0; }
.post-section + .post-section { border-top: 1px solid var(--line); }
.post-section h3 { margin-bottom: .4rem; }
.post-section p { margin-top: 0; }
.post-contact-box { padding: 1rem; margin-top: .75rem; border-radius: .65rem; background: var(--tint); }
.post-contact-box h3 { margin-bottom: .5rem; }
.contact-details { margin: 0; }
.contact-details div { display: grid; grid-template-columns: minmax(5rem, .25fr) minmax(0, 1fr); gap: .6rem; padding-block: .3rem; }
.contact-details dt { color: var(--muted); }
.contact-details dd { margin: 0; overflow-wrap: anywhere; }
.publish-contacts { min-width: 0; margin: 0; padding: .85rem; border: 1px solid var(--line); border-radius: .6rem; display: grid; gap: .65rem; }
.publish-contacts .consent { display: flex; }
.post-sidebar { display: grid; gap: .85rem; }
.post-facts dl { margin: .65rem 0 0; }
.post-facts dl div { padding: .45rem 0; }
.post-facts dl div + div { border-top: 1px solid var(--line); }
.post-facts dt { font-size: .82rem; color: var(--muted); }
.post-facts dd { margin: 0; overflow-wrap: anywhere; }
.post-facts dd.price-label { font-size: 1.3rem; }
.related-list { list-style: none; padding: 0; margin: .6rem 0; }
.related-list li { padding: .42rem 0; border-bottom: 1px solid var(--line); }
.review-form, .form-card form { display: grid; gap: .9rem; margin-block: 1.2rem; }
label { display: grid; gap: .3rem; }
input, textarea, select, button { font: inherit; }
input:not([type="checkbox"]), textarea, select {
    width: 100%; min-width: 0; padding: .53rem .6rem; border: 1px solid #a99e92; background: white; color: var(--ink);
}
textarea { resize: vertical; }
.consent { display: flex; gap: .5rem; align-items: baseline; }
.consent label { display: inline; }
button, .button {
    cursor: pointer; display: inline-block; width: fit-content; padding: .48rem .85rem;
    border: 1px solid var(--red); background: var(--red); color: white; text-decoration: none;
}
button:hover, .button:hover { background: var(--accent-dark); color: white; }
.secondary, .quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.quiet { padding: .2rem .45rem; }
.portal-footer { background: var(--hero); color: white; font-size: .9rem; }
.portal-footer a:hover { color: #f1c6d9; }
.portal-footer :focus-visible { outline-color: #f1c6d9; }
.footer-main { padding-block: 1.35rem; }
.footer-main strong { font-size: 1rem; }
.footer-main p { color: #e5d9ef; }
.footer-licenses { display: flex; flex-wrap: wrap; gap: .1rem .5rem; padding-block: .8rem; border-top: 1px solid #ffffff37; color: #e5d9ef; }
@media (max-width: 62rem) {
    .market-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
    .market-hero, .market-layout, .auth-layout, .post-layout { grid-template-columns: minmax(0, 1fr); }
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-side { display: none; }
}
@media (max-width: 26rem) {
    .market-cards, .quick-grid { grid-template-columns: minmax(0, 1fr); }
}
