/* ==========================================================================
   乐享安居官网 · 首页
   设计稿还原：Calicat 2115006193779122176
   ========================================================================== */

:root {
  /* 品牌与主色 */
  --orange: #ff6b35;
  --orange-deep: #d9541f;
  --orange-light: #ffeadf;
  --orange-soft: #fff0e7;
  --orange-bright: #ff8f52;

  /* 辅助色 */
  --green: #3f8a6b;
  --green-deep: #2f6e53;
  --green-soft: #f1f6f2;
  --gold: #d99b1f;
  --gold-deep: #b67f12;
  --gold-soft: #fff6e3;
  --blue: #4b6fb5;
  --blue-deep: #3a5d9e;
  --blue-soft: #eff3fb;
  --red: #d64545;
  --red-soft: #fdecec;

  /* 中性色 */
  --ink: #1b2521;
  --ink-2: #4a554f;
  --ink-3: #5c6862;
  --gray: #7a857f;
  --gray-2: #8b958f;
  --gray-3: #9a8f86;
  --gray-4: #b9c2bc;
  --line: #f0e6dd;
  --line-2: #efe4da;
  --line-3: #e7dcd2;
  --bg-cream: #fff8f2;
  --bg-warm: #fcfaf7;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --container: 1200px;
  --shadow-card: 0 2px 10px rgba(27, 37, 33, .04);
  --shadow-hover: 0 12px 32px rgba(27, 37, 33, .10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Han Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ============================ 通用按钮 ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .2s ease;
  border: 1px solid transparent;
}

.btn i {
  font-size: 1.15em;
  line-height: 1;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-deep);
  box-shadow: 0 8px 20px rgba(255, 107, 53, .28);
}

.btn-ghost {
  background: #fff;
  color: #33403a;
  border-color: var(--line-3);
  font-weight: 500;
}

.btn-ghost i {
  color: var(--orange);
}

.btn-ghost:hover {
  border-color: var(--orange);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  background: #fff3ec;
}

.btn-md {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

/* ============================ 顶部导航 ============================ */
.nav {
  height: 78px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* 自定义 Logo：放 assets/img/logo.png 即生效，未放文件时回退到占位图标 */
.brand-logo {
  display: none;
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
  border-radius: 14px;
}

.brand-logo.is-loaded {
  display: block;
}

.brand-logo.is-loaded+.brand-icon {
  display: none;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--gray-3);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
}

.nav-menu a {
  color: var(--ink-2);
  transition: color .2s;
}

.nav-menu a:hover {
  color: var(--orange);
}

.nav-menu a.active {
  color: var(--orange);
  font-weight: 500;
}

/* ============================ 首屏 Banner ============================ */
.hero {
  background: var(--bg-cream);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 0 88px;
}

.hero-copy {
  width: 820px;
  max-width: 100%;
  flex: none;
  text-align: center;
}

.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.tag-pill.orange {
  background: var(--orange-light);
  color: var(--orange-deep);
}

.tag-pill.orange i {
  font-size: 13px;
}

.tag-pill.gray {
  background: #fff;
  color: #7a8b83;
}

.hero-title {
  margin-top: 20px;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
}

.hero-title span {
  display: block;
}

.hero-title .accent {
  color: var(--orange);
}

.hero-sub {
  margin: 20px auto 0;
  width: 680px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-3);
}

.hero-btns {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ============================ 价值点条 ============================ */
.values-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 0;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.v-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: none;
}

.v-icon.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.v-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.v-icon.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.v-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.v-text h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.v-text p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray-2);
}

/* ============================ 通用区块标题 ============================ */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--orange);
}

.section-head h2 {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.section-head p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--gray-2);
}

/* ============================ 核心板块区 ============================ */
.core-inner {
  padding: 72px 0 80px;
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.c-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex: none;
}

.c-icon.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.c-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.c-icon.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.c-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.card h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.card p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--gray);
}

.c-tag {
  margin-top: auto;
  padding-top: 20px;
  align-self: flex-start;
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.c-tag.orange {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.c-tag.green {
  background: var(--green-soft);
  color: var(--green-deep);
}

.c-tag.gold {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.c-tag.blue {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

/* ============================ 智慧守护区 ============================ */
.guard {
  background: var(--bg-warm);
}

.guard-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 72px 0 76px;
}

.guard-copy {
  width: 420px;
  flex: none;
}

.label-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
}

.label-bar i {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--orange);
  display: block;
}

.guard-copy h2 {
  margin-top: 16px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.guard-desc {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}

.stat-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--orange);
}

