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

:root {
    --bg: #f5f7fb;
    --bg-soft: #eef3f8;
    --surface: #ffffff;
    --surface-muted: #f7f9fc;
    --text: #182230;
    --muted: #5e6a78;
    --subtle: #788594;
    --border: #d8e1eb;
    --border-strong: #b8c4d2;
    --accent: #0f766e;
    --accent-strong: #0b5d56;
    --accent-blue: #2f66c7;
    --success: #137333;
    --warn: #93630b;
    --danger: #b42318;
    --violet: #7353ba;
    --header: #17202a;
    --shadow: 0 14px 36px rgba(24, 34, 48, 0.08);
    --shadow-soft: 0 8px 20px rgba(24, 34, 48, 0.06);
    --radius: 8px;
}

html {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, #fbfcfe 0, var(--bg) 340px),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    letter-spacing: 0;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    overflow-wrap: anywhere;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-bottom: 0.7rem;
    color: var(--muted);
}

strong {
    color: var(--text);
}

ul {
    margin-left: 1.15rem;
    margin-bottom: 0.7rem;
}

li {
    margin-bottom: 0.25rem;
}

code {
    display: inline-block;
    max-width: 100%;
    padding: 0.08rem 0.32rem;
    border: 1px solid #d8e1eb;
    border-radius: 4px;
    background: #eef3f8;
    color: #9d174d;
    font-size: 0.86em;
    overflow-wrap: anywhere;
}

pre {
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.85rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #101820;
    color: #d7e1ea;
    font-size: 0.84rem;
}

pre code {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

/* Notice banner */
.notice-banner {
    width: 100%;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #e4c268;
    background: #fff8df;
}

.notice-banner-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.notice-text {
    flex: 1 1 24rem;
    color: #6f4e00;
    font-size: 0.83rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.notice-text a {
    color: #8a5a00;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.language-switcher {
    display: inline-flex;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #dfbd63;
    border-radius: 6px;
    background: #fffdf4;
}

.language-button {
    min-height: 1.85rem;
    padding: 0.22rem 0.62rem;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: #6f4e00;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.language-button + .language-button {
    border-left: 1px solid #dfbd63;
}

.language-button.active {
    background: var(--accent);
    color: #ffffff;
}

/* Header */
header {
    padding: 1.8rem 1rem 1.35rem;
    border-bottom: 4px solid var(--accent);
    background: var(--header);
    color: #ffffff;
    text-align: center;
}

header h1 {
    margin-bottom: 0.25rem;
    color: #ffffff;
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: 0;
}

header .tagline {
    margin-bottom: 0;
    color: #c9d7e4;
    font-size: 0.96rem;
}

.header-meta {
    margin-top: 0.45rem;
    font-size: 0.82rem;
}

header p {
    color: #aebdca !important;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(24, 34, 48, 0.04);
    -webkit-overflow-scrolling: touch;
}

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

nav ul {
    width: max-content;
    min-width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.45rem 0.75rem;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
}

nav ul li {
    flex: 0 0 auto;
    margin: 0;
}

nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.72rem;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #425161;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

nav ul li a:hover {
    border-color: var(--border);
    background: var(--surface-muted);
    color: var(--accent-strong);
    text-decoration: none;
}

nav ul li a.active {
    border-color: #b5d7d2;
    background: #e7f4f2;
    color: var(--accent-strong);
}

/* Main layout */
main {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 1.65rem 1rem 2.25rem;
    flex: 1;
}

section {
    margin-bottom: 2rem;
}

h2,
h3,
h4,
h5 {
    color: var(--text);
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
    color: #10202f;
    font-size: 1.34rem;
}

h3 {
    margin-bottom: 0.7rem;
    color: #203040;
    font-size: 1.08rem;
}

h4 {
    margin-bottom: 0.45rem;
    color: #314252;
    font-size: 0.96rem;
}

h5 {
    margin-bottom: 0.4rem;
    color: #3a4c5c;
    font-size: 0.88rem;
}

/* Cards and grids */
.grid,
.team-cards,
.verify-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.card,
.pdk-info,
.comment-form,
.team-comment,
.cell-category,
.flow-container,
.proposal-card,
.verify-item,
.flow-box {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-soft);
}

.card,
.pdk-info,
.comment-form,
.team-comment {
    margin-bottom: 1rem;
    padding: 1rem;
}

.card h3,
.pdk-info h3 {
    margin-top: 0;
}

.card .card {
    box-shadow: none;
}

.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1rem;
    align-items: stretch;
}

