/* =========================================================
   久爱工作室 · 单页官网
   深色 / 浅色两套配色，颜色集中在下面的变量里
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-image: url("../images/bg-dark.jpg");
  --text: #e8eef8;
  --muted: #93a4bd;
  --primary: #38bdf8;
  --primary-2: #6366f1;
  --border: rgba(255, 255, 255, 0.09);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --card: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  --card-shadow: none;
  --hover-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(7, 11, 20, 0.78);
  --panel-bg: rgba(7, 11, 20, 0.98);
  --panel-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  --nav-link: #b7c3d5;
  --nav-link-hover: #ffffff;
  --nav-active-bg: rgba(56, 189, 248, 0.12);
  --nav-active-border: rgba(56, 189, 248, 0.18);
  --logo-border: rgba(56, 189, 248, 0.3);
  --icon-bg: rgba(56, 189, 248, 0.12);
  --icon-border: rgba(56, 189, 248, 0.2);
  --icon-color: #7dd3fc;
  --chip-bg: rgba(56, 189, 248, 0.1);
  --chip-border: rgba(56, 189, 248, 0.16);
  --chip-text: #7dd3fc;
  --grid-line: rgba(255, 255, 255, 0.045);
  --track: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --stat-bg: #0a1120;
  --stats-card: linear-gradient(155deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.07));
  --stat-text: linear-gradient(135deg, #7dd3fc, #a78bfa);
  --bar-fill: linear-gradient(90deg, #22d3ee, #6366f1);
  --grad-text: linear-gradient(100deg, #7dd3fc 0%, #818cf8 55%, #22d3ee 100%);
  --alt-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0) 72%);
  --alt-border: rgba(255, 255, 255, 0.045);
  --footer-bg: rgba(255, 255, 255, 0.012);
  --to-top-bg: rgba(15, 23, 42, 0.85);
  --toast-bg: #0d1728;
  --pill-bg: rgba(255, 255, 255, 0.045);
  --hero-note: #64748b;
  --radius: 18px;
  --container: 1120px;
  --header-h: 72px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-image: url("../images/bg-light.jpg");
  --text: #0f172a;
  --muted: #55657c;
  --primary: #0369a1;
  --border: rgba(15, 23, 42, 0.12);
  --surface: rgba(15, 23, 42, 0.04);
  --surface-2: rgba(15, 23, 42, 0.07);
  --card: #ffffff;
  --card-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  --hover-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  --header-bg: rgba(246, 248, 252, 0.84);
  --panel-bg: rgba(246, 248, 252, 0.98);
  --panel-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
  --nav-link: #475569;
  --nav-link-hover: #0f172a;
  --nav-active-bg: rgba(2, 132, 199, 0.1);
  --nav-active-border: rgba(2, 132, 199, 0.18);
  --logo-border: rgba(2, 132, 199, 0.28);
  --icon-bg: rgba(2, 132, 199, 0.08);
  --icon-border: rgba(2, 132, 199, 0.18);
  --icon-color: #0369a1;
  --chip-bg: rgba(2, 132, 199, 0.08);
  --chip-border: rgba(2, 132, 199, 0.16);
  --chip-text: #0369a1;
  --grid-line: rgba(15, 23, 42, 0.055);
  --track: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --stat-bg: #ffffff;
  --stats-card: linear-gradient(155deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.08));
  --stat-text: linear-gradient(135deg, #0369a1, #6d28d9);
  --bar-fill: linear-gradient(90deg, #0891b2, #4f46e5);
  --grad-text: linear-gradient(100deg, #0369a1 0%, #4338ca 55%, #0891b2 100%);
  --alt-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.025), rgba(255, 255, 255, 0) 72%);
  --alt-border: rgba(15, 23, 42, 0.06);
  --footer-bg: #ffffff;
  --to-top-bg: rgba(255, 255, 255, 0.92);
  --toast-bg: #ffffff;
  --pill-bg: rgba(255, 255, 255, 0.75);
  --hero-note: #64748b;
}

/* ---------------- 基础 ---------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "HarmonyOS Sans SC",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 全站背景图：固定铺满视口，滚动时保持不动 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--bg-image);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

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

ul {
  padding: 0;
  list-style: none;
}

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

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

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

button {
  cursor: pointer;
}

::selection {
  background: rgba(56, 189, 248, 0.32);
  color: #fff;
}

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

#main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--primary);
  color: #04121f;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

html[data-theme="light"] .skip-link {
  color: #fff;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease, border-color 0.25s ease;
}

.btn-sm {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
}

.btn-primary {
  background-image: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.32);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  flex: none;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid var(--logo-border);
  background: #0d1728;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--nav-link);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--nav-link-hover);
  background: var(--surface);
}

.nav-links a.active {
  color: var(--nav-link-hover);
  background: var(--nav-active-bg);
  box-shadow: inset 0 0 0 1px var(--nav-active-border);
}

.theme-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--surface-2);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

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

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- 首屏 ---------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      900px 520px at 50% -10%,
      rgba(56, 189, 248, 0.18),
      transparent 62%
    ),
    radial-gradient(680px 420px at 85% 18%, rgba(99, 102, 241, 0.16), transparent 62%),
    radial-gradient(600px 420px at 8% 68%, rgba(34, 211, 238, 0.09), transparent 62%);
}

html[data-theme="light"] .hero-bg {
  background: radial-gradient(
      900px 520px at 50% -10%,
      rgba(14, 165, 233, 0.18),
      transparent 62%
    ),
    radial-gradient(680px 420px at 85% 18%, rgba(99, 102, 241, 0.13), transparent 62%),
    radial-gradient(600px 420px at 8% 68%, rgba(14, 165, 233, 0.1), transparent 62%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 62% at 50% 42%,
    #000 25%,
    transparent 78%
  );
  mask-image: radial-gradient(ellipse 70% 62% at 50% 42%, #000 25%, transparent 78%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 66%);
  filter: blur(10px);
  animation: float 13s ease-in-out infinite;
}

.hero-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  height: 380px;
  height: min(46vh, 420px);
  pointer-events: none;
}

html[data-theme="light"] .hero-mountains {
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--pill-bg);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(2.15rem, 5.8vw, 4.15rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.grad {
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.95;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 42px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--hero-note);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 26px;
  height: 42px;
  padding-top: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  animation: wheel 1.9s ease-in-out infinite;
}

/* ---------------- 四个优势 ---------------- */

