/* 两个大模型入口共用展示规范，统一内容宽度、间距和交互状态。 */
:root { --model-content-width: 1040px; --model-blue: #126fc4; }
.model-hero { min-height: 100svh; padding: 120px 32px 64px; }
.model-hero .hero-content { width: min(var(--model-content-width), 100%); max-width: none; margin: auto; }
.hero-header-block { margin-bottom: 32px; }
:is(.hero-main-title, .stage-title) { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.25; font-weight: 800; letter-spacing: .04em; margin: 0 0 16px; text-shadow: 0 4px 24px #02102066; }
:is(.hero-subtitle, .stage-slogan) { font-size: 14px; line-height: 1.8; letter-spacing: .25em; color: #b4cde1; }
.page-container { justify-content: flex-start; padding-bottom: 28px; }
.main-stage { width: min(var(--model-content-width), calc(100% - 64px)); margin: 52px auto 0; }
.stage-slogan { margin-bottom: 32px; }
:is(.hero-super-card, .prompt-box-card) { width: 100%; margin-top: 0; padding: 24px; border-radius: 28px; background: linear-gradient(135deg, #102a43df, #071b30ed); border: 1px solid #adcde32e; box-shadow: 0 24px 64px #00000033, inset 0 1px 0 #ffffff0d; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
/* 问答卡片彩虹光束：::before 沿边框流动的彩虹描边，::after 卡片外侧柔光（遮罩挖空卡片内部，不影响内容区）。 */
@property --beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.hero-super-card { position: relative; }
.hero-super-card::before, .hero-super-card::after { content: ""; position: absolute; pointer-events: none; background: conic-gradient(from var(--beam-angle), transparent 0 74%, #ff4d6d 78%, #ff9f1c 82%, #ffe14d 85.5%, #3ddc97 89%, #38bdf8 92.5%, #7c5cff 96%, #ff4dd2 99%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beam-spin 6s linear infinite; }
.hero-super-card::before { inset: -1px; padding: 2px; border-radius: inherit; }
.hero-super-card::after { inset: -16px; padding: 16px; border-radius: 44px; filter: blur(14px); opacity: .6; }
@keyframes beam-spin { to { --beam-angle: 360deg; } }
.mascot-row { position: relative; inset: auto; align-items: center; gap: 16px; width: 100%; margin: 0 0 20px; text-align: left; }
.mascot-window { width: 64px; height: 64px; border-radius: 18px; border: 1px solid #a5daf0; box-shadow: 0 5px 16px #00000024; background: #eaf4ff; }
.mascot-window img { display: block; object-fit: contain; padding: 2px; }
.mascot-bubble { min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #dfecf6; font-size: 13px; font-weight: 500; line-height: 1.8; box-shadow: none; backdrop-filter: none; }
.mascot-bubble strong { color: #fff; font-weight: 700; }
:is(.super-search-box, .input-sheet) { padding: 22px 24px 16px; border: 1px solid #dce6f1; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px #0000001a; transition: border-color .2s, box-shadow .2s; }
:is(.super-search-box, .input-sheet):focus-within { border-color: #6abcef; box-shadow: 0 0 0 3px #55c9ef26, 0 12px 32px #00000024; }
:is(.super-search-box textarea, .main-textarea) { display: block; height: 90px; min-height: 90px; padding: 0; font-size: 16px; line-height: 1.8; background: transparent; }
:is(.super-search-box textarea, .main-textarea)::placeholder { color: #879aaf; font-size: 14px; }
:is(.search-box-bottom-bar, .input-actions-bar) { justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf1f6; min-height: 59px; }
/* 输入框底部左侧：上传文件；上传后的文件以标签列在输入框下方 */
.search-actions-left { display: flex; align-items: center; min-width: 0; }
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.attach-list[hidden] { display: none; }
.attach-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 10px; border: 1px solid #d6e6f5; border-radius: 10px; background: #f3f8fd; color: #36597b; font-size: 12px; line-height: 1.5; }
.attach-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.attach-size { color: #8aa0b5; white-space: nowrap; }
.attach-remove { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: #7b91a6; font-size: 16px; line-height: 1; cursor: pointer; }
.attach-remove:hover { background: #e3eef9; color: #0a4da1; }
:is(.search-actions-right, .action-buttons) { display: flex; align-items: center; gap: 12px; }
:is(.network-toggle-btn, .toggle-btn) { height: 40px; padding: 0 16px; gap: 8px; border-radius: 12px; font-size: 13px; }
:is(.network-toggle-btn, .toggle-btn).active { color: #0a62ac; background: #eff7ff; border-color: #b5d9f4; }
:is(.network-toggle-btn, .toggle-btn):hover { border-color: #5fa9df; color: #0a62ac; }
:is(.paper-plane-send-btn, .btn-send-airplane) { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, #208bdb, #0a58b0); box-shadow: 0 5px 14px #126fc433; transition: transform .2s, box-shadow .2s; }
:is(.paper-plane-send-btn, .btn-send-airplane):hover { background: linear-gradient(135deg, #2999ed, #126fc4); transform: translateY(-2px); box-shadow: 0 8px 18px #126fc447; }
:is(.paper-plane-send-btn, .btn-send-airplane):active { transform: translateY(0); }
:is(.super-hot-row, .quick-queries-row) { margin-top: 20px; gap: 12px; text-align: left; }
.super-hot-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.hot-label { font-size: 12px; color: #b8cee1; }
.hot-tags-wrap { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
:is(.super-hot-tag, .query-chip) { min-height: 34px; padding: 7px 12px; font-family: inherit; font-weight: 400; font-size: 12px; line-height: 1.5; border: 1px solid #adcce323; background: #adcce30c; color: #d6e5f2; border-radius: 10px; white-space: normal; text-align: left; }
:is(.super-hot-tag, .query-chip):hover { background: #55c9ef1a; border-color: #55c9ef66; transform: translateY(-1px); }
.refresh-tags-btn { white-space: nowrap; padding: 8px 4px; }
:is(.hero-portal-row, .features-triad) { width: min(var(--model-content-width), 100%); max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; margin: 22px auto 0; }
.features-triad { width: 100%; }
:is(.portal-card, .feat-card) { min-width: 0; min-height: 124px; padding: 24px; gap: 16px; align-items: center; border: 1px solid #ffffffb3; border-radius: 20px; text-align: left; box-shadow: 0 10px 28px #00000024; transition: transform .2s, box-shadow .2s; }
:is(.portal-card, .feat-card):hover { transform: translateY(-4px); box-shadow: 0 16px 36px #00000036; }
:is(.portal-card, .feat-card).blue { background: linear-gradient(120deg, #f0f8ff, #dfedfc); }
:is(.portal-card, .feat-card).gold { background: linear-gradient(120deg, #fffaf0, #faf0dd); }
:is(.portal-card, .feat-card).purple { background: linear-gradient(120deg, #f7f4ff, #eae3fa); }
:is(.portal-icon-box, .feat-icon-box) { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; }
:is(.portal-info, .feat-content) { min-width: 0; }
:is(.portal-info, .feat-content) h4 { margin: 0 0 7px; font-size: 16px; font-weight: 750; line-height: 1.4; }
:is(.portal-info, .feat-content) p { margin: 0; font-size: 12px; line-height: 1.7; opacity: .8; text-wrap: pretty; }
.badge-sparkle { display: none; }
/* 大模型页底部：六个电子学科智能体入口，三列两排，只展示名称。 */
.hero-portal-row { gap: 14px 16px; margin-top: 18px; }
.hero-portal-row[hidden] { display: none; }
.hero-portal-row .portal-card { min-height: 68px; padding: 13px 20px; gap: 14px; }
.hero-portal-row .portal-icon-box { width: 42px; height: 42px; border-radius: 12px; }
.hero-portal-row .portal-info { flex: 1; }
.hero-portal-row .portal-info h4 { margin: 0; font-size: 15px; }
.portal-arrow { flex-shrink: 0; font-size: 15px; opacity: .45; transition: opacity .2s, transform .2s; }
.portal-card:hover .portal-arrow { opacity: .85; transform: translate(2px, -2px); }
.portal-card.cyan { background: linear-gradient(120deg, #eefaff, #dcf0fa); color: #0b4461; }
.portal-card.teal { background: linear-gradient(120deg, #effbf7, #dbf1e9); color: #0d4a43; }
.portal-card.coral { background: linear-gradient(120deg, #fff6f2, #fbe6dd); color: #6a2615; }
.portal-card.cyan .portal-icon-box { background: #0ea5e9; box-shadow: 0 4px 12px #0ea5e94d; }
.portal-card.teal .portal-icon-box { background: #14b8a6; box-shadow: 0 4px 12px #14b8a64d; }
.portal-card.coral .portal-icon-box { background: #f0693c; box-shadow: 0 4px 12px #f0693c4d; }
@media (max-width: 900px) { .hero-portal-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:is(.hero-content, .main-stage, .features-triad) :is(button, a, [role="button"]):focus-visible { outline: 3px solid #55c9ef; outline-offset: 4px; }
@media (min-width: 1600px) { .model-hero { padding-top: 140px; padding-bottom: 86px; } }
@media (min-width: 761px) and (max-height: 820px) {
  .model-hero { padding-top: 98px; padding-bottom: 32px; }
  .hero-header-block { margin-bottom: 24px; }
  :is(.hero-main-title, .stage-title) { font-size: 40px; margin-bottom: 10px; }
  .main-stage { margin-top: 28px; }
  .stage-slogan { margin-bottom: 24px; }
  :is(.hero-super-card, .prompt-box-card) { padding: 20px; }
  .mascot-row { margin-bottom: 16px; }
  .mascot-window { width: 52px; height: 52px; border-radius: 14px; }
  :is(.super-search-box textarea, .main-textarea) { height: 64px; min-height: 64px; }
  :is(.super-hot-row, .quick-queries-row) { margin-top: 16px; }
  :is(.portal-card, .feat-card) { min-height: 106px; padding-top: 20px; padding-bottom: 20px; }
  .hero-portal-row { margin-top: 16px; }
  .hero-portal-row .portal-card { min-height: 62px; padding-top: 12px; padding-bottom: 12px; }
  .hero-portal-row .portal-icon-box { width: 38px; height: 38px; border-radius: 11px; }
}
@media (max-width: 1100px) {
  .header-in { gap: 18px; }
  .header .brand small { display: none; }
  .header .brand strong { font-size: 15px; }
  .header .nav { gap: 14px; }
  :is(.portal-card, .feat-card) { padding: 20px 16px; gap: 12px; }
}
/* 窄屏顶栏与首页一致：≤1080px 收起导航，≤720px 品牌区可换行，避免学生/教师切换被挤出屏幕 */
.header .nav { white-space: nowrap; } .header .role-switch { flex-shrink: 0; } .header .role-switch button { white-space: nowrap; }
@media (max-width: 1080px) { .header .brand { min-width: 360px; } .header .nav { display: none; } .header .role-switch { margin-left: auto; } }
@media (max-width: 720px) { .header .brand { min-width: 0; white-space: normal; } .header .brand strong { font-size: 14px; line-height: 1.35; } .header .role-switch button { padding: 7px 9px; } }
@media (max-width: 760px) {
  .model-hero { padding: 108px 20px 40px; }
  .main-stage { width: calc(100% - 40px); margin-top: 36px; }
  .model-hero .hero-main-title, .stage-title { font-size: 32px; }
  :is(.hero-subtitle, .stage-slogan) { font-size: 12px; letter-spacing: .12em; }
  :is(.hero-super-card, .prompt-box-card) { padding: 18px; border-radius: 22px; }
  .hero-super-card::after { border-radius: 38px; }
  .mascot-row { inset: auto; gap: 12px; }
  .mascot-window { width: 56px; height: 56px; border-radius: 15px; }
  .mascot-bubble { font-size: 12px; }
  :is(.super-search-box, .input-sheet) { padding: 18px 16px 14px; border-radius: 16px; }
  .super-hot-row { grid-template-columns: 1fr auto; }
  .hot-tags-wrap { grid-column: 1 / -1; grid-row: 2; }
  .refresh-tags-btn { grid-column: 2; grid-row: 1; }
  :is(.hero-portal-row, .features-triad) { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .features-triad { width: 100%; }
  :is(.portal-card, .feat-card) { min-height: 98px; padding: 20px; }
  .top-header { gap: 12px; }
  .brand-title strong { font-size: 13px; }
  .brand-title small, .user-area .back-link { display: none; }
  .search-box-bottom-bar .tool-label { display: none; }
  .search-box-bottom-bar :is(.network-toggle-btn) { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.hero-content, .main-stage, .features-triad) * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-super-card::before, .hero-super-card::after { animation: none; }
}
