:root {
  --c-primary: #1A1A2E;
  --c-secondary: #16213E;
  --c-surface: #0F0F1A;
  --c-orange: #FF6B35;
  --c-green: #00FF88;
  --c-highlight: #FFC300;
  --c-white: #FFFFFF;
  --c-text-secondary: #B0B0C0;
  --c-muted: #6C6C7A;
  --c-success: #00E5A0;
  --f-headline: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --f-body: "Roboto", "Helvetica Neue", "PingFang SC", "Noto Sans SC", sans-serif;
  --f-data: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --content-max: 1280px;
  --header-height: 64px;
  --sidebar-width: 280px;
  --z-header: 100;
  --z-nav: 200;
  --z-skip: 999;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-white);
  background: var(--c-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-headline);
  font-weight: 900;
  line-height: 1.2;
}

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

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

ul[class], ol[class] {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--c-orange);
  color: #0F0F1A;
}

.layout-container {
  width: min(100% - 40px, var(--content-max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--tinted {
  background: var(--c-secondary);
}

.section--surface {
  background: var(--c-surface);
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--f-data);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--c-white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background-color 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--c-orange);
  color: #0F0F1A;
}

.btn--primary:hover {
  background: #ff8559;
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.breadcrumb {
  padding-block: 20px 8px;
  font-size: 13px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-secondary);
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: var(--c-muted);
  font-family: var(--f-data);
}

.breadcrumb__link {
  color: var(--c-text-secondary);
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: var(--c-orange);
}

.breadcrumb__current {
  color: var(--c-white);
  font-weight: 700;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-secondary);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-frame:hover img {
  transform: scale(1.03);
}

.image-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.image-frame--4x3 {
  aspect-ratio: 4 / 3;
}

.image-frame--1x1 {
  aspect-ratio: 1 / 1;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  background: var(--c-orange);
  color: #0F0F1A;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transform: translateY(-240%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
}

.site-brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--c-surface);
  clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 25% 100%, 0 75%);
}

.site-brand__line {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--c-orange);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-brand__name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.site-brand__sub {
  font-size: 11px;
  color: var(--c-text-secondary);
  letter-spacing: 0.14em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 16px;
}

.site-header__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--c-secondary);
  color: var(--c-white);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background-color 0.2s;
}

.site-header__toggle:hover {
  background: var(--c-surface);
}

.site-header__toggle-label {
  line-height: 1;
}

.site-header__toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-orange);
  transition: transform 0.3s, box-shadow 0.3s;
}

.site-header__toggle-icon::before {
  top: 0;
  box-shadow: 0 6px 0 var(--c-orange);
}

.site-header__toggle-icon::after {
  bottom: 0;
}

.site-header[data-open] .site-header__toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
  box-shadow: none;
}

.site-header[data-open] .site-header__toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  z-index: var(--z-nav);
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: var(--c-secondary);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(102%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  overscroll-behavior: contain;
}

.site-header[data-open] .site-nav {
  transform: translateX(0);
}

.site-nav__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 32px;
  overflow-y: auto;
}

.site-nav__eyebrow {
  font-family: var(--f-data);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.site-nav__list {
  display: grid;
  gap: 2px;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  color: var(--c-text-secondary);
  border-left: 3px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-white);
  border-left-color: var(--c-orange);
  background: rgba(255, 107, 53, 0.08);
}

.site-nav__index {
  font-family: var(--f-data);
  font-size: 13px;
  color: var(--c-muted);
  min-width: 24px;
}

.site-nav__label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav__quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.site-nav__quick-link {
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  background: var(--c-surface);
  color: var(--c-text-secondary);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background-color 0.2s, color 0.2s;
}

.site-nav__quick-link:hover,
.site-nav__quick-link:focus-visible {
  background: var(--c-orange);
  color: #0F0F1A;
}

.site-nav__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.site-nav__status-text {
  font-size: 12px;
  color: var(--c-muted);
}

body.nav-open {
  overflow: hidden;
}

.site-header__progress {
  display: none;
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--sidebar-width);
  }

  body.nav-open {
    overflow: auto;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: var(--c-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
  }

  .site-header__topbar {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 28px 24px 0;
  }

  .site-header__toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex: 1;
    width: 100%;
    transform: none;
    background: transparent;
    border-left: none;
  }

  .site-nav__inner {
    height: 100%;
    padding: 24px 16px;
    gap: 0;
  }

  .site-nav__list {
    gap: 4px;
  }

  .site-nav__link {
    padding: 12px 14px;
  }

  .site-nav__quick {
    margin-top: auto;
  }

  .site-nav__status {
    margin-top: 16px;
  }

  .site-header__progress {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    transform: scaleY(0);
    transform-origin: top center;
    background: linear-gradient(to bottom, var(--c-orange), var(--c-green));
    z-index: 2;
  }
}

.site-footer {
  background: var(--c-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 20px 36px;
  width: min(100% - 40px, var(--content-max));
  margin-inline: auto;
}

.site-footer .site-brand {
  margin-bottom: 14px;
}

.site-footer__trust {
  font-size: 13px;
  color: var(--c-text-secondary);
  max-width: 280px;
  margin-bottom: 8px;
}

.site-footer__service-time {
  font-size: 13px;
  color: var(--c-muted);
}

.site-footer__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--c-white);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--c-orange);
  line-height: 1.4;
}

.site-footer__list,
.site-footer__contact-list {
  display: grid;
  gap: 8px;
}

.site-footer__list a {
  color: var(--c-text-secondary);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--c-white);
  padding-left: 4px;
}

.site-footer__contact-list {
  color: var(--c-text-secondary);
  font-size: 14px;
}

.site-footer__contact-list li {
  line-height: 1.6;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--c-primary);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  width: min(100% - 40px, var(--content-max));
  margin-inline: auto;
  padding: 16px 0;
  font-size: 12px;
  color: var(--c-muted);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-block: 56px;
  }
}

@media (max-width: 767px) {
  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled [data-reveal][data-visible] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav {
    transition: none;
  }
}
