:root {
  --text: #f8fbff;
  --muted: #c8d0d9;
  --panel: rgba(4, 9, 13, 0.78);
  --panel-strong: rgba(11, 17, 23, 0.9);
  --line: rgba(255, 255, 255, 0.14);
  --orange: #ff7a00;
  --orange-bright: #ffb21d;
  --purple: #9e35ff;
  --cyan: #08d9ff;
  --red: #ff2d16;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #05070a;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.26) 45%, rgba(0, 0, 0, 0.62)),
    radial-gradient(circle at 50% 18%, rgba(255, 146, 30, 0.2), transparent 28%),
    url("../assets/seven-days-bg.png") center / cover fixed no-repeat;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 22%, transparent 76%, rgba(0, 0, 0, 0.52)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  padding-bottom: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42));
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 70px;
  height: 62px;
  margin-right: clamp(14px, 4vw, 56px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 112, 20, 0.82);
  border-radius: 50%;
  color: #ff5b20;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 104, 20, 0.95);
  transform: rotate(-9deg);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 68px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff7a19, transparent);
  content: "";
}

.brand-mark::before {
  transform: rotate(46deg);
}

.brand-mark::after {
  transform: rotate(-46deg);
}

.nav {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.4vw, 34px);
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  color: #f3f3f3;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
  transition: color 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: #ffba20;
}

.nav a.active::after {
  position: absolute;
  right: -18px;
  bottom: 0;
  left: -18px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange-bright), var(--orange), transparent);
  box-shadow: 0 0 16px rgba(255, 124, 0, 0.95);
  content: "";
}

.hero {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(24px, 3.4vw, 44px);
}

.hero-title {
  text-align: center;
  text-transform: none;
}

.hero-title h1 {
  margin: 0;
  color: #f4f4f0;
  font-size: clamp(36px, 6.4vw, 90px);
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    0 6px 0 rgba(70, 24, 0, 0.9),
    0 12px 24px rgba(0, 0, 0, 0.9);
}

.hero-title h1 span {
  color: var(--orange-bright);
  background: linear-gradient(180deg, #ffe38b 0%, #ffb22b 34%, #ff6f00 64%, #8b2500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title p {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 12px 0 26px;
  color: #fff;
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 900;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
}

.hero-title p span {
  width: 40px;
  height: 14px;
  background:
    linear-gradient(135deg, transparent 0 28%, var(--orange) 28% 45%, transparent 45% 56%, var(--orange) 56% 73%, transparent 73%),
    linear-gradient(135deg, transparent 0 28%, var(--orange) 28% 45%, transparent 45% 56%, var(--orange) 56% 73%, transparent 73%);
  filter: drop-shadow(0 0 7px rgba(255, 117, 0, 0.9));
}

.hero-title p span:last-child {
  transform: rotate(180deg);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1.1fr) minmax(280px, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

.portal-panel {
  position: relative;
  display: flex;
  min-height: 378px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--accent);
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.17), transparent 26%),
    linear-gradient(180deg, rgba(3, 8, 12, 0.88), rgba(2, 5, 8, 0.78));
  box-shadow: var(--shadow), 0 0 28px rgba(var(--accent-rgb), 0.22);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 18px), 0 18px);
}

.portal-panel::before {
  position: absolute;
  top: 0;
  left: 28px;
  width: 68%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.9), transparent);
  content: "";
}

.panel-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-bottom: 16px;
}

.panel-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 16px 4px 16px 4px;
  background: rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.24);
  overflow: hidden;
}

.sprite-icon {
  display: block;
  flex: 0 0 auto;
  background-image: url("../assets/icon-sheet.png?v=20260429-sprite2");
  background-repeat: no-repeat;
  background-size: var(--sprite-bg-w) var(--sprite-bg-h);
  background-position: var(--sprite-x) var(--sprite-y);
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.48));
}

.panel-symbol-icon {
  border-radius: 10px 3px 10px 3px;
}

