/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; background-color: var(--bg); background-image: radial-gradient(circle at 85% 10%, rgba(255, 77, 0, 0.08), transparent 30%), radial-gradient(circle at 10% 80%, rgba(255, 215, 0, 0.06), transparent 20%); color: var(--ink); line-height: 1.75; min-height: 100vh; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ========== ACCESSIBILITY & FOCUS ========== */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; top: -120px; left: 24px; z-index: 999; background: var(--deep); color: #fff; padding: 12px 24px; border-radius: 0 0 8px 8px; font-weight: 700; transition: top 0.2s ease; }
.skip-link:focus { top: 0; }
::selection { background: var(--primary); color: #fff; }

/* ========== CSS VARIABLES ========== */
:root {
  --bg: #F4EFE6;
  --ink: #0A0A0F;
  --primary: #FF4D00;
  --gold: #FFD700;
  --deep: #1A1A2E;
  --muted: #6B7280;
  --line: #E5E0D5;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-line: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.2);
  --font-sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-num: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  --container: 1340px;
  --header-h: 56px;
}

/* ========== LAYOUT SYSTEM ========== */
.l-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 64px; }
.section-sm { padding-block: 40px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }
@media (max-width: 1024px) {
  .col-span-3, .col-span-4, .col-span-5, .col-span-6, .col-span-7, .col-span-8, .col-span-9 { grid-column: span 6; }
  .grid-2col { gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding-block: 40px; }
  .col-span-3, .col-span-4, .col-span-5, .col-span-6, .col-span-7, .col-span-8, .col-span-9 { grid-column: span 12; }
  .grid-2col { grid-template-columns: 1fr; gap: 24px; }
}

/* ========== BREADCRUMB ========== */
.breadcrumb { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 4px; font-size: 13px; color: var(--muted); padding-block: 16px; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--line); margin-right: 8px; }
.breadcrumb a { color: var(--muted); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ========== COMMAND BAR (HEADER) ========== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(244, 239, 230, 0.8); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand--inverse { color: #fff; }
.brand--inverse .brand-text { color: #fff; }
.brand--inverse .brand-ver { color: rgba(244, 239, 230, 0.6); border-color: rgba(244, 239, 230, 0.2); }
.brand-dot { width: 12px; height: 12px; background: var(--primary); border-radius: 2px; transform: skewX(-8deg); box-shadow: 0 0 12px rgba(255, 77, 0, 0.3); }
.brand-text { font-size: 20px; font-weight: 900; letter-spacing: 0.02em; transform: skewX(-8deg); line-height: 1; }
.brand-ver { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--line); padding: 3px 6px; border-radius: 4px; line-height: 1.2; }
.header-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--ink); position: relative; transition: color 0.2s ease; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: 0% 50%; transition: transform 0.25s ease; }
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-index { font-size: 10px; font-weight: 700; color: var(--muted); }
.nav-link[aria-current="page"] { color: var(--primary); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.nav-toggle-bar { width: 22px; height: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; border-radius: 2px; }

/* ========== PROGRESS BAR ========== */
.prog-bar { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--primary), var(--gold)); transform: scaleX(0); transform-origin: 0% 50%; z-index: 200; pointer-events: none; box-shadow: 0 0 12px rgba(255, 77, 0, 0.4); }

/* ========== FOOTER ========== */
.site-footer { position: relative; background-color: var(--deep); color: rgba(244, 239, 230, 0.75); margin-top: 96px; overflow: hidden; }
.site-footer::before { content: ""; display: block; height: 4px; background: repeating-linear-gradient(100deg, var(--primary) 0px, var(--primary) 20px, var(--gold) 20px, var(--gold) 40px); }
.site-footer::after { content: ""; position: absolute; top: -50%; right: -10%; width: 40%; height: 200%; background: linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.03) 55%, transparent 55%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding: 64px 0 48px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; max-width: 36em; color: rgba(244, 239, 230, 0.65); }
.footer-title { color: var(--gold); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(244, 239, 230, 0.75); transition: color 0.2s ease, transform 0.2s ease; }
.footer-col a::before { content: "→"; color: var(--primary); font-weight: 900; transition: transform 0.2s ease; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-col a:hover::before { transform: translateX(2px); }
.footer-contact li { font-size: 14px; line-height: 1.7; }
.footer-contact a { color: rgba(244, 239, 230, 0.9); }
.footer-note { display: block; margin-top: 16px; font-size: 12px; color: rgba(244, 239, 230, 0.45); border-left: 2px solid var(--primary); padding-left: 12px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(244, 239, 230, 0.5); }

/* ========== TYPOGRAPHY & IMAGE FRAME ========== */
.text-champ { font-size: clamp(3rem, 10vw, 7rem); font-weight: 100; line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; }
.h-section { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; transform: skewX(-5deg); }
.u-muted { color: var(--muted); }
.u-primary { color: var(--primary); }
.u-gold { color: var(--gold); }
.u-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.img-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--deep) 0%, #23233c 100%); border-radius: 12px; display: grid; place-items: center; }
.img-frame::before { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 900; letter-spacing: 0.2em; color: rgba(244, 239, 230, 0.3); z-index: 1; padding: 16px; text-align: center; }
.img-frame::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 70% 20%, rgba(255, 77, 0, 0.25), transparent 50%), repeating-linear-gradient(-45deg, transparent 0px, transparent 12px, rgba(255, 255, 255, 0.02) 12px, rgba(255, 255, 255, 0.02) 24px); }

/* ========== CARD & COMPONENT ========== */
.card-glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; padding: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 12px; background: rgba(26, 26, 46, 0.05); border-radius: 2px; text-transform: uppercase; }
.tag--primary { background: var(--primary); color: #fff; }
.tag--gold { background: var(--gold); color: var(--deep); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 32px; font-weight: 700; font-size: 14px; border-radius: 2px; transform: skewX(-6deg); transition: all 0.2s ease; line-height: 1; }
.btn--primary { background: var(--primary); color: var(--bg); }
.btn--primary:hover { background: #E04400; transform: skewX(-6deg) translateY(-2px); box-shadow: 0 8px 24px rgba(255, 77, 0, 0.3); }
.btn--dark { background: var(--deep); color: var(--bg); }
.btn--dark:hover { background: #2d2d4a; transform: skewX(-6deg) translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 12px 8px; }
.data-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.divider-line { height: 1px; background: var(--line); border: none; margin: 32px 0; }
.diag-bg { position: relative; background: linear-gradient(120deg, rgba(255, 77, 0, 0.04) 0%, transparent 40%); }

/* ========== RESPONSIVE & MOTION ========== */
@media (max-width: 1024px) {
  :root { --header-h: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .brand-text { font-size: 18px; }
  .brand-ver { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); }
  .header-nav[data-open="true"] { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { display: flex; padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-link::after { display: none; }
  .nav-item:last-child .nav-link { border-bottom: none; }
  .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); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; padding-top: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@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; }
}
