/* ===== 绿色科技主题变量 ===== */
:root {
  --primary: #00e676;
  --primary-dark: #00c853;
  --primary-light: #69f0ae;
  --accent-cyan: #00ffc8;
  --accent: #0a1210;
  --accent-deep: #050a08;
  --text: #e8f5e9;
  --text-muted: #8ba89a;
  --bg: #0d1412;
  --bg-alt: #111a16;
  --bg-card: rgba(16, 28, 24, 0.85);
  --border: rgba(0, 230, 118, 0.15);
  --border-glow: rgba(0, 230, 118, 0.35);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 230, 118, 0.12);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--accent-deep);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border-color: var(--border-glow);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(0, 230, 118, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

.btn-block {
  width: 100%;
}

/* ===== 导航栏 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(10, 18, 16, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-cyan));
  color: var(--accent-deep);
  font-size: 20px;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.4);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
}

.nav {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: var(--transition);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(0, 230, 118, 0.08);
  box-shadow: inset 0 0 0 1px var(--border);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.5);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #050a08 0%, #0a1612 40%, #0d2018 70%, #051410 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 10%;
  right: -10%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -300px;
  background: radial-gradient(circle, rgba(0, 255, 200, 0.1) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 24px 100px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-glow);
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 230, 118, 0.3));
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* ===== 通用区块 ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  opacity: 0.4;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 230, 118, 0.05);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.section-header.light .section-tag {
  color: var(--accent-cyan);
  border-color: rgba(0, 255, 200, 0.3);
  background: rgba(0, 255, 200, 0.05);
}

.section-header.light .section-title {
  color: var(--text);
}

.section-header.light .section-subtitle {
  color: var(--text-muted);
}

/* ===== 关于我们 ===== */
.about {
  background: var(--bg-alt);
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.about-content h3::before {
  content: "// ";
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 400;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.9;
}

.about-features {
  list-style: none;
  margin-top: 28px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--text);
  border-left: 2px solid var(--primary);
  background: rgba(0, 230, 118, 0.04);
  margin-bottom: 8px;
  border-radius: 0 6px 6px 0;
  transition: var(--transition);
}

.about-features li:hover {
  background: rgba(0, 230, 118, 0.08);
  box-shadow: -4px 0 20px rgba(0, 230, 118, 0.15);
}

.about-features svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-1 {
  grid-column: 1 / -1;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.3));
}

.about-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-light);
}

.about-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== 核心业务 ===== */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: inset 0 0 20px rgba(0, 230, 118, 0.05);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.5));
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== 平台优势 ===== */
.advantages {
  background: linear-gradient(180deg, #0a1210 0%, #0d1a15 50%, #0a1210 100%);
  position: relative;
  overflow: hidden;
}

.advantages::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(0, 230, 118, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(0, 255, 200, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.advantages::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
}

.advantages .container {
  position: relative;
  z-index: 1;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  padding: 32px 24px;
  background: rgba(0, 230, 118, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
}

.advantage-item::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.advantage-item:hover {
  background: rgba(0, 230, 118, 0.06);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.advantage-num {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.advantage-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.advantage-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== 联系我们 ===== */
.contact {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--border);
  background: rgba(0, 230, 118, 0.03);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.1);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.contact-item h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-item p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glow);
}

.contact-form h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

.contact-form h3::before {
  content: "> ";
  color: var(--primary);
  font-family: var(--font-mono);
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 230, 118, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1), 0 0 20px rgba(0, 230, 118, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--accent-deep);
  color: var(--text-muted);
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo-text {
  color: var(--text);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
}

.footer-bottom a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .services-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 18, 16, 0.98);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    backdrop-filter: blur(16px);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    color: var(--text-muted);
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-stats {
    gap: 32px;
  }

  .services-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    grid-template-columns: 1fr;
  }

  .about-card-1 {
    grid-column: auto;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 28px;
  }

  .hero-glow {
    width: 300px;
    height: 300px;
    right: -20%;
  }
}
