:root {
  color-scheme: light;
  --ink: #143c38;
  --ink-soft: #47645f;
  --teal: #17685f;
  --teal-2: #3d8f7f;
  --sage: #dfead8;
  --sage-2: #c6d8c6;
  --coral: #f66d4b;
  --coral-dark: #e85c3b;
  --cream: #fbf8f0;
  --line: rgba(29, 89, 79, .18);
  --panel: rgba(255, 253, 247, .88);
  --shadow: 0 22px 60px rgba(59, 70, 51, .13);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: auto; scrollbar-gutter: stable; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #f1eee5; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(246, 109, 75, .55); outline-offset: 3px; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.site-bg { position: fixed; z-index: -2; inset: 0; background-image: linear-gradient(90deg, rgba(250,248,241,.32), rgba(250,248,241,.1) 66%, rgba(250,248,241,.23)), linear-gradient(180deg, rgba(247,245,237,.12), rgba(247,245,237,.48) 72%, rgba(247,245,237,.72)), url("../assets/engineering-classroom-bg.png"); background-size: cover; background-position: center top; }
.site-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(249,247,241,.08), rgba(247,245,237,.32)); pointer-events: none; }
.shell { width: min(1480px, calc(100% - 64px)); margin-inline: auto; }

.topbar { height: 74px; margin-top: 14px; position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border: 1px solid rgba(255,255,255,.8); border-radius: 20px; background: rgba(255,253,247,.83); box-shadow: 0 9px 30px rgba(49,67,55,.08); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif; font-weight: 900; font-size: 25px; letter-spacing: -.055em; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--teal); }
.brand-mark .icon { width: 42px; height: 42px; stroke-width: 1.7; }
.brand-mark .icon path:nth-child(2) { color: var(--coral); }
.main-nav { height: 100%; display: flex; align-items: stretch; gap: 45px; margin-left: auto; margin-right: 24px; }
.nav-link { position: relative; border: 0; padding: 0 3px; background: transparent; color: #274e49; cursor: pointer; font-weight: 600; font-size: 16px; }
.nav-link::after { position: absolute; content: ""; height: 3px; border-radius: 5px; bottom: 12px; left: 0; right: 0; transform: scaleX(0); transition: transform .2s ease; background: var(--teal); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--teal); font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.login-button { min-width: 80px; border: 1px solid var(--teal); border-radius: 999px; padding: 8px 18px; color: var(--teal); background: rgba(255,255,255,.45); font-weight: 700; cursor: pointer; transition: .2s ease; }
.login-button:hover { color: white; background: var(--teal); }
.mobile-menu { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.7); color: var(--teal); }
.mobile-menu .icon { width: 21px; }

