@charset "UTF-8";

/* ==========================================================================
   KAIYUN 中国官方网站 — Site Kit 共享样式
   视觉支柱：目录型内容地图 / 悬浮胶囊导航 / 切角面板与速度线
   ========================================================================== */

/* 1. 设计变量 */
:root {
  --bg-primary: #0A1428;
  --bg-secondary: #101F3C;
  --bg-near-black: #0B0E14;
  --accent-gold: #D4A017;
  --accent-gold-light: #F5C951;
  --accent-red: #D9383E;
  --accent-cyan: #2DD4BF;
  --gray-blue: #64748B;
  --text-light: #F1F5F9;
  --divider: #2C3E50;

  --font-display: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-numeric: "DIN Alternate", "Roboto Mono", monospace;

  --container: 1200px;
  --header-offset: 114px;
  --radius-panel: 18px;
  --radius-pill: 999px;
}

/* 2. Reset 与基础元素 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

header,
footer,
main,
nav,
section,
article,
aside,
figure,
figcaption {
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--text-light);
  background:
    radial-gradient(1100px 420px at 85% -120px, rgba(212, 160, 23, 0.07), transparent 60%),
    radial-gradient(800px 400px at -10% 0%, rgba(45, 212, 191, 0.04), transparent 55%),
    var(--bg-primary);
  min-width: 320px;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-offset);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-light);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; }
h5, h6 { font-size: 0.95rem; }

p { line-height: 1.9; }

ul, ol { padding-left: 1.2em; }
ul[class], ol[class] { list-style: none; padding-left: 0; }

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--accent-gold-light); }

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

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

::selection {
  background: var(--accent-gold);
  color: var(--bg-near-black);
}

:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* 3. 无障碍跳转 */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 400;
  transform: translateX(-50%) translateY(-300%);
  background: var(--accent-gold-light);
  color: var(--bg-near-black);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.skip-link:focus-visible {
  transform: translateX(-50%) translateY(0);
}

/* 4. 主体容器 */
.site-main {
  min-height: 60vh;
  padding: 16px 0 64px;
}

.page-container {
  width: calc(100% - 40px);
  max-width: var(--container);
  margin-inline: auto;
}

#main-content {
  scroll-margin-top: 138px;
}

/* 5. 顶部信息条 */
.top-banner {
  background: linear-gradient(90deg, var(--bg-near-black), var(--bg-secondary));
  border-bottom: 1px solid rgba(212, 160, 23, 0.28);
}

.top-banner__inner {
  width: calc(100% - 40px);
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.top-banner__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.6);
}

.top-banner__text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-light);
}

.top-banner__link {
  color: var(--accent-gold-light);
  font-weight: 700;
  border-bottom: 1px dashed rgba(245, 201, 81, 0.55);
  transition: color 0.2s, border-color 0.2s;
}

.top-banner__link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* 6. 悬浮胶囊导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.site-header__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 5;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan), var(--accent-gold-light));
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.5);
  transition: width 0.08s linear;
  pointer-events: none;
}

.site-header__bar {
  padding: 10px 20px 14px;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.92) 0%, rgba(10, 20, 40, 0.55) 78%, transparent 100%);
}

.site-header__capsule {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 8px 6px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 160, 23, 0.25);
  background: rgba(16, 31, 60, 0.88);
  box-shadow: 0 10px 26px rgba(11, 14, 20, 0.55), inset 0 1px 0 rgba(245, 201, 81, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-capsule {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 18px 5px 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: var(--bg-near-black);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-capsule:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(212, 160, 23, 0.45);
  color: var(--bg-near-black);
}

.brand-capsule__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-near-black);
  color: var(--accent-gold-light);
  font-size: 1.1rem;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.brand-capsule__word {
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-capsule__cn {
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.72;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 160, 23, 0.08);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-light);
  transition: transform 0.25s, opacity 0.2s, background 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.site-nav__link:hover {
  background: rgba(212, 160, 23, 0.14);
  color: var(--accent-gold-light);
}

.site-nav__link:active {
  transform: scale(0.97);
}

.site-nav__link[aria-current="page"] {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: var(--bg-near-black);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.35);
}

/* 7. 页脚 */
.site-footer {
  position: relative;
  background: var(--bg-near-black);
  border-top: 1px solid rgba(212, 160, 23, 0.3);
  padding: 56px 20px 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-red), var(--accent-cyan), var(--accent-gold-light), var(--accent-gold));
  opacity: 0.85;
}

.site-footer__speedline {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background-image: repeating-linear-gradient(-55deg, transparent 0 14px, rgba(212, 160, 23, 0.045) 14px 16px);
  pointer-events: none;
}

.site-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.35fr;
  gap: 40px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-bottom: 44px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-brand:hover {
  color: var(--accent-gold-light);
}

.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--bg-near-black);
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.footer-brand__name {
  letter-spacing: 0.04em;
}

.site-footer__trust {
  max-width: 46ch;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--gray-blue);
}

.site-footer__col {
  min-width: 0;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}

.site-footer__list {
  display: grid;
  gap: 10px;
}

.site-footer__link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--text-light);
  opacity: 0.86;
  transition: color 0.2s, opacity 0.2s, padding-left 0.2s;
}

.site-footer__link:hover {
  color: var(--accent-gold-light);
  opacity: 1;
  padding-left: 5px;
}

.site-footer__text,
.site-footer__contact {
  display: block;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--gray-blue);
}

