:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #66717f;
  --line: #dbe6ea;
  --paper: #ffffff;
  --mist: #f4faf9;
  --blue: #0874bb;
  --cyan: #14aeca;
  --green: #138a72;
  --yellow: #f2b84b;
  --red: #d85a47;
  --shadow: 0 18px 45px rgba(25, 52, 70, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(8, 116, 187, .05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(19, 138, 114, .05) 1px, transparent 1px),
    #fbfdfc;
  background-size: 34px 34px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px min(5vw, 64px);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand img {
  width: 52px;
  height: 52px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.nav a,
.nav-button {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344253;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.nav a:hover,
.nav-button:hover {
  background: var(--mist);
  color: var(--blue);
}

.nav a.active {
  background: #e8f4f7;
  color: var(--blue);
  font-weight: 700;
}

.auth-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.user-pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
  align-items: center;
  gap: 38px;
  padding: 78px min(5vw, 64px) 46px;
  background:
    radial-gradient(circle at 78% 22%, rgba(242, 184, 75, .28), transparent 25%),
    linear-gradient(135deg, #eef9fb 0%, #ffffff 50%, #f7fbf4 100%);
}

.hero-text {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.lead {
  max-width: 720px;
  color: #465563;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 116, 187, .24);
}

.button.primary:hover {
  background: #075f9c;
}

.button.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--blue);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-panel a {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(8, 116, 187, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}

.hero-panel a:hover {
  transform: translateY(-2px);
}

.hero-panel b {
  color: var(--blue);
  font-size: 42px;
  line-height: 1;
}

.hero-panel span {
  margin-top: 9px;
  color: var(--muted);
}

.section {
  padding: 72px min(5vw, 64px);
}

.tool-section {
  padding-top: 28px;
  padding-bottom: 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
  gap: 14px;
  align-items: end;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: start;
  background: #fff;
}

.intro p:last-child {
  color: #4d5c68;
  font-size: 18px;
  line-height: 1.9;
}

.page-hero {
  padding: 86px min(5vw, 64px) 70px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #eef9fb 0%, #ffffff 55%, #f8fbf3 100%);
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(34px, 4vw, 54px);
}

.page-hero .lead {
  max-width: 780px;
}

.company-hero {
  background: linear-gradient(135deg, #eef9fb 0%, #ffffff 58%, #fff8e8 100%);
}

.student-hero {
  background: linear-gradient(135deg, #f2fbf7 0%, #ffffff 58%, #eef9fb 100%);
}

.school-hero {
  background: linear-gradient(135deg, #fff8e8 0%, #ffffff 58%, #eef9fb 100%);
}

.doorway-section {
  background: #fff;
}

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

.doorway-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.doorway-card:hover {
  transform: translateY(-3px);
}

.doorway-card span {
  width: max-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eef8fa;
  color: var(--green);
  font-weight: 700;
}

.doorway-card h2 {
  margin-top: 18px;
}

.doorway-card p {
  margin-bottom: 0;
  color: #4d5c68;
  line-height: 1.75;
}

.company-door {
  border-top: 5px solid var(--blue);
}

.student-door {
  border-top: 5px solid var(--green);
}

.school-door {
  border-top: 5px solid var(--yellow);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 28px;
}

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

.card-grid.compact {
  grid-template-columns: 1fr;
}

.info-card,
.profile-card,
.event-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(31, 55, 67, .08);
}

.info-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.info-card .meta,
.profile-card .meta,
.event-item .meta {
  color: var(--green);
  font-weight: 700;
}

.info-card h4,
.profile-card h4,
.event-item h4 {
  margin: 10px 0;
  font-size: 20px;
  line-height: 1.35;
}

.info-card p,
.profile-card p,
.event-item p {
  color: #4d5b67;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.tags span {
  padding: 5px 9px;
  border-radius: 8px;
  background: #eef8fa;
  color: #126274;
  font-size: 13px;
}

.contact {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.detail-link {
  width: max-content;
  margin-top: 16px;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.detail-link:hover {
  color: #075f9c;
}

.student-band {
  background: linear-gradient(180deg, #f8fcfd 0%, #ffffff 100%);
}

.soft-section {
  background: #fff;
}

.profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-card {
  padding: 24px;
  border-top: 5px solid var(--yellow);
}

.profile-card:nth-child(2n) {
  border-top-color: var(--cyan);
}

.profile-card:nth-child(3n) {
  border-top-color: var(--green);
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.event-date {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 8px;
  background: #fff7e4;
  color: #9a640b;
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
}

.publish {
  background: #f5faf7;
}

.auth-page {
  min-height: calc(100vh - 81px);
  display: grid;
  place-items: center;
  padding: 64px 20px;
  background: linear-gradient(135deg, #eef9fb 0%, #ffffff 55%, #f8fbf3 100%);
}

.auth-card {
  width: min(480px, 100%);
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.auth-note {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.75;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--blue);
  font-weight: 700;
}

.publish-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #31404d;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 174, 202, .18);
  border-color: var(--cyan);
}

.wide,
.wide-button {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 700;
  text-align: right;
}

.form-status.error {
  color: var(--red);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.footer img {
  width: 38px;
  height: 38px;
}

.empty {
  padding: 26px;
  border: 1px dashed #b7cbd3;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
}

.modal-open {
  overflow: hidden;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.detail-modal.open {
  display: flex;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 48, .42);
}

.detail-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 37, 48, .28);
}

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.detail-list dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.detail-content {
  padding-top: 8px;
}

.detail-content h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.detail-content p {
  color: #4d5b67;
  line-height: 1.85;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .split,
  .event-item,
  .doorway-grid,
  .filter-box {
    grid-template-columns: 1fr;
  }

  .profile-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-panel,
  .profile-grid,
  .card-grid,
  .publish-form,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 20px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-status {
    text-align: left;
  }

  .brand {
    min-width: 0;
  }
}

/* 首页主视觉与热点消息 */
.home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 38, 58, .78) 0%, rgba(6, 38, 58, .58) 45%, rgba(6, 38, 58, .22) 100%),
    url("background.jpg") center / cover no-repeat;
  color: #fff;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(251, 253, 252, .96));
  pointer-events: none;
}

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

.home-hero .eyebrow {
  color: #f2d27a;
}

.home-hero .lead {
  color: rgba(255, 255, 255, .9);
}

.hot-news {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 22px 55px rgba(4, 24, 38, .26);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hot-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .26);
}

.hot-news-head span {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.hot-news-head strong {
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(242, 184, 75, .92);
  color: #2c2a1e;
  font-size: 13px;
}

.hot-news-window {
  height: 360px;
  overflow: hidden;
}

.hot-news-track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: hotSlide 18s infinite;
}

.hot-news-card {
  position: relative;
  flex: 0 0 33.3333%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.hot-news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hot-news-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(5, 29, 44, .88));
}

.hot-news-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.hot-news-card h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 24px;
}

.hot-news-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .88);
  line-height: 1.7;
}

@keyframes hotSlide {
  0%, 28% { transform: translateX(0); }
  33%, 61% { transform: translateX(-33.3333%); }
  66%, 94% { transform: translateX(-66.6666%); }
  100% { transform: translateX(0); }
}

.doorway-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4faf9 100%);
}

