:root {
  --mobile-bg: #f5f5f7;
  --mobile-surface: #ffffff;
  --mobile-surface-soft: #fbfbfd;
  --mobile-panel: rgba(255, 255, 255, 0.9);
  --mobile-panel-strong: rgba(255, 255, 255, 0.96);
  --mobile-ink: #1d1d1f;
  --mobile-ink-soft: #424245;
  --mobile-muted: #6e6e73;
  --mobile-subtle: #86868b;
  --mobile-line: rgba(0, 0, 0, 0.1);
  --mobile-line-soft: rgba(0, 0, 0, 0.06);
  --mobile-blue: #0071e3;
  --mobile-blue-soft: #e8f2ff;
  --mobile-green: #2d7d5a;
  --mobile-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  --mobile-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.mobile-site {
  display: none;
}

@media (max-width: 900px) {
  /* Mobile owns a separate app-like shell; desktop markup remains present but hidden. */
  html,
  body {
    background: var(--mobile-bg);
  }

  .page-shell > .site-header,
  .page-shell > main:not(.mobile-site),
  .page-shell > .site-footer {
    display: none !important;
  }

  .mobile-site {
    display: block;
    min-height: 100vh;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: visible;
    background:
      linear-gradient(180deg, #ffffff 0, #f5f5f7 620px, #ffffff 100%);
    color: var(--mobile-ink);
    font-family: "Noto Sans SC", "Manrope", system-ui, sans-serif;
  }

  .mobile-site *,
  .mobile-site *::before,
  .mobile-site *::after {
    box-sizing: border-box;
    min-width: 0;
  }

  .mobile-site img {
    display: block;
    max-width: 100%;
  }

  .mobile-site button,
  .mobile-site a {
    color: inherit;
    font: inherit;
    text-decoration: none;
  }

  .mobile-site button {
    cursor: pointer;
  }

  .mobile-site section {
    width: min(calc(100% - 28px), 640px);
    margin: 0 auto;
  }

  /* Shared section heads keep long bilingual headings compact while using a white mobile tone. */
  .mobile-section-head {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
  }

  .mobile-section-head p {
    margin: 0;
    color: var(--mobile-blue);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .mobile-section-head h2 {
    margin: 0;
    color: var(--mobile-ink);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 1.56rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  html[data-language="zh"] .mobile-section-head h2 {
    font-family: "Noto Serif SC", "STKaiti", "Kaiti SC", serif;
    font-weight: 700;
  }

  .mobile-section-head h2 span {
    color: var(--mobile-blue);
  }

  .mobile-section-head.is-dark h2,
  .mobile-section-head.is-dark p {
    color: var(--mobile-ink);
  }

  .mobile-section-head.is-dark p {
    color: var(--mobile-blue);
  }

  /* Pure typographic mobile hero: no top image, just a clear Apple-like white introduction. */
  .mobile-hero {
    position: relative;
    width: min(calc(100% - 28px), 640px);
    min-height: auto;
    display: grid;
    align-content: start;
    padding: 26px 0 28px;
    isolation: isolate;
    background: #ffffff;
  }

  .mobile-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 220px;
    background:
      radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.12), rgba(0, 113, 227, 0) 62%),
      linear-gradient(180deg, #ffffff, rgba(245, 245, 247, 0));
    pointer-events: none;
  }

  .mobile-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 90px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--mobile-bg));
    pointer-events: none;
  }

  .mobile-hero-card {
    position: relative;
    width: min(100%, 560px);
    margin: 0 auto;
    display: grid;
    gap: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mobile-ink);
  }

  .mobile-language {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--mobile-line);
    border-radius: 999px;
    background: rgba(245, 245, 247, 0.82);
  }

  .mobile-lang-button {
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--mobile-muted);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
  }

  .mobile-lang-button.is-active {
    background: var(--mobile-ink);
    color: #ffffff;
  }

  .mobile-kicker {
    margin: 0;
    color: var(--mobile-blue);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .mobile-hero-card h1 {
    margin: 0;
    max-width: 100%;
    color: var(--mobile-ink);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: clamp(1.88rem, 8.4vw, 2.42rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .mobile-hero-card h1 .hero-title-line {
    display: block;
  }

  html[data-language="zh"] .mobile-hero-card h1 {
    max-width: 10em;
    font-family: "Noto Serif SC", "STKaiti", "Kaiti SC", serif;
    font-size: clamp(2.2rem, 9.8vw, 3rem);
    font-weight: 700;
    line-height: 1.04;
  }

  .mobile-hero-lead {
    margin: 0;
    max-width: 31rem;
    display: block;
    color: var(--mobile-muted);
    font-size: 0.94rem;
    line-height: 1.58;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mobile-hero-lead .hero-lead-item {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }

  .mobile-hero-lead .hero-lead-item + .hero-lead-item::before {
    content: "·";
    margin: 0 0.45em;
    color: var(--mobile-subtle);
  }

  .mobile-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-hero-actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow: visible;
  }

  .mobile-hero-actions a:first-child {
    background: var(--mobile-blue);
    color: #ffffff;
    box-shadow: none;
  }

  .mobile-hero-actions a:last-child {
    border: 1px solid var(--mobile-line);
    background: #ffffff;
    color: var(--mobile-ink);
  }

  .mobile-proof,
  .mobile-focus,
  .mobile-research,
  .mobile-cases,
  .mobile-publications,
  .mobile-honors,
  .mobile-materials {
    padding-top: 38px;
  }

  .mobile-proof {
    margin-top: 0;
  }

  .mobile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mobile-stat-grid article {
    min-height: 148px;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--mobile-line-soft);
    border-radius: 8px;
    background: var(--mobile-surface);
    box-shadow: var(--mobile-shadow-soft);
  }

  .mobile-stat-grid strong {
    color: var(--mobile-ink);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-stat-grid span {
    color: var(--mobile-blue);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .mobile-stat-grid p {
    margin: 0;
    color: var(--mobile-muted);
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .mobile-visual-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-visual-card {
    display: grid;
    gap: 0;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--mobile-line-soft);
    border-radius: 8px;
    background: var(--mobile-surface);
    box-shadow: var(--mobile-shadow-soft);
  }

  .mobile-visual-card.is-wide {
    grid-column: 1 / -1;
  }

  .mobile-visual-card img {
    width: 100%;
    height: 132px;
    object-fit: cover;
    background: #f5f5f7;
  }

  .mobile-visual-card.is-wide img {
    height: 176px;
  }

  .mobile-visual-card:nth-child(2) img,
  .mobile-visual-card:nth-child(3) img {
    object-fit: contain;
    padding: 10px;
  }

  .mobile-visual-card figcaption {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--mobile-ink);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.34;
  }

  /* Expertise cards become clean product-like rows with stable media slots. */
  .mobile-timeline {
    display: grid;
    gap: 12px;
  }

  .mobile-timeline-item {
    position: relative;
    width: 100%;
    min-height: 128px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--mobile-line-soft);
    border-radius: 8px;
    background: var(--mobile-surface);
    box-shadow: var(--mobile-shadow-soft);
    text-align: left;
  }

  .mobile-timeline-item:first-child {
    grid-template-columns: 1fr;
  }

  .mobile-timeline-item span {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: 999px;
    background: rgba(232, 242, 255, 0.94);
    color: var(--mobile-blue);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
  }

  .mobile-timeline-item img {
    grid-row: 1 / span 2;
    width: 112px;
    height: 100%;
    min-height: 128px;
    object-fit: cover;
    background: #f5f5f7;
  }

  .mobile-timeline-item:first-child img {
    grid-row: auto;
    width: 100%;
    height: 184px;
  }

  .mobile-timeline-item:nth-child(2) img,
  .mobile-timeline-item:nth-child(3) img,
  .mobile-timeline-item:nth-child(4) img,
  .mobile-timeline-item:nth-child(5) img,
  .mobile-timeline-item:nth-child(6) img {
    object-fit: contain;
    padding: 12px;
    background: #f5f5f7;
  }

  .mobile-timeline-item strong,
  .mobile-timeline-item p {
    grid-column: 2;
    padding-right: 14px;
    padding-left: 14px;
  }

  .mobile-timeline-item:first-child strong,
  .mobile-timeline-item:first-child p {
    grid-column: 1;
  }

  .mobile-timeline-item:first-child strong {
    padding-top: 12px;
  }

  .mobile-timeline-item strong {
    align-self: start;
    padding-top: 42px;
    color: var(--mobile-ink);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 0;
  }

  html[data-language="zh"] .mobile-timeline-item strong {
    font-family: "Noto Sans SC", sans-serif;
  }

  .mobile-timeline-item p {
    margin: 6px 0 12px;
    color: var(--mobile-muted);
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .mobile-research-carousel {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border: 1px solid var(--mobile-line-soft);
    border-radius: 8px;
    background: #f5f5f7;
    box-shadow: var(--mobile-shadow-soft);
  }

  .mobile-research-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(29, 29, 31, 0.18));
    pointer-events: none;
  }

  .mobile-research-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 700ms ease, transform 2600ms ease;
  }

  .mobile-research-carousel img.is-active {
    opacity: 1;
    transform: scale(1);
  }

  .mobile-research-text {
    margin-top: 14px;
    display: grid;
    gap: 12px;
    color: var(--mobile-muted);
    font-size: 0.86rem;
    line-height: 1.68;
  }

  .mobile-research-text p {
    margin: 0;
  }

  .mobile-case-intro {
    margin: -6px 0 14px;
    color: var(--mobile-muted);
    font-size: 0.86rem;
    line-height: 1.66;
  }

  .mobile-site .mobile-case-state {
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px dashed rgba(0, 113, 227, 0.24);
    border-radius: 8px;
    background: #ffffff;
    color: var(--mobile-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    box-shadow: var(--mobile-shadow-soft);
  }

  .mobile-site .mobile-case-state[hidden],
  .mobile-site .mobile-case-grid[hidden] {
    display: none !important;
  }

  .mobile-site .mobile-case-grid {
    display: grid;
    gap: 14px;
  }

  .mobile-site .mobile-case-grid .case-board-card {
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--mobile-line-soft);
    border-radius: 8px;
    background: #ffffff;
    color: var(--mobile-ink);
    box-shadow: var(--mobile-shadow);
    text-decoration: none;
  }

  .mobile-site .mobile-case-grid .case-card-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 106px;
    gap: 4px;
    overflow: hidden;
    padding: 4px;
    background: #f5f5f7;
  }

  .mobile-site .mobile-case-grid .case-card-media.is-single {
    display: block;
    height: 224px;
    padding: 0;
  }

  .mobile-site .mobile-case-grid .case-card-media img,
  .mobile-site .mobile-case-grid .case-card-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 6px;
    background: #ffffff;
  }

  .mobile-site .mobile-case-grid .case-card-media.is-single img,
  .mobile-site .mobile-case-grid .case-card-media.is-single video {
    border-radius: 0;
  }

  .mobile-site .mobile-case-grid .case-card-placeholder {
    min-height: 224px;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
      linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(45, 125, 90, 0.1)),
      #ffffff;
    color: var(--mobile-muted);
    font-size: 0.86rem;
    text-align: center;
  }

  .mobile-site .mobile-case-grid .case-card-placeholder.is-sensitive {
    background:
      radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0) 34%),
      linear-gradient(180deg, #060708, #121214);
    color: rgba(255, 250, 240, 0.82);
  }

  .mobile-site .mobile-case-grid .case-card-copy {
    display: grid;
    gap: 9px;
    padding: 16px;
  }

  .mobile-site .mobile-case-grid .case-card-index {
    width: fit-content;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--mobile-blue-soft);
    color: var(--mobile-blue);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-site .mobile-case-grid .case-card-title {
    margin: 0;
    color: var(--mobile-ink);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .mobile-site .mobile-case-grid .case-card-summary {
    margin: 0;
    color: var(--mobile-muted);
    font-size: 0.84rem;
    line-height: 1.62;
  }

  .mobile-site .mobile-case-grid .case-card-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
  }

  .mobile-site .mobile-case-grid .case-card-pill {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(45, 125, 90, 0.18);
    border-radius: 999px;
    background: rgba(45, 125, 90, 0.08);
    color: var(--mobile-green);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-paper-list {
    display: grid;
    gap: 10px;
  }

  .mobile-paper-list button {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    padding: 14px;
    border: 1px solid var(--mobile-line-soft);
    border-radius: 8px;
    background: var(--mobile-surface);
    box-shadow: var(--mobile-shadow-soft);
    text-align: left;
  }

  .mobile-paper-list span {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--mobile-blue-soft);
    color: var(--mobile-blue);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
  }

  .mobile-paper-list strong {
    min-width: 0;
    color: var(--mobile-ink);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.36;
    overflow-wrap: anywhere;
  }

  .mobile-paper-list em {
    color: var(--mobile-muted);
    font-style: normal;
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .mobile-honor-wall {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-honor-wall button {
    width: 100%;
    display: grid;
    grid-template-rows: 120px minmax(72px, auto);
    overflow: hidden;
    border: 1px solid var(--mobile-line-soft);
    border-radius: 8px;
    background: var(--mobile-surface);
    box-shadow: var(--mobile-shadow-soft);
    text-align: left;
  }

  .mobile-honor-wall img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f5f5f7;
  }

  .mobile-honor-wall button:nth-child(2) img,
  .mobile-honor-wall button:nth-child(3) img,
  .mobile-honor-wall button:nth-child(6) img {
    object-fit: contain;
    padding: 8px;
    background: #f5f5f7;
  }

  .mobile-honor-wall strong {
    padding: 10px;
    color: var(--mobile-ink);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.34;
    overflow-wrap: anywhere;
  }

  .mobile-material-grid {
    display: grid;
    gap: 10px;
  }

  .mobile-material-grid button,
  .mobile-material-grid a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--mobile-line-soft);
    border-radius: 8px;
    background: var(--mobile-surface);
    box-shadow: var(--mobile-shadow-soft);
  }

  .mobile-material-grid span {
    min-width: 0;
    color: var(--mobile-ink);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.3;
  }

  .mobile-material-grid small {
    flex: 0 0 auto;
    color: var(--mobile-blue);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  /* Mobile-only dock uses mobile section ids; desktop navigation remains untouched. */
  .page-shell > .mobile-dock {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 80;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: auto;
    max-width: 620px;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: none !important;
    backdrop-filter: blur(20px) saturate(1.18);
    -webkit-backdrop-filter: blur(20px) saturate(1.18);
  }

  .mobile-dock a {
    min-width: 0;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 6px;
    color: var(--mobile-muted);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
  }

  .mobile-dock a.is-active {
    background: var(--mobile-blue);
    color: #ffffff;
  }

  body.nav-open .mobile-dock,
  body.overlay-open .mobile-dock {
    display: none !important;
  }

  /* The guestbook comes from cases.css; these overrides keep it in the same white mobile system. */
  .mobile-site .site-message-section {
    margin-top: 30px;
    padding-bottom: 24px;
  }

  .mobile-site .site-message-shell {
    display: grid;
    gap: 14px;
  }

  .mobile-site .site-message-form,
  .mobile-site .site-message-card {
    border: 1px solid var(--mobile-line-soft);
    border-radius: 8px;
    background: var(--mobile-surface);
    box-shadow: var(--mobile-shadow-soft);
  }

  .mobile-site .site-message-form {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .mobile-site .site-message-form label {
    display: grid;
    gap: 7px;
  }

  .mobile-site .site-message-form span {
    color: var(--mobile-muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .mobile-site .site-message-form input,
  .mobile-site .site-message-form textarea {
    width: 100%;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: #fbfbfd;
    color: var(--mobile-ink);
    padding: 11px 12px;
    font: inherit;
    outline: none;
    resize: vertical;
  }

  .mobile-site .site-message-form input:focus,
  .mobile-site .site-message-form textarea:focus {
    border-color: rgba(0, 113, 227, 0.58);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
  }

  .mobile-site .site-message-actions {
    display: grid;
    gap: 8px;
  }

  .mobile-site .site-message-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--mobile-blue);
    color: #ffffff;
    font-weight: 800;
  }

  .mobile-site .site-message-actions small {
    min-height: 20px;
    color: var(--mobile-blue);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .mobile-site .site-message-list {
    display: grid;
    gap: 10px;
  }

  .mobile-site .site-message-card {
    display: grid;
    gap: 7px;
    padding: 12px;
  }

  .mobile-site .site-message-card strong,
  .mobile-site .site-message-card p {
    margin: 0;
  }

  .mobile-site .site-message-card strong {
    color: var(--mobile-ink);
  }

  .mobile-site .site-message-card time {
    color: var(--mobile-subtle);
    font-size: 0.72rem;
  }

  .mobile-site .site-message-card p {
    color: var(--mobile-muted);
    font-size: 0.9rem;
    line-height: 1.66;
  }

  .mobile-site .site-message-reply {
    padding: 10px;
    border-left: 3px solid var(--mobile-blue);
    border-radius: 8px;
    background: var(--mobile-blue-soft);
  }

  .mobile-site .site-message-reply span {
    color: var(--mobile-blue);
    font-size: 0.72rem;
    font-weight: 800;
  }

  .mobile-site .site-message-reply p {
    margin-top: 5px;
    color: var(--mobile-ink-soft);
  }
}

@media (max-width: 640px) {
  .mobile-site section {
    width: min(calc(100% - 20px), 640px);
  }

  .mobile-hero {
    min-height: auto;
    padding-top: 24px;
    padding-right: 0;
    padding-left: 0;
  }

  .mobile-hero-card {
    padding: 0;
  }

  .mobile-hero-card h1 {
    font-size: clamp(1.7rem, 7.6vw, 2.12rem);
  }

  html[data-language="zh"] .mobile-hero-card h1 {
    font-size: clamp(2rem, 9vw, 2.54rem);
  }

  .mobile-hero-lead {
    font-size: 0.88rem;
  }

  .mobile-hero-actions a {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.86rem;
  }

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

  .mobile-section-head h2 {
    font-size: 1.34rem;
  }

  .mobile-timeline-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .mobile-timeline-item img {
    width: 104px;
  }

  .mobile-honor-wall {
    gap: 8px;
  }

  .mobile-dock a {
    font-size: 0.68rem;
  }
}

@media (max-width: 370px) {
  .mobile-hero-actions {
    grid-template-columns: 1fr;
  }

  .mobile-stat-grid,
  .mobile-honor-wall {
    grid-template-columns: 1fr;
  }

  .mobile-timeline-item {
    grid-template-columns: 1fr;
  }

  .mobile-timeline-item img {
    width: 100%;
    height: 168px;
  }

  .mobile-timeline-item strong,
  .mobile-timeline-item p {
    grid-column: 1;
  }
}
