/* ============================================
   易道检测大师 - 公司官网
   1:1 Figma Design Restoration
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  --color-white: #FFFFFF;
  --color-yellow: #FFBF31;
  --color-black: #000000;
  --color-text: #212121;
  --color-text-muted: rgba(33, 33, 33, 0.6);
  --color-border: rgba(33, 33, 33, 0.1);
  --color-section-bg: #F4F6FB;
  --color-green: #2CAB52;
  --color-blue: #408AFF;
  --color-white-60: rgba(255, 255, 255, 0.6);
  --color-footer: #212121;
  --color-card-bg: #FFFFFF;

  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans SC', sans-serif;

  --container-padding: clamp(20px, 18.75vw, 360px);
  --radius-card: 12px;
  --radius-btn: 32px;
  --radius-input: 8px;
  --nav-height: 60px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled state: white translucent nav with blur, dark text */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}



.nav.scrolled .nav-links li a {
  color: var(--color-text-muted);
}

.nav.scrolled .nav-links li a:hover {
  color: var(--color-text);
}

.nav.scrolled .nav-links li a.active {
  color: var(--color-text);
}

.nav.scrolled .nav-toggle span {
  background: var(--color-text);
}

.nav.scrolled .nav-links li + li {
  border-top-color: rgba(33, 33, 33, 0.1);
}

.nav.scrolled .nav-links {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 125px;
  min-height: 60px;
  padding-top: 0;
  padding-bottom: 0;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  
  transition: filter 0.3s ease;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.nav-links li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 25px 10px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-white-60);
  transition: color 0.2s;
  position: relative;
  min-height: 60px;
}

.nav-links li a::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  border-radius: 10px;
  background: var(--color-yellow);
  transition: width 0.2s;
}

.nav-links li a.active {
  color: var(--color-yellow);
  font-weight: 500;
}

.nav-links li a.active::after {
  width: 17px;
}

.nav-links li a:hover {
  color: var(--color-white);
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 11;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s;
}

.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 Section
   ============================================ */
.hero {
  position: relative;
  min-height: 666px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
}

/* Hero background: black with radial gradient (dark center, light edges) */
.hero-bg {
  position: absolute;
  inset: 0;
  background:#000000;
  z-index: 0;
}

/* Yellow blurred glow */
.hero-glow {
  position: absolute;
  top: 14px;
  left: 55.4%;
  width: 536px;
  height: 500px;
  border-radius: 50%;
  /*background: radial-gradient(circle at 50% 50%, rgba(255, 191, 49, 1) 0%, rgba(255, 255, 255, 1) 70%); */
  filter: blur(67px);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 40px;
   /*padding-bottom: 40px;*/
}

.hero-text {
  flex-shrink: 0;
  width: 537px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 18px;
}

.title-main {
  font-family: var(--font-sans);
  font-size: 77px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-white);
}

.title-sub {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 36.6px;
  color: var(--color-white);
}

.hero-desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-slogan {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-white);
}

.hero-detail {
  font-size: 17px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-white-60);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 2px 10px 2px 16px;
  border-radius: var(--radius-btn);
  font-size: 18px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn img {
  width: 20px;
  height: 20px;
}

