/*
Theme Name: 万盛宣传站
Version: 1.0.0
Text Domain: a1-wansheng
*/
:root {
    --ink: #101c2a;
    --muted: #465667;
    --blue: #0669bd;
    --cyan: #13b9ef;
    --line: #dce9f3;
    --ice: #edf7fd;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.shell { width: min(100% - 100px, 1210px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: 10px; left: 10px; transform: translateY(-150%); padding: .5em 1em; background: white; }
.skip-link:focus { transform: none; }
body { --ws-toolbar-offset: 0px; }
body.admin-bar { --ws-toolbar-offset: 32px; }
@media (min-width: 601px) and (max-width: 782px) {
    body.admin-bar { --ws-toolbar-offset: 46px; }
}
@media (max-width: 600px) {
    /* WordPress switches its toolbar to absolute positioning at this width. */
    body.admin-bar { --ws-toolbar-offset: 0px; }
}
.site-header {
    position: sticky;
    z-index: 3;
    top: var(--ws-toolbar-offset);
    color: #10243c;
    background: linear-gradient(180deg, #fafdff, #eaf6fe);
    box-shadow: 0 4px 13px #1768a31c;
}
.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 -3px;
    height: 8px;
    pointer-events: none;
    background: url("assets/header-ice-edge.webp") center / 100% 100% no-repeat;
}
.site-header-inner {
    min-height: clamp(66px, 6vw, 90px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1.75vw, 28px);
}
.site-brand {
    font-size: clamp(23px, 2.55vw, 39px);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.custom-logo { max-width: 140px; max-height: 44px; width: auto; height: auto; }
.site-header nav {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: clamp(2px, 1vw, 15px);
}
.site-header nav a {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 5px clamp(6px, 1vw, 16px);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: clamp(13px, 1.45vw, 22px);
    font-weight: 700;
    line-height: 1.32;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}
.site-header nav a:hover { color: #075da6; background: #e0f3ff; }
.site-header nav a[aria-current="location"] {
    isolation: isolate;
    background: none;
    color: #082c54;
    filter: drop-shadow(0 2px 3px #2079c13b);
}
.site-header nav a[aria-current="location"]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    border: 8px solid transparent;
    border-image: url("assets/contact-crystal-pane.webp") 60 60 72 60 fill stretch;
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}
@media (min-width: 1300px) {
    .site-header-inner { width: min(100% - 100px, 1460px); }
    .site-header nav a { min-height: 52px; }
}
@media (forced-colors: active) {
    .site-header nav a[aria-current="location"] { border-color: LinkText; text-decoration: underline; }
    .site-header nav a[aria-current="location"]::before { display: none; }
}
.directory { background: linear-gradient(#f5faff 0, white 130px); padding: 39px 0 61px; }
.section-heading { text-align: center; }
.section-heading h1, .section-heading h2 { font-weight: 820; color: #0a1320; line-height: 1.23; }
.directory .section-heading :is(h1, h2) { font-size: clamp(31px, 3.6vw, 46px); }
.section-heading h2 { font-size: clamp(25px, 3vw, 37px); }
.section-heading h1::after, .section-heading h2::after { content: ""; display: block; margin: 16px auto 0; border-radius: 3px; width: 51px; height: 3px; background: var(--cyan); }
.section-heading p { margin: 14px 0 0; color: var(--muted); }
.directory-layout { display: grid; grid-template-columns: minmax(120px, 20%) minmax(0, 1fr); gap: 25px; margin-top: 51px; align-items: start; }
.category-list { border-right: 1px solid var(--line); display: grid; align-content: start; gap: 5px; padding-right: 21px; }
.category-list a { display: flex; min-height: 61px; align-items: center; gap: 19px; border-radius: 8px; padding: 4px 8px; position: relative; font-size: 17px; font-weight: 720; text-decoration: none; }
.category-list a:hover { background: #f0f8fe; }
.category-list a[aria-current] { color: var(--blue); }
.category-list a[aria-current]::after { content: ""; position: absolute; right: -22px; top: 20%; height: 60%; width: 2px; background: var(--cyan); }
.category-icon { width: 48px; height: 48px; object-fit: contain; flex: none; }
.category-list a[aria-current] .category-icon { padding: 3px; background: center / 100% 100% no-repeat url("assets/sidebar-tile-selected-no-marker-v1-72.webp"); }
.category-panel { grid-column: 2; min-width: 0; }
.provider-list { list-style: none; display: grid; align-content: start; padding: 0; margin: 0; gap: 10px; }
.provider-card { position: relative; display: flex; align-items: center; overflow: hidden; min-height: 93px; border-radius: 13px; isolation: isolate; background: #eaf7ff center / 100% 100% no-repeat url("assets/glass-card-base-v7-hd-unified.webp"); }
.provider-card:first-child { min-height: 168px; }
.provider-copy { position: relative; z-index: 1; padding: 13px 11px 13px clamp(13px, 1.6vw, 23px); max-width: 71%; overflow-wrap: anywhere; }
.provider-title { font-size: clamp(17px, 1.8vw, 25px); line-height: 1.2; font-weight: 800; }
.provider-title em { color: var(--blue); }
.provider-copy p { margin-top: 5px; font-size: clamp(10px, 1.03vw, 13px); color: #263f59; }
.provider-divider { width: 105px; height: auto; margin-top: 7px; }
.provider-art { position: absolute; z-index: -1; inset: auto 3px 3px auto; width: 53%; height: calc(100% - 6px); object-fit: contain; object-position: right bottom; }
.provider-card:not(:first-child) .provider-art { height: 130%; bottom: -23%; }
.provider-card:first-child .provider-art { width: 62%; }
.info-section { padding: 31px 0 46px; }
.faq-section { background: var(--ice); }
.reading-width { width: min(100%, 780px); margin: 23px auto 0; color: var(--muted); }
.reading-width p + p { margin-top: .75em; }
.reading-width details { background: white; border-radius: 9px; padding: 11px 15px; border: 1px solid var(--line); }
.reading-width details + details { margin-top: 10px; }
.reading-width summary { cursor: pointer; font-weight: 680; color: var(--ink); }
.reading-width details p { padding: 8px 0 2px; }
.site-footer {
    border-top: 1px solid #6cafe0;
    background: #071a34 url("assets/footer-folded-light.webp") center bottom / cover no-repeat;
    color: #f4faff;
}
.site-footer-inner {
    display: grid;
    gap: clamp(14px, 2.45vw, 32px);
    padding-block: clamp(34px, 5vw, 68px) clamp(56px, 10.8vw, 145px);
}
.site-footer-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #8cb6d6a3;
    padding: 0 clamp(0px, 2vw, 25px) clamp(19px, 3.1vw, 42px);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline-color: #a9d9ff; }
.site-footer-brand {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: clamp(12px, 2.5vw, 29px);
    font-size: clamp(26px, 4.3vw, 58px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}
.site-footer-brand small {
    padding-left: clamp(12px, 2.5vw, 29px);
    border-left: 1px solid #66b7f1;
    color: #d3e5f6;
    font-size: clamp(13px, 1.9vw, 24px);
    font-weight: 500;
    letter-spacing: .04em;
}
.site-footer-nav {
    display: flex;
    background: #1747784d;
    font-size: clamp(14px, 1.85vw, 22px);
    font-weight: 620;
    text-align: center;
}
.site-footer-nav a {
    display: grid;
    flex: 1 1 0;
    place-items: center;
    min-width: 0;
    min-height: clamp(46px, 6.8vw, 85px);
    padding: 6px 3px;
    overflow-wrap: anywhere;
    box-shadow: inset -1px 0 #7fb5de22;
}
.site-footer-nav a:last-child { box-shadow: none; }
.site-footer-nav a:hover { background: #337ab044; }
.site-footer-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 5px clamp(9px, 2vw, 23px);
    border: 1px solid #93b5d6;
    border-radius: 999px;
    color: #e2effc;
    font-size: clamp(13px, 1.55vw, 18px);
    white-space: nowrap;
}
@media (max-width: 600px) {
    .site-footer { background-position: right bottom; }
    .site-footer-brand { display: grid; gap: 4px; }
    .site-footer-brand small { padding: 0; border: 0; }
    .site-footer-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
        background: transparent;
    }
    .site-footer-nav a { background: #17477865; box-shadow: none; }
}
.standard-page { padding-block: 48px; }
.standard-page h1 { margin-bottom: 18px; }

@media (max-width: 850px) {
    .shell { width: calc(100% - 44px); }
    .directory-layout { gap: 18px; }
    .category-list { padding-right: 12px; }
    .category-list a { gap: 10px; }
    .category-list a[aria-current]::after { right: -13px; }
}

@media (max-width: 680px) {
    .shell { width: calc(100% - 28px); }
    .site-header-inner {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        padding-block: 8px 7px;
        gap: 4px;
    }
    .site-brand, .custom-logo-link { align-self: start; }
    .site-brand { font-size: clamp(18px, 4.7vw, 23px); }
    .site-header nav {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 2px;
    }
    .site-header nav a { min-height: 36px; padding: 4px 1px; font-size: clamp(11px, 3vw, 13px); }
    .custom-logo { max-width: 86px; max-height: 37px; }
    .directory { padding: 26px 0 40px; }
    .directory .section-heading :is(h1, h2) { font-size: clamp(23px, 7.1vw, 31px); }
    .section-heading h1::after, .section-heading h2::after { margin-top: 10px; width: 36px; }
    .section-heading p { margin-top: 11px; font-size: 12px; }
    .directory-layout { grid-template-columns: 60px minmax(0, 1fr); gap: 16px 9px; margin-top: 28px; }
    .category-list { grid-column: 1; gap: 2px; padding: 3px; border: 1px solid #cce6f7; border-radius: 12px; background: #eef8ff; }
    .category-list a { min-height: 60px; padding: 1px; flex-direction: column; gap: 0; justify-content: center; font-size: 11px; }
    .category-list a[aria-current] { color: #fff; background: #076cba center / 100% 100% no-repeat url("assets/sidebar-tile-selected-no-marker-v1-72.webp"); }
    .category-list a[aria-current]::after { display: none; }
    .category-list a[aria-current] .category-icon { background: none; padding: 0; }
    .category-icon { width: 31px; height: 31px; }
    .provider-list { gap: 9px; }
    .provider-card, .provider-card:first-child { min-height: clamp(89px, 26vw, 108px); border-radius: 10px; }
    .provider-copy { padding: 10px 8px 10px 13px; max-width: 67%; }
    .provider-title { font-size: clamp(14px, 4.2vw, 19px); }
    .provider-divider { width: min(75px, 100%); }
    .provider-art, .provider-card:first-child .provider-art { width: 60%; }
    .provider-card:not(:first-child) .provider-art { height: 115%; bottom: -12%; }
    .info-section { padding: 26px 0 33px; }
}
.article-return { display: inline-block; color: var(--blue); margin-bottom: 12px; }
.article-body { max-width: 70ch; color: var(--muted); line-height: 1.8; }
.article-body p + p { margin-top: 1em; }


.provider-card.has-screenshot {
    display: grid;
    gap: 3px;
    padding: 8px;
    border: 1px solid #c6e2f4;
    background: #edf7ff;
}
.has-screenshot .provider-copy { max-width: 100%; padding: 4px 7px; }
.has-screenshot .provider-divider { display: none; }
.provider-screenshot { display: block; border-radius: 8px; background: #dcecf7; }
.provider-screenshot img { width: 100%; height: auto; max-height: 230px; border-radius: inherit; object-fit: contain; }
@media (max-width: 680px) {
    .provider-screenshot img { max-height: 175px; }
}

@media (max-width: 360px) {
    .site-header nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.site-header.has-language-switcher .site-header-inner { flex-wrap: wrap; padding-block: 8px; row-gap: 5px; }
.site-header .language-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    margin-inline-start: auto;
}
.site-header .language-switcher a { min-height: 30px; font-size: 13px; }
.site-header .language-switcher a[aria-current="true"] { color: var(--blue); text-decoration: underline; }
