/* ============================================================
   鑫晨源物联网科技 · 官网样式
   ============================================================ */

:root {
  --bg: #f7f9fc;
  --bg-dark: #0e1726;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --ink: #1a2233;
  --ink-soft: #57617a;
  --line: #e2e8f2;
  --accent: #ff6a2b;
  --accent-2: #ff9d3c;
  --accent-deep: #e4521a;
  --cool: #2f6bd8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 6px 18px rgba(20, 40, 80, .06);
  --shadow: 0 18px 45px rgba(20, 40, 80, .10);
  --shadow-lg: 0 30px 70px rgba(20, 40, 80, .16);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

.inline-accent { color: var(--accent); font-weight: 600; }

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 106, 43, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(255, 106, 43, .45); }
.btn-ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }

/* ========== 导航栏 ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(20, 40, 80, .08);
  padding: 8px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }

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

/* 站点 Logo：源图 logo.png 为 512×512 带透明通道，图形实际区域
   374×176（x 64→437、y 165→340）。背景保持镂空，容器按图形比例裁切留白 */
.brand-logo {
  position: relative;
  display: block;
  width: 104px;
  aspect-ratio: 374 / 176;
  flex: none;
  overflow: hidden;
  background: transparent;
}
.brand-logo img {
  position: absolute;
  height: 290.909%;     /* 512 / 176 */
  width: auto;
  max-width: none;
  left: -17.112%;       /* 64 / 374 */
  top: -93.75%;         /* 165 / 176 */
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; color: #fff; }
.brand-text small { font-size: 10px; letter-spacing: 2px; color: rgba(255, 255, 255, .7); }
.site-header.scrolled .brand-text strong { color: var(--ink); }
.site-header.scrolled .brand-text small { color: var(--ink-soft); }

.nav { display: flex; gap: 6px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, .88);
  border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.site-header.scrolled .nav-link { color: var(--ink-soft); }
.site-header.scrolled .nav-link:hover, .site-header.scrolled .nav-link.active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ========== 首屏 Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1000px 600px at 78% 18%, rgba(255, 157, 60, .22), transparent 60%),
    radial-gradient(800px 600px at 10% 90%, rgba(47, 107, 216, .25), transparent 60%),
    linear-gradient(150deg, #0e1726 0%, #16233a 55%, #1b2c48 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-glow {
  position: absolute;
  width: 520px; height: 520px;
  right: -120px; top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 43, .45), transparent 65%);
  filter: blur(30px);
  animation: floatGlow 8s ease-in-out infinite;
}
@keyframes floatGlow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.06); }
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent-2);
  background: rgba(255, 157, 60, .12);
  border: 1px solid rgba(255, 157, 60, .35);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, .78);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero 右侧温度卡片 */
.hero-card { display: flex; justify-content: center; }
.pad {
  width: 260px;
  border-radius: 26px;
  background: linear-gradient(160deg, #1f3152, #16233a);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .1);
  padding: 18px;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.pad-top {
  height: 8px;
  width: 60px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}
.pad-body {
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 106, 43, .16), rgba(255, 157, 60, .05));
  border: 1px solid rgba(255, 157, 60, .22);
  padding: 26px 18px;
  text-align: center;
}
.pad-temp { font-size: 13px; letter-spacing: 3px; color: rgba(255, 255, 255, .6); }
.pad-value {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent-2);
  text-shadow: 0 0 30px rgba(255, 106, 43, .5);
}
.pad-value span { font-size: 26px; }
.pad-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
}
.pad-status i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
  70% { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}



/* ========== 通用区块 ========== */
.section { padding: 100px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ========== 关于我们 ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--ink-soft); margin-bottom: 18px; font-size: 16px; }
.about-text strong { color: var(--ink); }
.about-points { margin-top: 26px; display: grid; gap: 12px; }
.about-points li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 500;
}
.about-points li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 12px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.stat {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: 13px; color: var(--ink-soft); }

