/* ==========================================================
   乐冠国际 · 全站共享样式
   技术蓝图式视觉系统：深蓝面板 + 银灰网格 + 橙色强调
   ========================================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --deep-blue: #0A1B3A;
  --medium-blue: #16355E;
  --bright-blue: #2D6BFF;
  --accent-orange: #FF5C35;
  --orange-glow: #FFB28C;
  --silver-line: #B8C2CC;
  --paper-white: #F4F7FB;
  --ink-gray: #1E2A3A;
  --success-green: #2DC68C;
  --warning-amber: #FFB020;

  --font-title: 'Inter', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', monospace;

  --container-max: 1200px;
  --radius-pill: 999px;
  --radius-print: 4px;
  --transition-fast: 0.2s ease;
  --transition-slow: 0.5s ease;
  --shadow-floating: 0 12px 40px rgba(10, 27, 58, 0.4);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-gray);
  background-color: var(--paper-white);
  background-image:
    linear-gradient(to right, rgba(184, 194, 204, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 194, 204, 0.16) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--bright-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--deep-blue);
  line-height: 1.3;
}

h1 {
  font-size: clamp(30px, 5.6vw, 48px);
}

h2 {
  font-size: clamp(24px, 4vw, 40px);
}

h3 {
  font-size: clamp(20px, 3vw, 24px);
}

h4 {
  font-size: 20px;
}

p {
  margin-bottom: 16px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(255, 92, 53, 0.22);
}

#main-content {
  outline: none;
  min-height: 60vh;
}

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

/* ---------- 布局与工具 ---------- */
.container {
  width: min(var(--container-max), 100% - 48px);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.page-head {
  padding: 160px 0 48px;
}

.page-head__meta {
  margin-bottom: 16px;
}

.page-head__title {
  font-size: clamp(28px, 4.5vw, 40px);
  margin-bottom: 8px;
}

.page-head__desc {
  font-size: 17px;
  line-height: 1.8;
  color: #3A4A5E;
  max-width: 640px;
}

.page-section {
  padding: 64px 0;
}

.lead {
  font-size: 18px;
  line-height: 1.9;
  color: #3A4A5E;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 92, 53, 0.35);
}

.btn-primary:hover {
  background: #E84F2B;
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 92, 53, 0.45);
}

.btn-outline {
  background: #fff;
  border-color: var(--silver-line);
  color: var(--deep-blue);
}

.btn-outline:hover {
  border-color: var(--deep-blue);
  color: var(--accent-orange);
}

/* ---------- 索引与标签 ---------- */
.index-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border: 1px solid var(--silver-line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--deep-blue);
}

.index-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--medium-blue);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent-orange);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.section-title__idx {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-orange);
  margin-right: 10px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-gray);
}

.breadcrumb a {
  color: var(--bright-blue);
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--bright-blue);
}

.breadcrumb__sep {
  color: var(--silver-line);
}

.breadcrumb__current {
  color: var(--ink-gray);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--silver-line);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-gray);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.tag:hover {
  border-color: var(--deep-blue);
}

.tag--active {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: #fff;
}

.tag--orange {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

.tag--blue {
  background: var(--medium-blue);
  border-color: var(--medium-blue);
  color: #fff;
}

.tag--amber {
  background: var(--warning-amber);
  border-color: var(--warning-amber);
  color: #1E2A3A;
}

.tag--green {
  background: var(--success-green);
  border-color: var(--success-green);
  color: #06281C;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--silver-line);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-gray);
}

.status-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--silver-line);
}

.status-chip--ok::before {
  background: var(--success-green);
  box-shadow: 0 0 0 3px rgba(45, 198, 140, 0.18);
}

.status-chip--warn::before {
  background: var(--warning-amber);
}

.status-chip--live::before {
  background: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 92, 53, 0.18);
}

/* ---------- 纸张卡片 ---------- */
.paper-card {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--silver-line);
  border-top: 3px solid var(--bright-blue);
  border-radius: var(--radius-print);
  box-shadow: 5px 5px 0 rgba(10, 27, 58, 0.08);
}

.paper-card--accent {
  border-top-color: var(--accent-orange);
}

/* ---------- 图片框架 ---------- */
.img-frame {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--paper-white);
  background-image:
    linear-gradient(135deg, rgba(22, 53, 94, 0.07) 25%, transparent 25%),
    linear-gradient(225deg, rgba(22, 53, 94, 0.07) 25%, transparent 25%);
  background-size: 20px 20px;
  border: 1px dashed var(--silver-line);
  border-radius: var(--radius-print);
  overflow: hidden;
}

.img-frame::before {
  content: 'IMG / 16:9';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--silver-line);
}

.img-frame--media::before {
  content: none;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

/* ---------- 筛选 ---------- */
[data-filter-bar] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--deep-blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-floating);
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.25s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

