.inner-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 182px);
  padding: 42px 0 74px;
}

.inner-shell {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.page-hero {
  position: relative;
  padding: 54px 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 91% 4%, rgba(116, 94, 238, 0.2), transparent 33%),
    radial-gradient(circle at 8% 100%, rgba(62, 139, 241, 0.13), transparent 31%),
    var(--surface);
  box-shadow: var(--shadow);
  animation: agent-rise 0.58s var(--ease) both;
}

.page-hero::after {
  position: absolute;
  top: -140px;
  right: -90px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(142, 176, 247, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 44px rgba(113, 139, 236, 0.025),
    0 0 0 96px rgba(113, 139, 236, 0.018);
  content: "";
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 800px;
  margin: 20px 0 16px;
  font-family: "STZhongsong", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2.45rem, 4.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.page-hero h1 em {
  background: linear-gradient(100deg, #dceaff 10%, #89b8ff 54%, #b79bff 100%);
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.page-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.15vw, 1.1rem);
  line-height: 1.85;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.hero-highlight {
  padding: 7px 12px;
  border: 1px solid rgba(119, 160, 235, 0.17);
  border-radius: 999px;
  background: rgba(70, 113, 198, 0.07);
  color: var(--dim);
  font-size: 0.74rem;
}

.access-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
}

.access-heading h2 {
  font-family: "STZhongsong", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.access-heading > p {
  max-width: 420px;
  color: var(--dim);
  font-size: 0.86rem;
  text-align: right;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.access-card {
  position: relative;
  display: flex;
  min-height: 450px;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(97, 120, 230, 0.08), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(13px) saturate(130%);
  transition: transform 0.28s var(--ease), border-color 0.28s ease, background 0.28s ease;
  animation: agent-rise 0.58s var(--ease) both;
}

.access-card:nth-child(2) {
  animation-delay: 0.08s;
}

.access-card:nth-child(3) {
  animation-delay: 0.16s;
}

.access-card::after {
  position: absolute;
  right: -54px;
  bottom: -86px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(123, 154, 230, 0.1);
  border-radius: 50%;
  content: "";
  transition: transform 0.35s var(--ease);
}

.access-card:hover {
  z-index: 2;
  border-color: rgba(108, 160, 246, 0.44);
  background:
    radial-gradient(circle at 100% 0, rgba(112, 139, 249, 0.14), transparent 46%),
    rgba(18, 29, 52, 0.82);
  transform: translateY(-5px);
}

.access-card:hover::after {
  transform: scale(1.16);
}

.access-card-primary {
  border-color: rgba(115, 166, 250, 0.4);
  background:
    radial-gradient(circle at 90% 2%, rgba(121, 94, 238, 0.2), transparent 42%),
    rgba(15, 25, 47, 0.91);
}

.access-card-primary::before {
  position: absolute;
  top: 0;
  left: 28px;
  width: 92px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--gradient);
  box-shadow: 0 0 22px rgba(114, 113, 244, 0.58);
  content: "";
}

.access-card-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: rgba(144, 171, 224, 0.32);
  font-family: "Georgia", serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.access-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(124, 166, 242, 0.24);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(83, 133, 231, 0.2), rgba(121, 91, 219, 0.12));
  color: var(--blue-soft);
}

.access-icon svg {
  width: 25px;
  height: 25px;
}

.access-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid rgba(104, 155, 239, 0.2);
  border-radius: 999px;
  background: rgba(73, 124, 222, 0.1);
  color: var(--blue-soft);
  font-size: 0.68rem;
  font-weight: 650;
}

.access-badge-domestic {
  border-color: rgba(126, 201, 166, 0.22);
  background: rgba(72, 176, 122, 0.09);
  color: #a7e6c4;
}

.access-badge-global {
  border-color: rgba(184, 142, 246, 0.24);
  background: rgba(141, 94, 221, 0.1);
  color: #cfb4ff;
}