.page { position: relative; }
.hero { min-height: 398px; display: flex; align-items: center; position: relative; padding: 45px 8px 38px; }
.hero-copy { max-width: 700px; position: relative; z-index: 1; padding: 10px 0 0 20px; }
.eyebrow { display: inline-flex; margin-bottom: 14px; padding: 7px 14px; border: 1px solid rgba(55,125,110,.22); border-radius: 999px; color: var(--teal); background: rgba(229,239,225,.78); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.hero h1, .explore-heading h1 { margin: 0; color: var(--ink); font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif; font-weight: 900; letter-spacing: -.075em; line-height: 1.16; }
.hero h1 { font-size: clamp(44px, 4.4vw, 66px); text-shadow: 0 2px 1px rgba(255,255,255,.5); }
.hero h1 span { position: relative; color: var(--coral); white-space: nowrap; }
.hero h1 span::after { content: ""; position: absolute; left: 4%; right: 1%; height: 5px; bottom: -8px; background: var(--coral); border-radius: 100%; transform: rotate(-2deg); opacity: .85; }
.hero-copy > p { margin: 23px 0 22px; color: #253c39; font-size: 17px; line-height: 1.8; font-weight: 500; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 25px; border: 0; border-radius: 999px; color: white; background: linear-gradient(110deg, #fa7954, #f45f3e); box-shadow: 0 8px 16px rgba(223,89,57,.18), inset 0 1px rgba(255,255,255,.3); font-weight: 800; font-size: 17px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(223,89,57,.25), inset 0 1px rgba(255,255,255,.3); }
.primary-button .icon { width: 21px; height: 21px; }
.hero-note { position: absolute; right: 28px; bottom: 30px; display: flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; color: #47776c; background: rgba(255,253,247,.5); backdrop-filter: blur(10px); font-size: 13px; }
.hero-note .icon { width: 19px; color: #e5a749; }

.case-panel { position: relative; z-index: 1; padding: 24px 30px 20px; margin-bottom: 44px; border: 1px solid rgba(255,255,255,.92); border-radius: 30px; background: rgba(255,253,247,.79); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.case-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.case-title-wrap { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.case-bulb { display: grid; place-items: center; color: var(--coral); }
.case-bulb .icon { width: 42px; height: 42px; stroke-width: 1.8; }
.case-title-wrap h2 { position: relative; display: inline-block; margin: 0 0 3px; font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif; font-weight: 900; font-size: 25px; letter-spacing: -.05em; }
.case-title-wrap h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px; border-radius: 50%; background: #66aa9a; transform: rotate(-2deg); }
.case-title-wrap p { margin: 8px 0 0; color: #69807a; font-size: 12px; }
.case-controls { display: flex; align-items: center; gap: 18px; }
.category-list { display: flex; flex-wrap: wrap; gap: 8px; }
.category-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 15px; border: 1px solid rgba(45,122,108,.24); border-radius: 999px; color: #315b54; background: rgba(255,255,255,.32); font-size: 13px; font-weight: 700; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.category-chip .icon { width: 17px; height: 17px; }
.category-chip:hover { background: rgba(226,239,225,.9); }
.category-chip.selected { border-color: #318f7d; color: white; background: #318f7d; box-shadow: 0 5px 12px rgba(49,143,125,.17); }
.carousel-buttons { display: flex; gap: 7px; }
.round-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(29,89,79,.16); border-radius: 50%; color: var(--teal); background: rgba(255,255,255,.77); cursor: pointer; transition: .18s ease; }
.round-button:hover { color: white; background: var(--teal); }
.round-button .icon { width: 17px; height: 17px; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-card { min-width: 0; overflow: hidden; border: 1px solid rgba(66,111,91,.12); border-radius: 19px; background: rgba(255,255,255,.86); box-shadow: 0 8px 20px rgba(43,62,49,.08); transition: transform .24s ease, box-shadow .24s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(43,62,49,.14); }
.case-image-button { width: 100%; height: 172px; display: block; position: relative; overflow: hidden; padding: 0; border: 0; background: #e8e9d8; cursor: pointer; text-align: left; }
.case-image-button img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-image-button img { transform: scale(1.035); }
.image-label { position: absolute; left: 13px; bottom: 12px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.54); border-radius: 999px; color: #fff; background: rgba(24,72,62,.62); backdrop-filter: blur(8px); font-size: 11px; font-weight: 600; }
.case-card-body { padding: 14px 16px 15px; }
.case-card-title { display: flex; align-items: center; gap: 9px; }
.case-card-title h3 { margin: 0; color: #183f3b; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.case-card-title .icon { width: 22px; height: 22px; color: var(--teal-2); flex: 0 0 auto; }
.case-card:nth-child(3) .case-card-title .icon { color: var(--coral); }
.case-card-body > p { min-height: 43px; margin: 8px 0 12px; color: #61726c; font-size: 12px; line-height: 1.7; }
.case-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag-list { display: flex; gap: 5px; overflow: hidden; }
.tag-list span { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: #497369; background: #edf3e7; font-size: 10px; font-weight: 600; }
.tag-list span:nth-child(2) { color: #428084; background: #e6f0ed; }
.tag-list span:nth-child(3) { color: #bd674d; background: #fbede3; }
.case-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; border: 0; color: var(--teal); background: none; font-size: 12px; font-weight: 800; cursor: pointer; }
.case-link:hover { color: var(--coral-dark); }
.case-link .icon { width: 15px; height: 15px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #bdd1c5; cursor: pointer; transition: .18s ease; }
.dot.active { width: 21px; border-radius: 99px; background: var(--teal); }

.page-explore { padding-bottom: 34px; }
.explore-heading { position: relative; padding-top: 35px; text-align: center; }
.explore-heading h1 { display: inline-block; position: relative; font-size: clamp(40px, 4vw, 54px); }
.explore-heading h1::after { content: ""; position: absolute; right: 2%; bottom: -7px; width: 28%; height: 4px; border-radius: 50%; background: var(--coral); transform: rotate(-2deg); }
.heading-spark { position: absolute; top: 44px; left: calc(50% - 205px); color: var(--coral); }
.heading-spark .icon { width: 25px; height: 25px; }
.explore-heading > p { margin: 12px 0 20px; color: #43615b; font-size: 15px; }
.steps { width: min(900px, 100%); display: flex; align-items: center; justify-content: center; gap: 13px; margin: 0 auto 20px; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(57,118,93,.12); border-radius: 999px; color: #456d60; background: rgba(224,235,215,.77); white-space: nowrap; }
.steps li span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: #74a88a; font-weight: 800; }
.steps li b { font-size: 13px; font-weight: 700; }
.steps li.current { border-color: rgba(246,109,75,.16); color: white; background: var(--coral); box-shadow: 0 6px 14px rgba(246,109,75,.17); }
.steps li.current span { color: var(--coral); background: white; }
.steps > i { width: 34px; height: 2px; border-radius: 2px; background: #87b19a; }
.explore-layout { display: grid; grid-template-columns: minmax(250px, 310px) minmax(0, 1fr); align-items: stretch; gap: 14px; min-height: 565px; }
.history-panel, .chat-panel { border: 1px solid rgba(255,255,255,.96); border-radius: 27px; background: rgba(255,253,247,.87); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.history-panel { display: flex; flex-direction: column; padding: 20px 17px 15px; }
.history-title { display: flex; align-items: center; gap: 10px; margin: 0 2px 16px; }
.history-title > .icon { width: 29px; height: 29px; color: var(--teal); }
.history-title h2 { position: relative; margin: 0; font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif; font-size: 22px; font-weight: 900; letter-spacing: -.05em; }
.history-title h2::after { content: ""; position: absolute; bottom: -6px; left: 0; width: 75%; height: 3px; border-radius: 100%; background: var(--coral); transform: rotate(-3deg); }
.history-close { display: none; margin-left: auto; border: 0; color: var(--teal); background: none; }
.history-close .icon { width: 22px; }
.new-chat-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; margin-bottom: 12px; border: 0; border-radius: 999px; color: white; background: linear-gradient(110deg, #fa7954, #f45f3e); box-shadow: 0 7px 15px rgba(223,89,57,.16); font-weight: 800; cursor: pointer; transition: transform .18s ease; }
.new-chat-button:hover { transform: translateY(-2px); }
.new-chat-button .icon { width: 20px; height: 20px; }
.search-box { display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 0 12px; border: 1px solid rgba(58,116,99,.25); border-radius: 999px; color: #75908a; background: rgba(255,255,255,.55); }
.search-box .icon { width: 18px; height: 18px; flex: 0 0 auto; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #82948d; }
.history-list { flex: 1; overflow: auto; margin: 11px -4px 10px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: #cbd8cc transparent; }
.history-group { margin-bottom: 10px; }
.history-group h3 { display: inline-flex; margin: 5px 0 6px 5px; padding: 4px 10px; border-radius: 999px; color: #3d6c60; background: #e9f1df; font-size: 11px; font-weight: 700; }
.history-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 39px; padding: 7px 8px; border: 0; border-radius: 12px; color: #284d47; background: transparent; text-align: left; cursor: pointer; transition: .16s ease; }
.history-item:hover { background: rgba(228,238,222,.67); }
.history-item.selected { position: relative; background: #e4edda; font-weight: 800; }
.history-item.selected::before { position: absolute; content: ""; left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 0 4px 4px 0; background: var(--teal-2); }
.history-item .icon { width: 17px; height: 17px; flex: 0 0 auto; color: #4f7a71; }
.history-item span { min-width: 0; overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.history-item time { flex: 0 0 auto; color: #83918c; font-size: 10px; }
.empty-history { padding: 18px 8px; color: #82918a; text-align: center; font-size: 13px; }
.history-foot { display: flex; align-items: center; justify-content: center; gap: 7px; padding-top: 12px; border-top: 1px solid rgba(56,102,83,.13); color: #788b84; font-size: 11px; }
.history-foot .icon { width: 17px; height: 17px; }

.chat-panel { display: flex; flex-direction: column; min-width: 0; padding: 19px 22px 14px; }
.chat-header { display: flex; align-items: center; gap: 10px; min-height: 42px; padding-bottom: 13px; border-bottom: 1px solid rgba(54,96,76,.13); }
.chat-title { display: flex; align-items: center; gap: 5px; min-width: 0; }
.chat-title h2 { overflow: hidden; margin: 0; color: #184640; font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif; font-size: 20px; font-weight: 900; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 0; border-radius: 50%; color: #788b84; background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--teal); background: #e7efe4; }
.icon-button .icon { width: 18px; height: 18px; }
.stage-badge { display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 10px; border: 1px solid rgba(52,123,105,.12); border-radius: 999px; color: #4f7068; background: #f1f4e8; font-size: 11px; white-space: nowrap; }
.stage-badge .icon { width: 17px; height: 17px; color: var(--teal); }
.stage-badge b { padding: 3px 8px; border-radius: 999px; color: var(--coral-dark); background: #ffebe1; font-size: 11px; }
.history-toggle { display: none; align-items: center; gap: 6px; flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--teal); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.history-toggle .icon { width: 17px; }
.chat-messages { flex: 1; min-height: 350px; max-height: 464px; overflow: auto; padding: 17px 5px 10px; scrollbar-width: thin; scrollbar-color: #cbd8cc transparent; }
.message-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.bot-avatar, .user-avatar { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; }
.bot-avatar { position: relative; color: var(--teal); background: #e2efe3; }
.bot-avatar::after { content: ""; position: absolute; width: 6px; height: 6px; top: 1px; right: 7px; border-radius: 50%; background: var(--coral); }
.bot-avatar .icon { width: 30px; height: 30px; stroke-width: 1.65; }
.user-avatar { color: #3c765d; background: #dfead5; }
.user-avatar .icon { width: 24px; height: 24px; }
.message-content { max-width: min(760px, 87%); }
.bubble { border-radius: 21px; padding: 13px 16px; font-size: 14px; line-height: 1.8; }
.assistant-bubble { border: 1px solid rgba(66,106,83,.09); color: #263b38; background: rgba(255,255,255,.75); box-shadow: 0 4px 12px rgba(70,79,58,.05); }
.user-row { justify-content: flex-end; }
.user-bubble { max-width: min(620px, 84%); color: #214b44; background: #e4efdf; }
.suggestion-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px 10px; }
.suggestion-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(49,127,105,.1); border-radius: 999px; color: #255951; background: #e6efdd; font-weight: 700; font-size: 12px; cursor: pointer; transition: .18s ease; }
.suggestion-chip:hover { border-color: rgba(49,127,105,.3); background: #dcebd6; transform: translateY(-1px); }
.suggestion-chip .icon { width: 18px; height: 18px; }
.initial-suggestions { margin: 12px 0 16px 53px; }
.chat-composer { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 9px 21px 17px; border: 1px solid rgba(62,111,95,.25); border-radius: 25px; background: rgba(255,255,255,.78); box-shadow: 0 7px 17px rgba(74,80,58,.07); }
.chat-composer textarea { width: 100%; min-height: 38px; max-height: 100px; resize: vertical; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.6; }
.chat-composer textarea::placeholder { color: #8b9691; }
.send-button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 18px; flex: 0 0 auto; border: 0; border-radius: 999px; color: white; background: linear-gradient(110deg, #fa7954, #f45f3e); font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 5px 11px rgba(223,89,57,.15); }
.send-button:hover { background: var(--coral-dark); }
.send-button .icon { width: 18px; height: 18px; }
.demo-note { position: absolute; left: 20px; bottom: 4px; color: #97a29b; font-size: 9px; }
.history-scrim { display: none; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; padding: 11px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: white; background: rgba(25,66,58,.92); box-shadow: 0 8px 20px rgba(22,45,38,.18); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s ease; font-size: 13px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.case-dialog { width: min(720px, calc(100% - 28px)); max-height: min(86vh, 850px); overflow: auto; padding: 0; border: 1px solid rgba(255,255,255,.85); border-radius: 26px; color: var(--ink); background: #fdfbf5; box-shadow: 0 28px 90px rgba(29,49,40,.28); }
.case-dialog::backdrop { background: rgba(24,42,35,.44); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; color: #244d45; background: rgba(255,255,255,.8); cursor: pointer; }
.dialog-close .icon { width: 19px; }
.dialog-image { width: 100%; height: 250px; display: block; object-fit: cover; }
.dialog-copy { padding: 23px 28px 29px; }
.dialog-kicker { color: #5c8e7c; font-size: 12px; font-weight: 700; }
.dialog-copy h2 { margin: 5px 0 10px; color: var(--ink); font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif; font-size: 28px; }
.dialog-copy > p { color: #5d716b; line-height: 1.8; font-size: 14px; }
.question-card { margin: 17px 0; padding: 13px 15px; border-radius: 16px; background: #edf2e5; }
.question-card span { color: #658277; font-size: 11px; font-weight: 700; }
.question-card p { margin: 5px 0 0; color: #214d44; font-size: 15px; font-weight: 700; }
.dialog-copy .primary-button { margin-top: 7px; }

@media (min-width: 1600px) {
  .hero { min-height: 455px; }
  .case-panel { padding: 28px 36px 22px; }
  .case-image-button { height: 194px; }
  .case-card-body { padding: 16px 18px 17px; }
  .case-card-title h3 { font-size: 19px; }
  .case-card-body > p { font-size: 13px; }
}

@media (max-width: 1120px) {
  .shell { width: min(100% - 40px, 1100px); }
  .topbar { padding-inline: 20px; }
  .hero { min-height: 365px; }
  .hero-copy { max-width: 600px; }
  .hero h1 { font-size: clamp(43px, 5vw, 57px); }
  .case-panel { padding: 22px 22px 18px; }
  .case-heading-row { align-items: flex-start; flex-direction: column; }
  .case-title-wrap { align-items: flex-start; }
  .case-title-wrap p { font-size: 12px; }
  .case-controls { width: 100%; justify-content: space-between; }
  .category-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .category-list::-webkit-scrollbar { display: none; }
  .case-grid { gap: 12px; }
  .case-image-button { height: 145px; }
  .case-card-body { padding: 12px; }
  .case-card-title h3 { font-size: 15px; }
  .tag-list span:nth-child(n+2) { display: none; }
  .explore-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .history-panel { padding-inline: 13px; }
  .chat-panel { padding-inline: 17px; }
  .stage-badge { font-size: 10px; }
  .steps { gap: 7px; }
  .steps > i { width: 22px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .topbar { height: 62px; margin-top: 8px; padding: 0 13px; border-radius: 16px; }
  .brand { gap: 7px; font-size: 20px; }
  .brand-mark, .brand-mark .icon { width: 34px; height: 34px; }
  .main-nav { position: absolute; display: none; top: 68px; left: 0; right: 0; height: auto; margin: 0; padding: 8px; gap: 0; border: 1px solid rgba(255,255,255,.85); border-radius: 15px; background: rgba(255,253,247,.96); box-shadow: var(--shadow); }
  .main-nav.mobile-open { display: flex; flex-direction: column; }
  .nav-link { min-height: 45px; text-align: left; padding: 0 14px; }
  .nav-link::after { top: 9px; bottom: 9px; left: 0; right: auto; width: 3px; height: auto; transform: scaleY(0); }
  .nav-link:hover::after, .nav-link.active::after { transform: scaleY(1); }
  .login-button { min-width: 65px; padding: 7px 12px; font-size: 12px; }
  .mobile-menu { display: grid; width: 36px; height: 36px; }
  .header-actions { gap: 7px; }
  .hero { min-height: 430px; align-items: flex-start; padding: 47px 8px 155px; }
  .hero-copy { padding: 0 0 0 3px; }
  .eyebrow { margin-bottom: 11px; padding: 6px 10px; font-size: 10px; }
  .hero h1 { font-size: clamp(38px, 10vw, 50px); line-height: 1.22; }
  .hero-copy > p { max-width: 440px; margin: 16px 0 17px; font-size: 13px; line-height: 1.7; }
  .primary-button { min-height: 47px; padding-inline: 18px; gap: 9px; font-size: 14px; }
  .primary-button .icon { width: 18px; height: 18px; }
  .hero-note { right: 8px; bottom: 12px; padding: 7px 10px; font-size: 10px; }
  .site-bg { background-position: 62% top; }
  .case-panel { width: 100%; padding: 19px 14px 17px; margin-bottom: 24px; border-radius: 24px; }
  .case-heading-row { gap: 15px; margin-bottom: 13px; }
  .case-title-wrap { gap: 9px; }
  .case-bulb .icon { width: 34px; height: 34px; }
  .case-title-wrap h2 { font-size: 21px; }
  .case-title-wrap p { max-width: 300px; font-size: 10px; line-height: 1.5; }
  .case-controls { gap: 8px; }
  .category-list { gap: 6px; }
  .category-chip { min-height: 32px; padding-inline: 11px; font-size: 11px; }
  .category-chip .icon { width: 15px; height: 15px; }
  .carousel-buttons { gap: 4px; }
  .round-button { width: 30px; height: 30px; }
  .case-grid { display: flex; gap: 12px; overflow-x: auto; margin: 0 -2px; padding: 3px 2px 9px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .case-grid::-webkit-scrollbar { display: none; }
  .case-card { flex: 0 0 min(84vw, 370px); scroll-snap-align: start; }
  .case-image-button { height: 180px; }
  .case-card-body { padding: 14px; }
  .case-card-title h3 { font-size: 17px; }
  .case-card-body > p { min-height: 42px; font-size: 12px; }
  .tag-list span:nth-child(n+2) { display: inline; }
  .carousel-dots { margin-top: 8px; }

  .page-explore { padding-bottom: 18px; }
  .explore-heading { padding-top: 26px; }
  .explore-heading h1 { font-size: 37px; }
  .heading-spark { top: 31px; left: calc(50% - 145px); }
  .explore-heading > p { margin: 10px 0 15px; font-size: 12px; }
  .steps { justify-content: flex-start; gap: 5px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 4px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .steps li { flex: 0 0 auto; gap: 5px; padding: 5px 8px; }
  .steps li span { width: 22px; height: 22px; font-size: 11px; }
  .steps li b { font-size: 10px; }
  .steps > i { width: 13px; flex: 0 0 13px; }
  .explore-layout { display: block; min-height: calc(100dvh - 225px); }
  .history-panel { position: fixed; z-index: 42; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); padding: 20px 16px; border-radius: 0 23px 23px 0; transform: translateX(-105%); transition: transform .25s ease; }
  .history-panel.open { transform: translateX(0); }
  .history-close { display: grid; place-items: center; }
  .history-scrim { position: fixed; z-index: 41; inset: 0; display: block; background: rgba(20,44,36,.35); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .history-scrim.visible { opacity: 1; pointer-events: auto; }
  .chat-panel { min-height: calc(100dvh - 215px); padding: 12px 11px 10px; border-radius: 22px; }
  .chat-header { flex-wrap: wrap; gap: 7px; min-height: 0; padding-bottom: 10px; }
  .history-toggle { display: inline-flex; }
  .chat-title { flex: 1 1 calc(100% - 120px); order: 2; }
  .chat-title h2 { font-size: 16px; }
  .history-toggle { order: 1; }
  .stage-badge { order: 3; margin-left: auto; padding: 4px 7px; font-size: 9px; }
  .stage-badge .icon { width: 14px; height: 14px; }
  .stage-badge b { font-size: 9px; }
  .chat-messages { min-height: 300px; max-height: none; padding: 13px 2px 10px; }
  .message-row { gap: 7px; margin-bottom: 12px; }
  .bot-avatar, .user-avatar { width: 34px; height: 34px; }
  .bot-avatar .icon { width: 24px; height: 24px; }
  .user-avatar .icon { width: 20px; height: 20px; }
  .bubble { padding: 10px 12px; border-radius: 17px; font-size: 12px; line-height: 1.75; }
  .message-content { max-width: calc(100% - 42px); }
  .user-bubble { max-width: calc(100% - 42px); }
  .suggestion-list { gap: 6px; margin: 8px 0 4px 2px; }
  .initial-suggestions { margin-left: 40px; }
  .suggestion-chip { min-height: 35px; padding-inline: 10px; font-size: 10px; }
  .suggestion-chip .icon { width: 15px; height: 15px; }
  .chat-composer { gap: 7px; padding: 7px 7px 20px 12px; border-radius: 20px; }
  .chat-composer textarea { min-height: 35px; font-size: 12px; }
  .send-button { min-height: 38px; gap: 5px; padding: 0 12px; font-size: 11px; }
  .send-button .icon { width: 16px; height: 16px; }
  .demo-note { left: 14px; font-size: 8px; }
  .dialog-image { height: 190px; }
  .dialog-copy { padding: 18px 18px 22px; }
  .dialog-copy h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Art-directed homepage pass: match the approved reference composition. */
.shell { width: min(1880px, 90%); }
.site-bg { background-image: linear-gradient(90deg, rgba(255,251,243,.58) 0%, rgba(255,251,243,.28) 43%, rgba(255,251,243,.05) 100%), linear-gradient(180deg, rgba(255,253,247,.08), rgba(255,253,247,.18)), url("../assets/engineering-classroom-bg.png"); background-position: center top; }
.topbar { height: 62px; margin-top: 10px; padding-inline: 24px; border-radius: 18px; background: rgba(255,253,247,.91); box-shadow: 0 8px 26px rgba(47,61,46,.07); }
.brand { font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: 22px; font-weight: 900; letter-spacing: -.06em; -webkit-text-stroke: .25px currentColor; }
.brand-mark, .brand-mark .icon { width: 37px; height: 37px; }
.main-nav { gap: 38px; margin-right: 28px; }
.nav-link { font-size: 15px; }
.nav-link::after { bottom: 7px; height: 3px; }
.login-button { min-width: 76px; padding: 7px 16px; font-size: 14px; }
.hero { min-height: 388px; padding: 22px 1% 18px; }
.hero-copy { max-width: 790px; padding: 0 0 0 18px; }
.hero-rays { position: absolute; top: -12px; left: -26px; width: 48px; height: 48px; color: var(--coral); }
.hero-rays .icon { width: 100%; height: 100%; stroke-width: 2.8; }
.hero h1 { font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: clamp(58px, 4.65vw, 82px); font-weight: 900; font-style: italic; letter-spacing: -.085em; line-height: 1.13; -webkit-text-stroke: .55px currentColor; }
.hero h1 span { -webkit-text-stroke: .45px currentColor; }
.hero h1 span::after { height: 4px; bottom: -7px; }
.hero-copy > p { margin: 18px 0 19px; font-size: 16px; line-height: 1.72; }
.hero .primary-button { min-height: 52px; padding-inline: 23px; font-size: 16px; }
.case-panel { width: min(1880px, 90%); margin-top: 14px; margin-bottom: 34px; padding: 22px 30px 16px; border: 1px solid rgba(255,255,255,.86); border-radius: 28px; background: linear-gradient(135deg, rgba(246,241,230,.88) 0%, rgba(239,237,224,.84) 100%); box-shadow: 0 18px 48px rgba(59,70,51,.1); }
.case-heading-row { align-items: center; margin-bottom: 15px; }
.case-title-wrap { gap: 11px; }
.case-bulb .icon { width: 39px; height: 39px; stroke-width: 2; }
.case-title-wrap h2 { font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: 23px; font-weight: 900; letter-spacing: -.055em; }
.case-title-wrap p { margin-top: 8px; font-size: 11px; }
.case-controls { gap: 12px; }
.category-list { gap: 7px; }
.category-chip { min-height: 34px; padding-inline: 14px; font-size: 12px; }
.category-chip .icon { width: 16px; height: 16px; }
.round-button { width: 33px; height: 33px; }
.case-grid { gap: 16px; }
.case-card { border-radius: 18px; box-shadow: 0 6px 15px rgba(43,62,49,.07); }
.case-image-button { height: clamp(165px, 18vh, 210px); }
.case-card-body { position: relative; min-height: 139px; overflow: hidden; padding: 13px 15px 15px; }
.case-card-title h3 { font-size: 16px; }
.case-card-title .icon { width: 20px; height: 20px; stroke-width: 2.1; }
.case-card-body > p { position: relative; z-index: 1; min-height: 39px; margin: 7px 0 9px; color: #445d56; font-size: 11px; line-height: 1.65; }
.case-card-bottom { position: relative; z-index: 2; justify-content: flex-start; }
.case-link { min-height: 30px; padding: 4px 12px; border: 1px solid rgba(38,132,111,.55); border-radius: 999px; background: rgba(250,253,247,.85); font-size: 11px; }
.case-link:hover { color: white; background: var(--teal); }
.case-decor { position: absolute; right: 7px; bottom: -10px; display: block; width: 84px; height: 65px; color: #98cdb4; opacity: .62; pointer-events: none; }
.case-decor .icon { width: 100%; height: 100%; stroke-width: 1.1; }
.case-card:nth-child(3) .case-decor { right: 5px; bottom: -2px; width: 100px; height: 60px; color: #89c8b3; }
.carousel-dots { margin-top: 12px; }
.dot { width: 8px; height: 8px; }

@media (min-height: 1150px) and (min-width: 761px) {
  .hero { min-height: clamp(430px, 36vh, 520px); }
  .hero h1 { font-size: clamp(72px, 4.2vw, 96px); }
  .case-image-button { height: clamp(190px, 19vh, 260px); }
  .case-panel { padding: 28px 38px 19px; }
}
@media (max-width: 1120px) {
  .shell { width: calc(100% - 48px); }
  .case-panel { width: calc(100% - 48px); }
  .case-heading-row { align-items: flex-start; }
  .hero { min-height: 372px; }
  .hero h1 { font-size: clamp(52px, 5.4vw, 68px); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .topbar { height: 58px; margin-top: 8px; }
  .hero { min-height: 410px; padding: 40px 3px 125px; }
  .hero-copy { padding-left: 8px; }
  .hero-rays { top: -13px; left: -3px; width: 35px; height: 35px; }
  .hero h1 { font-size: clamp(39px, 10vw, 50px); letter-spacing: -.075em; }
  .hero-copy > p { margin: 16px 0 16px; font-size: 13px; }
  .hero .primary-button { min-height: 47px; font-size: 14px; }
  .case-panel { width: 100%; margin-top: 8px; padding: 18px 13px 15px; }
  .case-heading-row { align-items: flex-start; }
  .case-title-wrap p { display: none; }
  .case-controls { flex-wrap: nowrap; }
  .case-image-button { height: 180px; }
  .case-card-body { min-height: 133px; }
}

/* Fine alignment against the approved reference image. */
.site-bg { background-image: linear-gradient(90deg, rgba(255,251,243,.28) 0%, rgba(255,251,243,.12) 42%, rgba(255,251,243,.015) 100%), linear-gradient(180deg, rgba(255,253,247,.035), rgba(255,253,247,.07)), url("../assets/engineering-classroom-bg.png"); }
.site-bg { inset: 0; width: 100%; height: 100vh; background-size: cover; background-position: center top; background-repeat: no-repeat; }
body.chat-open .site-bg { background-position: center top; }
.site-bg::after { background: none; }
.hero h1 { font-family: "华文行楷", "STXingkai", "KaiTi", serif; font-size: clamp(54px, 4.7vw, 80px); font-weight: 700; font-style: normal; letter-spacing: .018em; line-height: 1.28; -webkit-text-stroke: .95px currentColor; text-shadow: none; }
.hero h1 span { letter-spacing: .018em; -webkit-text-stroke: 1px currentColor; text-shadow: none; }
.hero-rays .icon { stroke-width: 3.2; }

/* Explore view: closer to the approved AI-guidance reference. */
.page-explore.shell { width: min(1880px, calc(100% - 20px)); max-width: none; padding-bottom: 10px; }
.explore-heading { padding-top: 16px; padding-left: 9.3%; text-align: left; }
.explore-heading h1 { color: #075b51; font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: clamp(48px, 4.2vw, 66px); font-weight: 900; font-style: italic; letter-spacing: -.065em; line-height: 1.12; -webkit-text-stroke: .6px currentColor; }
.explore-heading h1::after { right: -3%; bottom: -4px; width: 34%; height: 5px; }
.heading-spark { top: 19px; left: calc(9.3% - 48px); }
.heading-spark .icon { width: 38px; height: 38px; stroke-width: 2.8; }
.explore-heading > p { margin: 7px 0 14px; color: #203b39; font-size: clamp(15px, 1.45vw, 21px); letter-spacing: .035em; }
.steps { width: min(850px, 82%); justify-content: flex-start; gap: 10px; margin: 0 0 17px 9.3%; }
.steps li { min-height: 44px; gap: 10px; padding: 5px 14px; border: 0; background: rgba(220,233,211,.82); }
.steps li span { width: 32px; height: 32px; font-size: 18px; background: #78a98d; }
.steps li b { font-size: 16px; letter-spacing: .035em; }
.steps li.current { background: linear-gradient(110deg, #ff7855, #f65f3e); }
.steps > i { position: relative; width: 28px; height: 4px; flex: 0 0 28px; background: #84b397; }
.steps > i::after { position: absolute; top: -4px; right: 0; width: 10px; height: 10px; border-top: 4px solid #84b397; border-right: 4px solid #84b397; content: ""; transform: rotate(45deg); }
.explore-layout { grid-template-columns: minmax(340px, 27.5%) minmax(0, 1fr); gap: 10px; min-height: clamp(540px, calc(100dvh - 335px), 760px); }
.history-panel, .chat-panel { border-radius: 27px; background: rgba(255,251,245,.91); box-shadow: 0 13px 36px rgba(76,67,48,.12); backdrop-filter: blur(14px); }
.history-panel { padding: 20px 23px 15px; }
.history-title { gap: 13px; margin: 0 2px 23px; }
.history-title > .icon { width: 38px; height: 38px; stroke-width: 2.2; }
.history-title h2 { font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: clamp(25px, 2vw, 34px); font-weight: 900; letter-spacing: -.055em; }
.history-title h2::after { bottom: -7px; width: 88%; height: 4px; }
.new-chat-button { min-height: 48px; margin-bottom: 13px; font-size: 17px; }
.search-box { min-height: 45px; }
.history-group h3 { font-size: 13px; }
.history-item { min-height: 43px; gap: 10px; padding: 8px 10px; }
.history-item .icon { width: 20px; height: 20px; }
.history-item span { font-size: 14px; }
.history-item time { font-size: 12px; }
.history-foot { min-height: 48px; font-size: 14px; }
.chat-panel { padding: 19px 25px 17px; }
.chat-header { min-height: 52px; padding-bottom: 14px; }
.chat-title h2 { font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: clamp(22px, 2vw, 32px); font-weight: 900; letter-spacing: -.055em; }
.chat-title .icon-button .icon { width: 24px; height: 24px; }
.stage-badge { padding: 7px 12px; font-size: 15px; }
.stage-badge b { padding: 4px 10px; font-size: 15px; }
.stage-badge .icon { width: 21px; height: 21px; }
.chat-messages { display: flex; flex-direction: column; gap: 0; min-height: 0; max-height: none; padding: 22px 4px 12px; }
.message-row { gap: 12px; margin-bottom: 15px; }
.bot-avatar, .user-avatar { width: 54px; height: 54px; }
.bot-avatar .icon { width: 38px; height: 38px; }
.user-avatar .icon { width: 34px; height: 34px; }
.message-content { max-width: min(760px, 84%); }
.bubble { padding: 13px 18px; font-size: clamp(15px, 1.35vw, 21px); line-height: 1.65; }
.assistant-bubble { background: rgba(255,252,247,.85); }
.user-bubble { max-width: min(600px, 82%); }
.suggestion-list { gap: 14px; margin: 0 0 17px 66px; }
.suggestion-chip { min-height: 47px; gap: 10px; padding: 8px 19px; font-size: 16px; }
.suggestion-chip .icon { width: 26px; height: 26px; }
.chat-composer { gap: 13px; padding: 8px 8px 8px 19px; border-radius: 28px; }
.chat-composer textarea { min-height: 42px; font-size: 17px; }
.send-button { min-height: 50px; gap: 9px; padding-inline: 20px; font-size: 17px; }
.send-button .icon { width: 22px; height: 22px; }
.demo-note { display: none; }

@media (max-width: 1120px) and (min-width: 761px) {
  .page-explore.shell { width: calc(100% - 24px); }
  .explore-layout { grid-template-columns: minmax(290px, 30%) minmax(0, 1fr); min-height: clamp(500px, calc(100dvh - 320px), 680px); }
  .history-panel { padding-inline: 16px; }
  .chat-panel { padding-inline: 17px; }
  .stage-badge { font-size: 12px; }
  .stage-badge b { font-size: 12px; }
  .suggestion-list { gap: 8px; margin-left: 58px; }
  .suggestion-chip { padding-inline: 12px; font-size: 13px; }
}

@media (max-width: 760px) {
  .page-explore.shell { width: calc(100% - 20px); padding-bottom: 12px; }
  .explore-heading { padding: 18px 0 0 42px; }
  .explore-heading h1 { font-size: clamp(36px, 9vw, 48px); }
  .explore-heading h1::after { bottom: -3px; height: 3px; }
  .heading-spark { top: 19px; left: 0; }
  .heading-spark .icon { width: 31px; height: 31px; }
  .explore-heading > p { margin: 7px 0 13px; font-size: 12px; }
  .steps { width: 100%; gap: 5px; margin: 0 0 12px; }
  .steps li { min-height: 36px; gap: 5px; padding: 4px 7px; }
  .steps li span { width: 23px; height: 23px; font-size: 12px; }
  .steps li b { font-size: 10px; }
  .steps > i { width: 10px; flex-basis: 10px; height: 2px; }
  .steps > i::after { top: -3px; width: 8px; height: 8px; border-width: 2px; }
  .explore-layout { min-height: calc(100dvh - 245px); }
  .chat-panel { min-height: calc(100dvh - 235px); padding: 12px 11px 10px; }
  .chat-header { gap: 7px; }
  .chat-title h2 { font-size: 16px; }
  .stage-badge { padding: 4px 7px; font-size: 9px; }
  .stage-badge b { font-size: 9px; }
  .chat-messages { padding: 13px 2px 10px; }
  .bot-avatar, .user-avatar { width: 34px; height: 34px; }
  .bot-avatar .icon { width: 24px; height: 24px; }
  .user-avatar .icon { width: 20px; height: 20px; }
  .bubble { padding: 10px 12px; font-size: 12px; }
  .suggestion-list { gap: 6px; margin: 8px 0 4px 40px; }
  .suggestion-chip { min-height: 35px; padding: 5px 10px; font-size: 10px; }
  .suggestion-chip .icon { width: 15px; height: 15px; }
  .chat-composer { gap: 7px; padding: 7px; }
  .chat-composer textarea { min-height: 35px; font-size: 12px; }
  .send-button { min-height: 38px; padding-inline: 12px; font-size: 11px; }
}

/* Fine tune the exploration header and conversation list typography. */
.explore-heading { padding-left: 0; text-align: center; }
.explore-heading h1 { font-weight: 700; letter-spacing: -.045em; -webkit-text-stroke: .2px currentColor; }
.heading-spark { left: calc(50% - 292px); }
.history-panel .search-box { width: calc(100% - 16px); margin-inline: 8px; }
.history-title h2 { font-size: clamp(21px, 1.5vw, 25px); font-weight: 800; }
.chat-title h2 { font-size: clamp(18px, 1.45vw, 23px); font-weight: 800; }
@media (max-width: 760px) {
  .explore-heading { text-align: center; }
  .explore-heading h1 { font-size: clamp(36px, 9vw, 48px); font-weight: 700; }
  .heading-spark { left: calc(50% - 165px); }
  .history-title h2 { font-size: 21px; }
  .chat-title h2 { font-size: 15px; }
}

/* Match both exploration cards to the shared navigation shell edges. */
.page-explore.shell { width: min(1880px, 90%); }
.page-explore .steps { justify-content: center; margin-inline: auto; }
.page-explore .explore-heading h1 { font-family: "KaiTi", "楷体", "STKaiti", serif; font-size: clamp(40px, 3.4vw, 54px); font-weight: 600; -webkit-text-stroke: 0; }
.page-explore .explore-title-en { font-family: inherit; font-style: inherit; font-weight: inherit; letter-spacing: inherit; }
@media (max-width: 1120px) and (min-width: 761px) {
  .page-explore.shell { width: calc(100% - 48px); }
}
@media (max-width: 760px) {
  .page-explore.shell { width: calc(100% - 28px); }
}
.case-carousel { position: relative; padding-inline: 43px; }
.case-side-arrow { position: absolute; z-index: 5; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(39,101,87,.14); border-radius: 50%; color: #17685f; background: rgba(255,255,255,.92); box-shadow: 0 4px 11px rgba(46,67,53,.11); cursor: pointer; transform: translateY(-50%); transition: .18s ease; }
.case-side-arrow:hover { color: white; background: #318f7d; box-shadow: 0 7px 15px rgba(49,143,125,.2); }
.case-side-arrow .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.case-side-arrow.previous { left: 0; }
.case-side-arrow.next { right: 0; }
.case-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.case-card { border: 1px solid rgba(209,205,187,.48); border-radius: 17px; background: rgba(249,246,237,.94); }
.case-image-button { height: clamp(145px, 17vh, 190px); }
.case-card-body { min-height: 137px; padding: 12px 13px 14px; }
.case-card-title h3 { font-size: clamp(14px, 1.05vw, 17px); }
.case-card-body > p { min-height: 53px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-bottom: 7px; font-size: 11px; line-height: 1.58; }
.case-decor { right: 3px; bottom: -7px; width: 77px; height: 61px; color: #8ac4a9; opacity: .5; }
.case-card:nth-child(3) .case-decor { right: 3px; bottom: -4px; width: 88px; height: 58px; color: #86c5b0; opacity: .65; }
.case-card:nth-child(4) .case-decor { right: 5px; bottom: 4px; width: 43px; height: 40px; color: #9dcda7; opacity: .55; }
.case-panel { padding-bottom: 14px; }
.carousel-dots { margin-top: 10px; }
@media (max-width: 1120px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-carousel { padding-inline: 35px; }
  .case-image-button { height: clamp(150px, 21vw, 210px); }
}
@media (max-width: 760px) {
  .hero h1 { font-family: "华文行楷", "STXingkai", "KaiTi", serif; font-size: clamp(36px, 9.5vw, 50px); letter-spacing: -.01em; line-height: 1.27; font-weight: 700; -webkit-text-stroke: .65px currentColor; text-shadow: none; }
  .hero h1 span { letter-spacing: -.01em; -webkit-text-stroke: .7px currentColor; }
  .case-carousel { padding-inline: 30px; }
  .case-grid { display: flex; gap: 11px; overflow: hidden; padding: 2px 0 8px; }
  .case-card { flex: 0 0 min(75vw, 330px); }
  .case-side-arrow { width: 32px; height: 32px; }
  .case-side-arrow .icon { width: 17px; height: 17px; }
  .case-image-button { height: 165px; }
}

/* Keep the case heading and category controls aligned with the card row. */
.case-heading-row { padding-right: 43px; }
.case-title-wrap { transform: translateX(30px); }
@media (max-width: 1120px) {
  .case-heading-row { padding-right: 35px; }
  .case-title-wrap { transform: translateX(20px); }
  .category-list { width: 100%; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .case-heading-row { padding-right: 30px; }
  .case-title-wrap { transform: translateX(10px); }
  .category-list { width: auto; justify-content: flex-start; }
}

/* Reduce the oversized typography in the chat conversation area. */
.page-explore .bubble { font-size: clamp(14px, 1.05vw, 17px); line-height: 1.7; }
.page-explore .suggestion-chip { font-size: 14px; }
.page-explore .chat-composer textarea { font-size: 15px; }
.page-explore .send-button { font-size: 15px; }
@media (max-width: 760px) {
  .page-explore .bubble { font-size: 12px; }
  .page-explore .suggestion-chip { font-size: 10px; }
  .page-explore .chat-composer textarea { font-size: 12px; }
  .page-explore .send-button { font-size: 11px; }
}

/* A further size reduction for the chat panel text. */
.page-explore .chat-title h2 { font-size: clamp(18px, 1.35vw, 22px); }
.page-explore .stage-badge,
.page-explore .stage-badge b { font-size: 13px; }
.page-explore .bubble { font-size: clamp(13px, .9vw, 15px); }
.page-explore .suggestion-chip { font-size: 13px; }
.page-explore .chat-composer textarea,
.page-explore .send-button { font-size: 14px; }
@media (max-width: 760px) {
  .page-explore .chat-title h2 { font-size: 15px; }
  .page-explore .stage-badge,
  .page-explore .stage-badge b { font-size: 9px; }
  .page-explore .bubble { font-size: 12px; }
  .page-explore .suggestion-chip { font-size: 10px; }
  .page-explore .chat-composer textarea { font-size: 12px; }
  .page-explore .send-button { font-size: 11px; }
}

@media (min-width: 1121px) {
  .page-explore .explore-layout { min-height: clamp(620px, calc(100dvh - 250px), 860px); }
}

/* Keep the desktop exploration view within one viewport, like the discovery page. */
@media (min-width: 761px) {
  .page-explore.shell { display: flex; height: calc(100dvh - 82px); flex-direction: column; overflow: hidden; }
  .page-explore .explore-layout { flex: 1 1 auto; min-height: 0; }
  .page-explore .history-panel,
  .page-explore .chat-panel { min-height: 0; }
}

/* A quiet second step beneath the case carousel. */
.competition-panel { position: relative; z-index: 1; margin-top: 4px; margin-bottom: 52px; padding: 0 32px 0; }
.competition-heading { margin-bottom: 22px; text-align: center; }
.competition-kicker { display: block; margin-bottom: 5px; color: #388b7b; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.competition-heading h2 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--ink); font-size: 25px; font-weight: 900; letter-spacing: -.045em; }
.competition-heading-mark { color: var(--coral); font-size: 23px; font-weight: 500; }
.competition-heading p { margin: 6px 0 0; color: #607b72; font-size: 13px; }
.competition-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.competition-card { min-width: 0; min-height: 148px; display: flex; flex-direction: column; padding: 16px 17px 14px; border: 1px solid rgba(45,122,108,.12); border-top: 2px solid var(--competition-accent, #aed3b6); border-radius: 16px; color: var(--ink); background: var(--competition-bg, #f3f8ef); text-decoration: none; box-shadow: 0 5px 14px rgba(44,64,51,.05); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.competition-card:nth-child(1) { --competition-bg: #f3f8ef; --competition-accent: #aed3b6; }
.competition-card:nth-child(2) { --competition-bg: #faf6e9; --competition-accent: #dccb9c; }
.competition-card:nth-child(3) { --competition-bg: #f0f8f5; --competition-accent: #a9d6c9; }
.competition-card:nth-child(4) { --competition-bg: #fff3ec; --competition-accent: #edb9a4; }
.competition-card:nth-child(5) { --competition-bg: #f4f7ed; --competition-accent: #bed2ad; }
.competition-card:hover { transform: translateY(-3px); border-color: var(--competition-accent); box-shadow: 0 10px 20px rgba(44,64,51,.11); }
.competition-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 15px; color: #4c8d7c; font-size: 11px; font-weight: 800; letter-spacing: .035em; }
.competition-card-top span:last-child { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid rgba(45,122,108,.2); border-radius: 50%; font-size: 16px; line-height: 1; transition: color .2s ease, background .2s ease; }
.competition-card:hover .competition-card-top span:last-child { color: white; background: var(--teal); }
.competition-card strong { margin-bottom: 12px; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.4; letter-spacing: -.025em; }
.competition-domain { margin-top: auto; overflow: hidden; color: #627b71; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.competition-note { margin: 14px 0 0; color: #81928a; font-size: 11px; text-align: right; }
@media (max-width: 1120px) {
  .competition-panel { width: calc(100% - 48px); }
  .competition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .competition-panel { width: calc(100% - 28px); margin-bottom: 28px; padding: 0 3px; }
  .competition-heading { margin-bottom: 16px; }
  .competition-heading h2 { font-size: 22px; }
  .competition-heading p { font-size: 12px; line-height: 1.5; }
  .competition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .competition-card { min-height: 142px; padding: 13px 11px 12px; }
  .competition-card strong { font-size: 14px; }
  .competition-card-top { margin-bottom: 12px; font-size: 10px; }
  .competition-note { text-align: left; line-height: 1.5; }
}
@media (max-width: 420px) {
  .competition-grid { grid-template-columns: 1fr; }
  .competition-card { min-height: 105px; }
  .competition-card-top { margin-bottom: 7px; }
  .competition-card strong { margin-bottom: 7px; }
}
