/* ===== daojie.top · 现代简约科技风 ===== */
:root {
  --bg: #0a0e1a;
  --bg-soft: #0f1524;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e7ecf5;
  --text-dim: #97a3ba;
  --text-faint: #64708a;
  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(120deg, #4f8cff 0%, #22d3ee 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { color: var(--text); font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 语言切换显示控制 ===== */
.en { display: none; }
html[data-lang="en"] .zh { display: none; }
html[data-lang="en"] .en { display: inline; }
/* 块级元素需要保持块级 */
html[data-lang="en"] p .en,
html[data-lang="en"] h1 .en,
html[data-lang="en"] h2 .en,
html[data-lang="en"] h3 .en { display: inline; }
html[data-lang="en"] .hero__title .en { display: block; }

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent-grad);
  color: #06101f;
  font-weight: 800;
}
.brand__dot { color: var(--accent-2); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--text-dim);
  font-size: 0.94rem;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle__opt { transition: color 0.2s; }
.lang-toggle__opt.is-active { color: var(--text); font-weight: 600; }
.lang-toggle__sep { color: var(--text-faint); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background:
    radial-gradient(closest-side, rgba(79, 140, 255, 0.28), transparent 70%),
    radial-gradient(closest-side, rgba(34, 211, 238, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }
.hero__eyebrow {
  color: var(--accent-2);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, #a9bce0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  margin: 24px auto 0;
  max-width: 620px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn--primary {
  background: var(--accent-grad);
  color: #06101f;
  box-shadow: 0 10px 30px -10px rgba(79, 140, 255, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__stats li > span { color: var(--text-faint); font-size: 0.9rem; }

/* ===== Section ===== */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section__head { margin-bottom: 48px; }
.section__head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section__head h2::after {
  content: "";
  display: block;
  width: 52px; height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--accent-grad);
}
.section__desc { margin-top: 16px; color: var(--text-dim); max-width: 640px; }

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.about__text p { color: var(--text-dim); margin-bottom: 18px; }
.about__traits {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.about__traits li {
  padding-left: 26px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}
.about__traits li::before {
  content: "◆";
  position: absolute; left: 0;
  color: var(--accent-2);
  font-size: 0.7rem;
  top: 6px;
}

/* ===== Grid & Cards ===== */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 140, 255, 0.5);
  background: var(--surface-2);
}
.card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1.12rem; margin-bottom: 14px; }
.card__list li {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 5px 0;
  border-top: 1px dashed var(--border);
}
.card__list li:first-child { border-top: none; }

/* ===== Services ===== */
.service {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.service__no {
  font-size: 3rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-faint);
  opacity: 0.5;
  line-height: 1;
}
.service h3 { margin: 12px 0 12px; font-size: 1.25rem; }
.service p { color: var(--text-dim); font-size: 0.96rem; }

/* ===== Cases ===== */
.cases { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.case {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s, border-color 0.25s;
}
.case:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.45); }
.case__tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 16px;
}
.case h3 { font-size: 1.28rem; margin-bottom: 12px; }
.case p { color: var(--text-dim); font-size: 0.96rem; }
.case__metrics {
  display: flex;
  gap: 28px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.case__metrics li { display: flex; flex-direction: column; }
.case__metrics strong {
  font-size: 1.3rem;
  color: var(--text);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case__metrics li > span { color: var(--text-faint); font-size: 0.85rem; }
.case__role {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* ===== Contact ===== */
.contact { text-align: center; max-width: 640px; margin: 0 auto; }
.contact .section__head { margin-bottom: 28px; }
.contact .section__head h2::after { margin-inline: auto; }
.contact .section__desc { margin-inline: auto; }
.contact__email {
  display: inline-block;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.2s;
}
.contact__email:hover { transform: scale(1.03); }
.contact__hint { margin-top: 18px; color: var(--text-faint); font-size: 0.92rem; }

/* ===== Footer ===== */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.footer__icp a {
  color: var(--text-faint);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer__icp a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .hero { padding: 80px 0 64px; }
  .hero__stats { gap: 32px; }
  .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
}
