/* ============================================
   萌仓无人宠物店加盟 - 组件样式
   ============================================ */

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 768px) {
  .navbar-inner { padding: 0 32px; }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--c-primary);
  letter-spacing: -0.3px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--c-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.nav-links {
  display: none;
  gap: 28px;
  list-style: none;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  color: var(--c-text);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.nav-mobile {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--c-white);
  padding: 16px;
  display: none;
  z-index: 99;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}

.nav-mobile a:hover {
  color: var(--c-primary);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease;
  letter-spacing: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  box-shadow: 0 6px 20px rgba(64, 158, 255, 0.4);
}

.btn-orange {
  background: var(--c-orange);
  color: var(--c-white);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.btn-orange:hover {
  background: var(--c-orange-light);
  box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

.btn-green {
  background: var(--c-green);
  color: var(--c-white);
  box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
}

.btn-green:hover {
  background: var(--c-green-light);
  box-shadow: 0 6px 20px rgba(103, 194, 58, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 18px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--c-card-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.card-icon.blue { background: rgba(64, 158, 255, 0.12); color: var(--c-primary); }
.card-icon.orange { background: rgba(255, 149, 0, 0.12); color: var(--c-orange); }
.card-icon.green { background: rgba(103, 194, 58, 0.12); color: var(--c-green); }

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 14px;
  color: var(--c-text-light);
  line-height: 1.6;
}

/* ---------- 优势网格 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

/* ---------- Hero Banner ---------- */
.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #409EFF 0%, #66B1FF 60%, #F9FAFB 100%);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 16px 60px;
  display: flex;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .hero-inner { padding: 100px 32px 80px; }
}

.hero-text { flex: 1; }
.hero-visual { flex: 1; display: none; }

@media (min-width: 768px) {
  .hero-visual { display: flex; justify-content: center; }
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 149, 0, 0.15);
  color: var(--c-orange);
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

@media (min-width: 768px) {
  .hero-title { font-size: 44px; }
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-illustration {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}

/* ---------- 统计数据条 ---------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 32px 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -0.3px;
}

.stat-label {
  font-size: 14px;
  color: var(--c-text-light);
  margin-top: 4px;
}

/* ---------- 步骤流程 ---------- */
.steps-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .steps-flow {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
}

.step-item {
  position: relative;
  text-align: center;
  padding: 24px 16px;
}

@media (min-width: 768px) {
  .step-item { flex: 1; }
  .step-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -12px;
    top: 40px;
    font-size: 24px;
    color: var(--c-primary);
  }
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13px;
  color: var(--c-text-light);
}

/* ---------- 价格/等级卡片 ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.plan-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: var(--c-card-shadow);
  text-align: center;
  position: relative;
  transition: transform var(--transition-speed) ease;
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-card.featured {
  border: 2px solid var(--c-primary);
  box-shadow: var(--c-card-hover-shadow);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-orange);
  color: var(--c-white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 4px;
}

.plan-unit {
  font-size: 13px;
  color: var(--c-text-light);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--c-text-light);
  border-bottom: 1px solid var(--c-border);
}

.plan-features li:last-child { border-bottom: none; }

/* ---------- 画廊网格 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--c-border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-speed) ease;
}

.gallery-item:hover { transform: translateY(-4px); }

.gallery-placeholder {
  font-size: 48px;
  color: var(--c-gray);
  opacity: 0.5;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(31, 41, 55, 0.7);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 案例卡片 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

.case-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--c-card-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.case-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 18px;
}

.case-name {
  font-size: 16px;
  font-weight: 700;
}

.case-location {
  font-size: 13px;
  color: var(--c-text-light);
}

.case-body { padding: 20px 24px; }

.case-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.case-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-primary);
}

.case-stat-lbl {
  font-size: 12px;
  color: var(--c-text-light);
}

.case-quote {
  font-size: 14px;
  color: var(--c-text-light);
  line-height: 1.6;
  padding: 12px 16px;
  background: var(--c-bg);
  border-radius: 8px;
  position: relative;
}

.case-quote::before {
  content: '"';
  font-size: 24px;
  color: var(--c-primary);
  position: absolute;
  top: 8px;
  left: 8px;
  opacity: 0.5;
}

/* ---------- 表单 ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  background: var(--c-white);
  color: var(--c-text);
  outline: none;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.15);
}

.form-input.error {
  border-color: #F56C6C;
  box-shadow: 0 0 0 3px rgba(245, 108, 108, 0.15);
}

.form-error {
  font-size: 13px;
  color: #F56C6C;
  margin-top: 4px;
  display: none;
}

.form-error.show { display: block; }

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-full {
  grid-column: 1 / -1;
}

/* ---------- 悬浮客服 ---------- */
.floating-service {
  position: fixed;
  right: 16px;
  bottom: 100px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .floating-service { right: 24px; }
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  position: relative;
}

.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.float-btn.phone { background: var(--c-primary); color: var(--c-white); }
.float-btn.email { background: var(--c-green); color: var(--c-white); }
.float-btn.wechat { background: var(--c-orange); color: var(--c-white); }
.float-btn.top { background: var(--c-white); color: var(--c-text); }

.float-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--c-white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--c-text);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
}

.float-btn:hover .float-tooltip { opacity: 1; }

.wechat-popup {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--c-white);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: none;
  text-align: center;
  width: 160px;
}

.wechat-popup.show { display: block; }

.wechat-popup-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.wechat-qr-placeholder {
  width: 120px;
  height: 120px;
  background: var(--c-bg);
  border: 2px dashed var(--c-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--c-gray);
  margin-bottom: 8px;
}

.wechat-popup-tip {
  font-size: 12px;
  color: var(--c-text-light);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--c-text);
  color: var(--c-white);
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .footer-inner { padding: 0 32px; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--c-white);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover { color: var(--c-white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 80px 0 16px;
  font-size: 14px;
  color: var(--c-text-light);
}

.breadcrumb a {
  color: var(--c-text-light);
  transition: color var(--transition-speed) ease;
}

.breadcrumb a:hover { color: var(--c-primary); }

.breadcrumb-sep { color: var(--c-border); }

.breadcrumb-current { color: var(--c-text); font-weight: 500; }