.features {
  position: relative;
  z-index: 2;
  padding: 0 0 104px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--hover-shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--icon-color);
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h2 {
  margin-bottom: 8px;
  font-size: 16.5px;
  font-weight: 700;
}

.feature-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------------- 通用区块 ---------------- */

.section {
  padding: 104px 0;
}

.section-alt {
  background: var(--alt-bg);
  border-top: 1px solid var(--alt-border);
  border-bottom: 1px solid var(--alt-border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--icon-color);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background-image: linear-gradient(90deg, transparent, var(--primary));
}

.section h2,
.about-copy h2,
.contact-simple h2 {
  margin: 14px 0 16px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
}

/* ---------------- 关于我们 ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-copy > p:not(.eyebrow) {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 26px 0 28px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--text);
}

.tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--icon-color);
  background: var(--icon-bg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.25s ease;
}

.text-link:hover {
  gap: 11px;
}

.about-stats {
  position: relative;
}

.stats-card {
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--stats-card);
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}

.stat {
  padding: 30px 18px;
  text-align: center;
  background: var(--stat-bg);
}

.stat strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  background-image: var(--stat-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- 专业技能 ---------------- */

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 54px;
}

.skill-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14.5px;
  font-weight: 600;
}

.skill-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.skill-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.skill-fill {
  display: block;
  width: var(--level, 0%);
  height: 100%;
  border-radius: inherit;
  background-image: var(--bar-fill);
  transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .skill-fill {
  width: 0;
}

.skill-desc {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- 主营业务 ---------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--hover-shadow);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 13px;
  color: var(--icon-color);
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
}

.service-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 700;
}

.service-card > p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 22px;
}

.tags li {
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.25s ease;
}

.card-link:hover {
  gap: 11px;
}

/* ---------------- 旗下站点 ---------------- */

.sites-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.site-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--hover-shadow);
}

.site-cover {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--icon-bg), transparent 70%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.site-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.site-card:hover .site-cover img,
.site-card:focus-within .site-cover img {
  transform: scale(1.05);
}

