:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --primary: #1a1a1a;
    --primary-soft: #f0f0f0;
    --topbar-from: #ffffff;
    --topbar-to: #ffffff;
    --text: #1a1a1a;
    --muted: #555555;
    --border: #dddddd;
    --radius: 0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.10), 0 6px 16px rgba(0, 0, 0, 0.05);
}

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

/* 全局图片约束：防止任何图片超出容器导致移动端横向溢出/缩放 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* ---- 页面加载遮罩 ---- */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
#page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-loader__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    animation: loaderPulse 1.4s ease-in-out infinite;
}
.page-loader__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #dddddd;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: loaderSpin 0.7s linear infinite;
}
.page-loader__text {
    font-size: 0.9rem;
    color: #888888;
    letter-spacing: 1px;
}
@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

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

/* 顶栏 */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    padding-top: env(safe-area-inset-top);
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    background: #ffffff;
    color: #1a1a1a;
    z-index: 100;
    border-bottom: 1px solid #dddddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.topbar__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.topbar__brand {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.topbar__home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1a1a1a;
    flex-shrink: 0;
}
.topbar__nav {
    margin-left: 24px;
    display: flex;
    gap: 18px;
    align-items: center;
}
.topbar__nav a {
    color: #555555;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}
.topbar__nav a:hover,
.topbar__nav a[aria-current="page"] {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 600;
}
.topbar__actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}
.topbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid #dddddd;
    border-radius: 0;
    color: #1a1a1a;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.topbar__btn:hover {
    background: #f0f0f0;
}
.topbar__btn:active {
    transform: scale(0.9);
}

/* 整体布局 */
.layout {
    display: flex;
    padding-top: 60px;
    padding-top: calc(60px + env(safe-area-inset-top));
    min-height: 100vh;
    min-height: 100svh;
}

/* 主内容 */
.content {
    margin-left: 0;
    padding: 76px 24px 40px;
    flex: 1;
    text-align: center;
    transition: margin-left 0.25s ease;
}
.content__inner {
    max-width: 780px;
    margin: 0 auto;
}
.content h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: #1a1a1a;
}
.content h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 18px;
    text-align: left;
}
/* h1 的副标题保持居中 */
.content h1 + h2 {
    text-align: center;
}
.content .intro {
    max-width: 640px;
    margin: 0 auto 36px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 2;
    letter-spacing: 1px;
}
.content section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    scroll-margin-top: 76px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.content section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.content section h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
    text-align: left;
}
.content section h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #a8d8ea;
    border-radius: 0;
    margin: 8px 0 0;
}
.about-text {
    text-align: left;
    color: var(--muted);
    line-height: 1.9;
    margin-top: 4px;
}
.about-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    justify-content: center;
}
.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 28px;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid #1a1a1a;
    transition: background 0.2s ease, color 0.2s ease;
}
.about-btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
}
.about-btn--bili {
    background: #fb7299;
    color: #ffffff;
    border-color: #fb7299;
}
.about-btn--bili:hover {
    background: #ffffff;
    color: #fb7299;
    border-color: #fb7299;
}
.about-btn--douyin {
    background: #1a1a1a;
    color: #ffffff;
}
.about-btn--douyin:hover {
    background: #ffffff;
    color: #1a1a1a;
}
.placeholder-block {
    padding: 14px 16px;
    border: 1px dashed #bbbbbb;
    color: #666666;
    font-size: 0.88rem;
    background: #fafafa;
    text-align: left;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 16px;
    text-align: left;
}
.card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
    text-align: left;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover {
    border-color: #1a1a1a;
    transform: translateY(-2px);
}
.card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
}
.card .placeholder-block {
    padding: 10px 12px;
}

