:root {
  --china-red: #c8102e;
  --red: #8b1a1a;
  --red-deep: #641010;
  --gold: #c5a44e;
  --gold-soft: #eadfbf;
  --green: #2d5016;
  --ink: #1c2833;
  --blue: #263645;
  --muted: #66717c;
  --line: #d8dde2;
  --line-soft: #edf0f2;
  --bg: #f5f5f5;
  --paper: #fff;
  --shadow: 0 18px 46px rgba(28, 40, 51, 0.12);
  --shadow-soft: 0 12px 28px rgba(28, 40, 51, 0.07);
  --header-height: 112px;
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(28, 40, 51, 0.03), transparent 260px),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(28, 40, 51, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(28, 40, 51, 0.08);
  backdrop-filter: blur(16px);
}

.utility-strip {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 64px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}
.utility-strip strong {
  color: var(--gold-soft);
  letter-spacing: 0;
}
.utility-strip nav {
  display: flex;
  gap: 18px;
}
.utility-strip a {
  position: relative;
  white-space: nowrap;
}
.utility-strip a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.utility-strip a:hover::after { transform: scaleX(1); }

.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 0 clamp(18px, 4vw, 64px);
}
.brand {
  display: flex;
  min-width: 288px;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(197, 164, 78, 0.82);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(197, 164, 78, .96), rgba(234, 223, 191, .92)),
    var(--gold);
  color: var(--red-deep);
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset 0 0 0 5px rgba(139, 26, 26, 0.08);
}
.brand b {
  display: block;
  color: var(--red-deep);
  font-size: 20px;
  line-height: 1.2;
}
.brand small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.main-nav a {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  padding: 0 10px;
  color: #253340;
  font-weight: 900;
  white-space: nowrap;
}
.main-nav a::before {
  position: absolute;
  top: 0;
  right: 10px;
  left: 10px;
  height: 3px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.main-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 18px;
  left: 12px;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transition: opacity .18s ease;
}
.main-nav a:hover {
  color: var(--red);
  background: linear-gradient(180deg, rgba(139, 26, 26, .055), transparent);
}
.main-nav a:hover::before { transform: scaleX(1); }
.main-nav a:hover::after { opacity: 1; }

.search-link,
.ai-nav,
.login-link,
.menu-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.search-link {
  gap: 6px;
  width: auto;
  min-width: 76px;
}
.search-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ai-nav {
  gap: 9px;
  border-color: rgba(200, 16, 46, .22);
  background: white;
  color: var(--china-red);
}
.ai-nav svg,
.floating-ai svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ai-bubble-icon {
  overflow: visible;
}
.ai-bubble-icon path {
  stroke-width: 8;
}
.ai-bubble-icon text {
  fill: currentColor;
  stroke: none;
  font-size: 38px;
  font-weight: 900;
  font-family: Arial, sans-serif;
  letter-spacing: 0;
}
.ai-nav svg {
  width: 24px;
  height: 24px;
}
.login-link {
  border-color: rgba(139, 26, 26, .18);
  color: var(--red);
}
.search-link:hover,
.login-link:hover {
  border-color: var(--gold);
  background: #fbfaf6;
}
.ai-nav:hover {
  border-color: var(--china-red);
  background: rgba(200, 16, 46, .06);
}
.menu-toggle { display: none; }

.mega-menu {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  left: clamp(18px, 4vw, 64px);
  top: var(--header-height);
  display: none;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  border: 1px solid rgba(28, 40, 51, 0.12);
  border-top: 4px solid var(--gold);
  background: white;
  color: var(--ink);
  padding: 24px;
  box-shadow: var(--shadow);
}
.mega-menu.is-open { display: grid; }
.mega-menu p {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.mega-menu strong {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 28px;
  line-height: 1.2;
}
.mega-menu [data-mega-links] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mega-menu a {
  position: relative;
  min-height: 76px;
  border: 1px solid var(--line);
  background: #fbfcfc;
  padding: 16px 42px 16px 16px;
  font-weight: 900;
}
.mega-menu a::after {
  position: absolute;
  right: 16px;
  top: 16px;
  color: var(--gold);
  content: "↗";
}
.mega-menu a:hover {
  border-color: rgba(139, 26, 26, .32);
  background: white;
  color: var(--red);
}

.container {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(150, 16, 30, .42) 0%, rgba(200, 16, 46, .18) 40%, rgba(200, 16, 46, 0) 100%),
    url("assets/hero-campus.png") center / cover no-repeat;
  color: white;
}
.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(139, 26, 26, .03));
  content: "";
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(60svh + 120px);
  align-items: center;
  padding: 72px 0 128px;
}
.hero-copy {
  width: min(900px, 100%);
  border-left: 5px solid var(--gold);
  padding-left: 28px;
}
.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(197, 164, 78, .52);
  background: rgba(139, 26, 26, .38);
  padding: 4px 10px;
  color: var(--gold-soft);
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(88, 10, 18, .42);
}
.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  text-shadow: 0 2px 12px rgba(88, 10, 18, .36);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 18px;
  font-weight: 900;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.btn::after {
  color: var(--gold);
  content: "↗";
  font-size: 14px;
  line-height: 1;
}
.btn.compact {
  justify-content: space-between;
}
.btn.compact::after,
.ai-action::after { content: none; }
.btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.btn.primary {
  border-color: transparent;
  background: var(--green);
  color: white;
}
.btn.red {
  border-color: transparent;
  background: var(--red);
  color: white;
}
.btn.ghost {
  border-color: rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .08);
  color: white;
}
.btn.primary::after,
.btn.red::after,
.btn.ghost::after { color: var(--gold-soft); }

