/* ============ 基础 ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #c8161d;
  --red-dark: #a01117;
  --dark: #111318;
  --dark-2: #1a1d24;
  --gray: #5f6672;
  --light: #f6f7f9;
  --border: #e8eaee;
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 顶部导航 ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(17, 19, 24, 0.08);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

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

.nav-link {
  font-size: 15px;
  color: var(--gray);
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--dark);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============ 首屏 ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 78% 12%, rgba(200, 22, 29, 0.32), transparent 60%),
    radial-gradient(700px 420px at 12% 88%, rgba(200, 22, 29, 0.16), transparent 60%),
    linear-gradient(160deg, #15171c 0%, #101216 55%, #17181d 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(closest-side at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 40%, #000 30%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
}

.hero-tag {
  display: inline-block;
  color: #ffb3b6;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 179, 182, 0.35);
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-title {
  color: #fff;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 1px;
  margin-bottom: 26px;
}

.hero-title span {
  color: var(--red);
  background: linear-gradient(90deg, #ff4d55, #c8161d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(200, 22, 29, 0.36);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(200, 22, 29, 0.42);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ============ 通用区块 ============ */
.section {
  padding: 104px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--gray);
  font-size: 16px;
}

/* ============ 核心业务 ============ */
.services {
  background: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(17, 19, 24, 0.1);
  border-color: rgba(200, 22, 29, 0.25);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(17, 19, 24, 0.07);
  margin-bottom: 22px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-text {
  color: var(--gray);
  font-size: 15px;
}

/* ============ 服务优势 ============ */
.advantages {
  background: var(--light);
}

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

.adv-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
}

.adv-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-left: 14px;
  position: relative;
}

.adv-item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: var(--red);
}

.adv-item p {
  color: var(--gray);
  font-size: 15px;
}

/* ============ 关于我们 ============ */
.about {
  background: #fff;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text .section-title {
  margin-bottom: 24px;
}

.about-text p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 18px;
}

.about-card {
  background: var(--dark);
  border-radius: 24px;
  padding: 52px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 22, 29, 0.35), transparent 70%);
  top: -120px;
  right: -120px;
}

.about-card img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: #fff;
  padding: 10px;
  margin-bottom: 20px;
  position: relative;
}

.about-card-name {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
}

.about-card-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-top: 6px;
  position: relative;
}

/* ============ 联系我们 ============ */
.contact {
  background: var(--light);
}

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

.contact-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.contact-icon {
  font-size: 30px;
  margin-bottom: 16px;
}

.contact-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-item p {
  color: var(--gray);
  font-size: 15px;
  word-break: break-all;
}

.contact-item a {
  color: var(--red);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ============ 页脚 ============ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  padding: 3px;
}

.footer-info {
  text-align: right;
  font-size: 14px;
  line-height: 1.9;
}

.footer-icp a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-icp a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

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

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 16px 32px rgba(17, 19, 24, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-link {
    padding: 14px 24px;
    font-size: 16px;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .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 {
    min-height: 84vh;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }
}