.panel-heading h2 {
  margin: 0;
  padding-right: 74px;
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 1000;
  line-height: 1.12;
  white-space: nowrap;
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.panel-tag {
  position: absolute;
  top: 22px;
  right: 21px;
  padding: 3px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.72);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: rgba(var(--accent-rgb), 0.2);
  box-shadow: inset 0 0 12px rgba(var(--accent-rgb), 0.22);
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.feature-tile {
  min-height: 70px;
  padding: 10px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.65);
  background: rgba(var(--accent-rgb), 0.13);
}

.tile-icon {
  margin: 0 auto 6px;
  border-radius: 7px;
}

.feature-tile span {
  display: block;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.28;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 18px;
  margin-top: 2px;
}

.feature-row {
  display: grid;
  grid-template-columns: 22px 1fr 14px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3f5fb;
  font-size: 13px;
  font-weight: 750;
}

.row-icon {
  border-radius: 5px;
}

.feature-row b {
  color: rgba(255, 255, 255, 0.42);
  font-size: 19px;
  font-weight: 500;
}

.gateway-stack {
  display: grid;
  gap: 10px;
  margin-top: 5px;
}

.gateway-card {
  display: grid;
  grid-template-columns: 46px 1fr 16px;
  gap: 13px;
  align-items: center;
  min-height: 69px;
  padding: 11px 13px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.045));
  transition: transform 180ms ease, border-color 180ms ease;
}

.gateway-card:hover {
  transform: translateX(4px);
  border-color: rgba(var(--accent-rgb), 0.72);
}

.gateway-icon {
  display: block;
  border: 1px solid rgba(var(--accent-rgb), 0.75);
  border-radius: 50%;
  background-color: rgba(var(--accent-rgb), 0.14);
}

.gateway-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 950;
}

.gateway-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.gateway-card b {
  color: rgba(255, 255, 255, 0.45);
  font-size: 22px;
  font-weight: 400;
}

.panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 37px;
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.78), rgba(var(--accent-rgb), 1));
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.36);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.panel-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.panel-action .action-icon {
  font-size: 14px;
}

.notice {
  position: fixed;
  right: clamp(18px, 7vw, 140px);
  bottom: 18px;
  left: clamp(18px, 7vw, 140px);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 37px;
  padding: 6px 22px;
  border: 1px solid rgba(255, 122, 0, 0.75);
  color: #ffb21d;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.86) 15% 85%, transparent);
  box-shadow: 0 0 25px rgba(255, 101, 0, 0.18);
  clip-path: polygon(0 50%, 7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%);
}

.notice::before,
.notice::after {
  width: 96px;
  height: 18px;
  background: repeating-linear-gradient(120deg, var(--orange) 0 10px, transparent 10px 18px);
  content: "";
  opacity: 0.85;
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #1f1100;
  font-weight: 1000;
  background: #ff9d00;
}

.notice strong {
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: 0;
}

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

  .portal-panel {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    padding-bottom: 132px;
  }

  .site-header {
    height: auto;
    padding: 8px 14px 0;
    align-items: flex-start;
  }

  .brand {
    width: 58px;
    height: 60px;
    margin-right: 8px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 36px;
  }

  .brand-mark::before,
  .brand-mark::after {
    width: 58px;
  }

  .nav {
    gap: 22px;
    height: 60px;
  }

  .hero {
    width: min(100% - 24px, 640px);
    padding-top: 30px;
  }

  .hero-title p {
    gap: 8px;
    margin-bottom: 22px;
  }

  .hero-title p span {
    width: 28px;
  }

  .portal-panel {
    padding: 20px;
  }

  .panel-header {
    grid-template-columns: auto 1fr;
  }

  .panel-heading h2 {
    white-space: normal;
  }

  .panel-tag {
    position: static;
    grid-column: 2;
    justify-self: start;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .notice {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    padding: 10px 18px;
    clip-path: none;
  }

  .notice::before,
  .notice::after {
    display: none;
  }
}