.hero-tabs {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 86px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(139, 26, 26, .54);
  backdrop-filter: blur(12px);
}
.hero-tabs span {
  padding: 10px 22px;
  color: rgba(255, 255, 255, .72);
  font-weight: 900;
}
.hero-tabs span:first-child {
  background: var(--gold);
  color: var(--ink);
}

.newsline {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 0;
  left: 5%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 0 22px;
  background: var(--china-red);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .16);
}
.newsline strong { color: var(--gold-soft); }
.newsline a {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.newsline span {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.section {
  padding: 68px 0;
}
.section.dark {
  border-top: 1px solid rgba(197, 164, 78, .46);
  background: var(--ink);
  color: white;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #cbd2d8;
}
.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 2.5vw, 34px);
  line-height: 1.25;
}
.section-head h2::before {
  display: inline-block;
  width: 8px;
  height: 24px;
  margin-right: 10px;
  background: var(--red);
  content: "";
  vertical-align: -3px;
}
.section-head p.desc {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.dark .section-head {
  border-color: rgba(255, 255, 255, .16);
}
.dark .section-head h2 { color: white; }
.dark .section-head p.desc { color: rgba(255, 255, 255, .7); }

.ai-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(197, 164, 78, .34);
  border-bottom: 1px solid rgba(28, 40, 51, .08);
  background:
    radial-gradient(circle at 86% 22%, rgba(200, 16, 46, .08), transparent 30%),
    radial-gradient(circle at 14% 78%, rgba(197, 164, 78, .12), transparent 28%),
    #f8fafb;
}
.ai-section::before {
  position: absolute;
  top: 70px;
  right: 5%;
  width: min(34vw, 480px);
  height: 380px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 64%),
    radial-gradient(circle at 50% 50%, rgba(200, 16, 46, .14), transparent 36%);
  border-radius: 50%;
  content: "";
  opacity: .9;
  pointer-events: none;
}
.ai-section .container {
  position: relative;
  z-index: 1;
}
.ai-section .section-head { align-items: center; }
.ai-action {
  gap: 14px;
  border-color: rgba(200, 16, 46, .22);
  background: white;
  color: var(--china-red);
}
.ai-action svg {
  width: 34px;
  height: 34px;
}
.ai-showcase {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) 1.5fr;
  gap: 24px;
  align-items: stretch;
}
.ai-visual {
  position: relative;
  min-height: 356px;
  overflow: hidden;
  border: 1px solid rgba(28, 40, 51, .12);
  background:
    radial-gradient(circle at 50% 46%, rgba(200, 16, 46, .2), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(239, 244, 246, .82));
  box-shadow: var(--shadow-soft);
}
.ai-visual::before,
.ai-visual::after {
  position: absolute;
  inset: 48px;
  border: 1px solid rgba(197, 164, 78, .42);
  border-radius: 50%;
  content: "";
}
.ai-visual::after {
  inset: 86px;
  border-color: rgba(45, 80, 22, .26);
}
.ai-orbit {
  position: absolute;
  inset: 44px;
  border: 1px dashed rgba(200, 16, 46, .34);
  border-radius: 50%;
}
.ai-orbit.two {
  inset: 86px;
  border-color: rgba(197, 164, 78, .55);
}
.ai-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px solid rgba(197, 164, 78, .62);
  background: linear-gradient(145deg, white, #f3f7f8);
  color: var(--china-red);
  box-shadow: 0 18px 44px rgba(28, 40, 51, .14);
  transform: translate(-50%, -50%);
}
.ai-core svg {
  width: 70px;
  height: 70px;
}
.ai-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ai-card {
  position: relative;
  min-height: 166px;
  border: 1px solid rgba(28, 40, 51, .12);
  background: rgba(255, 255, 255, .88);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.ai-card::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--china-red), var(--gold), rgba(45, 80, 22, 0));
  content: "";
}
.ai-card h3 {
  margin: 12px 0 6px;
  font-size: 19px;
}
.ai-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.ai-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(200, 16, 46, .16);
  background: rgba(200, 16, 46, .07);
  color: var(--china-red);
}
.ai-icon svg {
  width: 34px;
  height: 34px;
}

