/* Generated by scripts/build-home.mjs; edit the original CSS files. */

   /* ===== 顶部导航栏 ===== */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 36px;

  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);

  z-index: 9999;

  box-sizing: border-box;
}

/* 左侧名字 */

.brand {
  font-size: 19px;
  font-weight: 600;

  color: #111;
  text-decoration: none;

  letter-spacing: -0.02em;
}

/* 导航 */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu > a,
.nav-link {
  font-family: inherit;

  font-size: 14px;
  font-weight: 450;

  color: #222;

  text-decoration: none;

  background: none;
  border: none;

  padding: 22px 0;

  cursor: pointer;

  transition: opacity 0.2s ease;
}

.nav-menu > a:hover,
.nav-link:hover {
  opacity: 0.55;
}


/* ===== 下拉菜单 ===== */

.nav-dropdown {
  position: static;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(8, 10, 13, 0.84);
  backdrop-filter: blur(32px) saturate(155%);
  -webkit-backdrop-filter: blur(32px) saturate(155%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 0 0 24px 24px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09),
    0 28px 70px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scaleY(.94);
  transform-origin: top center;
  clip-path: inset(0 0 100% 0);
  transition: opacity .28s ease,
    transform .42s cubic-bezier(.22, 1, .36, 1),
    clip-path .42s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear .42s;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, .055), transparent 40%, rgba(255, 255, 255, .018));
  pointer-events: none;
}

.dropdown-inner {
  position: relative;
  left: var(--menu-x, 40px);
  width: var(--menu-width, 156px);
  padding: 34px 0 24px;
}

#projects-menu .dropdown-inner,
.contact-menu .dropdown-inner {
  width: var(--menu-width, 156px);
  max-width: calc(100vw - 32px);
}

#projects-menu .dropdown-links a,
.contact-menu .dropdown-links a {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dropdown-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.dropdown-links a {
  width: fit-content;
  color: #f5f5f5;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  transition: color .2s ease, transform .2s ease;
}

.dropdown-links a:hover,
.dropdown-links a:focus-visible {
  color: #fff;
  transform: translateX(5px);
  text-shadow: 0 0 18px rgba(255, 255, 255, .35);
}


/* 鼠标放上去展开 */

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
  clip-path: inset(0 0 0 0);
  transition: opacity .28s ease,
    transform .42s cubic-bezier(.22, 1, .36, 1),
    clip-path .42s cubic-bezier(.22, 1, .36, 1),
    visibility 0s;
}

@media (max-width: 768px) {
  .dropdown-menu { max-height: calc(100vh - 64px); overflow-y: auto; }
  .dropdown-inner { padding: 28px 0 24px; }
  .dropdown-links { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-menu, .dropdown-links a { transition: none; }
}


/* 防止导航挡住网页顶部 */

body {
  padding-top: 64px;
}

    .music-box {
  width: 320px;
  margin-top: 30px;
  font-size: 14px;
}

.track {
  margin-bottom: 18px;
}

.track span {
  display: block;
  margin-bottom: 6px;
}

.track audio {
  width: 100%;
  height: 32px;
}
    html,
    body {
      margin: 0;
      min-height: 100%;
      overscroll-behavior-y: none;
    }

    body {
      padding-top: 64px;


      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    main {
      flex: 1;
      padding: 30px;
      min-height: 150vh;
    }

    .site-landscape {
      display: block;
      width: 100%;
      margin: 0;
      padding: 0;
      background: #000000;
      line-height: 0;
    }

    .footer-image {
      width: 100%;
      height: auto;
      aspect-ratio: 2159 / 728;
      display: block;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }

    /* ===== 全站深色主题 ===== */

html,
body {
  background: #000000;
  color: #f2f2f2;
}

/* 正文 */

main {
  background: #000000;
  color: #f2f2f2;
}

/* 标题 */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
}

/* 普通文字 */

p {
  color: #d6d6d6;
}

/* 链接 */

a {
  color: #e8e8e8;
}

main a {
  color: #b8b8b8;
  text-decoration-color: rgba(255, 255, 255, 0.35);

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

main a:hover {
  color: #ffffff;
}


/* ===== 顶部导航栏深色化 ===== */

.top-nav {
  background: rgba(15, 15, 15, 0.82);

  border-bottom:
    1px solid rgba(255, 255, 255, 0.10);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}


/* 左侧名字 */

.brand {
  color: #ffffff;
}


/* 导航文字 */

.nav-menu > a,
.nav-link {
  color: #e5e5e5;
}


  body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "PingFang SC",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* ===== 立体资料馆入口 ===== */

.archive-card {
  display: block;

  width: calc(100% - 120px);
  max-width: 1200px;

  margin: 50px auto 70px auto;

  color: #f2f2f2;
  text-decoration: none;

  cursor: pointer;
}

/* 图片 */

.archive-card img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 18px;

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    filter 0.45s ease;

  transform: scale(1);
}

/* 鼠标移上去 */

.archive-card:hover img {
  transform: scale(1.025);

  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.16),
    0 0 60px rgba(255, 255, 255, 0.08);

  filter: brightness(1.03);
}

