/* ====== VetSmart 站点样式 ====== */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, 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%; }

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

/* ====== 导航 ====== */
.nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700;
}
.nav-logo small { color: var(--text-light); font-weight: 400; font-size: 13px; margin-left: 4px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-light); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: white !important;
  padding: 8px 18px; border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); color: white !important; }

/* ====== Hero ====== */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
}
.badge {
  display: inline-block;
  background: var(--primary-light); color: var(--primary-dark);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: 56px; line-height: 1.1;
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-text h1 .accent { color: var(--primary); }
.hero-desc {
  font-size: 18px; color: var(--text-light);
  margin-bottom: 32px; max-width: 520px;
}
.hero-cta { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 20px; color: var(--text-light); font-size: 14px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ====== Hero 视觉卡片 ====== */
.hero-visual {
  position: relative;
  height: 480px;
}
.hero-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  min-width: 180px;
}
.hero-card-1 { top: 0; left: 0; width: 240px; animation: float 6s ease-in-out infinite; }
.hero-card-2 { top: 0; right: 0; width: 200px; animation: float 6s ease-in-out infinite 1s; }
.hero-card-3 { bottom: 60px; left: 60px; width: 220px; animation: float 6s ease-in-out infinite 2s; }
.hero-card-4 { bottom: 0; right: 40px; width: 240px; animation: float 6s ease-in-out infinite 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.card-icon { font-size: 24px; margin-bottom: 8px; }
.card-title { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.card-bar { background: var(--border); height: 6px; border-radius: 3px; overflow: hidden; }
.card-bar span { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.card-num { font-size: 28px; font-weight: 700; color: var(--accent); }
.card-amount { font-size: 24px; font-weight: 700; color: var(--primary); }
.card-spark { width: 100%; height: 50px; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 8px;
  font-weight: 600; font-size: 15px;
  transition: all 0.2s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--bg); transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ====== Section ====== */
.section { padding: 100px 0; }
.section-title {
  font-size: 40px; font-weight: 800;
  text-align: center; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center; color: var(--text-light);
  font-size: 18px; margin-bottom: 60px;
}
.section-cta { text-align: center; margin-top: 48px; }

/* ====== Pain ====== */
.pain { background: white; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 60px;
}
.pain-item {
  padding: 32px;
  background: var(--bg);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pain-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain-icon { font-size: 48px; margin-bottom: 16px; }
.pain-item h3 { font-size: 18px; margin-bottom: 8px; }
.pain-item p { color: var(--text-light); font-size: 14px; }

/* ====== Feature Grid ====== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-item {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.feature-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-item h3 { font-size: 17px; margin-bottom: 6px; }
.feature-item p { color: var(--text-light); font-size: 14px; }

/* ====== Screenshots ====== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 28px;
}
.screenshot-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  background: white;
}
.screenshot-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}
.screenshot-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-size: 18px;
  font-weight: 600;
}

/* ====== Case ====== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.case-item {
  padding: 40px 28px;
  background: white;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.case-img { font-size: 56px; margin-bottom: 16px; }
.case-item h3 { font-size: 20px; margin-bottom: 8px; }
.case-item p { color: var(--text-light); font-size: 14px; }

/* ====== CTA Section ====== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}
.cta-inner h2 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.cta-inner p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }

/* ====== Footer ====== */
.footer { background: #1f2937; color: white; padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { font-size: 14px; margin-bottom: 12px; opacity: 0.6; }
.footer-col a { display: block; padding: 4px 0; opacity: 0.8; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-col p { opacity: 0.8; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding: 20px 0; text-align: center;
  opacity: 0.6; font-size: 13px;
}

/* ====== 通用 Page Hero ====== */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: 48px; font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 18px; color: var(--text-light);
  max-width: 640px; margin: 0 auto;
}

/* ====== 响应式 ====== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 40px; }
  .hero-visual { height: 400px; max-width: 500px; margin: 0 auto; }
  .section { padding: 60px 0; }
  .section-title { font-size: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 600px) {
  .hero-text h1 { font-size: 32px; }
  .page-hero h1 { font-size: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta):not(.active) { display: none; }
}

/* ====== 下载页样式 ====== */
.download-section { padding: 60px 0; }
.version-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  transition: all 0.2s;
}
.version-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.version-card.featured { border: 2px solid var(--primary); position: relative; }
.version-card.featured::before {
  content: "推荐";
  position: absolute; top: -10px; left: 24px;
  background: var(--primary); color: white;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.version-icon { font-size: 40px; }
.version-info h3 { font-size: 22px; margin-bottom: 6px; }
.version-info .meta { color: var(--text-light); font-size: 14px; margin-bottom: 6px; }
.version-info .meta span { margin-right: 16px; }
.version-info .changelog { color: var(--text-light); font-size: 13px; margin-top: 8px; }

/* ====== 功能页 ====== */
.feature-detail {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }
.feature-detail-text h2 { font-size: 28px; margin-bottom: 12px; }
.feature-detail-text p { color: var(--text-light); font-size: 16px; margin-bottom: 16px; }
.feature-detail-text ul { list-style: none; padding: 0; }
.feature-detail-text ul li { padding: 6px 0; padding-left: 24px; position: relative; }
.feature-detail-text ul li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.feature-detail-img {
  background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
  border-radius: var(--radius);
  min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  overflow: hidden;
}
.feature-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
}
@media (max-width: 800px) {
  .feature-detail { grid-template-columns: 1fr; padding: 24px; }
  .feature-detail.reverse { direction: ltr; }
}

/* ====== 关于页 ====== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.about-stat {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
}
.about-stat .num { font-size: 36px; font-weight: 800; color: var(--primary); }
.about-stat .label { color: var(--text-light); margin-top: 4px; }
/* ========= 微信小程序专区 ========= */
.wxapp-section { background: linear-gradient(180deg, #f0fdf6 0%, #fff 100%); }
.wxapp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto 56px; }
.wxapp-col { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow); }
.wxapp-col h3 { font-size: 20px; margin-bottom: 14px; }
.wxapp-col h3 .wx-tag { display:inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; vertical-align: 3px; margin-left: 8px; }
.wxapp-col.owner h3 .wx-tag { background: #fff7e6; color: #d48806; }
.wxapp-col.staff h3 .wx-tag { background: #e6f7ff; color: #1890ff; }
.wxapp-col ul { list-style: none; }
.wxapp-col li { color: var(--text-light); font-size: 14.5px; line-height: 2; padding-left: 24px; position: relative; }
.wxapp-col li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: bold; }
.phone-row { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.phone-wrap { text-align: center; }
.phone { width: 220px; background: #111827; border-radius: 36px; padding: 10px 10px 14px; box-shadow: 0 20px 40px rgba(0,0,0,.18); transition: transform .3s; }
.phone:hover { transform: translateY(-6px); }
.phone-screen { border-radius: 26px; overflow: hidden; background: #fff; }
.phone-screen img { display: block; width: 100%; }
.phone-caption { margin-top: 16px; font-size: 14px; color: var(--text-light); font-weight: 500; }
.wxapp-note { text-align: center; background: #fff7e6; border: 1px solid #ffd591; color: #d48806; border-radius: 12px; padding: 16px 24px; max-width: 640px; margin: 0 auto; font-size: 14.5px; }
@media (max-width: 768px) { .wxapp-two { grid-template-columns: 1fr; } .phone-row { gap: 20px; } .phone { width: 160px; } }