/* ---------- 头部：悬浮胶囊导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px 0;
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1002;
  background: linear-gradient(90deg, var(--accent-orange), var(--orange-glow));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: 10px 14px 10px 24px;
  background-color: var(--deep-blue);
  background-image:
    linear-gradient(rgba(184, 194, 204, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 194, 204, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid rgba(184, 194, 204, 0.22);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-floating);
  pointer-events: auto;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  flex-shrink: 0;
  color: #fff;
}

.brand-mark:hover {
  color: #fff;
}

.brand-mark__cn {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-mark__en {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(184, 194, 204, 0.75);
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(244, 247, 251, 0.8);
  border-radius: var(--radius-pill);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent-orange);
}

.nav-coord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(184, 194, 204, 0.65);
  white-space: nowrap;
}

.nav-coord::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 8px rgba(45, 198, 140, 0.7);
}

.nav-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(184, 194, 204, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header[data-open] .nav-toggle__bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 页脚：深蓝蓝图面板 ---------- */
.site-footer {
  margin-top: 96px;
  background-color: var(--deep-blue);
  background-image:
    linear-gradient(rgba(184, 194, 204, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 194, 204, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  color: rgba(244, 247, 251, 0.8);
  font-size: 15px;
  line-height: 1.85;
}

.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-orange) 0,
    var(--accent-orange) 140px,
    var(--silver-line) 140px,
    var(--silver-line) 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand-col {
  grid-column: span 4;
}

.footer-col,
.footer-col--legal {
  grid-column: span 2;
}

.footer-contact-col {
  grid-column: span 4;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.footer-brand-en {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(184, 194, 204, 0.7);
}

.footer-about {
  margin-top: 18px;
  max-width: 340px;
  font-size: 14px;
}

.footer-trust {
  margin-top: 16px;
  font-size: 13px;
  color: var(--orange-glow);
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--silver-line);
  margin-bottom: 18px;
}

.footer-heading__idx {
  color: var(--accent-orange);
  font-size: 12px;
}

.footer-link-list,
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  color: rgba(244, 247, 251, 0.85);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-link-list a:hover {
  color: var(--orange-glow);
  padding-left: 4px;
}

.footer-contact-list {
  font-size: 14px;
}

.footer-service-hours {
  margin-top: 4px;
  font-size: 13px;
  color: var(--orange-glow);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(184, 194, 204, 0.2);
  font-size: 13px;
  color: rgba(184, 194, 204, 0.72);
}

/* ---------- 显现动画 ---------- */
html[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html[data-js] [data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式：导航折叠 ---------- */
@media (max-width: 1160px) {
  .nav-coord {
    display: none;
  }
}

@media (max-width: 960px) {
  .site-header {
    padding: 12px 16px 0;
  }

  .nav-pill {
    gap: 10px;
    padding: 8px 8px 8px 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    margin-left: auto;
    padding: 8px 16px;
    font-size: 14px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--deep-blue);
    background-image:
      linear-gradient(rgba(184, 194, 204, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(184, 194, 204, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(184, 194, 204, 0.22);
    border-radius: 20px;
    box-shadow: var(--shadow-floating);
    margin-left: 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    display: none;
  }

  .site-header[data-open] .nav-links {
    display: flex;
    animation: nav-drop 0.25s ease;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-link[aria-current="page"]::after {
    left: 16px;
    right: auto;
    width: 24px;
    bottom: 9px;
  }

  .footer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 40px 32px;
    padding: 48px 0 36px;
  }

  .footer-brand-col {
    grid-column: span 6;
  }

  .footer-col,
  .footer-col--legal {
    grid-column: span 3;
  }

  .footer-contact-col {
    grid-column: span 6;
  }

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

  .span-8 {
    grid-column: span 6;
  }

  .span-6,
  .span-4 {
    grid-column: span 6;
  }

  .span-3 {
    grid-column: span 3;
  }

  .page-head {
    padding-top: 140px;
  }
}

/* ---------- 响应式：小屏 ---------- */
@media (max-width: 560px) {
  .container {
    width: min(var(--container-max), 100% - 32px);
  }

  .page-head {
    padding: 128px 0 32px;
  }

  .page-section {
    padding: 40px 0;
  }

  .paper-card {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0 32px;
  }

  .footer-brand-col,
  .footer-col,
  .footer-col--legal,
  .footer-contact-col {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .grid-cols-12 {
    grid-template-columns: minmax(0, 1fr);
  }

  .span-3,
  .span-4,
  .span-6,
  .span-8,
  .span-12 {
    grid-column: span 1;
  }
}

@media (max-width: 400px) {
  .brand-mark__en {
    display: none;
  }

  .nav-pill {
    padding-left: 14px;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ---------- 减弱动效 ---------- */
@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;
  }

  .scroll-progress {
    display: none;
  }

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

  .site-header[data-open] .nav-links {
    animation: none;
  }

  .nav-toggle__bar {
    transition: none;
  }
}