.grid {
  display: grid;
  gap: 22px;
}
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  position: relative;
  border: 1px solid rgba(28, 40, 51, .12);
  background: rgba(255, 255, 255, .96);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.card::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(197, 164, 78, 0));
  content: "";
}
.card:hover {
  border-color: rgba(139, 26, 26, .22);
  background: white;
  box-shadow: var(--shadow);
}
.service-card {
  display: grid;
  min-height: 160px;
  align-content: start;
  padding: 20px 18px 18px;
}
.service-card::after {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--red);
  content: "↗";
  font-size: 14px;
  font-weight: 900;
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-card:hover::after {
  border-color: var(--gold);
  background: #fbfaf6;
}
.icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(45, 80, 22, .2);
  background: rgba(45, 80, 22, .08);
  color: var(--green);
  font-weight: 900;
}
.icon svg {
  width: 24px;
  height: 24px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.35;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.card small {
  color: var(--muted);
}

.info-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
  align-items: stretch;
}
.info-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
}
.info-card > .list,
.info-card > .event-list {
  flex: 1;
}
.featured {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: stretch;
}
.thumb {
  min-height: 150px;
  background:
    linear-gradient(180deg, transparent, rgba(28, 40, 51, .34)),
    url("assets/hero-news.png") center / cover no-repeat;
}
.list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.list li:last-child { border-bottom: 0; }
.list time {
  color: var(--red);
  font-weight: 900;
}
.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  background: rgba(197, 164, 78, .18);
  color: var(--red);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 900;
}
.event {
  border-left: 4px solid var(--gold);
  background: #f8f9fa;
  padding: 14px;
}
.event b { color: var(--red); }
.event-list {
  align-content: stretch;
}
.event-list .event {
  display: grid;
  align-content: center;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tabs button {
  border: 1px solid var(--line);
  background: white;
  padding: 9px 16px;
  color: var(--ink);
  font-weight: 900;
}
.tabs button.active {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.searchbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: white;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.searchbar input {
  border: 1px solid var(--line);
  padding: 12px 14px;
  outline: 0;
}
.result { margin-bottom: 14px; }
.article-detail {
  max-width: 900px;
  margin: auto;
}
.stack-gap { margin-top: 24px; }

.login-section {
  min-height: calc(100svh - var(--header-height));
  background:
    linear-gradient(90deg, rgba(139, 26, 26, .94), rgba(200, 16, 46, .78)),
    url("assets/hero-campus.png") center / cover no-repeat;
  color: white;
}
.login-wrap {
  display: grid;
  grid-template-columns: 1.15fr minmax(360px, 440px);
  gap: 36px;
  align-items: center;
}
.login-copy {
  max-width: 720px;
  border-left: 5px solid var(--gold);
  padding-left: 28px;
}
.login-copy h1 {
  margin: 0;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.1;
}
.login-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}
.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.login-points span {
  border: 1px solid rgba(197, 164, 78, .54);
  background: rgba(255, 255, 255, .08);
  padding: 7px 12px;
  color: var(--gold-soft);
  font-weight: 900;
}
.login-card {
  display: grid;
  gap: 16px;
  color: var(--ink);
}
.login-card h2 {
  margin: 0;
  color: var(--red);
}
.login-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 900;
}
.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  outline: 0;
}
.login-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 164, 78, .16);
}
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
.login-row .check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.login-row input {
  width: auto;
}
.login-submit {
  width: 100%;
}

.role-stats {
  grid-template-columns: repeat(4, 1fr);
}
.stat strong {
  display: block;
  color: var(--red);
  font-size: 34px;
  line-height: 1.2;
}
.site-group {
  margin-bottom: 28px;
}
.site-group h2 {
  margin: 0 0 16px;
  color: var(--red);
}

.enter-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-left: auto;
  border: 1px solid var(--line);
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  border-top: 4px solid var(--gold);
  background:
    linear-gradient(135deg, rgba(139, 26, 26, .18), transparent 42%),
    #111820;
  color: white;
  padding: 42px 5%;
}
.site-footer h2,
.site-footer h3 { margin-top: 0; }
.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, .68);
}
.site-footer a {
  display: block;
  margin-top: 8px;
}
.legacy-entry {
  display: inline-flex !important;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--gold);
  padding: 0 14px;
  color: var(--gold-soft) !important;
  font-weight: 900;
}
.legacy-entry::after {
  margin-left: 8px;
  content: "↗";
}