.access-card h3 {
  margin: 16px 0 10px;
  font-size: 1.18rem;
  font-weight: 680;
  line-height: 1.4;
}

.access-desc {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.78;
}

.access-meta {
  display: grid;
  gap: 0;
  margin-top: auto;
  padding-top: 22px;
  list-style: none;
}

.access-meta li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(120, 161, 233, 0.11);
  color: var(--dim);
  font-size: 0.76rem;
}

.access-meta strong {
  color: var(--muted);
  font-weight: 600;
}

.access-meta .status-ready,
.access-meta .is-ready {
  color: #91e0b4;
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.access-actions .button-primary,
.access-actions .button-secondary {
  flex: 1 1 130px;
}

.button-primary.is-disabled,
.button-secondary.is-disabled {
  border-color: rgba(120, 161, 233, 0.12);
  background: rgba(74, 96, 132, 0.1);
  box-shadow: none;
  color: var(--dim);
  cursor: not-allowed;
  opacity: 0.68;
  pointer-events: none;
}

.access-note {
  margin-top: 20px;
  padding: 13px 16px;
  border-left: 2px solid rgba(102, 157, 245, 0.5);
  border-radius: 0 10px 10px 0;
  background: rgba(74, 112, 184, 0.06);
  color: var(--dim);
  font-size: 0.76rem;
}

.chat-shell {
  display: grid;
  max-width: 980px;
  gap: 22px;
}

.chat-intro {
  animation: agent-rise 0.52s var(--ease) both;
}

.chat-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--dim);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.chat-back:hover {
  color: var(--blue-soft);
}

.chat-back svg {
  width: 15px;
  height: 15px;
}

.chat-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
}

.chat-heading h1 {
  margin: 14px 0 8px;
  font-family: "STZhongsong", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.chat-heading p {
  max-width: 650px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.chat-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(103, 200, 151, 0.2);
  border-radius: 999px;
  background: rgba(66, 167, 113, 0.07);
  color: #a2e0bc;
  font-size: 0.72rem;
}

.chat-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7bdfa5;
  box-shadow: 0 0 11px rgba(123, 223, 165, 0.8);
}

.chat-panel {
  display: flex;
  min-height: min(720px, calc(100vh - 250px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(106, 92, 225, 0.1), transparent 34%),
    rgba(10, 17, 32, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px) saturate(125%);
  animation: agent-rise 0.58s 0.08s var(--ease) both;
}

.chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 7px;
}

.chat-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(116, 153, 220, 0.24);
}

.message-row {
  display: flex;
  max-width: 86%;
  align-items: flex-start;
  align-self: flex-start;
  gap: 10px;
  animation: message-in 0.25s var(--ease) both;
}

.message-row.user {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.message-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(124, 166, 242, 0.2);
  border-radius: 10px;
  background: rgba(75, 122, 214, 0.13);
  color: var(--blue-soft);
  font-size: 0.65rem;
  font-weight: 700;
}

.message-row.user .message-avatar {
  border-color: rgba(150, 125, 244, 0.24);
  background: rgba(126, 93, 220, 0.14);
  color: #d6c8ff;
}

.message-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.message-row.user .message-content {
  align-items: flex-end;
}

.message-bubble {
  padding: 12px 15px;
  border: 1px solid rgba(120, 161, 233, 0.13);
  border-radius: 5px 16px 16px;
  background: rgba(20, 31, 54, 0.72);
  color: #cad6ec;
  font-size: 0.86rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-row.user .message-bubble {
  border-color: rgba(118, 126, 241, 0.25);
  border-radius: 16px 5px 16px 16px;
  background: linear-gradient(135deg, rgba(75, 119, 224, 0.92), rgba(126, 91, 223, 0.92));
  color: #fff;
}

.message-row.is-error .message-bubble {
  border-color: rgba(233, 132, 132, 0.24);
  background: rgba(130, 55, 62, 0.15);
  color: #f2b8b8;
}

.message-time {
  padding: 0 3px;
  color: var(--dim);
  font-size: 0.64rem;
}

.message-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 0 3px;
  color: var(--dim);
  font-size: 0.68rem;
  line-height: 1.6;
}

