/* Jeron Studio — graphite dark theme (from 2026-09-05-石墨暖杏双主题-style.md) */
:root {
  color-scheme: dark;

  --app-bg: #141414;
  --body-bg: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --text-subtle: #5f5f5f;
  --accent-warm: #e53935;
  --accent-warm-soft: rgb(229 57 53 / 0.22);

  --line-subtle: rgb(255 255 255 / 0.05);
  --line-strong: rgb(255 255 255 / 0.08);

  --header-bg: rgb(18 18 20 / 0.42);
  --header-border: rgb(255 255 255 / 0.08);
  --nav-text: #a6a6a6;
  --nav-text-active: #f5f5f5;
  --tab-group-bg: rgb(23 23 23 / 0.92);
  --tab-group-border: #383838;
  --tab-pill-active-bg: #262626;
  --tab-pill-active-text: #f5f5f5;
  --header-pill-bg: var(--control-bg);
  --header-pill-bg-hover: var(--control-bg-hover);
  --header-pill-border: var(--control-border);
  --header-pill-text: var(--nav-text);
  --header-submit-bg: var(--submit-bg);
  --header-submit-text: var(--submit-text);
  --header-submit-shadow: none;
  --header-submit-sheen: var(--submit-sheen);
  --page-overlay-home: rgb(26 26 26 / 0.42);
  --bg-layer-0: #060708;
  --bg-layer-1: #050607;
  --bg-terminal-opacity: 0.76;
  --bg-terminal-filter: brightness(0.9) contrast(1.08);

  /* Frame / guide system (radesign.cn) — use 100% not 100vw to avoid scrollbar overflow */
  --frame-width: min(1728px, calc(100% - 16px));
  --section-width: min(1440px, calc(100% - 48px));
  --content-inset: clamp(16px, 5.56vw, 96px);
  --content-width: calc(var(--frame-width) - (var(--content-inset) * 2));
  --frame-left: calc(50% - (var(--frame-width) / 2));
  --frame-right: calc(50% + (var(--frame-width) / 2));
  --section-left: calc(50% - (var(--section-width) / 2));
  --section-right: calc(50% + (var(--section-width) / 2));
  --guide-left: calc(var(--section-left) - 8px);
  --guide-right: calc(var(--section-right) + 8px);
  --content-left: calc(50% - (var(--content-width) / 2));
  --content-right: calc(50% + (var(--content-width) / 2));
  --outer-left: calc(var(--content-left) - 8px);
  --outer-right: calc(var(--content-right) + 8px);
  --inner-left: calc(var(--content-left) + 33px);
  --inner-right: calc(var(--content-right) - 34px);

  --control-bg: #171717;
  --control-bg-hover: #212121;
  --control-bg-active: #262626;
  --control-border: #262626;
  --control-border-hover: #444444;
  --control-thumb: #404040;

  --content-card-bg: rgb(28 28 28 / 0.42);
  --content-card-border: transparent;
  --content-card-shadow: none;
  --content-card-blur: 18px;
  --project-card-bg: var(--content-card-bg);
  --project-card-border: transparent;
  --project-card-shadow: none;
  --project-card-hover-bg: rgb(28 28 28 / 0.58);
  --project-card-hover-border: transparent;
  --project-card-hover-shadow: none;

  --submit-bg: #d1d1d1;
  --submit-text: rgb(11 13 16 / 0.8);
  --submit-sheen: inset 0 1px 0 rgb(255 255 255 / 0.25);
  --submit-shadow: 0 6px 14px rgb(0 0 0 / 0.16);

  --footer-bg: rgb(5 5 5 / 0.5);

  --bg-wash: linear-gradient(
    180deg,
    rgb(5 6 7 / 0.38) 0%,
    rgb(5 6 7 / 0.22) 30%,
    rgb(5 6 7 / 0.42) 100%
  );
  --bg-vignette: radial-gradient(
    circle at 50% 45%,
    rgb(255 255 255 / 0.02),
    rgb(0 0 0 / 0) 42%,
    rgb(0 0 0 / 0.32) 100%
  );

  --font-sans: Inter, "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-ui: Montserrat, Inter, "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-display: Orbitron, Inter, sans-serif;
  --font-dot: Doto, Inter, sans-serif;

  --radius-control: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 150ms;
  --duration-slow: 420ms;

  --container: 1400px;
  --header-h: 72px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
}

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

html {
  background: var(--bg-layer-0);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

/* —— Site background (aligned with radesign.cn) —— */
.site-background {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-layer-0);
}

