:root {
    --paper: #f3f0e8;
    --paper-dark: #e6e1d5;
    --ink: #111111;
    --muted: #69665f;
    --blue: #2d5bff;
    --orange: #ff6b35;
    --line: #151515;
    --card: #fbfaf6;
    --shadow: 7px 7px 0 #151515;
    --max-width: 1480px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(rgba(17, 17, 17, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, .045) 1px, transparent 1px),
        var(--paper);
    background-size: 28px 28px;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

button,
input,
a {
    font: inherit;
}

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

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

button {
    color: inherit;
}

.site-shell {
    width: min(calc(100% - 36px), var(--max-width));
    margin: 18px auto;
    border: 2px solid var(--line);
    background: var(--paper);
    box-shadow: 10px 10px 0 rgba(17, 17, 17, .18);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 86px;
    display: grid;
    grid-template-columns: 250px 1fr auto auto;
    align-items: stretch;
    border-bottom: 2px solid var(--line);
    background: rgba(243, 240, 232, .96);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 22px;
    border-right: 2px solid var(--line);
}

.brand-symbol {
    width: 44px;
    height: 44px;
    position: relative;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    background: var(--blue);
    overflow: hidden;
}

.brand-symbol::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--orange);
}

.brand-symbol i {
    position: absolute;
    z-index: 1;
    width: 4px;
    height: 40px;
    background: var(--line);
    transform: rotate(45deg);
}

.brand-symbol i:nth-child(2) {
    transform: rotate(90deg);
}