.message-sources a {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.message-sources a:hover {
  color: var(--text);
  border-color: rgba(148, 190, 255, 0.45);
}

.typing-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--blue-soft);
  animation: typing-pulse 1.1s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  margin-right: 0;
  animation-delay: 0.3s;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 14px;
}

.chat-suggestions button {
  padding: 7px 11px;
  border: 1px solid rgba(120, 161, 233, 0.15);
  border-radius: 999px;
  background: rgba(68, 109, 190, 0.055);
  color: var(--dim);
  font-size: 0.71rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chat-suggestions button:hover {
  border-color: rgba(135, 180, 250, 0.38);
  background: rgba(79, 133, 229, 0.12);
  color: var(--blue-soft);
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  padding: 16px 18px 12px;
  border-top: 1px solid rgba(120, 161, 233, 0.12);
  background: rgba(9, 15, 29, 0.64);
}

.chat-form textarea {
  width: 100%;
  min-height: 48px;
  max-height: 144px;
  flex: 1;
  padding: 12px 15px;
  resize: none;
  border: 1px solid rgba(120, 161, 233, 0.17);
  border-radius: 14px;
  outline: none;
  background: rgba(16, 26, 46, 0.74);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.55;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-form textarea::placeholder {
  color: #64728e;
}

.chat-form textarea:focus {
  border-color: rgba(121, 171, 248, 0.48);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}

.chat-form textarea:disabled {
  opacity: 0.68;
}

.chat-send {
  display: inline-flex;
  min-width: 92px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 17px;
  border: 0;
  border-radius: 14px;
  background: var(--gradient);
  box-shadow: 0 10px 26px rgba(83, 103, 238, 0.24);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, opacity 0.2s ease;
}

.chat-send:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(107, 100, 240, 0.34);
}

.chat-send:disabled {
  cursor: wait;
  opacity: 0.58;
}

.chat-send svg {
  width: 15px;
  height: 15px;
}

.chat-send.is-loading svg {
  animation: send-pulse 0.8s ease-in-out infinite;
}

.chat-footnote {
  padding: 0 20px 16px;
  background: rgba(9, 15, 29, 0.64);
  color: #687792;
  font-size: 0.66rem;
  line-height: 1.6;
}

.chat-footnote a {
  color: var(--blue-soft);
}

.chat-footnote a:hover {
  text-decoration: underline;
}

@keyframes agent-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes typing-pulse {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes send-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .access-grid {
    grid-template-columns: 1fr;
  }

  .access-card {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .inner-shell {
    gap: 36px;
  }

  .access-heading,
  .chat-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .access-heading > p {
    text-align: left;
  }

  .chat-status {
    align-self: flex-start;
  }
}

@media (max-width: 600px) {
  .inner-main {
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .page-hero {
    padding: 34px 22px;
    border-radius: 20px;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-highlights {
    margin-top: 22px;
  }

  .access-card {
    padding: 23px;
    border-radius: 19px;
  }

  .access-card-primary::before {
    left: 23px;
  }

  .access-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .access-actions .button-primary,
  .access-actions .button-secondary {
    width: 100%;
  }

  .chat-panel {
    min-height: calc(100vh - 220px);
    border-radius: 19px;
  }

  .chat-messages {
    gap: 15px;
    padding: 20px 14px;
  }

  .message-row {
    max-width: 96%;
  }

  .message-avatar {
    width: 29px;
    height: 29px;
  }

  .chat-suggestions {
    padding-inline: 14px;
  }

  .chat-form {
    gap: 8px;
    padding: 12px;
  }

  .chat-send {
    min-width: 48px;
    padding-inline: 13px;
  }

  .chat-send span {
    display: none;
  }

  .chat-footnote {
    padding-inline: 14px;
  }
}