.btn-green {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-blue {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn-yellow {
  background: var(--color-yellow);
  color: var(--color-text);
}

/* ============================================
   Hero Phone
   ============================================ */
.hero-phone {
  flex-shrink: 0;
  width: 485px;
  max-width: 100%;
}

.hero-phone img {
  width: 100%;
  height: auto;
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-bar {
  width: 8px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-yellow);
  flex-shrink: 0;
}

.section-title-text {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  line-height: 1.2;
}

.section-desc {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
}

/* ============================================
   Features Section
   ============================================ */
.features {
  background: var(--color-section-bg);
  padding-top: 20px;
  padding-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 0;
  padding-bottom: 30px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 30px 20px;
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  min-height: 275px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(33, 33, 33, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img {
  max-width: 88px;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.feature-card-title {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  color: var(--color-text);
  line-height: 1.3;
}

.feature-card-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  color: var(--color-text-muted);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  background: var(--color-white);
}

.contact-content {
  display: flex;
  align-items: stretch;
  gap: 88px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.contact-info {
  flex-shrink: 0;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 49px;
  padding-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 110px;
  background: rgba(181, 192, 220, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-main {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.3;
}

.info-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Contact Form */
.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  gap: 9px;
}

.form-input {
  flex: 1;
  height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-white);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus {
  border-color: var(--color-yellow);
}

.form-textarea {
  flex: 1;
  min-height: 165px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-white);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--color-text);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea:focus {
  border-color: var(--color-yellow);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0;
}

.form-success {
  color: var(--color-green);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
}

.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-footer);
  padding-top: 60px;
  padding-bottom: 60px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-inner p {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-white-60);
  text-align: center;
  line-height: 1.6;
}

.footer-inner p:first-child {
  color: var(--color-white);
}

/* ============================================
   Responsive: Tablet (<= 1200px)
   ============================================ */
@media (max-width: 1200px) {
  :root {
    --container-padding: clamp(20px, 6vw, 120px);
  }

  .nav-inner {
    gap: 60px;
  }

  .hero-content {
    gap: 40px;
  }

  .hero-text {
    width: 480px;
  }

  .hero-phone {
    width: 380px;
  }

  .title-main {
    font-size: 60px;
  }

  .title-sub {
    font-size: 28px;
    line-height: 30px;
  }

  .hero-badge {
    width: 80px;
    height: 80px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    gap: 40px;
  }
}

/* ============================================
   Responsive: Mobile (<= 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --nav-height: 56px;
  }

  /* Navigation */
  .nav-inner {
    gap: 0;
    justify-content: space-between;
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links li a {
    flex-direction: row;
    justify-content: center;
    padding: 16px 10px;
    min-height: auto;
    font-size: 16px;
  }

  .nav-links li a::after {
    display: none;
  }

  .nav-links li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      radial-gradient(circle at 50% 30%, rgba(227, 231, 241, 0) 0%, rgba(227, 231, 241, 1) 100%),
      #000000;
  }

  .hero-glow {
    width: 300px;
    height: 300px;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(50px);
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding-top: 20px;
    padding-bottom: 50px;
  }

  .hero-text {
    width: 100%;
    align-items: center;
    gap: 32px;
  }

  .hero-title {
    justify-content: center;
  }

  .hero-badge {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }

  .title-main {
    font-size: 44px;
  }

  .title-sub {
    font-size: 22px;
    line-height: 24px;
  }

  .hero-slogan {
    font-size: 17px;
  }

  .hero-detail {
    font-size: 14px;
    line-height: 22px;
  }

  .hero-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn {
    height: 44px;
    font-size: 16px;
    padding: 2px 8px 2px 14px;
  }

  .hero-phone {
    width: 260px;
    order: 2;
  }

  /* Section headers */
  .section-title-text {
    font-size: 28px;
  }

  .section-desc {
    font-size: 15px;
    line-height: 1.6;
  }

  .title-bar {
    height: 32px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    min-height: auto;
    padding: 24px 16px;
    gap: 14px;
  }

  .feature-icon {
    width: 64px;
    height: 64px;
  }

  .feature-icon img {
    max-width: 64px;
    max-height: 64px;
  }

  .feature-card-title {
    font-size: 18px;
  }

  .feature-card-desc {
    font-size: 13px;
  }

  /* Contact */
  .contact-content {
    flex-direction: column;
    gap: 32px;
    padding-top: 30px;
    padding-bottom: 40px;
  }

  .contact-info {
    width: 100%;
    gap: 24px;
    padding-bottom: 0;
  }

  .info-icon {
    width: 52px;
    height: 52px;
  }

  .info-main {
    font-size: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  /* Footer */
  .footer {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .footer-inner p {
    font-size: 12px;
  }
}

/* ============================================
   Responsive: Small Mobile (<= 380px)
   ============================================ */
@media (max-width: 380px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
