:root {
  --bg: #080b10;
  --panel: #121823;
  --panel-2: #182131;
  --text: #f4f6fb;
  --muted: #99a5b8;
  --line: rgba(182, 199, 230, .16);
  --gold: #e8c46e;
  --red: #c93d35;
  --blue: #4f8cff;
  --cyan: #5bd6ff;
  --green: #5cc979;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(8, 11, 16, .90), rgba(8, 11, 16, .94)),
    url("assets/doc/image11.png") center top / min(1500px, 160vw) auto no-repeat,
    linear-gradient(180deg, rgba(8, 11, 16, .45), #080b10 620px),
    radial-gradient(circle at 78% 0, rgba(79, 140, 255, .20), transparent 34rem),
    var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 11, 16, .78);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled { background: rgba(8, 11, 16, .95); }

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(232, 196, 110, .55);
  background: linear-gradient(145deg, #a72622, #d5a84f 60%, #17213a);
  color: #fff6df;
  font-weight: 900;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: 0; }
.brand small { color: var(--muted); font-size: 12px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: #dce5f5;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transition: transform .18s ease;
}

.site-nav a:hover::after { transform: scaleX(1); }

.nav-download {
  padding: 10px 16px;
  border: 1px solid rgba(232, 196, 110, .42);
  background: linear-gradient(180deg, #d24b3f, #8d211f);
}

.nav-download::after { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  overflow: hidden;
  padding: 150px clamp(20px, 6vw, 86px) 72px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 11, 16, .96) 0%, rgba(8, 11, 16, .74) 42%, rgba(8, 11, 16, .36) 76%),
    linear-gradient(0deg, var(--bg), transparent 42%),
    rgba(8, 11, 16, .22);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 106px);
  line-height: .95;
  letter-spacing: 0;
  text-shadow: 0 12px 46px rgba(0, 0, 0, .72);
}

.hero-lead {
  max-width: 680px;
  color: #d8e1ef;
  font-size: clamp(17px, 2vw, 21px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-2px); border-color: rgba(232, 196, 110, .62); }
.btn.primary { background: linear-gradient(180deg, #e0584a, #9c2521); }
.btn.secondary { background: rgba(18, 24, 35, .82); }
.btn.dark { background: rgba(3, 7, 13, .72); }

.hero-panel {
  display: grid;
  gap: 10px;
}

.hero-panel div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(232, 196, 110, .22);
  background: rgba(12, 17, 25, .78);
  box-shadow: var(--shadow);
}

.hero-panel span,
.quick-entry span,
.news-list span,
.event-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -38px clamp(20px, 6vw, 86px) 0;
  position: relative;
  z-index: 2;
  background: rgba(182, 199, 230, .14);
  box-shadow: var(--shadow);
}

.quick-entry a {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(232, 196, 110, .10), transparent 44%),
    rgba(20, 28, 42, .94);
  transition: background .18s ease, transform .18s ease;
}

.quick-entry a::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 124px;
  height: 124px;
  border: 20px solid rgba(232, 196, 110, .08);
  content: "";
  transform: rotate(18deg);
}

.quick-entry a:hover {
  background: #1d2a40;
  transform: translateY(-3px);
}

.quick-entry b,
.quick-entry span {
  display: block;
}

.quick-entry b {
  margin-bottom: 8px;
  font-size: 21px;
}

.quick-entry span {
  color: var(--muted);
}

.portal-grid,
.event-band,
.content-hub,
.visual-strip,
.sub-hero,
.sub-layout {
  padding: clamp(72px, 9vw, 112px) clamp(20px, 6vw, 86px);
}

.visual-strip {
  display: grid;
  grid-template-columns: 1.05fr .95fr 1.05fr;
  gap: 18px;
  padding-top: clamp(46px, 6vw, 72px);
  padding-bottom: clamp(42px, 6vw, 70px);
  background:
    linear-gradient(180deg, rgba(8, 11, 16, .20), rgba(8, 11, 16, .86)),
    #0a0f17;
}

.visual-strip figure {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 110, .18);
  background: #0c111b;
  box-shadow: var(--shadow);
}

.visual-strip img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transition: transform .35s ease;
}

.visual-strip figure:hover img {
  transform: scale(1.045);
}

.visual-strip figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 7px 12px;
  color: #08101a;
  background: linear-gradient(180deg, #fff0b8, #d7ab58);
  font-weight: 900;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 20px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title h2,
.sub-hero h1 {
  margin: 0;
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.news-panel,
.feature-card,
.event-grid article,
.hub-grid a,
.info-card,
.article-panel,
.side-menu {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)), var(--panel);
  box-shadow: var(--shadow);
}

.news-panel {
  padding: 26px;
}

.tabbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tabbar button {
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
}

.tabbar button.is-active {
  color: #08101a;
  border-color: transparent;
  background: var(--gold);
  font-weight: 900;
}

.news-list {
  display: none;
}

.news-list.is-active {
  display: grid;
}

.news-list a {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  border-top: 1px solid var(--line);
}

.news-list b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.news-list time {
  color: var(--muted);
  text-align: right;
}

