/* ============================================================
   林智物联 - 科技企业官网样式
   主色调：深空蓝 #0a0e27 + 银灰 #a8b2c1 + 强调蓝 #00b4d8
   ============================================================ */

/* -------- Reset & Base -------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #060b1a;
  color: #c8d0dc;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button {
  font-family: inherit; font-size: inherit; outline: none; border: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

/* -------- Utility -------- */
.text-accent  { color: #00b4d8; }
.highlight   { color: #e0e6f0; font-weight: 600; }

/* -------- Section Header -------- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #00b4d8;
  margin-bottom: 16px;
  position: relative;
}
.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: rgba(0,180,216,0.4);
}
.section-tag::before  { right: calc(100% + 12px); }
.section-tag::after   { left: calc(100% + 12px); }

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.section-subtitle {
  font-size: 1rem;
  color: #7a8395;
  max-width: 500px;
  margin: 0 auto;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #0096c7, #00b4d8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,180,216,0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(0,180,216,0.45);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid rgba(0,180,216,0.5);
  color: #00b4d8;
  background: transparent;
}
.btn-outline:hover {
  background: rgba(0,180,216,0.08);
  border-color: #00b4d8;
  transform: translateY(-2px);
}
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}
.btn-block .btn-icon {
  transition: transform 0.3s ease;
}
.btn-block:hover .btn-icon {
  transform: translateX(4px);
}

/* -------- Header / Nav -------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.header.scrolled {
  background: rgba(6,11,26,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #e8edf5;
  z-index: 1001;
}
.logo-icon {
  color: #00b4d8;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 1.1rem;
}
.logo-highlight { color: #00b4d8; }

.nav-list { display: flex; gap: 36px; }
.nav-link {
  font-size: 0.9rem;
  color: #8a94a6;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #00b4d8;
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active { color: #e0e6f0; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #c8d0dc;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* -------- Hero / Banner -------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,180,216,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(0,150,200,0.04) 0%, transparent 50%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 5px;
  color: #00b4d8;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #e8edf5;
  line-height: 1.25;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-desc {
  font-size: 1.1rem;
  color: #7a8395;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #e8edf5;
  font-variant-numeric: tabular-nums;
}
.stat-plus  { font-size: 1.2rem; color: #00b4d8; font-weight: 700; }
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #5a6378;
  margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: #00b4d8;
  border-radius: 2px;
}

/* -------- About -------- */
.about { background: #080e20; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-lead {
  font-size: 1.1rem;
  color: #d0d6e2;
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-text p {
  color: #7a8395;
  margin-bottom: 24px;
  line-height: 1.8;
}
.about-features { display: flex; flex-direction: column; gap: 12px; }
.af-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a8b2c1;
  font-size: 0.95rem;
}
.af-icon { color: #00b4d8; font-size: 0.7rem; }

/* Code block visual */
.code-block {
  background: #0a1628;
  border-radius: 10px;
  border: 1px solid rgba(0,180,216,0.15);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.code-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #ff5f56;
}
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #27c93f; }
.code-file {
  margin-left: 10px;
  font-size: 0.78rem;
  color: #5a6378;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
}
.code-body {
  padding: 24px 22px;
  margin: 0;
  overflow-x: auto;
}
.code-body code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #a8b2c1;
}
.code-keyword { color: #c792ea; }
.code-class   { color: #ffcb6b; }
.code-func    { color: #82aaff; }
.code-string  { color: #c3e88d; }

/* -------- Services -------- */
.services { background: #060b1a; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #0a1628;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 40px 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0,180,216,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover {
  border-color: rgba(0,180,216,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.service-card:hover::before { opacity: 1; }
.service-card.featured {
  border-color: rgba(0,180,216,0.2);
  background: linear-gradient(180deg, #0c1d35 0%, #0a1628 100%);
}
.service-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.7rem;
  color: #00b4d8;
  border: 1px solid rgba(0,180,216,0.3);
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(0,180,216,0.06);
}
.service-icon {
  width: 56px; height: 56px;
  color: #00b4d8;
  margin-bottom: 22px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1.25rem;
  color: #e8edf5;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.service-card > p {
  color: #7a8395;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.service-list li {
  font-size: 0.85rem;
  color: #6b7488;
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,180,216,0.4);
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #00b4d8;
  transition: gap 0.3s ease;
}
.service-link:hover { gap: 12px; }

/* -------- Solutions -------- */
.solutions { background: #080e20; }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution-card {
  background: #0a1628;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 36px 28px;
  transition: all 0.35s ease;
  position: relative;
}
.solution-card:hover {
  border-color: rgba(0,180,216,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.solution-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(0,180,216,0.08);
  position: absolute;
  top: 20px; right: 24px;
}
.solution-card h3 {
  font-size: 1.15rem;
  color: #e0e6f0;
  margin-bottom: 12px;
}
.solution-card > p {
  color: #7a8395;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 18px;
}
.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.solution-tags span {
  font-size: 0.73rem;
  color: #5a7590;
  background: rgba(0,180,216,0.06);
  border: 1px solid rgba(0,180,216,0.12);
  padding: 4px 10px;
  border-radius: 4px;
}

/* -------- Clients -------- */
.clients { background: #060b1a; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}
.client-logo {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}
.client-logo:hover { transform: translateY(-4px); }
.client-placeholder {
  width: 100%;
  color: #3a4560;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.client-logo:hover .client-placeholder { color: #00b4d8; }
.client-logo span {
  font-size: 0.8rem;
  color: #5a6378;
}

/* Testimonial */
.testimonial {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: #0a1628;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.testimonial::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 2px;
  background: #00b4d8;
}
.quote-mark {
  font-size: 4rem;
  color: rgba(0,180,216,0.15);
  line-height: 1;
  display: block;
  margin-bottom: -10px;
  font-family: Georgia, serif;
}
.testimonial-quote p {
  font-size: 1.05rem;
  color: #a8b2c1;
  line-height: 1.8;
  margin-bottom: 20px;
}
.testimonial-author {
  font-size: 0.9rem;
  color: #5a6378;
}
.testimonial-author strong { color: #00b4d8; }

/* -------- Contact -------- */
.contact { background: #080e20; }
.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #0a1628;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}
.ci-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,180,216,0.08);
  border-radius: 8px;
  color: #00b4d8;
}
.ci-label {
  font-size: 0.78rem;
  color: #5a6378;
  margin-bottom: 2px;
}
.ci-value {
  color: #c8d0dc;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: #0a1628;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #a8b2c1;
  margin-bottom: 8px;
  font-weight: 500;
}
.required { color: #ff5f56; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #060b1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  color: #c8d0dc;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0,180,216,0.4);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #3a4560; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235a6378' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-group select option { background: #0a1628; color: #c8d0dc; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* -------- Footer -------- */
.footer {
  background: #040914;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding: 60px 24px;
}
.footer-brand p {
  margin-top: 14px;
  color: #5a6378;
  font-size: 0.88rem;
  line-height: 1.7;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-col h4 {
  color: #e0e6f0;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #5a6378;
  font-size: 0.85rem;
  padding: 5px 0;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: #00b4d8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.03);
  padding: 20px 24px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #3a4560;
}

/* -------- Animations -------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* Scroll-reveal */
[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-anim].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form success message */
.form-success {
  text-align: center;
  padding: 40px 20px;
  color: #27c93f;
  font-size: 1.1rem;
}

/* ================================================================
   Responsive - Tablet
   ================================================================ */
@media (max-width: 1024px) {
  .section { padding: 70px 0; }
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats { gap: 30px; }
  .stat-number { font-size: 1.8rem; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .code-body { padding: 18px 16px; }
  .code-body code { font-size: 0.7rem; }

  .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  .solutions-grid { grid-template-columns: repeat(2, 1fr); }

  .clients-grid { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; }
  .contact-info-item { flex: 1; min-width: 200px; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-links { justify-items: center; }
}

/* ================================================================
   Responsive - Mobile
   ================================================================ */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.7rem; }
  .section-subtitle { font-size: 0.9rem; }

  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(6,11,26,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav.active { opacity: 1; pointer-events: auto; }
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .nav-link { font-size: 1.1rem; }

  .hero-title { font-size: 1.9rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stat-item { flex: 1; min-width: 100px; }
  .stat-number { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }

  .about-features { gap: 8px; }

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

  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .testimonial { padding: 28px 20px; }
  .testimonial-quote p { font-size: 0.9rem; }

  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 40px; }
  .hero-stats { display: none; }
  .hero-actions { margin-bottom: 0; }
  .clients-grid { grid-template-columns: 1fr; }
  .scroll-indicator { display: none; }
}