.brand-symbol i:nth-child(3) {
    transform: rotate(135deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-size: 19px;
    letter-spacing: .08em;
}

.brand-copy small {
    font-size: 9px;
    letter-spacing: .18em;
    color: var(--muted);
}

.desktop-nav {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    min-width: 122px;
    padding: 13px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-right: 1px solid rgba(17, 17, 17, .25);
    background: transparent;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.nav-item small {
    font-size: 10px;
    color: var(--muted);
}

.nav-item span {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
}

.nav-item:hover,
.nav-item.is-active {
    color: #fff;
    background: var(--ink);
}

.nav-item:hover small,
.nav-item.is-active small {
    color: rgba(255, 255, 255, .65);
}

.menu-toggle {
    width: 94px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-left: 2px solid var(--line);
    background: var(--orange);
    font-weight: 900;
    cursor: pointer;
}

.menu-toggle i {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .18s ease;
}

.menu-toggle[aria-expanded="true"] i {
    transform: rotate(225deg) translate(-2px, -2px);
}

.mobile-menu {
    display: none;
}

/* ─── 任务90：紧凑 Hero（约 60/40 双区 + 全宽蓝色信任指标条，桌面总高约 460-520px） ── */
.hero {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid var(--line);
}

.hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

/* 任务182：轮播模式下全宽单列，4:1 素材 contain 铺满无留白 */
.hero-main.hero-carousel {
    display: block;
}

.hero-copy {
    padding: clamp(24px, 2.6vw, 34px) clamp(22px, 4vw, 56px) clamp(20px, 2.2vw, 28px);
}

.hero-kicker {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.hero-kicker::before {
    content: "";
    width: 34px;
    height: 7px;
    background: var(--orange);
    border: 1px solid var(--line);
}

/* 任务90：三行大标题，桌面上限约 74px（约 78px 目标内） */
.hero h1 {
    max-width: 720px;
    margin: 0;
    font-family: Impact, "Arial Black", "Microsoft YaHei", sans-serif;
    font-size: clamp(44px, 4vw, 74px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.03em;
}

.hero h1 span {
    display: inline-block;
    padding: 0 .08em .05em;
    color: #fff;
    background: var(--blue);
    border: 2px solid var(--line);
    box-shadow: 5px 5px 0 var(--orange);
    transform: rotate(-1.5deg);
}

.hero-intro {
    max-width: 620px;
    margin: 12px 0 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: #34322e;
}

.hero-search {
    width: min(100%, 620px);
    margin-top: 14px;
}

.hero-search > label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.search-control {
    height: 50px;
    display: grid;
    grid-template-columns: 1fr 50px;
    border: 2px solid var(--line);
    background: #fff;
    box-shadow: 4px 4px 0 var(--line);
}

.search-control input {
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.search-control button {
    border: 0;
    border-left: 2px solid var(--line);
    background: var(--orange);
    font-size: 24px;
    cursor: pointer;
}

.hero-search > p {
    margin: 8px 0 0;
    color: var(--muted);
    font-family: Consolas, monospace;
    font-size: 11px;
}

/* ─── 任务90：右侧四项有序服务说明（40% 区） ─────────────────────────── */
.hero-services {
    min-width: 0;
    border-left: 2px solid var(--line);
    background: var(--card);
    display: flex;
}

.service-list {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.service-list li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px clamp(18px, 2vw, 30px);
    border-bottom: 2px solid var(--line);
}

.service-list li:last-child {
    border-bottom: 0;
}

.service-no {
    flex: 0 0 auto;
    min-width: 44px;
    color: var(--blue);
    font-family: Consolas, monospace;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 900;
}

.service-body {
    min-width: 0;
}

.service-body strong {
    display: block;
    font-size: clamp(15px, 1.2vw, 17px);
    letter-spacing: .02em;
}

.service-body p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.55;
}

/* ─── 任务90：全宽蓝色信任指标条（领头羊徽章 + 动态计数 + 五星 + 公告） ── */
.hero-trustbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px clamp(18px, 2.4vw, 40px);
    padding: 13px clamp(20px, 3vw, 44px);
    border-top: 2px solid var(--line);
    background: var(--blue);
    color: #fff;
}

.trust-emblem {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: clamp(12px, 1.6vw, 24px);
    border-right: 2px solid rgba(255, 255, 255, .28);
}

/* 任务57→90：原创羊纹章随信任条缩小（透明线条，无外部图片/字体） */
.board-emblem {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
}

/* 任务57→90：橙色“领头羊”圆章缩小 */
.board-stamp {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--orange);
    color: var(--ink);
    font-family: "Arial Black", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1;
    text-align: center;
    transform: rotate(-9deg);
    box-shadow: 3px 3px 0 var(--line);
}

.trust-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-item > span {
    font-size: 10px;
    letter-spacing: .1em;
    opacity: .72;
}

.trust-item strong {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: .9;
}

/* 任务57：信誉评级五颗星（可访问标签由 HTML aria-label 提供） */
.board-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.board-rating i {
    color: #ffe500;
    font-size: 17px;
    font-style: normal;
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(21, 21, 21, .6);
}

.trust-notice {
    margin: 0 0 0 auto;
    max-width: 380px;
    padding-left: clamp(14px, 1.6vw, 22px);
    border-left: 2px solid rgba(255, 255, 255, .28);
    color: rgba(255, 255, 255, .82);
    font-size: 11.5px;
    line-height: 1.6;
}

.sections-wrap {
    padding: 0 clamp(20px, 4vw, 64px) 80px;
}

.platform-section {
    padding-top: 72px;
}

.section-heading {
    padding-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 3px solid var(--line);
}

.section-heading p {
    margin: 0 0 8px;
    color: var(--blue);
    font-family: Consolas, monospace;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -.04em;
}

.section-heading > span {
    padding-bottom: 4px;
    color: var(--muted);
    font-size: 13px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    padding-top: 28px;
}

.platform-card {
    min-height: 300px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.platform-card:hover {
    transform: translate(3px, 3px);
    box-shadow: 4px 4px 0 var(--line);
}

.platform-card[hidden],
.platform-section[hidden] {
    display: none;
}

.card-topline {
    min-height: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid rgba(17, 17, 17, .25);
}

.card-number {
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 900;
}

.featured-mark {
    padding: 4px 8px;
    border: 1px solid var(--line);
    background: #ffe500;
    font-size: 10px;
    font-weight: 900;
    transform: translateY(-7px);
    /* 任务154：自定义标签最大宽度、单行省略、不挤压编号 */
    /* 任务172：删除旋转，水平摆正 */
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-heading {
    margin-top: 23px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.platform-logo {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 16px 5px 16px 5px;
    background: var(--logo-color);
    color: #fff;
    box-shadow: 4px 4px 0 var(--line);
    font-family: Impact, "Arial Black", "Microsoft YaHei", sans-serif;
    font-size: 24px;
}

.platform-logo.has-image {
    padding: 8px;
    background: #fff;
}

.platform-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.card-heading h3 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1.2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    padding: 3px 7px;
    border: 1px solid rgba(17, 17, 17, .45);
    font-size: 10px;
    font-weight: 700;
}

.platform-card > p {
    margin: 25px 0 28px;
    color: #56534d;
    font-size: 14px;
    line-height: 1.8;
}

.card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-link {
    min-height: 49px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 2px solid var(--line);
    font-size: 13px;
    font-weight: 900;
    transition: transform .16s ease, box-shadow .16s ease;
}

.action-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--line);
}

.action-register {
    background: #fff;
}

.action-login {
    color: #fff;
    background: var(--ink);
}

/* 任务57：空链接渲染为不可点击的“待配置”占位 */
.action-pending {
    min-height: 49px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 2px dashed rgba(21, 21, 21, .45);
    color: var(--muted);
    background: rgba(21, 21, 21, .04);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
}

.action-pending-full {
    grid-column: 1 / -1;
}

.empty-state {
    margin: 70px clamp(20px, 4vw, 64px);
    padding: 70px 25px;
    border: 2px dashed var(--line);
    text-align: center;
}

.empty-state span {
    color: var(--blue);
    font-family: Consolas, monospace;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
}

.empty-state h2 {
    margin: 12px 0 8px;
    font-size: 34px;
}

.empty-state p {
    color: var(--muted);
}

.empty-state button {
    margin-top: 15px;
    padding: 12px 20px;
    border: 2px solid var(--line);
    background: var(--orange);
    box-shadow: 4px 4px 0 var(--line);
    font-weight: 900;
    cursor: pointer;
}

.site-footer {
    min-height: 112px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 2px solid var(--line);
    color: #fff;
    background: var(--ink);
}

.site-footer > div {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.site-footer strong {
    font-size: 20px;
}

.site-footer span,
.site-footer p {
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
}

.site-footer p {
    margin: 0;
    font-family: Consolas, monospace;
    letter-spacing: .08em;
}

@media (max-width: 1120px) {
    .site-header {
        grid-template-columns: 235px 1fr auto;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        position: sticky;
        top: 86px;
        z-index: 19;
        padding: 12px;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        border-bottom: 2px solid var(--line);
        background: var(--paper-dark);
    }

    .mobile-menu.is-open {
        display: grid;
    }

    .mobile-nav-item {
        min-height: 44px;
        border: 1px solid var(--line);
        background: #fff;
        font-size: 12px;
        font-weight: 900;
        cursor: pointer;
    }

    .mobile-nav-item.is-active {
        color: #fff;
        background: var(--ink);
    }

    /* 任务90：窄桌面（含 1024）Hero 双区收窄 */
    .hero-main {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }

    .hero-copy {
        padding-left: 40px;
        padding-right: 40px;
    }

    .service-list li {
        padding: 10px 16px;
    }

    .trust-notice {
        max-width: 300px;
    }

    /* 任务70：平板平台卡压缩至 280px */
    .platform-card {
        min-height: 280px;
    }
}

@media (max-width: 820px) {
    .site-shell {
        width: min(calc(100% - 18px), var(--max-width));
        margin: 9px auto;
        box-shadow: 5px 5px 0 rgba(17, 17, 17, .18);
    }

    .site-header {
        min-height: 72px;
        grid-template-columns: 1fr 82px;
    }

    .brand {
        padding: 10px 14px;
    }

    .brand-symbol {
        width: 40px;
        height: 40px;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .menu-toggle {
        width: 82px;
    }

    .mobile-menu {
        top: 72px;
        grid-template-columns: repeat(2, 1fr);
    }

    /* 任务90：移动 Hero 单列堆叠（覆盖 752 视口） */
    .hero-main {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 28px 24px 24px;
    }

    .hero h1 {
        font-size: clamp(42px, 8.5vw, 58px);
    }

    .hero-intro {
        margin-top: 10px;
        font-size: 13px;
    }

    .hero-search {
        margin-top: 12px;
    }

    .hero-services {
        border-left: 0;
        border-top: 2px solid var(--line);
    }

    .service-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .service-list li {
        border-bottom: 2px solid var(--line);
    }

    .service-list li:nth-child(odd) {
        border-right: 2px solid var(--line);
    }

    .service-list li:nth-child(n+3) {
        border-bottom: 0;
    }

    .service-no {
        min-width: 36px;
        font-size: 20px;
    }

    .service-body strong {
        font-size: 15px;
    }

    /* 任务90：信任条公告换行铺满，徽章与计数保持一行 */
    .trust-notice {
        flex-basis: 100%;
        max-width: none;
        margin: 0;
        padding: 10px 0 0;
        border-left: 0;
        border-top: 2px solid rgba(255, 255, 255, .28);
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    /* 任务70：移动端平台卡压缩至 260px */
    .platform-card {
        min-height: 260px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer,
    .site-footer > div {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .brand-copy small {
        display: none;
    }

    .hero h1 {
        font-size: clamp(38px, 10.5vw, 44px);
    }

    .hero h1 span {
        box-shadow: 4px 4px 0 var(--orange);
    }

    .hero-copy {
        padding: 22px 16px 20px;
    }

    .hero-intro {
        font-size: 12.5px;
    }

    /* 任务90：小屏服务说明恢复单列四行 */
    .service-list {
        grid-template-columns: 1fr;
    }

    .service-list li,
    .service-list li:nth-child(n+3) {
        border-bottom: 2px solid var(--line);
    }

    .service-list li:nth-child(odd) {
        border-right: 0;
    }

    .service-list li:last-child {
        border-bottom: 0;
    }

    .service-list li {
        padding: 9px 16px;
    }

    /* 任务90：小屏信任条进一步压缩（覆盖 390 视口） */
    .hero-trustbar {
        gap: 10px 16px;
        padding: 12px 16px;
    }

    .trust-emblem {
        gap: 8px;
        padding-right: 12px;
    }

    .board-emblem {
        width: 44px;
        height: 44px;
    }

    .board-stamp {
        width: 56px;
        height: 56px;
        font-size: 13px;
    }

    .trust-item strong {
        font-size: 24px;
    }

    .board-rating i {
        font-size: 14px;
    }

    .trust-notice {
        font-size: 11px;
    }

    .search-control {
        grid-template-columns: 1fr 46px;
    }

    .sections-wrap {
        padding-left: 15px;
        padding-right: 15px;
    }

    .platform-card {
        min-height: auto;
        padding: 18px;
        box-shadow: 5px 5px 0 var(--line);
    }

    .card-heading {
        align-items: flex-start;
    }

    .platform-logo {
        width: 59px;
        height: 59px;
        font-size: 19px;
    }

    .card-heading h3 {
        font-size: 20px;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}

/* 彩工具四分栏（任务90：文案统一为“彩工具”，developer slug / CSS 类保持不变） */
.developer-section {
    --developer-tab-bg: #eadbd8;
}

.developer-tabs {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.developer-tab {
    min-height: 54px;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-bottom: 0;
    background: var(--developer-tab-bg);
    color: #6e6661;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.developer-tab:hover,
.developer-tab.is-active {
    color: #fff;
    background: #e6533f;
    transform: translateY(-3px);
}

/* 任务70：开发卡改自适应多列，桌面最小列宽 260px（覆盖原固定 4 列） */
.developer-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    padding-top: 18px;
}

.developer-card {
    min-height: 260px;
    padding: 18px;
    background: #f1ffff;
    box-shadow: 5px 5px 0 var(--line);
}

.developer-card .card-heading {
    margin-top: 18px;
    gap: 12px;
}

.developer-card .platform-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 17px;
}

.developer-card .card-heading h3 {
    margin-bottom: 7px;
    font-size: 17px;
}

.developer-card > p {
    margin: 18px 0 20px;
    font-size: 13px;
    line-height: 1.65;
}

.developer-type {
    padding: 4px 7px;
    border: 1px solid rgba(17, 17, 17, .45);
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
}

.developer-actions {
    grid-template-columns: 1fr;
}

/* 任务70：平板断点对齐主断点 1120px（移除原固定 3 列规则），开发卡最小 240px */
@media (max-width: 1120px) {
    .developer-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .developer-card {
        min-height: 240px;
    }
}

@media (max-width: 820px) {
    .developer-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .developer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 任务70：移动端开发卡压缩至 220px */
    .developer-card {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .developer-grid {
        grid-template-columns: 1fr;
    }

    /* 任务70：小屏开发卡高度自适应内容 */
    .developer-card {
        min-height: auto;
    }

    .developer-tab {
        min-height: 48px;
        font-size: 12px;
    }
}


.developer-tabs { padding-bottom: 3px; border-bottom: 3px solid var(--line); }
.developer-tab { border-bottom: 0; }

/* ─── 任务129：手机端固定底部导航栏 ───────────────────────────────────── */
:root {
    --bottom-nav-h: 0px;
}

.bottom-nav {
    display: none;
}

@media (max-width: 820px) {
    :root {
        --bottom-nav-h: 62px;
    }

    .bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border-top: 3px solid var(--line);
        background: var(--ink);
        box-shadow: 0 -4px 0 rgba(17, 17, 17, .18);
    }

    .bottom-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: var(--bottom-nav-h);
        padding: 0 4px;
        border: 0;
        border-right: 1px solid rgba(255, 255, 255, .12);
        background: transparent;
        color: rgba(255, 255, 255, .6);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .04em;
        cursor: pointer;
        transition: background .14s ease, color .14s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-btn:last-child {
        border-right: 0;
    }

    .bottom-nav-btn:hover,
    .bottom-nav-btn[aria-current="true"] {
        color: #fff;
        background: var(--blue);
    }

    .bottom-nav-btn[aria-current="true"] {
        box-shadow: inset 0 3px 0 var(--orange);
    }

    .bottom-nav-btn:disabled {
        opacity: .3;
        cursor: not-allowed;
    }

    .bottom-nav-btn:focus-visible {
        outline: 3px solid var(--orange);
        outline-offset: -3px;
    }

    .bottom-nav-icon {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .bottom-nav-label {
        line-height: 1;
    }

    /* 正文底部留白，避免被底栏遮挡 */
    .site-shell {
        padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
    }
}

/* reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .bottom-nav-btn {
        transition: none !important;
    }
}

/* ─── 任务182→190：导航搜索框向左加宽（min 420 / max 500），右边界不动 ── */
.nav-search {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 18px;
    border-left: 2px solid var(--line);
    min-width: 420px;
    max-width: 500px;
}

.nav-search .search-control {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 0;
    width: 100%;
}

.nav-search .search-control input {
    padding: 10px 16px;
    border: 2px solid var(--line);
    border-right: 0;
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    min-width: 0;
    height: 44px;
}

.nav-search .search-control input:focus {
    box-shadow: inset 0 0 0 2px var(--blue);
}

.nav-search .search-control button {
    border: 2px solid var(--line);
    background: var(--paper-dark);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: grid;
    place-items: center;
}

.nav-search-result {
    font-family: Consolas, monospace;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    margin: 0;
    letter-spacing: .04em;
}

.mobile-search-row {
    grid-column: 1 / -1;
    padding: 8px 12px 12px;
    border-top: 2px solid var(--line);
}

.mobile-search-row .search-control {
    display: grid;
    grid-template-columns: 1fr 40px;
}

.mobile-search-row .search-control input {
    padding: 10px 12px;
    border: 2px solid var(--line);
    border-right: 0;
    background: #fff;
    font-size: 13px;
    outline: none;
}

.mobile-search-row .search-control button {
    border: 2px solid var(--line);
    background: var(--paper-dark);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

/* ─── 任务172：首页轮播幻灯片 ────────────────────────────────────────── */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a2e;
    /* 任务194：4:1 比例严格自适应，contain 不裁切 */
    aspect-ratio: 4 / 1;
    max-height: 420px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, .6);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, .6);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .15s;
}

.carousel-dot.is-active {
    background: #fff;
}

/* ─── 任务182：轮播响应式 ──────────────────────────────────────── */
@media (max-width: 1120px) {
    .nav-search {
        min-width: 200px;
        max-width: 280px;
    }
    .nav-search .search-control input {
        height: 40px;
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 820px) {
    /* 桌面搜索隐藏 */
    .nav-search {
        display: none;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .carousel-prev { left: 6px; }
    .carousel-next { right: 6px; }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .carousel-dots { bottom: 8px; gap: 6px; }
    .carousel-dot { width: 8px; height: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        transition: none !important;
    }
}

