:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #24302d;
  --muted: #67716e;
  --line: #e4e1d8;
  --brand: #2f7d6f;
  --brand-dark: #25675c;
  --brand-soft: #e6f1ee;
  --warm: #b97f36;
  --warm-soft: #f7ecdc;
  --shadow-sm: 0 1px 2px rgba(36, 48, 45, 0.06);
  --shadow-md: 0 6px 18px rgba(36, 48, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.35;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand img {
  height: 44px;
  width: auto;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.desktop-nav .nav-cta {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
}

.desktop-nav a:hover {
  background: var(--brand-soft);
  text-decoration: none;
}

.desktop-nav .active {
  color: var(--brand-dark);
  font-weight: 600;
}

.nav-cta {
  margin-left: 8px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.mobile-nav {
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  user-select: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav[open] .mobile-links {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.mobile-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
}

.mobile-links a:hover {
  background: var(--brand-soft);
  text-decoration: none;
}

@media (min-width: 880px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--brand);
}

.btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--card);
  border-color: #cfcbbf;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- 首页 hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 72px 0 84px;
  background-color: var(--brand-soft);
  background-image: url("https://pet-1304144179.cos.ap-chengdu.myqcloud.com/pet-website/hero-bg.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.68) 45%, rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .hero {
    min-height: 0;
    padding: 56px 0 64px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.92) 100%);
  }
}

.hero .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 2.2rem;
  max-width: 16em;
}

.hero .lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40em;
}

.free-note {
  display: inline-block;
  margin: 18px 0 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid #d9e6e1;
  color: var(--brand-dark);
  font-size: 0.95rem;
}

/* ---------- 通用区块 ---------- */

.section {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-tight {
  padding: 36px 0;
}

.lede {
  color: var(--muted);
  max-width: 42em;
}

.section h2 {
  margin-bottom: 8px;
}

.section > .container > .lede,
.section-head .lede {
  margin-bottom: 32px;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  margin-bottom: 8px;
}

/* 首页：四个业务点 */

.business-list {
  border-top: 1px solid var(--line);
}

.business-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.business-item:last-child {
  border-bottom: none;
}

.business-item h3 {
  color: var(--brand-dark);
  margin: 4px 0 6px;
}

.business-item p {
  color: var(--muted);
  max-width: 56em;
  margin: 0;
}

.biz-num {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* 界面截图 */

.shots {
  display: grid;
  gap: 16px;
}

.shots figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.shots figcaption {
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (min-width: 880px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 三端入口 */

.role-grid {
  display: grid;
  gap: 18px;
}

.role-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.role-card h3 {
  margin-bottom: 6px;
}

.role-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.role-card a {
  font-weight: 600;
}

.role-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.num-green {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.num-amber {
  background: var(--warm-soft);
  color: var(--warm);
}

.num-slate {
  background: #eef0ef;
  color: #5b6663;
}

@media (min-width: 880px) {
  .role-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 价格 ---------- */

.price-section {
  text-align: center;
  background: #fafaf8;
}

.price-section .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.price-section .lede {
  margin-left: auto;
  margin-right: auto;
}

.price-grid {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 30px auto 0;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.price-card h3 {
  margin: 0 0 10px;
}

.price-card .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 2px;
}

.price-card .price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-card li {
  padding: 4px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.price-cta {
  margin-top: 28px;
}

.price-cta .btn-row {
  justify-content: center;
  margin-top: 14px;
}

@media (min-width: 880px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 子页面 hero ---------- */

.page-hero {
  padding: 48px 0 8px;
}

.page-hero h1 {
  margin-bottom: 10px;
}

.page-hero .lede {
  font-size: 1.05rem;
  max-width: 38em;
}

.page-hero .tags {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- 功能详情 ---------- */

.detail-block {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.detail-block h2 {
  margin-bottom: 6px;
}

.detail-block > p {
  color: var(--muted);
  max-width: 48em;
}

.detail-block ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.detail-block li {
  margin-bottom: 4px;
}

.detail-photo {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

@media (min-width: 880px) {
  .detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .detail-photo {
    margin: 0;
  }

  .detail-block:nth-child(even) .detail-photo {
    order: -1;
  }
}

/* ---------- 下载页 ---------- */

.download-grid {
  display: grid;
  gap: 20px;
}

.download-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.download-card img {
  width: 180px;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.download-card h3 {
  margin-bottom: 4px;
}

.download-card .desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.download-card .note {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 880px) {
  .download-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding: 8px 0;
  color: var(--muted);
}

.steps li::before {
  content: counter(step) ". ";
  color: var(--brand-dark);
  font-weight: 700;
}

/* ---------- 演示页 ---------- */

.demo-wrap {
  display: grid;
  gap: 36px;
  align-items: start;
}

.phone {
  width: min(360px, 100%);
  margin: 0 auto;
  border: 8px solid #2b3130;
  border-radius: 44px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.phone-bar {
  background: #fff;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.phone iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: #fff;
}

@media (min-width: 880px) {
  .demo-wrap {
    grid-template-columns: 380px 1fr;
  }
}

/* FAQ */

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand-dark);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq .answer {
  padding: 0 18px 16px;
  color: var(--muted);
}

/* ---------- 联系页 ---------- */

.contact-grid {
  display: grid;
  gap: 20px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.contact-card img {
  width: 160px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  margin-bottom: 14px;
}

.contact-card h3 {
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 44px 0 36px;
}

/* ---------- 右下角联系入口 ---------- */

.cs-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.cs-widget summary {
  list-style: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}

.cs-widget summary::-webkit-details-marker {
  display: none;
}

.cs-widget[open] summary {
  background: var(--brand-dark);
}

.cs-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: none;
}

.cs-widget[open] .cs-panel {
  display: block;
}

.cs-panel h4 {
  margin: 0 0 10px;
}

.cs-panel img {
  width: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  background: #fff;
}

.cs-panel p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 8px 0;
}

.cs-panel .cs-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.cs-tabs {
  display: flex;
  gap: 2px;
  margin: 0 -18px 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.cs-tab {
  flex: 1;
  padding: 8px 2px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.cs-tab.active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-dark);
  font-weight: 600;
}

.cs-pane {
  display: none;
  text-align: center;
}

.cs-pane.active {
  display: block;
}

.cs-pane .cs-pane-tip {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 10px;
}

.cs-chat {
  height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #fafaf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  text-align: left;
}

.cs-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cs-msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
}

.cs-msg.bot {
  align-self: flex-start;
  background: #f0f0ec;
  color: var(--ink);
}

.cs-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cs-quick button {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.cs-input {
  display: flex;
  gap: 8px;
}

.cs-input input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.cs-input button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

.cs-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.cs-form input,
.cs-form textarea {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.cs-form button {
  padding: 9px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.cs-form-status {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: left;
}

.footer-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.footer-grid h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.footer-brand img {
  height: 46px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-meta {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.footer-meta p {
  margin: 2px 0;
}

@media (min-width: 880px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 150px;
  }
}

.footer-qr-col {
  text-align: center;
}

.footer-qr {
  width: 120px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  background: #fff;
}

.footer-qr-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

.footer-hours {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- CTA 条 ---------- */

.cta-band {
  background: var(--brand);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 34em;
  margin: 0 auto 22px;
}

.cta-band .btn {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

.cta-band .btn:hover {
  background: #f1f7f5;
}

.cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