.doorway-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 30px;
  border-top-width: 7px;
}

.doorway-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -62px auto;
  width: 150px;
  height: 150px;
  border: 22px solid rgba(8, 116, 187, .08);
  border-radius: 50%;
}

.doorway-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin-top: 24px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(8, 116, 187, .2);
}

.student-door strong {
  background: var(--green);
}

.school-door strong {
  background: #b87909;
}

.doorway-card:hover strong {
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .hot-news-window {
    height: 320px;
  }
}

@media (max-width: 720px) {
  .hot-news-window {
    height: 300px;
  }

  .hot-news-card h2 {
    font-size: 21px;
  }
}
.file-list {
  display: grid;
  gap: 10px;
}

.file-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--blue);
  font-weight: 700;
}

.file-list a:hover {
  border-color: var(--cyan);
  background: #eef8fa;
}

.file-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.extra-detail-list {
  margin-top: 12px;
}
.hot-news-link {
  display: inline-flex;
  width: max-content;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
/* 用户补充：新版 LOGO、端口背景和字体调整 */
.brand img {
  object-fit: contain;
  border-radius: 50%;
}

.footer {
  align-items: center;
  line-height: 1.4;
}

.footer img {
  object-fit: contain;
  border-radius: 50%;
  flex: 0 0 auto;
}

.footer p {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 38px;
}

.home-hero .eyebrow {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.25;
}

main[data-page="student"] .eyebrow,
main[data-page="student"] .section-kicker,
main[data-page="school"] .eyebrow,
main[data-page="school"] .section-kicker {
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.35;
}

.company-hero,
.student-hero,
.school-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.company-hero {
  background-image: linear-gradient(90deg, rgba(5, 34, 54, .78), rgba(5, 34, 54, .42)), url("企业端background.jpg");
}

.student-hero {
  background-image: linear-gradient(90deg, rgba(5, 48, 39, .76), rgba(5, 48, 39, .38)), url("学生端background.jpg");
}

.school-hero {
  background-image: linear-gradient(90deg, rgba(74, 55, 10, .72), rgba(74, 55, 10, .34)), url("学校端background.jpg");
}

.company-hero .eyebrow,
.student-hero .eyebrow,
.school-hero .eyebrow {
  color: #f2d27a;
}

.company-hero .lead,
.student-hero .lead,
.school-hero .lead {
  color: rgba(255, 255, 255, .92);
}
/* 三个端口顶部背景区统一 */
.company-hero,
.student-hero,
.school-hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 82px;
  padding-bottom: 82px;
}

.company-hero .eyebrow,
.student-hero .eyebrow,
.school-hero .eyebrow {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.company-hero h1,
.student-hero h1,
.school-hero h1 {
  max-width: 920px;
  font-size: clamp(42px, 4vw, 56px);
  line-height: 1.15;
}

.company-hero .lead,
.student-hero .lead,
.school-hero .lead {
  max-width: 900px;
  min-height: 96px;
  font-size: 18px;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .company-hero,
  .student-hero,
  .school-hero {
    min-height: 360px;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .company-hero .eyebrow,
  .student-hero .eyebrow,
  .school-hero .eyebrow {
    font-size: 21px;
  }

  .company-hero h1,
  .student-hero h1,
  .school-hero h1 {
    font-size: 34px;
  }

  .company-hero .lead,
  .student-hero .lead,
  .school-hero .lead {
    min-height: 0;
    font-size: 16px;
  }
}
/* 首页平台名称保持单行 */
.home-hero .eyebrow {
  max-width: none;
  font-size: clamp(20px, 2vw, 28px);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .home-hero .eyebrow {
    white-space: normal;
    font-size: 20px;
  }
}