/* 图片下面的文字 */

/* 整个卡片一起动画 */
.archive-card {
  display: block;

  width: calc(100% - 120px);
  max-width: 1200px;

  margin: 50px auto 70px auto;

  color: #f2f2f2;
  text-decoration: none;
  cursor: pointer;

  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}


/* 图片本身不再单独缩放 */
.archive-card img {
  display: block;

  width: 100%;
  height: auto;
  aspect-ratio: 1844 / 853;
  object-fit: cover;
  background: #1c2023;

  border-radius: 18px;

  transition:
    box-shadow 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}


/* 鼠标进入图片或者文字区域
   整个卡片一起放大 */
.archive-card:hover {
  transform: scale(1.015);
}


/* 同时让图片出现白色光晕 */
.archive-card:hover img {
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.16),
    0 0 60px rgba(255, 255, 255, 0.08);

  filter: brightness(1.03);
}


/* 标题 */
.archive-title {
  margin-top: 18px;

  font-size: 22px;
  font-weight: 500;

  color: #f2f2f2;
  text-decoration: none;

  transition: opacity 0.25s ease;
}


/* hover 时文字稍微亮一点即可 */
.archive-card:hover .archive-title {
  opacity: 1;
}


/* 手机适配 */

@media (max-width: 768px) {
  .archive-card {
    width: calc(100% - 32px);

    margin-top: 35px;
    margin-bottom: 50px;
  }

  .archive-title {
    font-size: 17px;
  }

  .archive-card img {
    border-radius: 12px;
  }
}

.music-title {
  font-size: 28px;
  font-weight: 600;
  color: #f2f2f2;

  margin-top: 60px;
  margin-bottom: 24px;

  letter-spacing: 0.02em;
}

.music-star {
  color: #ff3b30;
  font-size: 18px;

  margin-left: 6px;

  vertical-align: 3px;
}

.welcome-text {
  text-align: center;
  font-size: 42px;
  font-weight: 400;

  color: #f2f2f2;

  font-family:
    "STXingkai",
    "华文行楷",
    "KaiTi",
    "楷体",
    cursive;

  margin: 60px 0 50px 0;
  font-size: 46px;
  letter-spacing: 0.08em;
}

/* ===== 修复 Safari 顶部导航按钮偶尔消失 ===== */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;

  z-index: 99999;

  isolation: isolate;
}

.nav-menu {
  position: static;
  z-index: 2;
}

.nav-dropdown {
  position: static;
  z-index: 3;
}

.nav-link {
  display: block;

  color: #e5e5e5 !important;

  opacity: 1 !important;
  visibility: visible !important;

  background: transparent !important;
  border: 0;

  -webkit-appearance: none;
  appearance: none;

  position: relative;
  z-index: 4;

  cursor: pointer;
}