/* ---------- 小游戏开放平台 (Game/) ---------- */
.game-form {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 16px;
    margin-top: 14px;
    text-align: left;
}
.game-form__note {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.game-form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.game-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.game-form input,
.game-form textarea {
    font: inherit;
    padding: 9px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    width: 100%;
}
.game-form input:focus,
.game-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}
.game-form__hint {
    font-size: 0.78rem;
    color: var(--muted);
}
.game-form__msg {
    font-size: 0.85rem;
    margin: 4px 0 10px;
    min-height: 1.2em;
}
.game-form__msg.is-error { color: #c0392b; }
.game-form__msg.is-ok    { color: #1e7e34; }
.game-card__play {
    margin: 10px 0 0;
    color: #fb7299;
    font-weight: 600;
    font-size: 0.9rem;
}
.game-card { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.game-card:hover { transform: translateY(-2px); }

/* 游玩弹层 */
.game-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 16px;
}
.game-overlay__box {
    position: relative;
    width: min(960px, 100%);
    height: min(80vh, 600px);
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
.game-overlay__box iframe { width: 100%; height: 100%; border: 0; }
.game-overlay__close {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 5;
    width: 36px; height: 36px;
    border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff; font-size: 16px;
    cursor: pointer; line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.member__avatar {
    position: relative;
    overflow: hidden;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: #f0f0f0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
}
.member__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.member__role {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 4px 0 6px;
}
.member__intro {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

/* 团队成员卡片：与首页统一的玻璃卡片 + 霓虹青描边 */
#members .card {
    text-align: left;
}
#members .cards {
    gap: 18px;
}
.member-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
    transition: transform 0.22s ease, border-color 0.22s ease,
                box-shadow 0.22s ease;
}
.member-card .member__avatar {
    width: 76px; height: 76px;
    font-size: 1.7rem;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--accent-soft), #fff);
    color: var(--accent-dark);
}
.member-card h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.member-card .member__role {
    display: inline-block;
    margin: 0 0 10px;
    padding: 2px 12px;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
}
.member-card .member__intro {
    text-align: left;
}
.member-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(47, 109, 240, 0.18);
}
/* 组长高亮 */
.member-card--leader {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(47, 109, 240, 0.15);
}
.member-card--leader .member__avatar {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
}
.member-card--leader .member__role {
    background: transparent;
    color: var(--muted);
    border-color: var(--border);
}

/* 组长居中突出 */
.leader {
    display: flex;
    justify-content: center;
    margin: 8px 0 22px;
}
.leader .card {
    max-width: 340px;
    text-align: center;
}
/* 两人一行 */
.cards--2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
    .cards--2 {
        grid-template-columns: 1fr;
    }
}

/* ---- 指令表格 ---- */
.cmd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}
.cmd-table thead th {
    background: #f5f5f5;
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    color: var(--text);
    white-space: nowrap;
}
.cmd-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
    line-height: 1.6;
}
.cmd-table tbody tr:hover {
    background: #fafafa;
}
.cmd-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}
.cmd-table td:nth-child(2) {
    font-family: "SF Mono", "Consolas", "Menlo", monospace;
    white-space: nowrap;
}
.cmd-table td:nth-child(3),
.cmd-table td:nth-child(4),
.cmd-table td:nth-child(5) {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---- 调用API ---- */
#api h3 {
    margin-bottom: 8px;
}
.api-section__desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 12px;
}
.api-details {
    margin-top: 0;
}
.api-details__toggle {
    display: none;
}
.api-details__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    cursor: pointer;
}
.api-details__title::before {
    content: "▸";
    display: inline-block;
    font-size: 0.75rem;
    transition: transform 0.35s ease;
    color: var(--muted);
    transform-origin: center;
}
.api-details__toggle:checked + .api-details__title::before {
    transform: rotate(90deg);
}
.api-details__body {
    overflow: hidden;
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.25s ease 0.1s;
}
.api-details__toggle:not(:checked) ~ .api-details__body {
    max-height: 0;
    opacity: 0;
}
.api-details .cmd-table {
    margin-top: 4px;
}

/* ---- 移动端卡片列表（替代表格） ---- */
.cmd-cards {
    display: none;  /* 桌面端隐藏 */
}
.cmd-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    align-items: baseline;
}
.cmd-card__label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.cmd-card__value {
    font-size: 0.85rem;
    color: var(--text);
    word-break: break-word;
}
.cmd-card__value--cat {
    font-weight: 600;
    color: #1a1a1a;
}
.cmd-card__value--cmd {
    font-family: "SF Mono", "Consolas", "Menlo", monospace;
    font-size: 0.82rem;
}
.cmd-card__value--note {
    color: var(--muted);
    font-size: 0.8rem;
}

/* 标签（组员等） */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 6px;
}
.tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #1a1a1a;
    font-size: 0.85rem;
    border-radius: 0;
    border: 1px solid #dddddd;
}