/* ========== 核心产品 ========== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.product-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-shot {
  width: 100%;
  max-width: 460px;
  margin: 0;
  padding: 26px;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 32%, #ffffff, #eef3fb 72%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.product-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.product-info h3 { font-size: 28px; margin-bottom: 8px; }
.product-slogan { color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.product-info p { color: var(--ink-soft); margin-bottom: 22px; }
.product-feature-list { display: grid; gap: 12px; margin-bottom: 30px; }
.product-feature-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 500;
}
.product-feature-list i {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 12px; font-style: normal;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ========== 产品特点 ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 106, 43, .35);
}
.feature-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 106, 43, .14), rgba(255, 157, 60, .08));
  border: 1px solid rgba(255, 106, 43, .2);
}
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 15px; }

/* ========== 技术参数 ========== */
.spec-photo {
  max-width: 560px;
  margin: 0 auto 44px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.spec-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.spec-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.spec-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.spec-item span { font-size: 13px; color: var(--ink-soft); letter-spacing: .5px; }
.spec-item strong { font-size: 16px; color: var(--ink); }

/* ========== 智能物联 ========== */
.app-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.app-info h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 18px; }
.app-info > p { color: var(--ink-soft); margin-bottom: 26px; font-size: 16px; }
.app-list { display: grid; gap: 14px; margin-bottom: 30px; }
.app-list li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-alt);
}
.app-list i { font-style: normal; font-size: 18px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.store-badge:hover { transform: translateY(-3px); border-color: rgba(255, 106, 43, .4); }

/* 微信小程序码 · 扫码入口 */
.app-qr {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.app-qr-code {
  width: 108px;
  height: 108px;
  flex: none;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: contain;
}
.app-qr-text { display: flex; flex-direction: column; gap: 6px; }
.app-qr-text strong { font-size: 15px; color: var(--ink); }
.app-qr-text span { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

.app-phone { display: flex; justify-content: center; }
.phone-screen {
  width: 290px;
  border-radius: 34px;
  padding: 26px 22px 30px;
  background: linear-gradient(165deg, #0e1726, #1b2c48);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .1);
  color: #fff;
}
.phone-curtain {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #7ff0b4;
  background: rgba(61, 220, 132, .14);
  margin-bottom: 18px;
}
.phone-temp {
  font-size: 52px;
  font-weight: 800;
  color: var(--accent-2);
  text-shadow: 0 0 26px rgba(255, 106, 43, .45);
  line-height: 1.1;
}
.phone-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  margin: 14px 0 24px;
  overflow: hidden;
}
.phone-bar span {
  display: block; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.phone-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.phone-row b { color: #fff; }
.phone-on { border-bottom: none; color: #7ff0b4; }


/* ========== 联系方式 ========== */
.section-contact {
  background:
    radial-gradient(800px 500px at 85% 10%, rgba(255, 157, 60, .16), transparent 60%),
    linear-gradient(150deg, #0e1726, #1b2c48);
  color: #fff;
}
.section-contact .section-head h2 { color: #fff; }
.section-contact .section-head p { color: rgba(255, 255, 255, .7); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.contact-item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); }
.contact-icon { font-size: 30px; margin-bottom: 14px; }
.contact-item h3 { font-size: 17px; margin-bottom: 8px; }
.contact-item p { color: rgba(255, 255, 255, .72); font-size: 14px; }

/* ========== 页脚 ========== */
.site-footer {
  background: #0a1220;
  color: rgba(255, 255, 255, .6);
  padding: 30px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-meta { display: flex; flex-direction: column; gap: 6px; }
.footer-icp {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  transition: color .2s var(--ease);
}
.footer-icp:hover { color: var(--accent-2); }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--accent-2); }

/* ========== 移动端适配 ========== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-card { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-grid { grid-template-columns: 1fr; gap: 44px; }
  .app-wrap { grid-template-columns: 1fr; gap: 44px; }
  .app-phone { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: 74%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    gap: 6px;
    padding: 96px 26px 26px;
    background: rgba(14, 23, 38, .98);
    backdrop-filter: blur(14px);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
    transform: translateX(105%);
    transition: transform .36s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav-link { color: rgba(255, 255, 255, .85) !important; font-size: 17px; padding: 12px 8px; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand-logo { width: 86px; }
  .brand-text strong { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .app-qr { flex-direction: column; align-items: flex-start; gap: 14px; }
  .app-qr-code { width: 130px; height: 130px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}

