/* ==========================================================================
   site.css · 乐冠国际 共享外壳
   ========================================================================== */

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

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

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

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

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #0E2238;
  --ink-800: #16324F;
  --ink-700: #24496B;
  --gold-600: #B07A3C;
  --gold-400: #C99A5B;
  --gold-200: #E3C08D;
  --signal-500: #E8632C;
  --signal-300: #F08A5D;
  --mist-100: #F4F2ED;
  --mist-300: #E7E3DA;
  --ink-text: #17202A;

  --font-display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --line: rgba(14, 34, 56, 0.16);
  --line-soft: rgba(14, 34, 56, 0.08);
  --radius-s: 4px;
  --radius-m: 12px;
  --radius-l: 26px;
  --ease: cubic-bezier(0.32, 0.72, 0.28, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-text);
  background-color: var(--mist-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  text-wrap: balance;
}

p { max-width: 38em; }

::selection {
  background: var(--gold-200);
  color: var(--ink-900);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--signal-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 88px); }
.section--mist { background-color: var(--mist-300); }
.section--ink {
  background-color: var(--ink-900);
  color: var(--mist-100);
}
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--mist-100); }

.rule {
  height: 1px;
  border: 0;
  background-color: var(--line);
  margin-block: clamp(26px, 4vw, 48px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 300;
  transform: translate(-50%, -160%);
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mist-100);
  background-color: var(--ink-900);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  text-decoration: none;
  transition: transform 0.24s var(--ease);
}
.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 5. Editorial bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--ink-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background-color: var(--gold-600);
}

.note-column {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-700);
  border-left: 2px solid var(--gold-400);
  padding-left: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--ink-800);
  background-color: rgba(227, 192, 141, 0.28);
  border: 1px solid var(--gold-400);
  border-radius: 999px;
}
.tag--signal {
  font-weight: 700;
  color: var(--ink-900);
  background-color: rgba(240, 138, 93, 0.2);
  border-color: var(--signal-500);
}

/* ---------- 6. Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button--gold {
  color: var(--mist-100);
  background-color: var(--gold-600);
  border-color: var(--gold-600);
}
.button--gold:hover { background-color: var(--gold-400); border-color: var(--gold-400); }
.button--signal {
  color: #FFFFFF;
  background-color: var(--signal-500);
  border-color: var(--signal-500);
}
.button--signal:hover { background-color: var(--signal-300); border-color: var(--signal-300); }
.button--ghost {
  color: var(--ink-900);
  background-color: transparent;
  border-color: var(--ink-900);
}
.button--ghost:hover { background-color: var(--ink-900); color: var(--mist-100); }

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb { padding-block: 20px 0; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-700);
}
.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-list li + li::before {
  content: "/";
  color: var(--gold-600);
}
.breadcrumb-list a {
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.breadcrumb-list a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--gold-600);
}
.breadcrumb-list [aria-current="page"] {
  color: var(--ink-900);
  font-weight: 700;
}

/* ---------- 8. Image frames ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--mist-300);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 6px;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(244, 242, 237, 0.4);
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--placeholder {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(36, 73, 107, 0.1) 0 2px,
    transparent 2px 12px
  );
}

/* ---------- 9. Header ---------- */
.site-header {
  position: relative;
  z-index: 100;
  color: var(--ink-900);
  background-color: var(--mist-100);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    118% 140% at 50% 0%,
    rgba(244, 242, 237, 0.98) 0%,
    rgba(244, 242, 237, 0.9) 46%,
    rgba(244, 242, 237, 0.45) 100%
  );
}
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink-900) 0 60%, var(--gold-600) 60% 100%);
}

.masthead-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "note brand actions";
  align-items: center;
  gap: 18px clamp(16px, 3vw, 36px);
  padding-block: clamp(22px, 2.8vw, 34px) clamp(14px, 1.8vw, 20px);
}

.masthead-note {
  grid-area: note;
  max-width: 24ch;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink-700);
  border-left: 2px solid var(--gold-400);
}

.masthead-brand {
  grid-area: brand;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-inline: clamp(6px, 2vw, 24px);
  text-decoration: none;
  color: var(--ink-900);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-600);
  border: 1.5px solid var(--gold-600);
  border-radius: 52% 48% 46% 54% / 48% 52% 48% 52%;
  transform: rotate(-4deg);
  transition: transform 0.3s var(--ease), border-color 0.2s var(--ease);
}
.masthead-brand:hover .brand-mark {
  transform: rotate(0deg) scale(1.05);
  border-color: var(--signal-500);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--ink-700);
}

.masthead-actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--ink-900);
  border-radius: 999px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.panel-link::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.75;
}
.panel-link:hover { transform: translateY(-2px); }

.panel-link--gold {
  color: var(--ink-900);
  background-color: rgba(227, 192, 141, 0.3);
  border-color: var(--gold-600);
}
.panel-link--gold:hover {
  background-color: var(--gold-200);
  border-color: var(--gold-400);
}
.panel-link--signal {
  color: var(--mist-100);
  background-color: var(--ink-900);
  border-color: var(--ink-900);
}
.panel-link--signal::before { background-color: var(--signal-500); opacity: 1; }
.panel-link--signal:hover { background-color: var(--ink-800); border-color: var(--ink-800); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist-100);
  background-color: var(--ink-900);
  border: 1px solid var(--ink-900);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--gold-200);
  transition: top 0.22s var(--ease), transform 0.22s var(--ease);
}
.nav-toggle-bars::before { top: 2px; }
.nav-toggle-bars::after { top: 8px; }
.site-header[data-open] .nav-toggle-bars::before {
  top: 5px;
  transform: rotate(45deg);
}
.site-header[data-open] .nav-toggle-bars::after {
  top: 5px;
  transform: rotate(-45deg);
}
.nav-toggle-text { line-height: 1; }