.site-footer__contact {
  font-variant-numeric: tabular-nums;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(44, 62, 80, 0.8);
  padding: 18px 0 20px;
}

.site-footer__bottom p {
  font-size: 0.8rem;
  color: var(--gray-blue);
  text-align: center;
}

/* 8. 返回顶部 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 160, 23, 0.5);
  background: rgba(16, 31, 60, 0.92);
  color: var(--accent-gold-light);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(11, 14, 20, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s, transform 0.25s, visibility 0s linear 0.25s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.back-to-top:hover {
  background: rgba(212, 160, 23, 0.18);
  border-color: var(--accent-gold-light);
  color: var(--accent-gold-light);
}

.back-to-top__icon {
  display: block;
  width: 20px;
  height: 20px;
}

/* 9. 章节与布局组件 */
.section {
  padding: 44px 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.section__kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-gold);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
}

.section__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  white-space: nowrap;
}

.page-intro {
  max-width: 820px;
  padding: 30px 0 10px;
}

.page-intro__lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.85;
  color: var(--gray-blue);
}

.layout-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: start;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 10. 面板 / 标签 / 按钮 / 数据 */
.panel {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--divider);
  border-radius: var(--radius-panel);
  padding: 24px;
}

.panel--cut {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.panel--hover {
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.panel--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 12px 28px rgba(11, 14, 20, 0.45);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid var(--divider);
  color: var(--gray-blue);
  background: rgba(16, 31, 60, 0.7);
}

.tag--gold {
  color: var(--accent-gold-light);
  border-color: rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.08);
}

.tag--red {
  color: #ff8a8e;
  border-color: rgba(217, 56, 62, 0.5);
  background: rgba(217, 56, 62, 0.08);
}

.tag--cyan {
  color: var(--accent-cyan);
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: var(--text-light);
  background: var(--bg-secondary);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--text-light);
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: var(--bg-near-black);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.28);
}

.btn--primary:hover {
  color: var(--bg-near-black);
  box-shadow: 0 10px 26px rgba(212, 160, 23, 0.4);
}

.btn--ghost {
  background: transparent;
  border-color: var(--divider);
  color: var(--text-light);
}

.btn--ghost:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.btn--danger {
  background: rgba(217, 56, 62, 0.14);
  border-color: rgba(217, 56, 62, 0.55);
  color: #ffb3b6;
}

.btn--danger:hover {
  background: rgba(217, 56, 62, 0.24);
  color: #ffd0d2;
}

.data-number {
  font-family: var(--font-numeric);
  font-size: 2.25em;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-gold-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.data-number--cyan {
  color: var(--accent-cyan);
}

.data-number--red {
  color: #ff8a8e;
}

.data-number__unit {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.42em;
  font-weight: 700;
  color: var(--gray-blue);
  letter-spacing: 0.04em;
}

/* 11. 提示条 / 时间轴 / 面包屑 / 纹理 / 图片容器 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(217, 56, 62, 0.5);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(217, 56, 62, 0.16), rgba(217, 56, 62, 0.04) 70%);
  color: #ffb3b6;
  font-size: 0.9rem;
  line-height: 1.6;
}

.notice-bar__icon {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 10px rgba(217, 56, 62, 0.7);
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-gold) 0%, rgba(212, 160, 23, 0.25) 55%, rgba(45, 212, 191, 0.3) 100%);
}

.timeline__item {
  position: relative;
  padding-left: 28px;
}

.timeline__dot {
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold-light);
  box-shadow: 0 0 10px rgba(245, 201, 81, 0.5), 0 0 0 3px rgba(245, 201, 81, 0.12);
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 2px;
}

.timeline__text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray-blue);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0 0;
  font-size: 0.84rem;
  color: var(--gray-blue);
}

.breadcrumbs a {
  color: var(--gray-blue);
}

.breadcrumbs a:hover {
  color: var(--accent-gold-light);
}

.breadcrumbs__sep {
  opacity: 0.55;
}

.breadcrumbs__current {
  color: var(--text-light);
  font-weight: 600;
}

.speedline {
  background-image: repeating-linear-gradient(-55deg, transparent 0 12px, rgba(212, 160, 23, 0.09) 12px 14px);
}

.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(130px 90px at 25% 25%, rgba(212, 160, 23, 0.12), transparent 65%),
    var(--bg-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;
  position: relative;
  z-index: 1;
}

/* 12. 响应式 */
@media (min-width: 961px) and (max-width: 1080px) {
  .site-nav__link {
    padding: 9px 10px;
    font-size: 0.84rem;
  }

  .brand-capsule__cn {
    display: none;
  }
}

@media (max-width: 960px) {
  body {
    --header-offset: 118px;
  }

  .site-header__capsule {
    flex-wrap: wrap;
    gap: 12px;
    border-radius: 26px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
    padding: 10px 6px 8px;
    border-top: 1px solid var(--divider);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 18px;
    font-size: 0.92rem;
    border-radius: 14px;
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(212, 160, 23, 0.16);
    color: var(--accent-gold-light);
    box-shadow: none;
  }

  .layout-split {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    padding-top: 44px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  body {
    --header-offset: 128px;
  }

  .top-banner__text {
    font-size: 0.78rem;
  }

  .brand-capsule {
    padding-right: 14px;
  }
}

@media (max-width: 360px) {
  .top-banner__dot {
    display: none;
  }
}

/* 13. 动效与系统偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