/* 活动列表 */
.api-list {
    list-style: none;
    text-align: left;
    margin-top: 4px;
}
.api-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.api-list li:last-child {
    border-bottom: none;
}
.api-name {
    font-weight: 600;
    color: var(--text);
}
.api-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 2px;
}
.contact {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}
.contact a {
    color: #1a1a1a;
    text-decoration: underline;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease;
}
.contact a:hover {
    border-bottom-color: #1a1a1a;
}
/* 友情链接 */
.link-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.link-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.link-card:hover {
    border-color: #1a1a1a;
    transform: translateY(-2px);
}
.link-card__name {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.link-card__desc {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}
@media (max-width: 460px) {
    .link-cards {
        grid-template-columns: 1fr;
    }
}

/* 视频切换（封面流） */
.video-switch {
    position: relative;
    margin-top: 8px;
}
.video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    overflow: hidden;
}
.video-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 52px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    line-height: 1;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #dddddd;
    border-radius: 0;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, transform 0.15s ease;
}
.video-arrow--prev {
    left: 10px;
}
.video-arrow--next {
    right: 10px;
}
.video-arrow:hover {
    background: #ffffff;
}
.video-arrow:active {
    transform: translateY(-50%) scale(0.9);
}
.video-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.92);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
    will-change: transform, opacity;
    pointer-events: none;
}
.video-cover {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}
.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.video-cover:hover img {
    transform: scale(1.04);
}
.video-cover::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}
.video-cover::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
    z-index: 3;
}
.video-cover:hover::before {
    background: rgba(26, 26, 26, 0.85);
    transform: translate(-50%, -50%) scale(1.08);
}
.video-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 22px 14px 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
    pointer-events: none;
}
.video-item.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    pointer-events: auto;
}

/* 页脚 */
.site-footer {
    background: #f0f0f0;
    color: #555555;
    font-size: 0.9rem;
    border-top: 1px solid #dddddd;
}
.site-footer__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 40px 24px 28px;
    text-align: left;
}
.footer-col {
    flex: 1;
    min-width: 0;
}
.footer-col--brand {
    flex: 1.3;
}
.footer-col__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.footer-col__desc {
    color: #777777;
    font-size: 0.85rem;
    line-height: 1.8;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: #555555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.18s ease;
}
.footer-links a:hover {
    color: #1a1a1a;
}
.footer-friends-card {
    padding: 12px 14px;
    border: 1px dashed #bbbbbb;
    font-size: 0.85rem;
    color: #777777;
    line-height: 1.8;
}
.footer-friends-card a {
    color: #1a1a1a;
    text-decoration: underline;
}
.footer-friends-card a:hover {
    text-decoration: none;
}

.site-footer__bottom {
    border-top: 1px solid #dddddd;
    padding: 14px 24px;
    text-align: center;
}
.site-footer__copy {
    color: #888888;
    font-size: 0.8rem;
}

