:root {
    --primary: #8b1e23;
    --primary-dark: #74171b;
    --primary-soft: #f8eeee;
    --primary-soft-hover: #f4e7e8;

    --gold: #b58b59;

    --text: #202226;
    --text-2: #62676d;
    --text-3: #8f949a;
    --text-4: #a8acb1;

    --bg: #f6f7f8;
    --card: #ffffff;

    --line: rgba(28, 32, 38, 0.075);
    --line-hover: rgba(139, 30, 35, 0.2);

    --shadow: 0 2px 10px rgba(24, 28, 34, 0.025);
    --shadow-hover: 0 10px 28px rgba(72, 28, 30, 0.07);

    --radius: 14px;
    --max-width: var(--portal-page-max-width, 1440px);

    --header-height: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--text);

    background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 20%, #f8f9fa 38%, #f6f7f8 60%, #f6f7f8 100%);

    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

button,
a,
.district-card {
    -webkit-tap-highlight-color: transparent;
}

/* 顶部整体区域 */

.page-top {
    position: relative;
    isolation: isolate;
    padding-top: var(--header-height);
}

/* 顶部共享环境背景 */

.top-environment {
    position: absolute;
    z-index: -2;
    left: 0;
    right: 0;
    top: 0;
    /* 装饰层只能覆盖顶部区域，避免溢出后给下方透明内容叠加一层渐变。 */
    height: 100%;
    overflow: hidden;
    pointer-events: none;

    background:
        radial-gradient(circle at 87% 35%, rgba(139, 30, 35, 0.075), transparent 31%), radial-gradient(circle at 72% 108%, rgba(181, 139, 89, 0.055), transparent 32%),
        radial-gradient(circle at 15% -10%, rgba(255, 255, 255, 0.95), transparent 40%);
}

.top-environment::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 240px;
    right: 17%;
    top: -105px;
    border-radius: 50%;

    background: radial-gradient(circle, rgba(181, 139, 89, 0.055), rgba(181, 139, 89, 0) 70%);

    filter: blur(8px);
}

/* 重庆地图水印 */

.top-map {
    position: absolute;
    right: -18px;
    top: -96px;
    width: 530px;
    height: 390px;
    opacity: 0.041;
    pointer-events: none;
    user-select: none;
}

.top-map svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 淡法字 */

.top-law {
    position: absolute;
    right: 90px;
    top: 118px;

    color: rgba(139, 30, 35, 0.021);

    font-family: 'Songti SC', 'STSong', serif;

    font-size: 68px;
    line-height: 1;
    font-weight: 700;

    pointer-events: none;
    user-select: none;
}

/* Fixed Header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    height: var(--header-height);

    /*
        默认先给一个稳妥的兼容底色。
        老浏览器即使不支持 backdrop-filter，
        Header 也不会透明到影响文字阅读。
    */
    background: rgba(255, 255, 255, 0.9);

    box-shadow: none;

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease;
}

/*
    支持磨砂时再启用 Apple 风格玻璃效果
*/
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .header {
        background: rgba(255, 255, 255, 0.46);

        backdrop-filter: blur(30px) saturate(180%);

        -webkit-backdrop-filter: blur(30px) saturate(180%);
    }

    .header.scrolled {
        background: rgba(255, 255, 255, 0.82);
    }
}

/*
    不支持磨砂时，滚动后保持更稳定的白色背景
*/
.header.scrolled {
    background: rgba(255, 255, 255, 0.96);

    box-shadow: 0 8px 28px rgba(20, 24, 30, 0.055);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 58%);
}

.header-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: var(--max-width);
    height: 100%;

    margin: 0 auto;
    padding: 0 var(--portal-page-inline-padding, 32px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* 品牌 */

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
}

.brand-mark {
    position: relative;

    width: 35px;
    height: 35px;

    flex: none;
    margin-right: 12px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    color: #fff;

    background: linear-gradient(145deg, #a12a2f 0%, #81191e 100%);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 4px 11px rgba(105, 24, 29, 0.1);
}

.brand-mark::before {
    content: '';
    position: absolute;
    inset: 0;

    background: linear-gradient(145deg, rgba(255, 255, 255, 0.19), transparent 40%);

    pointer-events: none;
}

.brand-mark::after {
    content: '';
    position: absolute;

    width: 22px;
    height: 22px;

    left: -6px;
    bottom: -8px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);

    filter: blur(2px);
}

