/* ============================================================
   杭州太可小木网络技术有限公司 · 企业官网样式
   深色科技风 / 主色 #2496ED
   ============================================================ */

:root {
  --primary: #2496ED;
  /* 文字用亮蓝，保证深色底上的可读性（背景/边框仍用 --primary） */
  --primary-light: #5cb8fa;
  --primary-dark: #1a7fd4;
  --primary-soft: rgba(36, 150, 237, 0.12);
  --bg: #0a0e17;
  --bg-2: #0d1420;
  --bg-3: #111a29;
  --text: #e6eef9;
  --muted: #b9c8dc;
  --border: rgba(36, 150, 237, 0.18);
  --maxw: 1160px;
  --nav-h: 68px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  /* 禁止横向滚动，纵向保持可滚 */
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--border);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__brand-cn {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav__brand-en {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--primary-light);
  font-weight: 600;
}

.nav__links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: var(--muted);
}

.nav__links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  width: 100%;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  width: 100%;
  /* 略低于整屏，让下方「公司介绍」标题在首屏露出一部分 */
  min-height: 72vh;
  /* 移动端地址栏收缩时按动态视口高度计算 */
  min-height: 72dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(36, 150, 237, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(10, 14, 23, 0.72) 0%, rgba(10, 14, 23, 0.86) 60%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  /* 内容整体上移，底部留白给下方区块露出 */
  padding: calc(var(--nav-h) + 6vh) 24px 40px;
  text-align: center;
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(22px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #bcd7f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.hero__subtitle {
  margin-top: 14px;
  font-size: clamp(16px, 3vw, 27px);
  color: var(--muted);
  letter-spacing: 0.5px;
}

.hero__tagline {
  margin-top: 26px;
  font-size: clamp(15px, 2.6vw, 21px);
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text);
}

.hero__tagline .dot {
  color: var(--primary-light);
  margin: 0 12px;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(36, 150, 237, 0.35);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(36, 150, 237, 0.5);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

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

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(143, 163, 189, 0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* ---------- 通用区块 ---------- */
.section {
  width: 100%;
  padding: 110px 0;
}

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

.section__eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 1px;
}

.section__head {
  margin-bottom: 54px;
}

/* ---------- 公司介绍 ---------- */
.about {
  background: var(--bg);
  /* 减小上边距，让「公司介绍」标题在首屏底部露出 */
  padding-top: 32px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(36, 150, 237, 0.18), transparent 55%);
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__text {
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
}

.about__text--en {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(185, 200, 220, 0.9);
}

/* ---------- 业务范围 ---------- */
.services {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/services.jpg") center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.services .section__inner {
  position: relative;
  z-index: 1;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  padding: 40px 32px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(36, 150, 237, 0.08), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(36, 150, 237, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  background: var(--primary-soft);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
}

.card__en {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-top: 4px;
  text-transform: uppercase;
}

.card__text {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 联系方式 ---------- */
.contact {
  background:
    radial-gradient(circle at 50% 0%, rgba(36, 150, 237, 0.14), transparent 55%),
    var(--bg);
}

.contact__inner {
  text-align: center;
}

.contact__text {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 15px 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(36, 150, 237, 0.06);
  font-size: clamp(15px, 2.4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  word-break: break-all;
}

.contact__mail svg {
  width: 22px;
  height: 22px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.contact__mail:hover {
  border-color: var(--primary);
  background: rgba(36, 150, 237, 0.14);
  transform: translateY(-2px);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 46px 0;
  text-align: center;
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__company {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer__company-en {
  font-size: 12px;
  color: var(--primary-light);
  letter-spacing: 1px;
  margin-top: 4px;
}

.footer__copy {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(185, 200, 220, 0.85);
  line-height: 1.8;
}

/* ---------- 动画 ---------- */
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.14); }
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* 移动端先展示文字，让「公司介绍」标题出现在首屏 */
  .about__body {
    order: -1;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .nav__links {
    gap: 18px;
    font-size: 14px;
  }

  .section {
    padding: 80px 0;
  }

  /* 覆盖上面 .section 的 padding，保持首屏底部露出标题 */
  .about {
    padding-top: 28px;
  }

  .hero__eyebrow {
    letter-spacing: 2px;
  }

  .hero__tagline {
    letter-spacing: 1px;
  }

  .hero__tagline .dot {
    margin: 0 7px;
  }

  .card {
    padding: 32px 24px;
  }
}

@media (max-width: 380px) {
  .nav__links {
    gap: 12px;
    font-size: 13px;
  }

  .btn {
    min-width: 120px;
    padding: 12px 22px;
  }
}

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg,
  .hero__scroll span {
    animation: none;
  }
}