.site-nav {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav-list > li {
  display: flex;
  align-items: center;
}
.site-nav-list > li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline: 5px;
  background-color: var(--gold-400);
  transform: rotate(45deg);
}
.site-nav-list a {
  display: block;
  padding: 15px clamp(9px, 1.4vw, 18px);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}
.site-nav-list a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--gold-400);
  background-color: rgba(227, 192, 141, 0.2);
}
.site-nav-list a[aria-current="page"] {
  color: var(--ink-900);
  font-weight: 700;
  border-bottom-color: var(--gold-600);
  background-color: rgba(227, 192, 141, 0.14);
}

/* ---------- 10. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(42px, 6vw, 80px);
  color: var(--mist-100);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(244, 242, 237, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 237, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
}
.site-footer::before {
  content: "";
  position: absolute;
  right: -150px;
  top: -190px;
  width: 430px;
  height: 430px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 42%, rgba(176, 122, 60, 0.34), rgba(176, 122, 60, 0) 70%);
}
.site-footer::after {
  content: "";
  position: absolute;
  left: -130px;
  bottom: -170px;
  width: 350px;
  height: 350px;
  pointer-events: none;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background-color: rgba(22, 50, 79, 0.9);
  border: 1px solid rgba(201, 154, 91, 0.32);
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(30px, 4vw, 52px);
  border-bottom: 1px solid rgba(244, 242, 237, 0.16);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.12em;
  color: var(--mist-100);
}

.footer-summary {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 242, 237, 0.76);
}

.footer-col { min-width: 0; }

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1.4;
  color: var(--gold-200);
}
.footer-col-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(201, 154, 91, 0.38);
}

.footer-links {
  display: grid;
  gap: 11px;
}
.footer-links a {
  display: inline-block;
  font-size: 15px;
  color: rgba(244, 242, 237, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-links a:hover {
  color: var(--mist-100);
  border-bottom-color: var(--gold-400);
}

.footer-contact {
  display: grid;
  gap: 13px;
}
.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  max-width: none;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(244, 242, 237, 0.86);
}
.footer-contact-key {
  flex: none;
  min-width: 38px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-200);
}
.footer-contact-value {
  flex: 1 1 12ch;
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--mist-100);
  background-color: rgba(244, 242, 237, 0.08);
  border: 1px solid rgba(201, 154, 91, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.copy-chip:hover {
  background-color: rgba(201, 154, 91, 0.22);
  border-color: var(--gold-400);
}
.copy-chip[data-copied] {
  border-color: var(--gold-200);
  background-color: rgba(227, 192, 141, 0.24);
}
.copy-chip-value { overflow-wrap: anywhere; }
.copy-chip-state {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-200);
}
.copy-chip-state:empty { display: none; }

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 22px clamp(24px, 3vw, 32px);
}

.footer-icp,
.footer-copy {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(244, 242, 237, 0.6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-legal a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(244, 242, 237, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-legal a:hover {
  color: var(--mist-100);
  border-bottom-color: var(--gold-400);
}

/* ---------- 11. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .masthead-note { max-width: 20ch; font-size: 11.5px; }
  .brand-sub { letter-spacing: 0.2em; text-indent: 0.2em; }
  .panel-link { padding: 8px 13px; font-size: 12px; }
}

@media (max-width: 900px) {
  .site-header::after { height: 3px; }

  .masthead-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "note note"
      "actions actions";
    row-gap: 14px;
    padding-block: 18px 16px;
  }

  .masthead-brand {
    justify-items: start;
    padding-inline: 0;
    gap: 4px;
  }

  .brand-name {
    font-size: 27px;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }

  .brand-mark { width: 32px; height: 32px; font-size: 18px; }

  .masthead-note {
    max-width: none;
    font-size: 11.5px;
  }

  .masthead-actions {
    justify-self: stretch;
    gap: 8px;
  }
  .panel-link {
    flex: 1 1 0;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
    grid-area: toggle;
    align-self: center;
    justify-self: end;
  }

  .site-nav {
    display: none;
    background-color: var(--mist-300);
  }
  .site-header[data-open] .site-nav { display: block; }

  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
  }
  .site-header[data-open] .site-nav-list {
    animation: navDrop 0.28s var(--ease) both;
  }
  .site-nav-list > li { display: block; }
  .site-nav-list > li + li::before { display: none; }
  .site-nav-list a {
    padding: 14px calc(var(--gutter) - 6px);
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .footer-summary { max-width: 46ch; }
  .footer-bottom {
    justify-content: flex-start;
  }
}

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

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-name { font-size: 23px; letter-spacing: 0.08em; text-indent: 0.08em; }
  .brand-sub { font-size: 10px; letter-spacing: 0.16em; text-indent: 0.16em; }
  .nav-toggle { padding: 9px 12px; gap: 7px; }
  .nav-toggle-text { display: none; }
  .panel-link { font-size: 11.5px; padding: 8px 10px; letter-spacing: 0.02em; }
  .panel-link::before { width: 6px; height: 6px; }
  .footer-links a,
  .footer-contact-line { font-size: 14.5px; }
  .footer-legal { gap: 8px 16px; }
}

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .button:hover,
  .panel-link:hover,
  .masthead-brand:hover .brand-mark {
    transform: none;
  }
}