@media (max-width: 768px) {
  .top-nav { padding: 0 14px; }
  .brand { font-size: 16px; white-space: nowrap; }
  .nav-menu { gap: 9px; }
  .nav-menu > a, .nav-link { font-size: 12px; white-space: nowrap; }
}

.beijing-time {
  text-align: center;

  margin-top: -25px;
  margin-bottom: 55px;

  font-size: 17px;
  font-weight: 400;

  letter-spacing: 0.08em;

  color: rgba(255, 255, 255, 0.58);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Helvetica Neue",
    Arial,
    sans-serif;
}


/* Full-bleed storm hero. All other homepage cards retain their existing styles. */
body { padding-top: 0; }
main { padding-top: 0; }
.fluid-tank {
  position: relative; isolation: isolate; overflow: hidden;
  width: calc(100% + 60px); margin: 0 -30px 64px;
  height: 100svh; min-height: 620px;
  background: radial-gradient(ellipse at 28% 8%, #637982, transparent 68%), linear-gradient(#283c48, #000000 96%);
}
.tank-fluid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.fluid-tank::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 30%, #00000026 60%, #000000 100%); }
.tank-copy { position: absolute; top: 37%; left: 10.9%; right: 8%; z-index: 2; }
.fluid-tank .welcome-text { margin: 0; text-align: left; font-family: inherit; font-size: clamp(32px, 2.65vw, 52px); font-weight: 600; line-height: 1.9; letter-spacing: .035em; color: #f8fafc; text-shadow: 0 2px 28px #07121b45; }
.fluid-tank .welcome-text span { display: block; }
.fluid-tank .beijing-time { text-align: left; margin: 32px 0 0; font-size: clamp(12px, 1.05vw, 19px); line-height: 1.8; letter-spacing: .01em; color: #c4cdd4; }
.fluid-tank #beijing-time { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.storm-sound-toggle { display: inline-grid; place-items: center; vertical-align: middle; width: 26px; height: 26px; padding: 4px; border: 0; border-radius: 50%; background: transparent; color: #a3a9ad; opacity: .58; cursor: pointer; transition: opacity .2s, background .2s; }
.storm-sound-toggle svg { width: 18px; height: 18px; }
.storm-sound-toggle .sound-icon-waves { display: none; }
.storm-sound-toggle[aria-pressed="true"] .sound-icon-waves { display: initial; }
.storm-sound-toggle[aria-pressed="true"] .sound-icon-slash { display: none; }
.storm-sound-toggle:hover, .storm-sound-toggle:focus-visible { opacity: .9; background: #b9c5cf14; }
.storm-sound-toggle:focus-visible { outline: 1px solid #d5dfe5a6; outline-offset: 2px; }
.storm-sound-toggle:disabled { cursor: wait; opacity: .35; }
.archive-card.archive-reveal { opacity: 0; translate: 0 70px; transition: opacity 1.3s ease, translate 1.3s cubic-bezier(.22,1,.36,1), transform .9s, filter .9s; }
.archive-card.archive-reveal.is-visible { opacity: 1; translate: 0 0; }
@media(max-width: 600px) {
  .fluid-tank { min-height: 560px; margin-bottom: 36px; }
  .tank-copy { left: 8%; right: 7%; top: 36%; }
  .fluid-tank .welcome-text { font-size: clamp(27px, 7.5vw, 38px); }
  .fluid-tank .beijing-time { max-width: 290px; margin-top: 26px; }
}
@media(prefers-reduced-motion: reduce) { .archive-card.archive-reveal { opacity: 1; translate: none; transition: none; } }

/* The scene fills the hero and continues into a fading mountain foothill. */
.fluid-tank { overflow: visible; margin-bottom: 240px; }
.fluid-tank::after { transition: opacity .38s ease; }
.tank-fluid { transition: opacity .38s ease; }
.mountain-home-layer {
  position: absolute; inset: 0 0 -200px; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .38s ease; background: #082030;
  -webkit-mask-image: linear-gradient(#000 0%, #000 calc(100% - 230px), transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 calc(100% - 230px), transparent 100%);
}
.mountain-home-layer iframe { display: block; border: 0; width: 100%; height: 100%; pointer-events: none; }
html[data-home-scene="bright"] .mountain-home-layer { opacity: 1; }
html[data-home-scene="bright"] .tank-fluid,
html[data-home-scene="bright"] .fluid-tank::after { opacity: 0; }
html[data-home-scene="bright"] .tank-copy { text-shadow: 0 2px 24px #06162088; }
html[data-home-scene="bright"] .beijing-time { color: #e0e8ed; }
html[data-home-scene="bright"] #storm-sound-toggle,
html[data-home-scene="dark"] #mountain-music-toggle { display: none; }
#mountain-music-toggle { opacity: .9; }
.home-scene-switch {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 0 auto; box-sizing: border-box; width: 126px; height: 40px; padding: 4px;
  border-radius: 999px; border: 1px solid transparent;
  background: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.home-scene-switch::before {
  content: ''; position: absolute; left: 4px; top: 50%;
  width: calc((100% - 8px) / 3); height: calc(100% - 8px); box-sizing: border-box;
  border-radius: 999px; border: 1px solid #ffffff90;
  background: linear-gradient(150deg, #ffffffa3, #ffffff45 48%, #ffffff1c);
  box-shadow: inset 0 1px 2px #ffffffdd, inset 0 -1px 2px #ffffff38, 0 3px 8px #0004;
  transform: translate(0, -50%); pointer-events: none;
  transition: transform .32s cubic-bezier(.2,.85,.25,1), box-shadow .2s;
}
html[data-home-scene="bright"] .home-scene-switch::before { transform: translate(100%, -50%); }
.home-scene-switch button {
  position: relative; min-width: 0; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 999px; background: none; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.home-scene-switch button::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  box-sizing: border-box; width: 17px; height: 17px; border-radius: 50%;
  box-shadow: 0 1px 3px #0005, inset 0 1px 1px #ffffff40;
}
.home-scene-switch button[data-home-scene="dark"]::after { background: #101317; border: 1px solid #636970; }
.home-scene-switch button[data-home-scene="bright"]::after { background: #fafafa; border: 1px solid #fff; }
.home-scene-switch button:focus-visible { outline: 2px solid #a2d8ff; outline-offset: 3px; }
#mountain-music-toggle { width: 36px; height: 36px; padding: 8px; touch-action: manipulation; }
@media(max-width:600px) {
  .fluid-tank { margin-bottom: 200px; }
  .mountain-home-layer { bottom: -160px; }
  .top-nav { padding-inline: 10px; gap: 9px; }
  .nav-menu { gap: 8px; }
  .home-scene-switch { width: 102px; height: 36px; }
  .brand { font-size: 15px; }
}
@media(max-width:380px) { .nav-menu { gap: 6px; } .nav-menu > a, .nav-link { font-size: 11px; } .top-nav { padding-inline: 8px; gap: 6px; } }
@media(prefers-reduced-motion:reduce) { .mountain-home-layer, .tank-fluid, .fluid-tank::after, .home-scene-switch::before { transition: none; } }

/* A parent-document hit surface keeps mobile gestures out of the WebGL iframe. */
.fluid-tank { touch-action: pan-y pinch-zoom; }
.hero-scroll-surface {
  position: absolute; inset: 0 0 -200px; z-index: 1;
  background: transparent; pointer-events: auto; touch-action: pan-y pinch-zoom;
}
@media(max-width:600px) { .hero-scroll-surface { bottom: -160px; } }

/* 首页三：默认水中花，整个水境在画面中间偏右，向下融入纯黑。 */
.blossom-home-layer { position: absolute; inset: 0 0 -200px; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .38s ease; background: #000; -webkit-mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%); }
.blossom-home-layer iframe { display: block; border: 0; width: 100%; height: 100%; pointer-events: none; background: #000; opacity: 0; transition: opacity .38s ease; }
.blossom-home-layer[data-ready="true"] iframe { opacity: 1; }
html[data-home-scene="flower"]:not([data-blossom-ready="true"]) .fluid-tank { background: #000; }
html[data-home-scene="flower"] .blossom-home-layer { opacity: 1; }
html[data-home-scene="flower"] .tank-fluid { opacity: 0; }
html[data-home-scene="flower"] .fluid-tank::after { opacity: 0; }
html[data-home-scene="flower"] .tank-copy { text-shadow: 0 2px 16px #000b; }
html[data-home-scene="flower"] .beijing-time { color: #f1f2f4; }
html[data-home-scene="flower"] #storm-sound-toggle { display: none; }
html[data-home-scene="flower"] .home-scene-switch::before { transform: translate(200%, -50%); }
.home-scene-switch button[data-home-scene="flower"]::after { background: #800020; border: 1px solid #a54a60; }
@media(max-width:600px) { html[data-home-scene="flower"] .tank-copy { top: 16%; } html[data-home-scene="flower"] .welcome-text { line-height: 1.65; } html[data-home-scene="flower"] .beijing-time { margin-top: 16px; } }
@media(prefers-reduced-motion:reduce) { .blossom-home-layer { transition: none; } }
@media(max-width:1200px) {
  html[data-home-scene="flower"] .tank-copy { top: 14%; }
  html[data-home-scene="flower"] .welcome-text { line-height: 1.65; }
  html[data-home-scene="flower"] .beijing-time { margin-top: 16px; }
}

@media(max-width:600px) {
  /* Fade the complete embedded scene together, onto the page's actual black. */
  html[data-home-scene="flower"] .fluid-tank { background: #000; }
  .blossom-home-layer {
    bottom: -160px;
    --blossom-bottom-fade: linear-gradient(to bottom,
      #000 0%, #000 62%,
      rgba(0,0,0,.98) 66%, rgba(0,0,0,.86) 70%,
      rgba(0,0,0,.63) 74%, rgba(0,0,0,.37) 78%,
      rgba(0,0,0,.14) 82%, rgba(0,0,0,.02) 86%,
      transparent 90%, transparent 100%);
    -webkit-mask-image: var(--blossom-bottom-fade);
    mask-image: var(--blossom-bottom-fade);
  }
}

@media(max-width:600px) { html[data-home-scene="flower"] .beijing-time { display:flex; align-items:center; max-width:none; } html[data-home-scene="flower"] #mountain-music-toggle { flex:0 0 30px; width:30px; padding:5px; } }

/* The actual rendered scene is visible immediately, including without WebGL.
   Keep it behind the canvas so a slow/failed first frame cannot leave a black hero. */
.blossom-preview, .blossom-preview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.blossom-preview img { object-fit: fill; }
.blossom-home-layer iframe { position: relative; }
@media(prefers-reduced-motion:reduce) { .blossom-home-layer iframe { transition: none; } }

/* Ψ 与对话区的全部样式。数值控制集中在这里，避免影响原有内容卡片。 */
:root { --agent-width: 1040px; --agent-space-height: 960px; --agent-top-gap: 180px; --agent-icon-scale: 1.24; --agent-motion: 440ms; }
.agent-brand-group { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.agent-entry { display: grid; place-items: center; width: 38px; height: 40px; border-radius: 12px; color: #fff; }
.agent-entry img { width: 29px; height: 29px; filter: invert(1); transform: scale(1); transition: transform var(--agent-motion) cubic-bezier(.2,.75,.25,1), opacity .25s; opacity: .88; }
.agent-entry:hover img, .agent-entry:focus-visible img { transform: scale(var(--agent-icon-scale)); opacity: 1; }
.agent-entry:active img { transform: scale(1.1); transition-duration: 150ms; }
.agent-entry:focus-visible { outline: 1px solid #fff9; outline-offset: 2px; }
/* 首屏原来的空白过渡由对话区承接，山景仍在前200px内自然渐隐。 */
main > .fluid-tank { margin-bottom: 0; }
.agent-section { position: relative; z-index: 2; isolation: isolate; display: flex; flex-direction: column; justify-content: center; width: min(var(--agent-width), 100%); min-height: var(--agent-space-height); box-sizing: border-box; margin: var(--agent-top-gap) auto 0; padding: 112px 0 126px; scroll-margin-top: 82px; }
.agent-backdrop { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.agent-panel { position: relative; z-index: 1; border: 0; border-radius: 0; padding: 25px 30px 27px; background: none; box-shadow: none; }
.agent-section button { -webkit-appearance: none; appearance: none; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.agent-section button:focus-visible, .agent-section a:focus-visible { outline: 1px solid #d4d4dd; outline-offset: 4px; }
.agent-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 286px; padding: 28px 0 36px; }
.agent-symbol { display: grid; place-items: center; width: 102px; height: 102px; border-radius: 24px; outline: none; }
.agent-empty-mark { filter: invert(1); width: 58px; height: 58px; opacity: .87; transform: scale(1); transition: transform var(--agent-motion) cubic-bezier(.2,.75,.25,1), opacity .25s; }
.agent-symbol:hover .agent-empty-mark, .agent-symbol:focus-visible .agent-empty-mark { transform: scale(var(--agent-icon-scale)); opacity: 1; }
.agent-symbol:focus-visible { outline: 1px solid #fff5; outline-offset: 4px; }
.agent-empty[hidden], .agent-messages[hidden] { display: none; }
.agent-messages { max-height: 430px; min-height: 260px; overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: #414146 transparent; padding: 34px 4px 26px; margin: 12px 0; scroll-behavior: smooth; }
.agent-message-row { margin: 0 0 34px; }
.agent-message { margin: 0; color: #dcdce2; animation: agent-message-in .32s ease both; }
.agent-message-row:last-child { margin-bottom: 0; }
.agent-message.is-assistant { display: flex; align-items: flex-start; gap: 14px; background: none; border: 0; }
.agent-avatar-icon { flex: 0 0 auto; width: 28px; height: 28px; margin-top: 1px; filter: invert(1); opacity: .9; transform: scale(1); transform-origin: center; transition: transform var(--agent-motion) cubic-bezier(.2,.75,.25,1), opacity .25s; }
.agent-avatar-icon:hover { transform: scale(var(--agent-icon-scale)); opacity: 1; }
.agent-answer-content { flex: 1; min-width: 0; }
.agent-message-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.85; color: inherit; }
.agent-message-body a { color: #d3d7e8; text-underline-offset: 3px; }
.agent-message-body strong { font-weight: 600; color: #f5f5f7; }
.agent-message.is-user { margin-left: auto; width: fit-content; max-width: 76%; padding: 14px 18px; border-radius: 18px; background: #242424; border: 0; }
.agent-message.is-error .agent-message-body { color: #ddaca5; }
.agent-actions { display: flex; align-items: center; gap: 7px; margin-top: 14px; }
.agent-actions[hidden] { display: none; }
.agent-action { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; color: #77777e; background: none; transition: color .2s, background .2s; }
.agent-action svg { width: 17px; height: 17px; }
.agent-action:hover:not(:disabled) { color: #dcdce2; background: #ffffff0a; }
.agent-action-status { margin: 7px 0 0; color: #ddaca5; font-size: 12px; line-height: 1.6; }
.agent-thinking { display: inline-flex; align-items: center; gap: 5px; height: 20px; }
.agent-thinking i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #888891; animation: agent-thinking 1.4s ease-in-out infinite; }
.agent-thinking i:nth-child(2) { animation-delay: .15s; }.agent-thinking i:nth-child(3) { animation-delay: .3s; }
.agent-composer { position: relative; overflow: hidden; padding: 20px 20px 12px; border-radius: 32px; border: 1px solid #ffffff30; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; transition: border-color .25s; }
.agent-composer:focus-within { border-color: #ffffff6b; background: transparent; box-shadow: none; }
.agent-composer.is-invalid { border-color: #a6635b80; }
.agent-composer textarea { display: block; width: 100%; min-height: 70px; max-height: 168px; resize: none; padding: 0; margin: 0; border: 0; outline: none; background: none; color: #f0f0f5; font-family: inherit; font-size: 16px; line-height: 1.65; caret-color: #f5f5f7; }
.agent-composer textarea::placeholder { color: #b8bfcca3; }
.agent-composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 5px; }
.agent-composer-bottom p { margin: 0; color: #66666e; font-size: 11px; line-height: 1.5; }
.agent-send-group { margin-left: auto; display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
#agent-count { color: #65656d; font-size: 11px; font-variant-numeric: tabular-nums; }
.agent-send { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff50; border-radius: 50%; background: transparent; color: #e5e7ed; box-shadow: none; transition: transform .25s, border-color .25s, opacity .25s; }
.agent-send svg { width: 19px; height: 19px; }
.agent-send:hover:not(:disabled) { border-color: #ffffff90; transform: translateY(-1px); }
.agent-send:disabled { cursor: default; border-color: #ffffff22; background: transparent; color: #83838b; box-shadow: none; }
.agent-section button:disabled:not(.agent-send) { opacity: .45; cursor: default; }
.agent-composer-bottom .is-over-limit, #agent-count.is-over-limit { color: #d6988f; }
.agent-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes agent-message-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes agent-thinking { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-2px); } }
@media(min-width:1600px) { :root { --agent-width: 1120px; --agent-space-height: 1080px; }.agent-section { padding-top: 128px; padding-bottom: 150px; }.agent-panel { padding: 30px 36px; }.agent-empty { min-height: 310px; } }
@media(max-width:768px) { .agent-section { width: min(640px,100%); padding-top: 90px; padding-bottom: 90px; }.agent-panel { padding: 21px 20px; border-radius: 25px; }.agent-empty { min-height: 270px; } }
@media(max-width:600px) { :root { --agent-space-height: 880px; }.agent-section { padding-top: 90px; padding-bottom: 78px; }.agent-panel { padding: 18px 15px; border-radius: 22px; margin-inline: -10px; }.agent-empty { min-height: 278px; padding-bottom: 30px; }.agent-composer { padding: 16px 15px 10px; border-radius: 26px; }.agent-composer textarea { min-height: 68px; font-size: 16px; }.agent-composer-bottom { gap: 8px; }.agent-send-group { gap: 9px; }.agent-composer-bottom p, #agent-count { font-size: 10px; }.agent-messages { padding-top: 23px; min-height: 260px; max-height: 380px; }.agent-message { max-width: 96%; }.agent-message.is-user { max-width: 90%; padding: 11px 14px; }.agent-message-body { font-size: 14px; }.agent-brand-group { gap: 4px; }.agent-entry { width: 30px; height: 36px; }.agent-entry img { width: 25px; height: 25px; } }
@media(max-width:480px) { .top-nav { gap: 6px; padding-inline: 10px; }.nav-menu { gap: 6px; }.nav-menu > a, .nav-link { font-size: 11px; }.home-scene-switch { width: 88px; height: 34px; }.home-scene-switch button::after { width: 15px; height: 15px; }.brand { font-size: 14px; }.agent-entry { width: 27px; }.agent-entry img { width: 23px; height: 23px; } }
@media(max-width:350px) { .top-nav { padding-inline: 8px; }.nav-menu { gap: 5px; }.agent-panel { margin-inline: -13px; padding-inline: 13px; } }
@media(prefers-reduced-motion:reduce) { .agent-entry img, .agent-section *, .agent-section *::before, .agent-section *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }.agent-entry:hover img, .agent-entry:focus-visible img, .agent-symbol:hover .agent-empty-mark, .agent-symbol:focus-visible .agent-empty-mark, .agent-avatar-icon:hover { transform: none; } }

@media(max-width:360px) { .top-nav { gap: 4px; padding-inline: 8px; } .nav-menu { gap: 4px; } .nav-menu > a, .nav-link { font-size: 10px; } .agent-brand-group { gap: 5px; } .home-scene-switch { width: 82px; } }