.brand-mark span {
    position: relative;
    z-index: 1;

    font-family: 'Songti SC', 'STSong', 'SimSun', serif;

    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

.brand-text {
    min-width: 0;
}

.brand-title {
    color: #22252a;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.brand-subtitle {
    margin-top: 2px;
    color: #9ba0a6;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
}

/* 顶部菜单 */

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: none;
}

.header-link {
    appearance: none;
    padding: 7px 12px;
    border-radius: 8px;
    background: transparent;
    color: #6c7177;
    font-size: 12px;
    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.header-link:hover {
    color: var(--primary);
    background: rgba(139, 30, 35, 0.045);
}

.header-link:focus-visible {
    outline: 2px solid rgba(139, 30, 35, 0.2);
    outline-offset: 2px;
}

/* 信息弹窗 */

.info-dialog {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.info-dialog.open {
    display: flex;
}

.info-dialog-mask {
    position: absolute;
    inset: 0;
    background: rgba(25, 27, 31, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.info-dialog-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(139, 30, 35, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(31, 24, 25, 0.18);
}

.info-dialog-header {
    padding: 25px 28px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.info-dialog-kicker {
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 650;
}

.info-dialog-title {
    color: #202226;
    font-size: 24px;
    line-height: 1.35;
}

.info-dialog-close {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: #f3f4f5;
    color: #6e7379;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.info-dialog-close:hover {
    color: var(--primary);
    background: var(--primary-soft);
    transform: rotate(6deg);
}

.info-dialog-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 24px 28px 28px;
}

.info-dialog-content {
    display: none;
}

.info-dialog-content.active {
    display: block;
}

.guide-list {
    list-style: none;
    counter-reset: guide-step;
    display: grid;
    gap: 12px;
}

.guide-list li {
    position: relative;
    min-height: 58px;
    padding: 10px 12px 10px 52px;
    border-radius: 12px;
    background: #f8f8f9;
    counter-increment: guide-step;
}

.guide-list li::before {
    content: counter(guide-step);
    position: absolute;
    left: 13px;
    top: 13px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.guide-list strong,
.guide-list span {
    display: block;
}

.guide-list strong {
    margin-bottom: 3px;
    color: #292c31;
    font-size: 14px;
}

.guide-list span,
.question-list p,
.info-dialog-note {
    color: #747a80;
    font-size: 13px;
    line-height: 1.65;
}

.info-dialog-note {
    margin-top: 16px;
    padding: 11px 14px;
    border-left: 2px solid rgba(181, 139, 89, 0.5);
    background: #fcfaf7;
}

.question-list article + article {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.question-list h3 {
    margin-bottom: 6px;
    color: #292c31;
    font-size: 15px;
    line-height: 1.5;
}

.support-card p,
.privacy-content p {
    color: #747a80;
    font-size: 13px;
    line-height: 1.75;
}

.support-company {
    margin-bottom: 8px;
    color: #747a80;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
}

.support-list {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.support-list > div {
    min-height: 48px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.support-list > div + div {
    border-top: 1px solid var(--line);
}

.support-list dt {
    color: #777c82;
    font-size: 13px;
}

.support-list dd,
.support-list a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.privacy-content h3 {
    margin: 18px 0 5px;
    color: #292c31;
    font-size: 15px;
}

body.dialog-open {
    overflow: hidden;
}

/* Hero */

.hero {
    position: relative;
    z-index: 1;
    background: transparent;
}

.hero-inner {
    width: 100%;
    max-width: var(--max-width);

    min-height: 124px;

    margin: 0 auto;

    padding: 24px var(--portal-page-inline-padding, 32px) 23px;

    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    color: #202226;
    font-size: 30px;
    line-height: 1.32;
    font-weight: 650;
    letter-spacing: -0.45px;
}

.hero-title strong {
    color: #303338;
    font-weight: 700;
}

.hero-scope {
    margin-top: 10px;
    color: #666c72;
    font-size: 14px;
    line-height: 1.65;
}

/* 主内容 */

.main {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    padding: 12px var(--portal-page-inline-padding, 32px) 62px;
}

/* Toolbar */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 26px;

    margin-bottom: 13px;
}

.toolbar-left {
    min-width: 0;
    opacity: 1;
}

.section-title {
    color: #17191d !important;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    opacity: 1 !important;
    -webkit-text-fill-color: #17191d;
}

.section-desc {
    margin-top: 3px;
    color: #858b92;
    font-size: 11px;
    line-height: 1.6;
}

/* 搜索 */

.search {
    position: relative;
    width: 335px;
    flex: none;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;

    width: 16px;
    height: 16px;

    transform: translateY(-50%);
    stroke: #969ba1;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 40px;

    padding: 0 40px;

    outline: none;

    border: 1px solid rgba(27, 31, 37, 0.09);

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.94);

    color: #292c31;
    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.search-input::placeholder {
    color: #a3a8ae;
}

.search-input:hover {
    border-color: rgba(27, 31, 37, 0.14);
    background: #fff;
}

.search-input:focus {
    border-color: rgba(139, 30, 35, 0.36);
    background: #fff;

    box-shadow: 0 0 0 3px rgba(139, 30, 35, 0.048);
}

/* 字母筛选 */

.letter-filter-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
    min-width: 0;
}

.letter-label {
    flex: none;
    color: #979ba1;
    font-size: 10px;
    white-space: nowrap;
}

.letter-filter {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    min-width: 0;
}

.letter-btn {
    min-width: 29px;
    height: 29px;
    padding: 0 8px;

    border-radius: 7px;

    background: transparent;
    color: #70757b;

    font-size: 11px;
    font-weight: 500;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.letter-btn.all {
    min-width: 54px;
    padding: 0 12px;
}

.letter-btn:hover {
    color: var(--primary);
    background: rgba(139, 30, 35, 0.04);
}

.letter-btn.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 650;
}

.letter-btn.active:hover {
    background: var(--primary-soft-hover);
}

/* 当前筛选提示 */

.filter-result {
    display: none;
    margin: -3px 0 13px;
    color: #94999f;
    font-size: 10px;
}

.filter-result strong {
    color: var(--primary);
    font-weight: 600;
}

/* 区县网格 */

/*
    先定义 Flex fallback，
    老浏览器不支持 Grid 时至少还能正常排列。
*/
.district-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -6px;
}

.district-card {
    width: calc(20% - 12px);
    margin: 6px;
}

/*
    支持 Grid 的现代浏览器使用 Grid。
*/
@supports (display: grid) {
    .district-grid {
        display: grid;

        grid-template-columns: repeat(5, minmax(0, 1fr));

        gap: 12px;

        margin: 0;
    }

    .district-card {
        width: auto;
        margin: 0;
    }
}

/* 区县卡片 */

.district-card {
    position: relative;
    min-height: 84px;
    overflow: hidden;

    border: 1px solid var(--line);

    border-radius: var(--radius);

    background: rgba(255, 255, 255, 0.96);

    box-shadow: var(--shadow);

    cursor: pointer;
    outline: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.district-card::before {
    content: '';

    position: absolute;

    left: 0;
    top: 15px;
    bottom: 15px;

    width: 2px;

    border-radius: 0 2px 2px 0;

    background: var(--primary);

    opacity: 0;

    transform: scaleY(0.55);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.district-card::after {
    content: '';

    position: absolute;

    width: 100px;
    height: 100px;

    right: -50px;
    bottom: -58px;

    border-radius: 50%;

    background: radial-gradient(circle, rgba(139, 30, 35, 0.044), rgba(139, 30, 35, 0) 70%);

    pointer-events: none;
}

.district-card:hover,
.district-card:focus-visible {
    z-index: 2;

    transform: translateY(-2px);

    border-color: var(--line-hover);

    background: #fff;

    box-shadow: var(--shadow-hover);
}

.district-card:hover::before,
.district-card:focus-visible::before {
    opacity: 1;
    transform: scaleY(1);
}

.district-inner {
    position: relative;
    z-index: 1;

    min-height: 84px;

    padding: 13px 16px 11px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.district-name {
    color: #25282d;

    font-size: 16px;
    line-height: 1.45;

    font-weight: 640;

    letter-spacing: 0.1px;

    transition: color 0.2s ease;
}

.district-card:hover .district-name,
.district-card:focus-visible .district-name {
    color: var(--primary);
}

.district-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.district-desc {
    min-width: 0;
    overflow: hidden;

    color: #7c8288;

    font-size: 11px;
    line-height: 1.4;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-arrow {
    width: 26px;
    height: 26px;

    flex: none;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f2f3;

    transform: translateX(0) scale(1);

    transition:
        background 0.2s ease,
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.2s ease;
}

.card-arrow svg {
    width: 12px;
    height: 12px;

    stroke: #686e74;

    transition:
        stroke 0.2s ease,
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.district-card:hover .card-arrow,
.district-card:focus-visible .card-arrow {
    background: var(--primary);
    box-shadow: 0 4px 10px rgba(139, 30, 35, 0.18);
    transform: translateX(3px) scale(1.05);
}

.district-card:hover .card-arrow svg,
.district-card:focus-visible .card-arrow svg {
    stroke: #fff;
    transform: translateX(1px);
}

.district-card:active {
    transform: translateY(0);
}

.district-card:active .card-arrow {
    box-shadow: 0 2px 5px rgba(139, 30, 35, 0.14);
    transform: translateX(3px) scale(0.96);
}

/* 空状态 */

.empty {
    display: none;
    padding: 65px 20px 78px;
    text-align: center;
}

.empty-icon {
    width: 42px;
    height: 42px;

    margin: 0 auto 11px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eceef0;
}

.empty-icon svg {
    width: 18px;
    height: 18px;
    stroke: #93989e;
}

.empty-title {
    color: #70757b;
    font-size: 13px;
}

.empty-desc {
    margin-top: 4px;
    color: #a1a5aa;
    font-size: 10px;
}

/* Footer */

.footer {
    background: rgba(255, 255, 255, 0.52);
}

.footer-inner {
    width: 100%;
    max-width: var(--max-width);

    min-height: 88px;

    margin: 0 auto;

    padding: 24px var(--portal-page-inline-padding, 32px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}

.footer-left {
    color: #969ba1;
    font-size: 10px;
    line-height: 1.85;
}

.footer-left strong {
    color: #686d73;
    font-weight: 500;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 18px;

    color: #858a90;

    font-size: 10px;
}

.footer-links button {
    padding: 4px 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links button:hover,
.footer-links button:focus-visible {
    color: var(--primary);
}

/* 宽度适配 */

@media (max-width: 1300px) {
    .district-card {
        width: calc(25% - 12px);
    }

    @supports (display: grid) {
        .district-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .district-card {
            width: auto;
        }
    }

    .top-map {
        right: -115px;
    }
}

@media (max-width: 1024px) {
    .district-card {
        width: calc(33.333% - 12px);
    }

    @supports (display: grid) {
        .district-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .district-card {
            width: auto;
        }
    }

    .hero-title {
        font-size: 28px;
    }
}

@media (max-width: 820px) {
    .header-inner,
    .hero-inner,
    .main,
    .footer-inner {
        padding-left: var(--portal-page-inline-padding, 22px);
        padding-right: var(--portal-page-inline-padding, 22px);
    }

    .brand-subtitle {
        display: none;
    }

    .hero-inner {
        min-height: 100px;
        padding-top: 16px;
        padding-bottom: 15px;
    }

    .hero-title {
        font-size: 26px;
    }

    .top-map {
        top: -90px;
        right: -180px;

        width: 470px;
        height: 345px;
    }

    .top-law {
        display: none;
    }

    .toolbar {
        align-items: flex-start;
        flex-direction: column;

        gap: 11px;

        margin-bottom: 12px;
    }

    .search {
        width: 100%;
    }

    .letter-filter-wrap {
        align-items: flex-start;
        gap: 8px;
    }

    .letter-label {
        padding-top: 9px;
    }

    .district-card {
        width: calc(50% - 12px);
    }

    @supports (display: grid) {
        .district-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));

            gap: 10px;
        }

        .district-card {
            width: auto;
        }
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 560px) {
    :root {
        --radius: 12px;
        --header-height: 58px;
    }

    .header {
        height: var(--header-height);

        background: rgba(255, 255, 255, 0.92);
    }

    @supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
        .header {
            background: rgba(255, 255, 255, 0.5);

            backdrop-filter: blur(26px) saturate(170%);

            -webkit-backdrop-filter: blur(26px) saturate(170%);
        }

        .header.scrolled {
            background: rgba(255, 255, 255, 0.84);
        }
    }

    .header-inner {
        padding-left: var(--portal-page-inline-padding, 15px);
        padding-right: var(--portal-page-inline-padding, 15px);
    }

    .brand-mark {
        width: 33px;
        height: 33px;

        margin-right: 9px;

        border-radius: 9px;
    }

    .brand-mark span {
        font-size: 18px;
    }

    .brand-title {
        font-size: 14px;
    }

    .header-nav {
        display: none;
    }

    .hero-inner {
        min-height: 100px;

        padding: 16px;
    }

    .hero-title {
        font-size: 23px;
        line-height: 1.38;
        letter-spacing: -0.3px;
    }

    .hero-scope {
        margin-top: 8px;
        font-size: 12px;
    }

    .top-map {
        right: -235px;
        top: -86px;
        opacity: 0.033;
    }

    .main {
        padding: 13px 15px 46px;
    }

    .toolbar {
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 17px;
    }

    .section-desc {
        margin-top: 2px;
    }

    .search-input {
        height: 39px;
    }

    .letter-filter-wrap {
        display: block;
        margin: 0 -15px 14px;
    }

    .letter-label {
        display: none;
    }

    .letter-filter {
        display: flex;
        flex-wrap: nowrap;
        gap: 3px;

        padding: 0 15px 2px;

        overflow-x: auto;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }

    .letter-filter::-webkit-scrollbar {
        display: none;
    }

    .letter-btn {
        min-width: 29px;
        flex: none;
        height: 29px;
        padding: 0 8px;
        font-size: 10px;
    }

    .letter-btn.all {
        min-width: 50px;
    }

    .filter-result {
        margin-top: -4px;
    }

    .district-grid {
        margin: -4px;
    }

    .district-card {
        width: calc(50% - 8px);
        margin: 4px;
        min-height: 88px;
    }

    @supports (display: grid) {
        .district-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin: 0;
        }

        .district-card {
            width: auto;
            margin: 0;
        }
    }

    .district-inner {
        min-height: 88px;

        padding: 13px 13px 11px;
    }

    .district-name {
        font-size: 14px;
    }

    .district-desc {
        max-width: 100px;
        font-size: 9px;
    }

    .card-arrow {
        width: 24px;
        height: 24px;
    }

    .footer-inner {
        padding: 22px 16px;
    }
}

@media (max-width: 350px) {
    .district-card {
        width: calc(100% - 8px);
    }

    @supports (display: grid) {
        .district-grid {
            grid-template-columns: 1fr;
        }

        .district-card {
            width: auto;
        }
    }

    .district-desc {
        max-width: none;
    }
}

/* 低高度设备适配 重点照顾： 1280×720 1366×768 浏览器 UI 占据较多高度的办公电脑 */

@media (max-height: 700px) and (min-width: 821px) {
    .hero-inner {
        min-height: 100px;

        padding-top: 15px;
        padding-bottom: 14px;
    }

    .hero-title {
        font-size: 27px;
    }

    .main {
        padding-top: 12px;
    }

    .toolbar {
        margin-bottom: 9px;
    }

    .section-desc {
        margin-top: 2px;
    }

    .letter-filter-wrap {
        margin-bottom: 11px;
    }

    .district-card,
    .district-inner {
        min-height: 80px;
    }

    .district-inner {
        padding: 14px 16px 12px;
    }
}

/* 极低高度设备 */

@media (max-height: 600px) and (min-width: 821px) {
    .hero-inner {
        min-height: 92px;

        padding-top: 12px;
        padding-bottom: 11px;
    }

    .hero-title {
        font-size: 25px;
    }

    .main {
        padding-top: 10px;
    }

    .district-card,
    .district-inner {
        min-height: 76px;
    }
}

/* 动画 */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeUp 0.45s ease both;
}

.district-card {
    animation: fadeUp 0.34s ease both;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
