:root {
  --paper: #fffdfb;
  --white: #fff;
  --ink: #271e21;
  --muted: #62565b;
  --wine: #8e293e;
  --wine-dark: #702031;
  --pink: #f6e8ec;
  --line: #e7d9db;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--wine-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #ad5264; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.23; }
h1, .section-head h2, .topic-section h2, .faq-panel h2, .example-panel h2 { font-family: var(--serif); font-weight: 800; }
h1 { font-size: clamp(2.125rem, 5vw, 4rem); }
h2 { font-size: clamp(1.4rem, 2.55vw, 2.2rem); }
h3 { font-size: 1.12rem; }
.wrap { width: min(100% - 3.5rem, 75rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem; background: white; transform: translateY(-220%); z-index: 2; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.7rem; min-height: 4.9rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; font-size: 1.2rem; letter-spacing: .04em; }
.home-brand { max-width: clamp(11rem, calc(100vw - 47rem), 18rem); min-width: 0; }
.brand-services { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.brand-mark { position: relative; width: 2rem; height: 2rem; background: var(--wine); border-radius: .45rem; flex: none; }
.brand-mark::before { content: ""; position: absolute; width: .9rem; height: 1.15rem; top: .4rem; left: .52rem; border: 1.5px solid white; border-radius: 2px; }
.brand-mark::after { content: ""; position: absolute; width: 1.03rem; height: 2px; top: .96rem; left: .8rem; background: white; transform: rotate(-45deg); box-shadow: 0 0 0 2px var(--wine); }
.top nav { display: flex; gap: clamp(.7rem, 1.85vw, 1.8rem); align-items: center; min-width: 0; }
.top nav a { white-space: nowrap; text-decoration: none; font-size: .93rem; font-weight: 600; color: var(--muted); padding-block: .6rem; }
.top nav a:hover, .top nav .active { color: var(--wine); box-shadow: inset 0 -2px var(--wine); }
.top-action { color: var(--wine); border: 1px solid #c99aa5; padding: .5rem 1rem; text-decoration: none; font-size: .95rem; font-weight: 700; border-radius: .35rem; white-space: nowrap; }
.top-action:hover { background: var(--pink); }
.search-header { padding: 0 0 .9rem; display: flex; justify-content: flex-end; }
.site-search { display: flex; gap: .35rem; padding: .25rem .25rem .25rem .85rem; border: 1px solid var(--line); width: min(100%, 26rem); border-radius: .4rem; background: white; }
.site-search input { width: 100%; min-width: 0; padding: .3rem .3rem .3rem 0; font: inherit; font-size: .9rem; color: var(--ink); border: 0; background: transparent; }
.site-search button { flex: none; border: 0; padding: .31rem .72rem; background: var(--pink); color: var(--wine-dark); font: inherit; font-size: .88rem; font-weight: 700; border-radius: .23rem; cursor: pointer; }
.site-search button:hover { background: #efd6de; }
#main { min-height: 55vh; padding-bottom: clamp(3rem, 6vw, 6rem); }
.hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(1.65rem, 5vw, 5rem); align-items: center; padding: clamp(2.2rem, 5vw, 4.5rem) 0; }
.hero h1 { font-size: clamp(2.5rem, 5.25vw, 4.85rem); line-height: 1.13; letter-spacing: -.055em; margin: .8rem 0 1.1rem; }
.hero h1 span { color: var(--wine); }
.eyebrow { color: var(--wine); font-weight: 750; font-size: .9rem; letter-spacing: .08em; }
.hero .eyebrow::before { content: ""; display: inline-block; height: 1px; width: 1.4rem; background: currentColor; vertical-align: middle; margin-right: .5rem; }
.hero-description { color: var(--muted); max-width: 32rem; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero-art { position: relative; background: #e6c9cd; border: 1px solid var(--line); border-radius: .28rem; overflow: hidden; }
.hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem .9rem; align-items: center; }
.hero .actions { margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.05rem; min-height: 2.85rem; background: white; border: 1px solid var(--line); border-radius: .35rem; color: var(--wine); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.primary { color: white; background: var(--wine); border-color: var(--wine); }
.button.primary:hover { background: var(--wine-dark); }
.button.ghost { background: transparent; border-color: #c99aa5; }
.button.ghost:hover { background: var(--pink); }
[hidden] { display: none !important; }
.hero-scope { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; padding: 0; margin: 1.25rem 0 0; list-style: none; color: var(--muted); font-size: .875rem; }
.hero-scope li::before { content: "·"; color: var(--wine); font-weight: 800; margin-right: .35rem; }
.service-section, .topic-section, .example-panel, .faq-panel { margin: 0 0 clamp(2.5rem, 5vw, 4.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.section-head > a { font-size: .95rem; font-weight: 700; }
.service-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card { background: white; border: 1px solid var(--line); border-top: 3px solid var(--wine); padding: 1.5rem; display: flex; flex-direction: column; }
.service-card h3 { margin: .85rem 0 .5rem; font-size: 1.22rem; }
.service-card p { color: var(--muted); }
.service-card .delivery { color: var(--ink); margin: .6rem 0 1rem; font-size: .95rem; }
.service-card a { font-size: .93rem; font-weight: 700; margin-top: auto; align-self: flex-start; }
.service-mark { display: block; position: relative; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--pink); color: var(--wine); }
.service-mark::before, .service-mark::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.service-writing::before { width: .82rem; height: 1rem; border: 1.5px solid; border-radius: 1px; }
.service-writing::after { width: .38rem; height: 1px; background: currentColor; box-shadow: 0 .2rem currentColor; top: 44%; }
.service-editing::before { width: 1rem; height: .26rem; border: 1.5px solid; transform: translate(-50%, -50%) rotate(-43deg); }
.service-targeted::before { width: 1rem; height: 1rem; border: 1.5px solid; border-radius: 50%; }
.service-targeted::after { width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.example-panel { padding: clamp(1.2rem, 4vw, 2.4rem); background: var(--pink); border-left: .22rem solid var(--wine); }
.example-panel .section-head p { color: var(--muted); margin-top: .35rem; }
.example-grid { display: grid; gap: 1px; grid-template-columns: 1fr 1fr; background: #e2c7ce; border: 1px solid #e2c7ce; }
.example-grid > div { background: #fffafd; padding: 1.05rem 1.25rem; }
.example-grid h3 { color: var(--wine); font-size: .94rem; margin-bottom: .5rem; }
.example-note { margin-top: .9rem; color: var(--muted); font-size: .95rem; }
.example-note strong { color: var(--wine); margin-right: .3rem; }
.topic-section h2 { margin-bottom: 1rem; }
.category-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.category-card { padding: 1rem .8rem; text-decoration: none; border-left: 1px solid var(--line); }
.category-card:first-child { border-left: 0; }
.category-card:hover { background: var(--pink); }
.category-card strong { display: block; font-size: 1.04rem; }
.category-card span { display: block; margin-top: .3rem; color: var(--muted); font-size: .9rem; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .38fr); gap: 1.5rem; align-items: start; }
#latest .section-head { margin-bottom: .65rem; }
.cards { display: grid; gap: .7rem; }
.card, .paper, .rail, .related, .article-nav, .search-results li { background: white; border: 1px solid var(--line); border-radius: .3rem; }
.card { padding: 1.05rem 1.2rem; }
.card:hover { border-color: #c99aa5; }
.card h3 { margin: .28rem 0 .38rem; font-size: 1.15rem; }
.card h3 a, .rail li a, .article-nav a, .related h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover, .rail li a:hover, .article-nav a:hover, .related h3 a:hover { color: var(--wine); text-decoration: underline; }
.card p { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: .2rem .85rem; color: var(--muted); font-size: .875rem; }
.meta span:first-child { color: var(--wine); font-weight: 650; }
.rail, .related, .article-nav { padding: 1.15rem; margin-bottom: .8rem; }
.rail h2, .related h2, .article-nav h2 { font-size: 1.12rem; }
.rail ol, .rail ul { padding-inline-start: 1.2rem; margin-bottom: 0; }
.rail li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.rail li:last-child { border-bottom: 0; }
.rail li::marker { color: var(--wine); }
.faq-panel { margin-top: 3.3rem; margin-bottom: 0; max-width: 53rem; }
.faq-panel h2 { margin-bottom: .8rem; }
.faq-panel details { border-block-start: 1px solid var(--line); padding: .78rem 0; }
.faq-panel details:last-child { border-block-end: 1px solid var(--line); }
.faq-panel summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq-panel details p { color: var(--muted); margin: .5rem 0 .15rem; }
.page-intro { margin: 2.1rem 0 1.25rem; border-left: .22rem solid var(--wine); background: var(--pink); padding: clamp(1.25rem, 4vw, 2.2rem); }
.page-intro p { max-width: 48rem; color: var(--muted); margin: .5rem 0; }
.page-intro .eyebrow { color: var(--wine); margin: 0 0 .45rem; }
.page-intro h1 { font-size: clamp(2rem, 4.9vw, 3.55rem); }
.page-intro .site-search { margin-top: .9rem; }
.page-intro + .service-grid, .page-intro + .button, .paper + .faq-panel { margin-bottom: 2rem; }
.crumb { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem; }
.crumb + .page-intro { margin-top: .9rem; }
.pagination, .sitemap-categories { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .9rem 0; }
.pagination a, .pagination span, .sitemap-categories a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 2.5rem; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: .3rem; text-decoration: none; }
.pagination span[aria-current], .pagination a:hover { background: var(--pink); color: var(--wine); }
.pagination .pagination-gap { border: 0; }
.paper { padding: clamp(1.2rem, 3.8vw, 2.25rem); }
.prose { overflow-wrap: anywhere; }
.prose h2 { margin: 1.4rem 0 .5rem; font-size: 1.36rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-block: .55rem .85rem; }
.article-columns { margin-top: 1rem; }
.article-columns .prose header h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: .35rem 0 .75rem; }
.article-columns .prose .lead { font-size: 1.09rem; padding: .9rem 1.05rem; background: var(--pink); border-left: 3px solid var(--wine); margin-top: 1.1rem; }
.question-cover { width: 100%; border: 1px solid var(--line); margin: 1rem 0; border-radius: .3rem; }
.article-consult { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; }
.article-consult p { font-weight: 650; }
.article-nav, .related { margin-top: 1rem; }
.article-nav { display: flex; gap: 1rem; justify-content: space-between; }
.article-nav > div { flex: 1; }
.article-nav span { font-size: .85rem; color: var(--muted); }
.related h3 { padding-top: .6rem; }
.sitemap-list section + section { margin-top: 1.4rem; }
.sitemap-list li { margin-bottom: .26rem; }
.search-status { color: var(--muted); margin-bottom: .9rem; }
.search-results { padding: 0; list-style: none; display: grid; gap: .7rem; }
.search-results li { padding: 1rem 1.2rem; }
.search-meta { color: var(--muted); font-size: .875rem; }
.search-results h2 { font-size: 1.25rem; margin: .3rem 0; }
.search-more { margin-top: .6rem; }
.wechat-columns { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
.wechat-card { border-top: 3px solid var(--wine); scroll-margin-top: 1rem; }
.wechat-card h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.wechat-card p { margin-block: .55rem; color: var(--muted); }
.wechat-qr { margin-bottom: 1rem; }
.wechat-qr img { width: min(100%, 14rem); max-height: 17rem; height: auto; object-fit: contain; padding: .4rem; border: 1px solid var(--line); border-radius: .3rem; }
.wechat-qr figcaption { margin-top: .4rem; color: var(--muted); font-size: .93rem; }
.wechat-qr figcaption a { margin-left: .5rem; }
.wechat-account label { display: block; margin-bottom: .25rem; font-weight: 700; }
.wechat-copy { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 100%; }
.wechat-copy input { flex: 1 1 10rem; min-width: 0; padding: .63rem .7rem; color: var(--ink); border: 1px solid #cdbec1; border-radius: .35rem; background: var(--paper); font: inherit; }
#wechat-copy-status:empty { margin: 0; }
.wechat-guide ol { padding-left: 1.45rem; }
.wechat-guide li + li { margin-top: .95rem; }
.wechat-guide li::marker { color: var(--wine); font-weight: 700; }
.wechat-guide li p { margin: .2rem 0 0; color: var(--muted); }
.chat-entry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.chat-entry h2 { font-size: 1.2rem; }
.chat-entry p { color: var(--muted); margin-top: .25rem; }
.chat-layout { background: #faf6f5; }
.chat-layout .top { min-height: 4rem; }
.chat-layout #main { width: min(100% - 3.5rem, 54rem); padding-block: clamp(1.25rem, 4vw, 3rem) 2.55rem; }
.chat-box { min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: .85rem; box-shadow: 0 12px 32px #42202b0c; }
.chat-header { display: flex; align-items: center; gap: .9rem; padding: .95rem clamp(.9rem, 3vw, 1.55rem); border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; flex: none; width: 2.65rem; height: 2.65rem; border-radius: .68rem; background: var(--wine); color: white; font-size: 1.1rem; font-weight: 800; }
.chat-heading { min-width: 0; }
.chat-heading h1 { font-family: var(--sans); font-size: 1.3rem; }
.chat-staff-name { margin-top: .12rem; color: var(--muted); overflow-wrap: anywhere; font-size: .9rem; }
.chat-log { height: clamp(16rem, 47vh, 27rem); height: clamp(16rem, 47dvh, 27rem); overflow-y: auto; padding: 1.15rem clamp(.9rem, 3vw, 1.55rem); background: #f8f5f4; }
.chat-log:focus-visible { outline: 2px solid #ad5264; outline-offset: -3px; }
.chat-welcome, .chat-log li { max-width: min(88%, 33rem); width: fit-content; min-width: 0; }
.chat-welcome { margin-bottom: 1rem; }
.chat-welcome > span, .chat-meta, .chat-empty, .chat-actions p, .chat-return-note { color: var(--muted); font-size: .875rem; }
.chat-welcome > span { display: block; margin-bottom: .25rem; font-weight: 600; }
.chat-log ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.chat-meta { display: flex; flex-wrap: wrap; gap: .25rem .65rem; align-items: baseline; margin-bottom: .25rem; overflow-wrap: anywhere; }
.chat-meta span { font-weight: 600; }
.chat-meta time { font-size: .82rem; }
.chat-welcome p, .chat-log li p { display: block; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: .28rem .75rem .75rem; background: white; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-log li.chat-auto p { background: #f5f1ef; }
.chat-box[data-role="visitor"] .chat-visitor, .chat-box[data-role="staff"] .chat-staff { justify-self: end; }
.chat-box[data-role="visitor"] .chat-visitor .chat-meta, .chat-box[data-role="staff"] .chat-staff .chat-meta { justify-content: flex-end; }
.chat-box[data-role="visitor"] .chat-visitor p, .chat-box[data-role="staff"] .chat-staff p { background: var(--pink); border-color: #e8ced6; border-radius: .75rem .28rem .75rem .75rem; }
.chat-composer { padding: .8rem clamp(.9rem, 3vw, 1.55rem) 1rem; border-top: 1px solid var(--line); }
.chat-composer label { display: block; font-size: .94rem; font-weight: 700; margin-bottom: .3rem; }
.chat-composer textarea { display: block; width: 100%; min-height: 3.5rem; padding: .6rem .72rem; border: 1px solid var(--line); border-radius: .55rem; background: #fffdfc; color: var(--ink); font: inherit; resize: vertical; }
.chat-composer textarea::placeholder { color: #77696e; }
.chat-actions { display: flex; justify-content: space-between; align-items: center; gap: .55rem; margin-top: .65rem; }
.chat-actions button { flex: none; min-width: 6rem; }
.chat-actions button:disabled { opacity: .58; cursor: default; }
.chat-actions p[role="status"] { color: var(--wine); }
.chat-return-note { text-align: center; margin-top: .62rem; }
.missing { padding: 3rem 0; }
.missing p { margin-block: .6rem; }
.site-footer { background: #f3e9eb; border-top: 1px solid var(--line); padding: 1.6rem 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.1rem; }
.footer-grid p, .footer-filing { color: var(--muted); margin: .4rem 0 0; font-size: .92rem; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; }
.footer-filing { text-align: center; padding-inline: 1rem; }
@media (max-width: 930px) {
  .top { display: grid; grid-template-columns: 1fr auto; gap: .4rem; padding-block: .7rem .3rem; }
  .home-brand { max-width: none; }
  .top nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; justify-content: start; scrollbar-width: thin; }
  .top-action { grid-column: 2; grid-row: 1; }
}
@media (max-width: 710px) {
  .wrap { width: calc(100% - 2rem); }
  .top nav { flex-wrap: wrap; column-gap: 1rem; row-gap: .1rem; overflow-x: visible; }
  .top nav a { padding-block: .33rem; }
  .hero, .columns { grid-template-columns: 1fr; }
  .hero { gap: 1.3rem; }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 3.8rem); }
  .hero-art img { aspect-ratio: 16 / 10; }
  .service-grid, .category-row { grid-template-columns: 1fr; }
  .category-card, .category-card:first-child { border: 0; border-bottom: 1px solid var(--line); }
  .category-card:last-child { border-bottom: 0; }
  .search-header { justify-content: stretch; }
  .search-header .site-search { width: 100%; }
  .chat-layout #main { width: calc(100% - 1.5rem); padding-block: .9rem 1.5rem; }
  .chat-layout .top { padding-block: .55rem; min-height: 3.5rem; }
  .chat-log { height: clamp(12rem, 43dvh, 24rem); }
  .chat-welcome, .chat-log li { max-width: 94%; }
}
@media (max-width: 440px) { .example-grid { grid-template-columns: 1fr; } .service-card { padding: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