.site-background__base {
  position: absolute;
  inset: 0;
  background: var(--bg-layer-1);
}

.site-background__terminal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: var(--bg-terminal-opacity);
  filter: var(--bg-terminal-filter);
}

.site-background__terminal canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.site-background__vignette {
  position: absolute;
  inset: 0;
  background: var(--bg-vignette);
}

.site-background__wash {
  position: absolute;
  inset: 0;
  background: var(--bg-wash);
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  background: transparent;
}

/* —— Design guides: full-height verticals; section H-rules below —— */
.design-guides {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 5;
  display: none;
  overflow: hidden;
}

.design-guides__v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  height: auto;
  background: rgb(255 255 255 / 0.09);
}

.design-guides__v--left {
  left: var(--guide-left);
}

.design-guides__v--right {
  left: var(--guide-right);
}

/* Per-block horizontal guides: same span & weight as verticals */
.section,
.cta-band,
.site-footer {
  position: relative;
}

@media (min-width: 1024px) {
  .design-guides {
    display: block;
  }

  .section::before,
  .cta-band::before,
  .site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--guide-left);
    width: calc(var(--guide-right) - var(--guide-left));
    height: 1px;
    background: rgb(255 255 255 / 0.09);
    pointer-events: none;
    z-index: 1;
  }

  /* 通栏横线：首个内容区块 + 页脚 */
  #services-preview::before,
  .site-footer::before {
    left: 0;
    width: 100%;
  }
}

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

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: rgb(229 57 53 / 0.28);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid rgb(229 57 53 / 0.55);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* —— Header (aligned with radesign.cn) —— */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  padding-inline: 0;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04);
}

.site-header__frame {
  position: relative;
  /* 与左右竖向引导线对齐 */
  width: calc(var(--guide-right) - var(--guide-left));
  max-width: 100%;
  margin-inline: auto;
  padding-block: 12px;
  padding-inline: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  width: 100%;
  padding-inline: 0;
}

.brand {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand--logo-only .brand__logo {
  width: 42px;
  height: 42px;
}

.brand--logo-only .brand__text {
  display: flex;
}

.brand--logo-only .brand__tag {
  display: none;
}

.brand__mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.brand__sheen {
  position: absolute;
  top: -50%;
  left: 0;
  z-index: 2;
  width: 85%;
  height: 200%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(255 255 255 / 0) 12%,
    rgb(255 255 255 / 0.45) 38%,
    rgb(255 255 255 / 0.95) 50%,
    rgb(255 255 255 / 0.45) 62%,
    rgb(255 255 255 / 0) 88%,
    transparent 100%
  );
  transform: translateX(-180%) rotate(20deg);
  animation: brand-logo-sheen 4.8s ease-in-out infinite;
}