.stat span {
  display: block;
  font-size: 12px;
  color: var(--gray-2);
}

.stat-row .divider {
  width: 2px;
  height: 28px;
  background: var(--line-3);
  flex: none;
}

.device-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.device-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.device {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow .25s ease;
}

.device:hover {
  box-shadow: var(--shadow-card);
}

.d-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex: none;
}

.d-icon.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.d-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.d-icon.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.d-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.d-icon.red {
  background: var(--red-soft);
  color: var(--red);
}

.d-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.d-text span {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: var(--gray-3);
}

.device-note {
  margin-top: auto;
}

/* ============================ APP 界面展示区 ============================ */
.app-inner {
  padding: 72px 0 80px;
}

.app-showcase {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

.app-showcase img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

/* ============================ 下载说明 ============================ */
.download {
  background: var(--bg-cream);
  padding: 48px 0 24px;
}

.dl-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 56px 64px;
  box-shadow: 0 18px 44px rgba(27, 37, 33, .06);
}

.download-copy {
  width: 660px;
  max-width: 100%;
}

.dl-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--orange-light);
  font-size: 13px;
  font-weight: 500;
  color: var(--orange-deep);
}

.download-copy h2 {
  margin-top: 20px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.dl-desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-3);
}

.dl-btns .btn {
  cursor: default;
}

.dl-btns .btn-primary:hover {
  background: var(--orange);
  box-shadow: none;
}

.dl-btns .btn-ghost:hover {
  border-color: var(--line-3);
}

.dl-btns {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dl-visual {
  width: 220px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dl-visual::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, .16), rgba(255, 107, 53, 0) 70%);
}

.dl-logo {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(255, 107, 53, .2);
}

/* ============================ 页脚 ============================ */
.footer {
  background: var(--bg-warm);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 0 40px;
}

.f-brand {
  width: 360px;
  max-width: 100%;
  flex: none;
}

.footer .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.f-intro {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray);
}

.f-slogan {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.f-col {
  width: 160px;
  flex: 1 1 160px;
}

.f-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.f-col ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.f-col li {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

.footer-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.copyright {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-3);
}

.f-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.f-links a {
  font-size: 12px;
  color: var(--gray-3);
  transition: color .2s;
}

.f-links a:hover {
  color: var(--orange);
}

.filing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-3);
}

.filing-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filing-item:hover {
  color: var(--orange);
}

.filing-split {
  color: var(--line-3);
}

.gongan-icon {
  display: none;
  width: 16px;
  height: 16px;
  flex: none;
  object-fit: contain;
}

.gongan-icon.is-loaded {
  display: block;
}

.gongan-icon.is-loaded+.gongan-badge {
  display: none;
}

.gongan-badge {
  width: 16px;
  height: 16px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #4a72c4;
  color: #fff;
  font-size: 11px;
}

/* ============================ 响应式 ============================ */
@media (max-width: 1240px) {
  .container {
    width: auto;
    padding: 0 40px;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-copy {
    width: auto;
    max-width: 820px;
  }

  .hero-sub,
  .guard-copy,
  .download-copy {
    width: auto;
  }

  .guard-inner {
    gap: 32px;
  }

  .guard-copy {
    width: 380px;
  }

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


}

@media (max-width: 980px) {
  .nav-menu {
    gap: 22px;
    font-size: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .hero-inner,
  .guard-inner,
  .dl-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .dl-visual {
    width: 100%;
    margin-top: 12px;
  }

  .values-inner,
  .device-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .guard-copy {
    width: 100%;
  }

  .footer-main {
    flex-wrap: wrap;
  }

  .f-brand {
    width: 100%;
  }

  .f-col {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .hero-sub {
    width: auto;
  }



  .f-col {
    flex-basis: 45%;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 34px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .card-grid,
  .values-inner,
  .device-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    gap: 16px;
  }



  .footer-bar {
    flex-direction: column;
    gap: 12px;
  }

  .footer-main {
    gap: 28px;
  }

  .dl-panel {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .download-copy h2 {
    font-size: 24px;
  }

  .download {
    padding-bottom: 56px;
  }
}