.floating-ai {
  position: fixed;
  z-index: 60;
  right: 0;
  top: 54%;
  display: flex;
  width: 66px;
  height: 86px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(197, 164, 78, .48);
  border-right: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(200, 16, 46, .1), transparent 38%),
    rgba(255, 255, 255, .96);
  color: var(--china-red);
  box-shadow: var(--shadow);
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.floating-ai svg {
  width: 34px;
  height: 34px;
}
.floating-ai:hover {
  background: #fff;
  color: var(--green);
}

.ai-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(28, 40, 51, .42);
}
.ai-mask.open { display: block; }
.ai-panel {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100%);
  background: white;
  box-shadow: -18px 0 44px rgba(28, 40, 51, .22);
  transform: translateX(105%);
  transition: transform .2s ease;
}
.ai-panel.open { transform: translateX(0); }
.ai-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(200, 16, 46, .08), transparent 52%),
    white;
}
.ai-head p {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.ai-head h2 {
  margin: 2px 0;
  color: var(--red);
}
.ai-head span {
  color: var(--muted);
  font-size: 13px;
}
.ai-head button {
  width: 38px;
  height: 38px;
  border: 0;
  background: #eef1f3;
  font-size: 24px;
}
.ai-body {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 20px;
}
.ai-body button {
  position: relative;
  border: 1px solid var(--line);
  background: white;
  padding: 12px 12px 12px 38px;
  color: var(--green);
  text-align: left;
  font-weight: 900;
}
.ai-body button::before {
  position: absolute;
  top: 17px;
  left: 14px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  background: rgba(200, 16, 46, .08);
  content: "";
  transform: rotate(45deg);
}
.ai-msg {
  border: 1px solid rgba(28, 40, 51, .08);
  padding: 13px;
  background: #f6f8f9;
  line-height: 1.7;
}
.ai-msg.user {
  border-color: rgba(45, 80, 22, .14);
  background: rgba(45, 80, 22, .08);
}
.ai-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.ai-input input {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 12px;
  outline: 0;
}
.ai-input button {
  border: 0;
  background: var(--china-red);
  color: white;
  padding: 0 16px;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .nav-row { grid-template-columns: auto 1fr auto auto; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    background: white;
  }
  .main-nav.open { display: grid; }
  .main-nav a {
    min-height: auto;
    padding: 12px;
  }
  .menu-toggle { display: inline-flex; }
  .search-link { margin-left: auto; }
  .mega-menu { display: none !important; }
  .cols-5 { grid-template-columns: repeat(3, 1fr); }
  .ai-showcase { grid-template-columns: 1fr; }
  .ai-matrix { grid-template-columns: repeat(3, 1fr); }
  .info-grid,
  .login-wrap,
  .role-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 72px; }
  .utility-strip,
  .search-link,
  .ai-nav,
  .login-link { display: none; }
  .nav-row {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }
  .brand { min-width: 0; }
  .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }
  .brand b { font-size: 16px; }
  .brand small { font-size: 12px; }
  .main-nav { grid-template-columns: 1fr; }
  .container { width: min(100% - 28px, 720px); }
  .hero { min-height: 620px; }
  .hero-inner {
    min-height: 560px;
    padding: 42px 0 148px;
  }
  .hero-copy {
    padding-left: 18px;
  }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .btn {
    min-height: 44px;
    padding: 0 14px;
  }
  .hero-tabs {
    right: 14px;
    bottom: 82px;
    left: 14px;
    overflow-x: auto;
  }
  .hero-tabs span { white-space: nowrap; }
  .newsline {
    right: 14px;
    left: 14px;
    grid-template-columns: auto 1fr;
    padding: 10px 14px;
  }
  .newsline span { display: none; }
  .section { padding: 46px 0; }
  .section-head { display: block; }
  .cols-2,
  .cols-3,
  .cols-4,
  .cols-5,
  .ai-matrix,
  .info-grid,
  .featured,
  .login-wrap,
  .role-stats,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .searchbar { grid-template-columns: 1fr; }
  .ai-section::before { opacity: .34; }
  .ai-visual { min-height: 280px; }
  .info-card { min-height: auto; }
  .login-section { min-height: auto; }
  .login-copy {
    padding-left: 18px;
  }
  .login-copy h1 { font-size: 36px; }
  .floating-ai {
    top: auto;
    right: 50%;
    bottom: 14px;
    width: auto;
    height: 52px;
    flex-direction: row;
    gap: 6px;
    padding: 0 18px;
    transform: translateX(50%);
  }
}
