:root {
    --red: #a62b2b;
    --red-dark: #7c1f24;
    --ink: #202327;
    --muted: #646b72;
    --line: #dadddf;
    --surface: #ffffff;
    --soft: #f3f5f6;
    --warm: #fff4df;
    --green: #176b5d;
    --focus: #0b66c3;
    --shell: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.content-shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link {
    position: fixed;
    z-index: 100;
    left: 16px;
    top: -100px;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
}
.skip-link:focus { top: 12px; }

.contact-strip-group { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 14px; }
.contact-strip-label { flex: 0 0 auto; color: #aab0b5; font-size: 12px; font-weight: 750; }
.contact-strip-scroll { min-width: 0; display: flex; flex: 1 1 auto; gap: 7px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.contact-strip-scroll::-webkit-scrollbar { display: none; }
.contact-chip {
    min-width: max-content;
    min-height: 40px;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 7px 11px;
    color: #fff;
    background: #303438;
    border: 1px solid #4b5156;
    border-radius: 5px;
    cursor: pointer;
}
.contact-chip:hover { background: #3a3f44; border-color: #70777d; }
.contact-chip strong { font-size: 14px; }
.contact-chip span { color: #b8bec3; font-size: 12px; }
.contact-strip-empty { align-self: center; color: #858c92; font-size: 13px; }
.payment-button {
    min-height: 42px;
    align-self: center;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #202327;
    background: #f0c35a;
    border: 1px solid #f5d27f;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 750;
}
.payment-button:hover { background: #ffda83; }
.payment-button-icon { width: 16px; height: 16px; border: 2px solid currentColor; box-shadow: inset 0 0 0 2px #f0c35a; }

.site-header {
    position: relative;
    z-index: 20;
    color: #fff;
    background: var(--red-dark);
    border-bottom: 1px solid rgba(255,255,255,.22);
}
.header-inner {
    width: min(calc(100% - 40px), var(--shell));
    min-height: 78px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.compact-header { gap: 18px; }
.compact-header .brand { flex: 0 0 auto; }
.header-contact-area { min-width: 0; overflow: hidden; }
.compact-header .contact-strip-label { color: rgba(255,255,255,.62); }
.compact-header .contact-strip-scroll { padding-block: 9px; }
.compact-header .contact-chip { background: rgba(32,35,39,.36); border-color: rgba(255,255,255,.22); }
.compact-header .contact-chip:hover { background: rgba(32,35,39,.58); border-color: rgba(255,255,255,.42); }
.compact-header .contact-chip span { color: rgba(255,255,255,.68); }
.compact-header .contact-strip-empty { color: rgba(255,255,255,.58); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 21px;
    font-weight: 700;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; line-height: 1.25; }
.brand small { margin-top: 2px; color: rgba(255,255,255,.72); font-size: 12px; }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button-quiet { color: #fff; background: transparent; border-color: rgba(255,255,255,.3); }
.button-quiet:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.button-primary { color: #fff; background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.button-outline { color: var(--red-dark); background: #fff; border-color: #b8bfc4; }
.button-outline:hover { border-color: var(--red); color: var(--red); }

.info-dialog {
    width: calc(100% - 24px);
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    max-width: none;
    max-height: none;
    padding: 0;
    color: var(--ink);
    background: #fff;
    border: 1px solid #aeb4b8;
    border-radius: 6px;
    overflow: hidden;
}
.info-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.info-dialog::backdrop { background: rgba(20, 23, 26, .78); }
.info-dialog-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--line); }
.info-dialog-header p { margin: 0 0 2px; color: var(--red); font-size: 11px; font-weight: 800; }
.info-dialog-header h2 { margin: 0; font-size: 23px; line-height: 1.25; }
.info-dialog-header span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.dialog-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; padding: 0; color: #43494e; background: var(--soft); border: 1px solid #c9ced1; border-radius: 50%; cursor: pointer; font-size: 21px; line-height: 1; }
.dialog-close:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.contact-dialog-body { min-height: 0; display: grid; grid-template-columns: minmax(260px, .7fr) minmax(360px, 1.3fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding: clamp(22px, 4vw, 64px); overflow-y: auto; overscroll-behavior: contain; }
.contact-dialog-body.without-qr { grid-template-columns: 1fr; }
.contact-dialog-body.without-qr > div { width: min(100%, 760px); margin-inline: auto; }
.contact-detail-list { margin: 0; border-top: 1px solid var(--line); }
.contact-detail-list > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact-detail-list dt { color: var(--muted); font-size: 13px; }
.contact-detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.contact-detail-list a { color: var(--red-dark); }
.dialog-empty-copy { margin: 0; color: var(--muted); }
.qr-panel { width: min(100%, 720px); margin: 0 auto; align-self: center; padding: 10px; background: #f3f5f6; border: 1px solid #d5d9dc; border-radius: 6px; text-align: center; }
.qr-panel img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.qr-panel figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.payment-dialog { width: calc(100% - 24px); }
.payment-dialog-body { min-height: 0; display: grid; align-content: center; justify-items: center; padding: 14px; overflow-y: auto; overscroll-behavior: contain; text-align: center; }
.payment-qr-panel { width: min(100%, calc(100vh - 185px), 760px); width: min(100%, calc(100dvh - 185px), 760px); margin-inline: auto; }
.payment-dialog-body > p { margin: 14px auto 0; color: var(--muted); font-size: 14px; }
.payment-empty { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.payment-empty > span { display: grid; width: 58px; height: 58px; margin-bottom: 16px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font: 700 27px Georgia, serif; }
.payment-empty strong { font-size: 19px; }
.payment-empty p { margin: 6px 0 0; color: var(--muted); }
html.dialog-open { overflow: hidden; overscroll-behavior: none; }
body.page-scroll-locked { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }

.search-band { color: #fff; background: var(--red); }
.search-layout {
    min-height: 282px;
    display: grid;
    grid-template-columns: minmax(260px, .82fr) minmax(420px, 1.18fr);
    align-items: center;
    gap: 72px;
    padding-block: 38px;
}
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 800; }
.search-copy .eyebrow { color: #ffd27a; }
.search-copy h1 { margin: 0; font-size: 40px; line-height: 1.2; }
.search-copy p:last-child { margin: 12px 0 0; color: rgba(255,255,255,.78); }
.search-form > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.search-control { position: relative; }
.search-symbol {
    position: absolute;
    left: 19px;
    top: 50%;
    width: 17px;
    height: 17px;
    border: 2px solid #626970;
    border-radius: 50%;
    transform: translateY(-57%);
    pointer-events: none;
}
.search-symbol::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 8px;
    height: 2px;
    background: #626970;
    transform: rotate(45deg);
}
.search-control input {
    width: 100%;
    height: 62px;
    padding: 0 54px 0 52px;
    color: var(--ink);
    background: #fff;
    border: 2px solid transparent;
    border-radius: 6px;
    outline: none;
    font-size: 18px;
}
.search-control input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.search-control input:focus { border-color: #ffd27a; box-shadow: 0 0 0 3px rgba(255,210,122,.28); }
.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #555;
    background: #eef0f1;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
}
.clear-search.is-visible { display: block; }
.search-hint { margin: 8px 0 0; color: rgba(255,255,255,.68); font-size: 13px; }

.notice-band { color: #624100; background: var(--warm); border-bottom: 1px solid #ecdba7; }
.notice-band .content-shell { min-height: 52px; display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.notice-band strong { flex: 0 0 auto; font-size: 13px; }
.notice-band span { font-size: 14px; }

.category-nav-wrap { position: sticky; z-index: 10; top: 0; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.category-nav { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-filter {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    color: #42474c;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}
.category-filter span { margin-left: 3px; color: #858c92; font-size: 12px; }
.category-filter:hover { border-color: #9ea4a9; }
.category-filter.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.category-filter.is-active span { color: #dfe2e4; }
.results-bar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.results-bar p { margin: 0; color: var(--muted); font-size: 14px; }
.text-button { padding: 5px 0; color: var(--red); background: transparent; border: 0; cursor: pointer; font-weight: 700; }

.category-section { scroll-margin-top: 70px; border-top: 1px solid var(--line); }
.category-section:nth-child(even) { background: var(--soft); }
.category-section .content-shell { padding-block: 42px 48px; }
.category-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: 22px; }
.category-heading > div { display: flex; align-items: baseline; gap: 14px; }
.category-heading h2 { margin: 0; font-size: 25px; line-height: 1.25; }
.category-heading > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.category-index { margin: 0; color: var(--red); font-family: Georgia, serif; font-size: 15px; font-weight: 700; }
.table-wrap { width: 100%; overflow: hidden; background: #fff; border: 1px solid #cfd3d6; border-radius: 6px; }
.price-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.price-table th, .price-table td { padding: 15px 16px; border-bottom: 1px solid #e2e5e7; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.price-table thead th { color: #565d63; background: #eef0f1; font-size: 13px; font-weight: 700; }
.price-table tbody th { font-size: 15px; font-weight: 700; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody tr:hover > * { background: #fff9ef; }
.price-table th:nth-child(1) { width: 23%; }
.price-table th:nth-child(2) { width: 25%; }
.price-table th:nth-child(3) { width: 25%; }
.price-table th:nth-child(4) { width: 8%; }
.price-table th:nth-child(5) { width: 19%; }
.price-value { color: var(--red-dark); font-weight: 800; font-variant-numeric: tabular-nums; }
.item-note { color: var(--muted); font-size: 13px; }
.price-row.is-match > * { background: #fff3d8; }
.category-note { margin: 14px 0 0; color: #5f430b; font-size: 14px; }
.category-note strong { color: var(--red-dark); }

.empty-results { padding-block: 72px 90px; text-align: center; }
.empty-results > span { display: grid; width: 54px; height: 54px; margin: 0 auto 18px; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font: 700 25px Georgia, serif; }
.empty-results h2 { margin: 0; font-size: 24px; }
.empty-results p { margin: 8px 0 22px; color: var(--muted); }

.service-band { color: #fff; background: #1f4d47; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 54px; }
.service-grid .eyebrow { color: #9dd8ca; }
.service-grid h2 { margin: 0; font-size: 27px; }
.service-grid > div > p:last-child { margin: 10px 0 0; color: rgba(255,255,255,.75); }
.contact-list { margin: 0; border-top: 1px solid rgba(255,255,255,.2); }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.contact-list dt { color: rgba(255,255,255,.62); font-size: 13px; }
.contact-list dd { margin: 0; text-align: right; font-weight: 650; }

.source-band { background: #edf0f2; border-bottom: 1px solid var(--line); }
.source-layout { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-block: 38px; }
.source-layout h2 { margin: 0; font-size: 27px; }
.source-layout p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.source-layout > .button { flex: 0 0 auto; }
.source-dialog {
    width: calc(100% - 24px);
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    max-width: none;
    max-height: none;
    padding: 0;
    color: var(--ink);
    background: #fff;
    border: 1px solid #aeb4b8;
    border-radius: 6px;
    overflow: hidden;
}
.source-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.source-dialog::backdrop { background: rgba(20, 23, 26, .78); }
.source-dialog-header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 9px 13px 9px 18px; border-bottom: 1px solid var(--line); }
.source-dialog-header .eyebrow { margin-bottom: 2px; }
.source-dialog-header h2 { margin: 0; font-size: 20px; }
.source-dialog-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; padding: 0; color: #43494e; background: var(--soft); border: 1px solid #c9ced1; border-radius: 50%; cursor: pointer; font-size: 21px; line-height: 1; }
.source-dialog-close:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.source-dialog-body { min-height: 0; padding: 10px; overflow: auto; overscroll-behavior: contain; background: #dfe3e5; }
.source-dialog-body img { display: block; width: 100%; height: auto; background: #fff; }
.site-footer { color: #c9cdd0; background: #202327; }
.site-footer .content-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 0; font-size: 13px; }
.site-footer a { color: #fff; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.tutorial-main { min-height: calc(100vh - 154px); background: #fff; }
.tutorial-intro { color: #fff; background: var(--red); }
.tutorial-intro .content-shell { min-height: 228px; display: flex; flex-direction: column; justify-content: center; padding-block: 38px; }
.tutorial-intro .eyebrow { color: #ffd27a; }
.tutorial-intro h1 { margin: 0; font-size: 38px; line-height: 1.2; }
.tutorial-intro p:last-child { margin: 10px 0 0; color: rgba(255,255,255,.78); }
.tutorial-directory { padding-block: 42px 72px; }
.tutorial-directory-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tutorial-directory-header .eyebrow { margin-bottom: 3px; color: var(--red); }
.tutorial-directory-header h2 { margin: 0; font-size: 25px; }
.tutorial-directory-header > span { color: var(--muted); font-size: 13px; }
.tutorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tutorial-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #cfd3d6; border-radius: 6px; }
.tutorial-card-media { aspect-ratio: 16 / 9; display: grid; overflow: hidden; place-items: center; color: #fff; background: #1f4d47; text-decoration: none; }
.tutorial-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tutorial-card-media > span { text-align: center; font: 700 27px/1.25 "KaiTi", serif; }
.tutorial-card-content { padding: 18px; }
.tutorial-card-content time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tutorial-card-content h3 { margin: 7px 0 8px; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.tutorial-card-content h3 a { text-decoration: none; }
.tutorial-card-content h3 a:hover { color: var(--red); }
.tutorial-card-content p { min-height: 68px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.tutorial-read-link { color: var(--red-dark); font-size: 13px; font-weight: 750; text-decoration: none; }
.tutorial-read-link span { margin-left: 3px; }
.tutorial-empty { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tutorial-empty > span { display: grid; width: 58px; height: 58px; margin-bottom: 16px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font: 700 25px "KaiTi", serif; }
.tutorial-empty h2 { margin: 0; font-size: 21px; }
.tutorial-empty p { margin: 6px 0 0; color: var(--muted); }
.tutorial-breadcrumb { min-height: 60px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.tutorial-breadcrumb a { color: var(--red-dark); }
.tutorial-article { border-top: 1px solid var(--line); }
.tutorial-article-header { max-width: 820px; padding-block: 50px 30px; text-align: center; }
.tutorial-article-header .eyebrow { color: var(--red); }
.tutorial-article-header h1 { margin: 0; font-size: 38px; line-height: 1.3; overflow-wrap: anywhere; }
.tutorial-lead { margin: 15px auto 0; color: var(--muted); font-size: 17px; }
.tutorial-article-header time { display: block; margin-top: 16px; color: #858c92; font-size: 12px; }
.tutorial-cover { max-width: 1040px; margin-block: 0 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.tutorial-cover img { display: block; width: 100%; max-height: 680px; object-fit: contain; background: var(--soft); }
.tutorial-body { max-width: 760px; padding-bottom: 30px; color: #30353a; font-size: 17px; line-height: 1.9; }
.tutorial-body p { margin: 0 0 1.45em; overflow-wrap: anywhere; }
.tutorial-back { max-width: 760px; padding-block: 8px 70px; border-top: 1px solid var(--line); }
.tutorial-back .button { margin-top: 24px; }
.tutorial-not-found { min-height: 560px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.tutorial-not-found .eyebrow { color: var(--red); }
.tutorial-not-found h1 { margin: 0 0 22px; font-size: 29px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (max-width: 800px) {
    .content-shell, .header-inner { width: min(calc(100% - 28px), var(--shell)); }
    .contact-strip-group { gap: 8px; }
    .contact-strip-label { display: none; }
    .payment-button { min-height: 38px; padding: 7px 10px; font-size: 13px; }
    .contact-chip { min-height: 38px; padding-inline: 10px; }
    .header-inner { min-height: 68px; gap: 12px; }
    .compact-header { gap: 8px; }
    .compact-header .brand > span:last-child { display: none; }
    .compact-header .contact-strip-scroll { padding-block: 6px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand strong { font-size: 17px; }
    .brand small { display: none; }
    .header-actions .button { min-height: 38px; padding: 7px 10px; font-size: 13px; }
    .search-layout { min-height: 0; grid-template-columns: 1fr; gap: 26px; padding-block: 32px 36px; }
    .search-copy h1 { font-size: 31px; }
    .search-control input { height: 56px; font-size: 16px; }
    .notice-band .content-shell { align-items: flex-start; flex-direction: column; gap: 2px; padding-block: 10px; }
    .category-nav { width: 100%; padding-inline: 14px; }
    .results-bar { min-height: 56px; }
    .category-section .content-shell { padding-block: 32px 36px; }
    .category-heading { grid-template-columns: 1fr; gap: 7px; }
    .category-heading > p { text-align: left; }
    .category-heading h2 { font-size: 22px; }
    .table-wrap { overflow: visible; border: 0; background: transparent; }
    .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100% !important; }
    .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .price-table tbody { display: grid; gap: 10px; }
    .price-table tr { overflow: hidden; background: #fff; border: 1px solid #d2d6d9; border-radius: 6px; }
    .price-table th, .price-table td { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-bottom: 1px solid #e5e7e9; }
    .price-table th::before, .price-table td::before { content: attr(data-label); color: #737a80; font-size: 12px; font-weight: 500; }
    .price-table tbody th { padding-top: 13px; font-size: 15px; }
    .price-table tbody tr > *:last-child { padding-bottom: 13px; border-bottom: 0; }
    .item-note { font-size: 13px; }
    .service-grid { grid-template-columns: 1fr; gap: 30px; }
    .service-grid { padding-block: 42px; }
    .source-layout { align-items: flex-start; flex-direction: column; gap: 20px; padding-block: 34px; }
    .source-dialog-body { padding: 8px; }
    .source-dialog-body img { width: 900px; max-width: none; }
    .contact-dialog-body { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .qr-panel { width: min(100%, 680px); margin-inline: auto; }
    .info-dialog { width: calc(100% - 12px); height: calc(100vh - 12px); height: calc(100dvh - 12px); }
    .info-dialog-header { min-height: 58px; padding: 8px 10px 8px 14px; }
    .info-dialog-header h2 { font-size: 20px; }
    .payment-dialog-body { padding: 8px; }
    .payment-qr-panel { width: min(100%, calc(100vh - 150px)); width: min(100%, calc(100dvh - 150px)); }
    .source-dialog { width: calc(100% - 12px); height: calc(100vh - 12px); height: calc(100dvh - 12px); }
    .site-footer .content-shell { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding-block: 18px; }
    .tutorial-intro .content-shell { min-height: 190px; padding-block: 32px; }
    .tutorial-intro h1 { font-size: 31px; }
    .tutorial-directory { padding-block: 32px 54px; }
    .tutorial-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tutorial-card-content { padding: 15px; }
    .tutorial-card-content p { min-height: 0; }
    .tutorial-article-header { padding-block: 38px 24px; }
    .tutorial-article-header h1 { font-size: 30px; }
    .tutorial-lead { font-size: 16px; }
    .tutorial-cover { margin-bottom: 28px; }
    .tutorial-body { font-size: 16px; line-height: 1.85; }
    .tutorial-not-found { min-height: 480px; }
}

@media (max-width: 430px) {
    .compact-header .header-actions { gap: 5px; }
    .compact-header .header-actions .button, .compact-header .payment-button { padding-inline: 8px; }
    .compact-header .contact-strip-empty { font-size: 0; }
    .compact-header .contact-strip-empty::after { content: "待添加"; font-size: 12px; }
    .contact-chip span { display: none; }
    .payment-button-icon { display: none; }
    .header-actions #print-button { display: none; }
    .search-copy h1 { font-size: 28px; }
    .category-heading > div { gap: 9px; }
    .price-table th, .price-table td { grid-template-columns: 82px minmax(0, 1fr); }
    .contact-list > div { grid-template-columns: 90px 1fr; }
    .tutorial-grid { grid-template-columns: 1fr; }
    .tutorial-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
    .tutorial-card-media { aspect-ratio: auto; min-height: 100%; }
    .tutorial-card-media > span { font-size: 21px; }
    .tutorial-card-content h3 { font-size: 17px; }
    .tutorial-card-content p { display: none; }
    .tutorial-article-header h1 { font-size: 27px; }
}

@media print {
    @page { margin: 12mm; }
    body { color: #000; font-size: 10pt; }
    .contact-strip, .site-header, .search-band, .notice-band, .category-nav-wrap, .results-bar, .service-band, .source-band, .site-footer, .empty-results, .info-dialog { display: none !important; }
    .category-section, .category-section:nth-child(even) { display: block !important; break-inside: avoid; background: #fff; border: 0; }
    .category-section .content-shell { width: 100%; padding: 0 0 8mm; }
    .category-heading { margin-bottom: 3mm; }
    .category-heading h2 { font-size: 15pt; }
    .table-wrap { border-color: #777; }
    .price-table th, .price-table td { padding: 2.2mm 2.6mm; border-color: #bbb; }
    .price-row[hidden] { display: none !important; }
}