.site-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 22px 22px;
}

.site-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.site-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.site-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
}

.site-features li {
  padding: 3px 10px;
  border: 1px solid var(--chip-border);
  border-radius: 6px;
  background: var(--chip-bg);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--chip-text);
}

.site-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

.site-price b {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.site-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.site-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-btn-primary {
  background-image: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.site-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.28);
}

.site-btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.site-btn-ghost:hover {
  border-color: var(--primary);
  background: var(--surface-2);
}

/* ---------------- 联系我们 ---------------- */

.contact {
  position: relative;
  border-top: 1px solid var(--border);
}

.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(900px, 90%);
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(
    60% 100% at 50% 0%,
    rgba(56, 189, 248, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

html[data-theme="light"] .contact::before {
  background: radial-gradient(
    60% 100% at 50% 0%,
    rgba(14, 165, 233, 0.12),
    transparent 70%
  );
}

.contact-simple {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-lead {
  margin-bottom: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin: 34px auto 0;
  text-align: left;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  color: var(--text);
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--hover-shadow);
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--icon-color);
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-card-body strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-card-arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.contact-card:hover .contact-card-arrow {
  transform: translateX(3px);
}

.contact-card-copy {
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--chip-text);
  white-space: nowrap;
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
}

.footer-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.footer-sign img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- 回到顶部 / 提示 ---------------- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--to-top-bg);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
    border-color 0.2s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--primary);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 13px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--toast-bg);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.toast svg {
  flex: none;
  width: 19px;
  height: 19px;
  stroke: #4ade80;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="light"] .toast svg {
  stroke: #16a34a;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------------- 入场动画 ---------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  visibility: hidden;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  visibility: visible;
  animation: reveal-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: var(--reveal-delay, 0s);
}

.js .hero .reveal:nth-child(1) {
  --reveal-delay: 0.05s;
}

.js .hero .reveal:nth-child(2) {
  --reveal-delay: 0.13s;
}

.js .hero .reveal:nth-child(3) {
  --reveal-delay: 0.21s;
}

.js .hero .reveal:nth-child(4) {
  --reveal-delay: 0.29s;
}

.js .hero .reveal:nth-child(5) {
  --reveal-delay: 0.37s;
}

.js .feature-card.reveal:nth-child(2) {
  --reveal-delay: 0.08s;
}

.js .feature-card.reveal:nth-child(3) {
  --reveal-delay: 0.16s;
}

.js .feature-card.reveal:nth-child(4) {
  --reveal-delay: 0.24s;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-24px, 26px, 0);
  }
}

@keyframes wheel {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(9px);
    opacity: 0.15;
  }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-grid,
  .contact-grid {
    gap: 44px;
  }

  .skill-grid {
    gap: 28px 36px;
  }
}

@media (max-width: 900px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: 0;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .nav {
    flex: 0;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    max-width: 460px;
  }

  .hero h1 {
    letter-spacing: -0.015em;
  }

  /* 没有 JS 时的降级：导航直接展开 */
  html:not(.js) .site-header {
    position: static;
    inset: auto;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 24px;
    gap: 8px;
  }

  html:not(.js) .nav {
    flex: 1 0 100%;
  }

  html:not(.js) .nav-toggle,
  html:not(.js) .theme-toggle {
    display: none;
  }

  html:not(.js) .nav-links {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  html:not(.js) .nav-links a {
    padding: 8px 12px;
    font-size: 14px;
  }

  html:not(.js) .hero {
    padding-top: 32px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 78px 0;
  }

  .features {
    padding-bottom: 78px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 88px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    padding: 26px;
  }

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

  .contact-actions {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 620px) {
  .br-desktop {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
  }

  .hero-note {
    margin-top: 32px;
    font-size: 11.5px;
    letter-spacing: 0.02em;
  }

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

@media (max-width: 400px) {
  .container {
    padding: 0 18px;
  }

  .brand-text {
    font-size: 16px;
  }

  .pill {
    font-size: 12px;
    padding: 6px 13px;
  }

  .stat {
    padding: 24px 12px;
  }

  .stats-grid {
    border-radius: 14px;
  }
}

/* ---------------- 降低动效 ---------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .js .reveal.in {
    animation: none;
  }
}