@keyframes brand-logo-sheen {
  0%,
  25% {
    transform: translateX(-180%) rotate(20deg);
  }
  65%,
  100% {
    transform: translateX(260%) rotate(20deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand__sheen {
    animation: none;
    opacity: 0;
  }
}

.brand__text {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  line-height: 1.1;
}

.brand__name {
  position: relative;
  display: inline-block;
  padding-right: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand__tm {
  position: absolute;
  top: -1px;
  right: 0;
  font-family: Inter, sans-serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
}

.brand__tag {
  font-family: Graphik, Inter, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.55);
  white-space: nowrap;
}

.nav-scroll {
  display: none;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav {
  position: relative;
  display: inline-flex;
  width: max-content;
  height: auto;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-inline: 0;
  margin-right: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__indicator {
  display: none;
}

.nav__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--nav-text);
  white-space: nowrap;
  transition: color 200ms var(--ease);
}

.nav__zh {
  color: inherit;
}

.nav__en {
  display: none;
}

.nav__link:hover,
.nav__link:hover .nav__zh {
  color: var(--nav-text-active);
}

.nav__link.is-active,
.nav__link.is-active .nav__zh {
  color: var(--nav-text-active);
}

.header-actions {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--header-submit-bg);
  color: var(--header-submit-text);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  box-shadow: var(--header-submit-sheen);
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.header-cta [data-lucide] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.header-cta:hover {
  background: #dedede;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--header-pill-border);
  background: var(--header-pill-bg);
  color: var(--header-pill-text);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.nav-toggle:hover {
  background: var(--header-pill-bg-hover);
  color: var(--nav-text-active);
}

.nav-toggle [data-lucide] {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: calc(48px + 24px);
  inset-inline: 0;
  z-index: 49;
  border-bottom: 1px solid var(--header-border);
  background: rgb(18 18 18 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  padding: 12px 16px 20px;
  gap: 2px;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--nav-text);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.mobile-nav__link .nav__zh {
  color: inherit;
}

.mobile-nav__link:hover {
  background: rgb(255 255 255 / 0.04);
  color: var(--nav-text-active);
}

.mobile-nav__link.is-active {
  color: var(--nav-text-active);
}

.site-main {
  position: relative;
  z-index: 2;
  padding-top: calc(48px + 24px);
}

@media (min-width: 420px) {
  .brand__text {
    display: flex;
  }
}

@media (min-width: 640px) {
  .header-actions {
    gap: 16px;
  }
}

@media (min-width: 1100px) {
  .site-header__frame {
    padding-block: 0;
  }

  .site-header__inner {
    height: 72px;
    min-height: 72px;
  }

  .brand {
    min-width: 0;
  }

  .nav-scroll {
    display: flex;
  }

  .header-actions {
    min-width: 0;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.is-open {
    display: none;
  }

  .site-main {
    padding-top: 72px;
  }
}

@media (min-width: 1280px) {
  .nav__link {
    padding: 6px 14px;
  }
}

/* —— Buttons —— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 40%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgb(255 255 255 / 0.08) 35%,
    rgb(255 255 255 / 0.42) 50%,
    rgb(255 255 255 / 0.08) 65%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-18deg);
  transition: transform 0.65s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.btn:hover::before {
  transform: translateX(420%) skewX(-18deg);
}

.btn [data-lucide] {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--accent-warm);
  color: #fff;
  box-shadow: 0 8px 20px rgb(229 57 53 / 0.28);
}

.btn--primary:hover {
  background: #ef5350;
  box-shadow: 0 10px 24px rgb(229 57 53 / 0.4), 0 0 24px rgb(229 57 53 / 0.22);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: rgb(255 255 255 / 0.08);
  color: var(--text-primary);
  border: 1px solid rgb(255 255 255 / 0.08);
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.14);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.2);
}

.btn--text {
  height: auto;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  isolation: auto;
  color: var(--accent-warm);
  font-weight: 500;
  gap: 6px;
}

.btn--text::before {
  display: none;
}

.btn--text:hover {
  color: #ff6b6b;
}

.btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

/* —— Section chrome —— */
.section {
  padding: clamp(112px, 14vh, 168px) 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-3);
  font-family: var(--font-dot);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.section__eyebrow [data-lucide] {
  width: 14px;
  height: 14px;
}

.section__title {
  font-family: var(--font-ui);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section__desc {
  margin-top: var(--space-3);
  max-width: 640px;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
}

/* —— Cards / frosted surfaces —— */
.card,
.service-card,
.case-card,
.partner-chip,
.cta-band__panel {
  -webkit-backdrop-filter: blur(var(--content-card-blur));
  backdrop-filter: blur(var(--content-card-blur));
}

.card {
  background: var(--content-card-bg);
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: none;
  transition:
    background-color var(--duration-slow) var(--ease),
    transform var(--duration-slow) var(--ease);
}

.card:hover {
  background: var(--project-card-hover-bg);
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 0;
  background: var(--footer-bg);
  padding: var(--space-12) 0 var(--space-8);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-8);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: none;
}

.brand--footer .brand__text {
  display: flex;
}

.brand--footer .brand__logo {
  width: 42px;
  height: 42px;
}

.brand--footer .brand__tag {
  display: none;
}

.site-footer__domains {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: transparent;
}

.site-footer__domains li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-footer__domains li [data-lucide] {
  width: 14px;
  height: 14px;
  color: var(--accent-warm);
  flex-shrink: 0;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 32px;
}

.site-footer__link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 200ms var(--ease);
}

.site-footer__link:hover {
  opacity: 0.82;
}

.site-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  flex-shrink: 0;
}

.site-footer__icon i,
.site-footer__icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.site-footer__bilibili {
  display: block;
}

.site-footer__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.site-footer__caption {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.site-footer__value {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--text-primary);
}

.site-footer__meta {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--text-subtle);
  font-size: 12px;
}

.site-footer__thanks {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--text-muted);
}

@media (min-width: 960px) {
  .site-footer__grid {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
  }

  .site-footer__contact {
    justify-self: end;
    max-width: none;
  }
}

@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;
  }
}