.feature-stack {
  display: grid;
  gap: 20px;
}

.feature-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
  filter: saturate(1.1) contrast(1.08);
  transition: transform .35s ease, opacity .25s ease;
}

.feature-card:hover img {
  opacity: .48;
  transform: scale(1.04);
}

.feature-card span,
.feature-card strong,
.feature-card small {
  position: relative;
  z-index: 1;
}

.feature-card::after {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 180px;
  height: 180px;
  border: 28px solid currentColor;
  opacity: .11;
  content: "";
  transform: rotate(16deg);
}

.feature-pk { color: var(--cyan); }
.feature-service { color: var(--gold); }
.feature-card strong {
  margin: 10px 0 4px;
  color: #fff;
  font-size: 32px;
}
.feature-card small { color: #c7d2e2; font-size: 15px; }

.event-band {
  background:
    linear-gradient(180deg, rgba(11, 17, 27, .92), rgba(8, 11, 16, .96)),
    url("assets/doc/image7.png") center / cover fixed;
}

.event-grid,
.hub-grid,
.info-grid {
  display: grid;
  gap: 18px;
}

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

.event-grid article,
.hub-grid a,
.info-card {
  min-height: 180px;
  padding: 24px;
}

.event-grid article {
  position: relative;
  overflow: hidden;
  padding-top: 170px;
}

.event-grid article img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid rgba(232, 196, 110, .16);
  opacity: .86;
  filter: saturate(1.06) contrast(1.05);
}

.event-grid article::after {
  position: absolute;
  inset: 88px 0 auto;
  height: 78px;
  background: linear-gradient(180deg, transparent, var(--panel));
  content: "";
}

.event-grid article span,
.event-grid article h3,
.event-grid article p {
  position: relative;
  z-index: 1;
}

.event-grid h3,
.hub-grid b,
.info-card h3 {
  display: block;
  margin: 22px 0 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1.12;
}

.event-grid p,
.hub-grid span,
.info-card p,
.article-panel p,
.article-panel li {
  color: var(--muted);
}

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

.hub-grid a {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, .10), rgba(232, 196, 110, .05)),
    var(--panel);
}

.hub-grid a::before {
  position: absolute;
  inset: 0;
  opacity: .16;
  background: url("assets/doc/image11.png") center / cover;
  content: "";
  mix-blend-mode: screen;
}

.hub-grid b,
.hub-grid span {
  position: relative;
  z-index: 1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px clamp(20px, 6vw, 86px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #05070b;
}

.sub-hero {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-top: 130px;
  background:
    linear-gradient(90deg, rgba(8, 11, 16, .94), rgba(8, 11, 16, .64)),
    radial-gradient(circle at 76% 28%, rgba(201, 61, 53, .30), transparent 28rem),
    var(--sub-hero-image, none),
    #0c111b;
  background-size: auto, auto, cover, auto;
  background-position: center;
}

.hero-server { --sub-hero-image: url("assets/doc/image11.png"); }
.hero-events { --sub-hero-image: url("assets/doc/image10.png"); }
.hero-download { --sub-hero-image: url("assets/doc/image2.png"); }
.hero-service { --sub-hero-image: url("assets/doc/image12.png"); }

.sub-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.sub-hero p {
  max-width: 760px;
  color: #d8e1ef;
  font-size: 18px;
}

.sub-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.side-menu {
  position: sticky;
  top: 96px;
  display: grid;
  padding: 12px;
}

.side-menu a {
  padding: 13px 14px;
  color: #dce5f5;
  border-bottom: 1px solid var(--line);
}

.side-menu a:last-child { border-bottom: 0; }

.article-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 28px;
}

.panel-media {
  width: calc(100% + 56px);
  height: clamp(190px, 26vw, 300px);
  display: block;
  margin: -28px -28px 24px;
  object-fit: cover;
  border-bottom: 1px solid rgba(232, 196, 110, .16);
  filter: saturate(1.06) contrast(1.04);
}

.article-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.5vw, 42px);
}

.article-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

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

.download-card {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.download-card .panel-media {
  width: 100%;
  height: 190px;
  margin: 0;
  border: 1px solid rgba(232, 196, 110, .16);
}

.download-card .btn {
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .site-nav {
    position: fixed;
    top: 74px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(330px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(8, 11, 16, .98);
  }

  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .hero,
  .portal-grid,
  .sub-layout,
  .visual-strip,
  .download-card { grid-template-columns: 1fr; }
  .quick-entry,
  .event-grid,
  .hub-grid,
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-menu { position: static; }
}

@media (max-width: 640px) {
  .brand { min-width: 0; }
  .brand small { display: none; }
  .hero { min-height: 680px; padding: 118px 18px 56px; }
  .quick-entry,
  .event-grid,
  .hub-grid,
  .info-grid { grid-template-columns: 1fr; }
  .quick-entry { margin: 0; }
  .portal-grid,
  .event-band,
  .content-hub,
  .visual-strip,
  .sub-hero,
  .sub-layout { padding-left: 18px; padding-right: 18px; }
  .news-list a { grid-template-columns: 52px minmax(0, 1fr); }
  .news-list time { display: none; }
}
