@charset "UTF-8";

/*
 * 字号调整入口
 * 平时只需修改下面五个字号，全站与三维查看器会一起更新。
 * 手机与电脑使用相同的可读性下限，不再把小字缩到 6–11px。
 */
:root {
  --font-caption: 13px; /* 短英文标识、技术标签、项目序号 */
  --font-label: 14px;   /* 说明文字、状态、图注、项目网络节点 */
  --font-small: 15px;   /* 次要按钮、语言名称、模型操作 */
  --font-body: 16px;    /* 正文、导航、项目简介 */
  --font-lead: 18px;    /* 个人介绍、项目开篇说明 */
}

/* 基础阅读与控件：文字变大时允许容器自然长高。 */
body {
  font-size: var(--font-body);
  line-height: 1.7;
}

.header-inner {
  height: auto;
  min-height: 96px;
  padding-block: 18px;
}

.brand-name { line-height: 1.5; }
.brand-name small { letter-spacing: .6px; }

.site-header nav > a,
.contact-nav,
.menu-toggle,
.button-primary,
.language-shortcuts > a,
.network-filters button,
.network-footer > button,
.contact-row > button,
.dialog-bar button {
  min-height: 44px;
}

.site-header nav > a {
  display: flex;
  align-items: center;
}

.hero-actions,
.hero-education,
.network-heading,
.network-footer,
.catalog-toolbar,
.card-meta,
.card-bottom,
.site-footer,
.model-top {
  flex-wrap: wrap;
}

.hero-education { gap: 12px 25px; }
.hero-education > span { line-height: 1.8; }
.eyebrow { overflow-wrap: anywhere; }

/* 项目网络：扩大节点与提示文字，按容器宽度切换布局。 */
.network-panel { container-type: inline-size; }

.network-heading {
  gap: 8px 22px;
  line-height: 1.7;
}

.network-filters {
  gap: 8px;
  padding: 18px 20px 4px;
}

.network-filters button {
  font-size: var(--font-label);
  padding: 10px 12px;
  line-height: 1.6;
}

.network-stage { height: 520px; }