.home-intro p {
    max-width: 62rem;
    font-size: 0.98rem;
}

.status-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid #b5d7d2;
    border-radius: var(--radius);
    background: #e7f4f2;
    box-shadow: var(--shadow-soft);
}

.status-card .status-label {
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-card strong {
    color: #10202f;
    font-size: 1.35rem;
}

.status-card span:last-child {
    color: var(--muted);
    font-size: 0.86rem;
}

.quick-links .card {
    display: flex;
    min-height: 11rem;
    flex-direction: column;
}

.quick-links .card p {
    flex: 1;
}

.quick-links .btn {
    align-self: flex-start;
}

.quick-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.quick-link-secondary {
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 700;
}

.project-overview p {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* A54 standalone video page */
.a54-page {
    background: #f6f8fb;
}

.a54-header {
    padding: 2rem 1rem 1.65rem;
}

.a54-kicker {
    margin: 0 0 0.45rem;
    color: #c9d7e4 !important;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0;
}

.a54-main {
    max-width: 1120px;
}

.a54-player-section {
    margin-bottom: 1.25rem;
}

.a54-video {
    display: block;
    width: 100%;
    max-height: min(70vh, 720px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #000000;
    box-shadow: 0 14px 34px rgba(16, 32, 47, 0.16);
}

.a54-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    margin-top: 0.9rem;
}

.a54-secondary-action {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    padding: 0.48rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.a54-secondary-action:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.a54-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.a54-info {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
}

.a54-info span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.a54-info strong {
    color: #10202f;
    font-size: 1rem;
}

.update-list {
    padding: 0;
    overflow: hidden;
}

.update-log-section {
    margin-bottom: 0;
}

.update-log {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.update-log summary {
    min-height: 3.2rem;
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.update-log summary::-webkit-details-marker {
    display: none;
}

.update-log summary::after {
    content: "展开";
    flex: 0 0 auto;
    padding: 0.16rem 0.55rem;
    border: 1px solid #b5d7d2;
    border-radius: 999px;
    background: #e7f4f2;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 800;
}

.update-log[open] summary::after {
    content: "收起";
}

.update-log .update-list.card {
    margin-bottom: 0;
    border: 0 !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 !important;
    box-shadow: none;
}

.update-item {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
}

.update-item:last-child {
    border-bottom: 0;
}

.update-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.35rem;
}

.update-meta span {
    color: var(--subtle);
    font-size: 0.78rem;
    font-weight: 700;
}

.update-meta strong {
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.update-item ul {
    margin: 0.35rem 0 0 1.15rem;
    padding: 0;
    color: var(--text);
    font-size: 0.88rem;
}

.pdk-info h3 {
    color: var(--warn);
}

.note {
    margin-bottom: 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #f0d98d;
    border-left: 4px solid #c4840b;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: #fff9e8;
    color: #604300;
    font-size: 0.88rem;
}

/* Actions */
.btn,
button,
.dir-nav-btn,
.file-action-btn {
    min-height: 2.25rem;
    border-radius: 6px !important;
    font: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.48rem 0.9rem;
    border: 1px solid var(--accent) !important;
    background: var(--accent) !important;
    color: #ffffff !important;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.btn:hover {
    border-color: var(--accent-strong) !important;
    background: var(--accent-strong) !important;
    text-decoration: none;
}

/* Progress */
.progress-bar {
    height: 0.58rem;
    margin: 0.5rem 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e3e9f1;
}

.progress-fill,
.progress-fill-warn {
    height: 100%;
    border-radius: inherit;
}

.progress-fill {
    background: linear-gradient(90deg, #1f8a4c, #3aa76d);
}

.progress-fill-warn {
    background: linear-gradient(90deg, #b8790a, #e6a821);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 0.88rem;
}

th,
td {
    border: 1px solid var(--border) !important;
    padding: 0.58rem 0.68rem;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef4fb !important;
    color: #26384a !important;
    font-weight: 750;
}

td {
    background: rgba(255, 255, 255, 0.72);
}

tr:hover td {
    background: #f5f8fc;
}

.comparison-table,
.verify-table {
    font-size: 0.84rem !important;
}

.comparison-table th,
.comparison-table td,
.verify-table th,
.verify-table td {
    border-color: var(--border) !important;
    color: var(--text) !important;
}

/* Badges and tags */
.badge,
.proposal-badge,
.cell-tag {
    display: inline-flex !important;
    align-items: center;
    max-width: 100%;
    border-radius: 6px !important;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
}

.badge {
    padding: 0.16rem 0.46rem;
    font-size: 0.72rem;
}

.badge-digital {
    background: #e7f1ff;
    color: var(--accent-blue);
}

.badge-util {
    background: #f1ecff;
    color: var(--violet);
}

.badge-analog {
    background: #e8f5ed;
    color: var(--success);
}

.cell-category {
    margin-bottom: 0.85rem;
    padding: 0.9rem;
    border-left: 4px solid var(--accent) !important;
}

.cell-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.cell-tag {
    padding: 0.22rem 0.5rem;
    border: 1px solid var(--border);
    background: #f1f5f9;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
}

.cell-tag:hover {
    border-color: #b5d7d2;
    background: #e7f4f2;
}

/* Flow */
.flow-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.flow-node {
    min-width: 82px;
    padding: 0.55rem 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-muted);
}

.flow-node-icon {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.flow-node-label {
    margin-bottom: 0.12rem;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.flow-node-desc {
    color: var(--muted);
    font-size: 0.66rem;
    text-align: center;
}

.flow-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: var(--border-strong);
    font-size: 1rem;
}

.flow-note {
    margin-top: 0.75rem;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

/* Forms and comments */
.team-comment {
    border-left: 4px solid var(--accent-blue) !important;
}

.team-comment .author {
    color: var(--accent-blue);
    font-weight: 750;
    font-size: 0.9rem;
}

.team-comment .date {
    margin-left: 0.4rem;
    color: var(--subtle);
    font-size: 0.76rem;
}

.team-comment .content {
    margin-top: 0.42rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.comment-form label {
    display: block;
    margin-bottom: 0.28rem;
    color: #314252;
    font-size: 0.84rem;
    font-weight: 700;
}

.comment-form input,
.comment-form textarea,
.comment-form select,
select,
input,
textarea {
    width: 100%;
    padding: 0.6rem 0.65rem;
    border: 1px solid var(--border-strong) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: var(--text) !important;
    font: inherit;
    font-size: 0.9rem;
}

.comment-form input:focus,
.comment-form textarea:focus,
.comment-form select:focus,
select:focus,
input:focus,
textarea:focus {
    outline: 2px solid rgba(15, 118, 110, 0.18);
    border-color: var(--accent) !important;
}

.comment-form textarea {
    min-height: 86px;
    resize: vertical;
}

/* Share page */
.upload-zone {
    margin-bottom: 1.5rem !important;
    padding: 2rem 1rem !important;
    border: 2px dashed #b8c4d2 !important;
    border-radius: var(--radius) !important;
    background: #f7fbff !important;
    text-align: center;
}

.upload-zone.dragover {
    border-color: var(--accent) !important;
    background: #e7f4f2 !important;
}

.upload-zone.locked {
    border-color: #c9d2dc !important;
    background: #f1f4f7 !important;
    cursor: not-allowed;
}

.upload-zone.locked .upload-zone-icon,
.upload-zone.locked .upload-zone-text {
    color: #596b7a !important;
}

.upload-zone-icon {
    margin-bottom: 0.45rem !important;
    font-size: 2.15rem !important;
}

.upload-zone-text {
    color: var(--text) !important;
    font-size: 0.95rem !important;
}

.upload-zone-hint {
    margin-top: 0.45rem !important;
    color: var(--muted) !important;
    font-size: 0.8rem !important;
}

.dir-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.dir-nav-btn {
    padding: 0.35rem 0.7rem !important;
    border: 1px solid var(--border-strong) !important;
    background: #ffffff !important;
    color: var(--text) !important;
    cursor: pointer;
}

.dir-nav-btn:hover,
.dir-nav-btn.active {
    border-color: var(--accent) !important;
    background: #e7f4f2 !important;
    color: var(--accent-strong) !important;
}

.dir-nav-sep {
    color: var(--subtle) !important;
}

.file-item,
.file-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.65rem 0.72rem !important;
    border-bottom: 1px solid var(--border) !important;
}

.file-item:last-child,
.file-row:last-child {
    border-bottom: none !important;
}

.file-row:hover {
    background: var(--surface-muted) !important;
}

.file-icon {
    flex: 0 0 1.35rem;
    color: var(--muted);
    font-size: 1.08rem !important;
    text-align: center;
}

.file-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--accent-blue) !important;
    font-size: 0.86rem !important;
    overflow-wrap: anywhere;
}

.file-meta,
.file-size {
    flex: 0 0 auto;
    color: var(--subtle) !important;
    font-size: 0.76rem !important;
    white-space: nowrap;
}

.file-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.35rem;
}

.file-action-btn {
    min-height: 1.9rem;
    padding: 0.22rem 0.5rem !important;
    border: 1px solid var(--border-strong) !important;
    background: #ffffff !important;
    color: var(--muted) !important;
    cursor: pointer;
}

.file-action-btn:hover {
    border-color: var(--accent) !important;
    color: var(--accent-strong) !important;
}

.file-action-btn.del:hover {
    border-color: var(--danger) !important;
    color: var(--danger) !important;
}

.upload-status {
    margin-bottom: 1rem !important;
    padding: 0.75rem 0.9rem !important;
    border-radius: 6px !important;
    font-size: 0.86rem !important;
}

.upload-status.success {
    border: 1px solid #b7dfc2 !important;
    background: #ecf8ef !important;
    color: var(--success) !important;
}

.upload-status.error {
    border: 1px solid #f2b8b5 !important;
    background: #fff1f0 !important;
    color: var(--danger) !important;
}

.upload-status.locked {
    border: 1px solid #d5dde6 !important;
    background: #f4f7fa !important;
    color: #415363 !important;
}

.upload-progress {
    height: 0.45rem !important;
    margin-top: 0.5rem !important;
    overflow: hidden;
    border-radius: 999px !important;
    background: #e3e9f1 !important;
}

.upload-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #37a169) !important;
}

/* Proposal page */
.proposal-card {
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem !important;
    border-left-width: 5px !important;
}

.proposal-card.purple {
    border-left-color: var(--violet) !important;
}

.proposal-card.blue {
    border-left-color: var(--accent-blue) !important;
}

.proposal-badge {
    margin-right: 0.45rem !important;
    padding: 0.18rem 0.5rem !important;
    font-size: 0.74rem !important;
}

.proposal-badge.opt1 {
    background: #f0ecff !important;
    color: var(--violet) !important;
}

.proposal-badge.opt2 {
    background: #e7f1ff !important;
    color: var(--accent-blue) !important;
}

.verify-item,
.flow-box {
    padding: 0.75rem !important;
    box-shadow: none;
}

.flow-box h5 {
    color: var(--violet) !important;
}

/* Inline dark-theme cleanup from the older pages */
[style*="background:#0d1117"],
[style*="background: #0d1117"],
[style*="background:#161b22"],
[style*="background: #161b22"] {
    background: var(--surface-muted) !important;
}

[style*="border:1px solid #30363d"],
[style*="border: 1px solid #30363d"],
[style*="border-bottom:1px solid #21262d"],
[style*="border-bottom: 1px solid #21262d"] {
    border-color: var(--border) !important;
}

[style*="color:#c9d1d9"],
[style*="color: #c9d1d9"] {
    color: var(--text) !important;
}

[style*="color:#8b949e"],
[style*="color: #8b949e"] {
    color: var(--muted) !important;
}

[style*="color:#484f58"],
[style*="color: #484f58"] {
    color: var(--subtle) !important;
}

[style*="color:#58a6ff"],
[style*="color: #58a6ff"] {
    color: var(--accent-blue) !important;
}

[style*="color:#bc8cff"],
[style*="color: #bc8cff"] {
    color: var(--violet) !important;
}

[style*="color:#3fb950"],
[style*="color: #3fb950"] {
    color: var(--success) !important;
}

[style*="color:#e3b341"],
[style*="color: #e3b341"],
[style*="color:#d29922"],
[style*="color: #d29922"] {
    color: var(--warn) !important;
}

[style*="color:#f85149"],
[style*="color: #f85149"] {
    color: var(--danger) !important;
}

/* Footer */
footer {
    padding: 1.35rem 1rem;
    border-top: 1px solid var(--border);
    background: #ffffff;
    color: var(--subtle);
    font-size: 0.8rem;
    text-align: center;
}

footer p {
    margin-bottom: 0;
    color: var(--subtle);
}

@media (max-width: 900px) {
    nav ul {
        justify-content: flex-start;
    }

    .grid,
    .team-cards,
    .verify-grid {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }
}

@media (max-width: 720px) {
    .notice-banner {
        padding: 0.48rem 0.75rem;
        text-align: left;
    }

    .notice-banner-inner {
        justify-content: flex-start;
    }

    .notice-text {
        font-size: 0.76rem;
    }

    header {
        padding: 1.35rem 0.85rem 1.05rem;
        text-align: left;
    }

    header h1 {
        font-size: 1.52rem;
    }

    header .tagline {
        font-size: 0.86rem;
    }

    nav {
        overflow-x: visible;
    }

    nav ul {
        width: 100%;
        padding: 0.42rem 0.65rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    nav ul li a {
        min-height: 2.05rem;
        padding: 0.4rem 0.5rem;
        font-size: 0.76rem;
    }

    main {
        padding: 1.1rem 0.75rem 1.75rem;
    }

    section {
        margin-bottom: 1.55rem;
    }

    h2 {
        display: block;
        font-size: 1.16rem;
    }

    h3 {
        font-size: 1rem;
    }

    h4 {
        font-size: 0.92rem;
    }

    p,
    li {
        font-size: 0.93rem;
    }

    .grid,
    .team-cards,
    .verify-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .home-intro {
        grid-template-columns: 1fr;
    }

    .home-intro p {
        font-size: 0.93rem;
    }

    .status-card strong {
        font-size: 1.18rem;
    }

    .quick-links .card {
        min-height: auto;
    }

    .a54-info-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .pdk-info,
    .comment-form,
    .team-comment,
    .cell-category,
    .proposal-card {
        padding: 0.88rem !important;
        margin-bottom: 0.85rem;
    }

    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.82rem;
    }

    th,
    td {
        min-width: 8.5rem;
        padding: 0.5rem 0.55rem;
    }

    th:first-child,
    td:first-child {
        min-width: 6rem;
    }

    table.responsive-table {
        display: block;
        overflow: visible;
        margin-bottom: 0;
        font-size: 0.86rem;
    }

    table.responsive-table tbody,
    table.responsive-table tr,
    table.responsive-table td {
        display: block;
        width: 100%;
    }

    table.responsive-table tr:first-child {
        display: none;
    }

    table.responsive-table tr {
        margin-bottom: 0.65rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface-muted);
    }

    table.responsive-table tr:last-child {
        margin-bottom: 0;
    }

    table.responsive-table td {
        min-width: 0;
        padding: 0;
        border: 0 !important;
        background: transparent;
        color: var(--text);
        overflow-wrap: anywhere;
    }

    table.responsive-table td:first-child {
        color: var(--accent-strong);
        font-weight: 800;
        line-height: 1.35;
    }

    table.responsive-table td + td {
        margin-top: 0.45rem;
        padding-top: 0.45rem;
        border-top: 1px solid var(--border) !important;
        color: var(--muted);
    }

    table.responsive-table td::before {
        display: block;
        margin-bottom: 0.15rem;
        color: var(--subtle);
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
        content: attr(data-label);
    }

    table.responsive-table td:first-child::before {
        color: var(--accent-strong);
    }

    pre {
        overflow-x: hidden;
        white-space: pre-wrap;
    }

    pre code {
        white-space: inherit;
        overflow-wrap: anywhere;
    }

    .pdk-page table.pdk-table {
        display: block;
        overflow: visible;
        margin-bottom: 0;
        font-size: 0.86rem;
    }

    .pdk-page table.pdk-table tbody,
    .pdk-page table.pdk-table tr,
    .pdk-page table.pdk-table td {
        display: block;
        width: 100%;
    }

    .pdk-page table.pdk-table tr:first-child {
        display: none;
    }

    .pdk-page table.pdk-table tr {
        margin-bottom: 0.65rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface-muted);
    }

    .pdk-page table.pdk-table tr:last-child {
        margin-bottom: 0;
    }

    .pdk-page table.pdk-table td {
        min-width: 0;
        padding: 0;
        border: 0 !important;
        background: transparent;
        color: var(--text);
        overflow-wrap: anywhere;
    }

    .pdk-page table.pdk-table td:first-child {
        color: var(--accent-strong);
        font-weight: 800;
        line-height: 1.35;
    }

    .pdk-page table.pdk-table td + td {
        margin-top: 0.45rem;
        padding-top: 0.45rem;
        border-top: 1px solid var(--border) !important;
        color: var(--muted);
    }

    .pdk-page table.pdk-table td + td::before {
        display: block;
        margin-bottom: 0.15rem;
        color: var(--subtle);
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .pdk-page table.pdk-table-keyvalue td:nth-child(2)::before {
        content: "值";
    }

    .pdk-page table.pdk-table-compare td:nth-child(2)::before {
        content: "7T / mcu7t5v0";
    }

    .pdk-page table.pdk-table-compare td:nth-child(3)::before {
        content: "9T / mcu9t5v0";
    }

    .pdk-page table.pdk-table-taxonomy td:nth-child(2)::before {
        content: "数量";
    }

    .pdk-page table.pdk-table-taxonomy td:nth-child(3)::before {
        content: "说明";
    }

    .pdk-page table.pdk-table-modules td:nth-child(2)::before {
        content: "类型";
    }

    .pdk-page table.pdk-table-modules td:nth-child(3)::before {
        content: "描述";
    }

    .flow-container {
        justify-content: flex-start;
        flex-wrap: wrap;
        overflow-x: hidden;
        padding: 0.75rem;
    }

    .flow-node {
        flex: 1 1 7rem;
        min-width: 0;
    }

    .flow-arrow {
        display: none;
    }

    .upload-zone {
        padding: 1.4rem 0.85rem !important;
    }

    .dir-nav {
        flex-wrap: wrap;
        overflow-x: hidden;
        padding-bottom: 0.2rem;
    }

    .dir-nav-btn {
        flex: 0 0 auto;
    }

    .file-row,
    .file-item {
        max-width: 100%;
        overflow: hidden;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .file-icon {
        flex-basis: 1.25rem;
    }

    .file-name {
        flex-basis: calc(100% - 1.75rem);
    }

    .file-meta,
    .file-size {
        max-width: calc(100% - 1.75rem);
        margin-left: 1.75rem;
        white-space: normal;
    }

    .file-actions {
        width: calc(100% - 1.75rem);
        margin-left: 1.75rem;
        flex-wrap: wrap;
    }

    .comment-form input,
    .comment-form textarea,
    .comment-form select,
    select,
    input,
    textarea {
        font-size: 1rem;
    }

    footer {
        padding: 1rem 0.75rem;
    }
}

@media (max-width: 420px) {
    .notice-text {
        font-size: 0.72rem;
    }

    header h1 {
        font-size: 1.38rem;
    }

    nav ul li a {
        padding-inline: 0.52rem;
    }

    main {
        padding-inline: 0.62rem;
    }

    .btn {
        width: 100%;
    }

    .proposal-card h3 {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
}