/* ---- 响应式：手机 / 小平板 (≤768px) ---- */
@media (max-width: 768px) {

    /* 全局：取消所有 hover 动效（触屏无 hover） */
    .content section:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    .card:hover {
        transform: none;
    }

    /* 顶栏 */
    .topbar {
        padding: 0 10px;
        gap: 4px;
        height: 48px;
    }
    .topbar__brand {
        font-size: 0.85rem;
        letter-spacing: 0;
    }
    .topbar__home {
        gap: 6px;
    }
    .topbar__logo {
        width: 24px;
        height: 24px;
    }
    .topbar__nav {
        margin-left: auto;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 1;
    }
    .topbar__nav a {
        font-size: 0.8rem;
        padding: 4px 8px;
        white-space: nowrap;
    }

    .layout {
        padding-top: 48px;
    }

    /* 内容区域：去中心化，撑满宽度 */
    .content {
        padding: 20px 10px 24px;
    }
    .content__inner {
        max-width: 100%;
    }
    .content h1 {
        font-size: 1.35rem;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }
    .content h2 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    .content .intro {
        max-width: 100%;
        font-size: 0.85rem;
        line-height: 1.8;
        margin-bottom: 24px;
        padding: 0 2px;
    }

    /* 区块卡片：去掉浮动感，更像原生移动端 */
    .content section {
        padding: 14px 12px;
        margin-bottom: 10px;
        border-radius: 6px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        scroll-margin-top: 56px;
    }
    .content section h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .content section h3::after {
        width: 32px;
        height: 2px;
        margin-top: 6px;
    }

    .about-text {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    .about-actions {
        flex-direction: column;
        gap: 8px;
    }
    .about-btn {
        justify-content: center;
        padding: 10px 20px;
        width: 100%;
        font-size: 0.9rem;
    }

    /* 卡片网格 */
    .cards {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
    }
    .card {
        padding: 12px;
        border-radius: 6px;
    }
    .card h4 {
        font-size: 0.9rem;
    }
    .contact {
        font-size: 0.85rem;
    }

    /* 视频箭头 */
    .video-arrow {
        width: 32px;
        height: 48px;
        font-size: 26px;
    }
    .video-arrow--prev { left: 2px; }
    .video-arrow--next { right: 2px; }

    /* 表格 → 卡片列表 */
    .cmd-table {
        display: none;
    }
    .cmd-cards {
        display: block;
        margin-top: 8px;
    }
    .cmd-card {
        padding: 10px;
        gap: 3px 8px;
    }
    .cmd-card__label {
        font-size: 0.65rem;
    }
    .cmd-card__value {
        font-size: 0.8rem;
    }
    .cmd-card__value--cmd {
        font-size: 0.78rem;
    }

    /* 折叠标题 */
    .api-details__title {
        font-size: 0.85rem;
    }
    .api-details__body {
        max-height: 4000px;
    }

    /* 组员 */
    #members .card { text-align: left; }
    .tag-list { justify-content: flex-start; }
    .leader .card { max-width: none; }

    /* 回到顶部 */
    .to-top {
        right: 10px;
        bottom: 10px;
        width: 36px;
        height: 36px;
    }
    .skip-link:focus { top: 52px; }

    /* 底部 */
    .site-footer__inner {
        flex-direction: column;
        gap: 20px;
        padding: 24px 14px 16px;
        text-align: center;
    }
    .footer-col__desc { text-align: center; }
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-links li { margin-bottom: 0; }
}

/* ---- 响应式：小屏手机 (≤420px) ---- */
@media (max-width: 420px) {
    .topbar {
        height: 44px;
        padding: 0 8px;
    }
    .topbar__logo {
        width: 22px;
        height: 22px;
    }
    .topbar__brand {
        font-size: 0.78rem;
    }
    .topbar__nav a {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    .layout {
        padding-top: 44px;
    }
    .content {
        padding: 16px 8px 20px;
    }
    .content h1 {
        font-size: 1.25rem;
    }
    .content .intro {
        font-size: 0.82rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    .content section {
        padding: 10px;
        margin-bottom: 8px;
    }
    .content section h3 {
        font-size: 0.95rem;
    }
    .cmd-card {
        padding: 8px;
        gap: 2px 6px;
    }
    .cmd-card__value {
        font-size: 0.77rem;
    }
    .cmd-card__value--cmd {
        font-size: 0.75rem;
    }
    .api-details__title {
        font-size: 0.82rem;
    }
    .card {
        padding: 10px;
    }
    .about-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* 跳转主内容（无障碍） */
.skip-link {
    position: fixed;
    top: -100px;
    left: 12px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px 14px;
    z-index: 200;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 70px;
}

/* 回到顶部 */
.to-top {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease,
                transform 0.25s ease, background 0.2s ease;
    z-index: 95;
}
.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.to-top:hover {
    background: #333333;
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================================================
   增强样式：视频轮播 / 成员数据驱动 / 视觉升级
   =========================================================== */

/* 圆角升级（视觉重做：原 --radius 为 0，改为统一圆角节奏） */
:root {
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --accent: #2f6df0;
    --accent-dark: #1c4ec0;
    --accent-soft: rgba(47, 109, 240, 0.10);
}

/* ---------- 视频缩略图导航 ---------- */
.video-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch; /* iOS 惯性滚动 */
    overscroll-behavior-x: contain;     /* 防止横向滚动链到页面 */
}
.video-thumb {
    flex: 0 0 auto;
    width: 180px;
    border: 1px solid #d9d9d9;
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease;
    opacity: 0.62;
}
.video-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}
.video-thumb span {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 8px;
    color: var(--muted);
    max-height: 46px;
    overflow: hidden;
}
.video-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.video-thumb.is-active {
    border-color: var(--accent);
    opacity: 1;
}

/* 灯箱内嵌播放 */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius-sm);
}
.video-close {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top));
    right: calc(8px + env(safe-area-inset-right));
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.video-close:hover { background: rgba(0, 0, 0, 0.8); }

/* ---------- 成员 toolbar ---------- */
.placeholder-block { padding: 30px; text-align: center; color: var(--muted); }

/* 卡片入场动画 */
.member-card {
    opacity: 0;
    transform: translateY(14px);
    animation: cardIn 0.5s ease forwards;
}
@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}

/* 顶栏毛玻璃（视觉重做） */
.top-bar {
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
    .top-bar { background: rgba(20, 20, 20, 0.7); }
}