.network-node {
  font-size: var(--font-label);
  line-height: 1.6;
  min-height: 44px;
  max-width: 190px;
  padding: 10px 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.network-dock {
  padding: 24px;
  gap: 18px 28px;
  align-items: flex-start;
  min-height: 150px;
}

.network-dock > div { flex: 1; }
.network-dock > div > span { line-height: 1.8; }
.network-dock h2 { font-size: 22px; margin-block: 10px; }
.network-dock p { font-size: var(--font-label); max-width: 560px; }
.network-dock > a { font-size: var(--font-small); padding-block: 6px; }
.network-footer { gap: 8px 20px; padding: 12px 22px; line-height: 1.8; }
.network-footer > button { flex-shrink: 0; }

@container (max-width: 619px) {
  .network-stage { height: 580px; }
  .network-node { max-width: calc((100cqw - 34px) / 2); }
}

/* 项目库与 AI 案例：卡片保留足够宽度，让说明与标签自然换行。 */
.catalog-toolbar { gap: 18px 28px; align-items: flex-start; }
.catalog-filters { gap: 12px; }

.catalog-filters > button {
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  gap: 12px;
  font-family: var(--sans);
  font-size: var(--font-small);
  line-height: 1.6;
  white-space: normal;
}

#catalog-status { white-space: normal; align-self: center; }
.catalog-note { gap: 8px; padding-block: 24px; }

.catalog-grid,
.ai-case-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.ai-case-grid > .project-card:last-child { grid-column: auto; max-width: none; }
.card-meta { min-height: 74px; padding: 18px 22px; gap: 8px 18px; line-height: 1.7; }
.card-meta > span:first-child { overflow-wrap: anywhere; }
.card-body { padding: 26px; }
.card-body > p { line-height: 1.95; }
.tags { gap: 8px; }
.tags > span { padding: 4px 8px; overflow-wrap: anywhere; max-width: 100%; }
.card-body > .tags { margin-top: 24px; }
.card-bottom { gap: 10px 18px; line-height: 1.8; padding-top: 25px; }
.agent-diagram { gap: 14px; padding: 0; }
.agent-diagram > div { padding: 16px 12px; min-width: 0; }
.agent-diagram small { line-height: 1.65; overflow-wrap: anywhere; }
.workflow { gap: 20px; flex-wrap: wrap; }
.capability p { line-height: 2; }
.project-role > p,
.project-details p { line-height: 2; }
.breadcrumbs { flex-wrap: wrap; line-height: 1.8; }
.gallery figcaption { line-height: 1.9; margin-top: 14px; }
.model-frame { min-height: 600px; }

/* 页脚与完整图片：不固定文字高度，短屏幕也保留可用的关闭按钮。 */
.site-footer {
  min-height: 118px;
  padding-block: 26px;
  gap: 16px 28px;
}

.site-footer > span { max-width: none; }
.site-footer > a:last-child { overflow-wrap: anywhere; }

.lightbox[open] {
  display: flex;
  flex-direction: column;
  height: min(980px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
}

.dialog-bar,
.dialog-bottom { flex-shrink: 0; }
.dialog-bar { align-items: flex-start; gap: 16px; }
.dialog-bar > p,
.dialog-bar > h2 { padding-top: 7px; overflow-wrap: anywhere; }
.dialog-bar button { white-space: nowrap; }
.image-display { flex: 1; min-height: 0; height: auto; padding: 14px 6px; gap: 4px; }
.image-display > button { width: 44px; min-height: 44px; }
.image-display > img { width: calc(100% - 96px); min-height: 0; }
.dialog-bottom { flex-wrap: wrap; gap: 12px; line-height: 1.8; }
.video-dialog video { max-height: calc(100dvh - 140px); }

/* 三维查看器单独成页，也沿用上方五档字号。 */
.model-top { gap: 8px 20px; line-height: 1.6; }
.model-top span { overflow-wrap: anywhere; }
.model-placeholder p { line-height: 1.9; }
.model-placeholder button { min-height: 48px; line-height: 1.6; }
.model-controls { gap: 8px; padding: 14px; }
.model-controls button { min-height: 44px; font-size: var(--font-small); padding: 10px 14px; }
.model-controls small { font-size: var(--font-label); line-height: 1.8; }
.model-progress { font-size: var(--font-label); padding: 8px 12px; }

@media (max-width: 1100px) {
  .header-inner { gap: 18px; }
  .site-header nav { gap: 22px; }
  .brand-name small { display: none; }
  .contact-nav { margin-left: 0; }
}

@media (max-width: 900px) {
  .project-flow > .agent-diagram { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 102px; }
  .header-inner { min-height: 82px; padding-block: 14px; gap: 14px; position: static; }
  .site-header nav { top: 100%; left: 0; right: 0; gap: 5px; }
  .site-header nav > a { font-size: var(--font-body); padding-block: 12px; }
  .brand-name { font-size: var(--font-label); }
  .contact-nav { padding: 10px 12px; }
  .menu-toggle { font-size: var(--font-small); gap: 10px; }
  .hero-actions { gap: 18px 24px; }
  .hero-education { gap: 10px 18px; }
  .hero-description { line-height: 2; }
  .language-shortcuts { gap: 10px; }
  .network-heading { padding: 18px 16px; }
  .network-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 12px 4px; }
  .network-filters button { padding: 9px 8px; }
  .network-node { padding: 10px; }
  .network-dock { flex-wrap: wrap; padding: 22px 18px; gap: 12px; }
  .network-dock > div { flex-basis: 100%; }
  .network-dock h2 { font-size: 21px; }
  .network-dock > a { min-height: 44px; display: inline-flex; align-items: center; }
  .network-footer { padding: 12px 16px; }
  .teaser-image > span { max-width: calc(100% - 36px); line-height: 1.7; }
  .catalog-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; }
  .catalog-filters > button { justify-content: space-between; padding: 12px; }
  .catalog-grid,
  .ai-case-grid { grid-template-columns: 1fr; }
  .card-meta { padding: 18px 20px; }
  .card-body { padding: 24px; }
  .agent-diagram { gap: 12px; }
  .project-section-heading { gap: 14px; }
  .model-frame { min-height: 660px; }
  .model-heading { gap: 14px; }
  .site-footer { align-items: flex-start; row-gap: 18px; padding-block: 26px; }
  .site-footer > span { flex-basis: calc(100% - 70px); }
  .site-footer > a:last-child { font-size: var(--font-label); }
  .dialog-bar { padding: 14px 16px; }
  .dialog-bottom { padding: 14px 16px; }
  .model-top { padding: 12px 14px; }
  .model-controls { padding: 12px; }
  .model-controls button { padding: 10px 12px; }
  .model-controls small { width: 100%; margin: 4px 0 0; text-align: center; }
}

@media (max-width: 480px) {
  .home-compact { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .compact-phone { height: 200px; }
  .compact-photo { height: 210px; }
}

@media (max-width: 350px) {
  .header-inner { gap: 10px; }
  .brand-name { display: block; padding-left: 9px; }
  .brand { gap: 9px; }
  .contact-nav { padding-inline: 10px; }
}
