/* ============================================================
   喵心洗 - 通用组件样式
   导航栏 / 按钮 / 卡片 / 时间线 / 页脚 / 表单
   ============================================================ */

/* ===== 顶部导航栏 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.navbar.scrolled {
  background: var(--bg-white);
  box-shadow: var(--shadow-nav);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Logo */
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--text-primary); }
.nav-logo svg { width: 38px; height: 38px; }
.nav-logo .brand-name span { color: var(--orange-primary); }

/* 菜单链接 */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  position: relative;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-menu a:hover { color: var(--orange-primary); }
.nav-menu a.active { color: var(--orange-primary); font-weight: 600; }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--orange-primary);
  border-radius: 2px;
}

/* 汉堡按钮 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 3px; background: var(--text-primary); border-radius: 2px; transition: var(--transition-fast); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}
.btn-primary { background: var(--orange-primary); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--orange-primary); border: 2px solid var(--orange-primary); }
.btn-outline:hover { background: var(--orange-primary); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--orange-primary); }
.btn-light:hover { background: var(--orange-warm-white); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: var(--fs-body); }

/* ===== 卡片通用 ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  border: 1px solid transparent;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--orange-light); }

/* 服务卡片 */
.service-card { text-align: center; padding: var(--space-lg) var(--space-md); }
.service-card .service-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-sm);
  background: var(--orange-lightest);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition-base);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); }
.service-card h3 { font-size: var(--fs-h4); margin-bottom: var(--space-xs); }
.service-card p { color: var(--text-secondary); font-size: var(--fs-small); line-height: 1.5; }
.service-card .more { display: inline-block; margin-top: var(--space-sm); font-size: var(--fs-small); font-weight: 600; }

/* 卖点徽章卡片 */
.advantage-card {
  position: relative;
  background: var(--bg-white);
  border-left: 4px solid var(--orange-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.advantage-card .adv-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--orange-lighter);
  line-height: 1;
}
.advantage-card h3 { font-size: var(--fs-h4); margin: var(--space-xs) 0; }
.advantage-card p { color: var(--text-secondary); font-size: var(--fs-small); }

/* 网格 */
.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 合作伙伴文字卡片 */
.partner-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.partner-card:hover {
  border-color: var(--orange-light);
  color: var(--orange-primary);
  background: var(--orange-lightest);
  transform: translateY(-3px);
}

/* ===== 数据统计 ===== */
.stat-box { text-align: center; }
.stat-box .stat-num {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 700;
  color: var(--orange-primary);
  line-height: 1;
}
.stat-box .stat-num .plus { color: var(--orange-light); }
.stat-box .stat-label { color: var(--text-secondary); margin-top: var(--space-xs); font-size: var(--fs-small); }

/* ===== 时间线 ===== */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 0 var(--space-md); }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(var(--orange-primary), var(--orange-lighter));
  transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; padding: 0 var(--space-lg) var(--space-lg) 0; }
.timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 var(--space-lg) var(--space-lg); }
.timeline-dot {
  position: absolute;
  top: 6px;
  right: -9px;
  width: 18px; height: 18px;
  background: var(--orange-primary);
  border: 4px solid var(--bg-white);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 4px var(--orange-lightest);
  z-index: 2;
}
.timeline-item:nth-child(even) .timeline-dot { left: -9px; right: auto; }
.timeline-content {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--orange-light);
}
.timeline-date { color: var(--orange-primary); font-weight: 700; font-size: var(--fs-small); font-family: var(--font-mono); }
.timeline-content h4 { margin: var(--space-xs) 0; font-size: var(--fs-body); }
.timeline-content p { color: var(--text-secondary); font-size: var(--fs-small); }
/* 入场动画 */
.timeline-item.reveal:nth-child(odd) { transform: translateX(-30px); }
.timeline-item.reveal:nth-child(even) { transform: translateX(30px); }
.timeline-item.reveal.active { transform: translateX(0); }

/* ===== 值值观卡片 ===== */
.value-card { text-align: center; padding: var(--space-lg) var(--space-md); }
.value-card .value-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-sm);
  background: var(--orange-lightest);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.value-card h3 { font-size: var(--fs-h4); margin-bottom: var(--space-xs); }
.value-card p { color: var(--text-secondary); font-size: var(--fs-small); }

/* ===== 资质卡片 ===== */
.honor-card { text-align: center; padding: var(--space-lg) var(--space-md); }
.honor-card .honor-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-sm);
  background: var(--orange-lightest);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
}
.honor-card h3 { font-size: var(--fs-h4); margin-bottom: var(--space-xs); }
.honor-card p { color: var(--text-secondary); font-size: var(--fs-small); }

/* ===== 服务流程步骤 ===== */
.process-steps { display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.process-step { flex: 1; min-width: 140px; text-align: center; position: relative; }
.process-step .step-num {
  width: 48px; height: 48px;
  margin: 0 auto var(--space-sm);
  background: var(--orange-primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  font-family: var(--font-mono);
}
.process-step h4 { font-size: var(--fs-small); margin-bottom: var(--space-xs); }
.process-step p { color: var(--text-tertiary); font-size: 13px; }
.process-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 12px; right: -12px;
  color: var(--orange-lighter);
  font-size: 20px;
}

/* ===== 页脚 ===== */
.footer { background: #1A1A2E; color: #B0B0C0; padding: var(--space-xl) 0 var(--space-md); }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-lg); }
.footer-col h4 { color: #fff; font-size: var(--fs-body); margin-bottom: var(--space-sm); }
.footer-col p, .footer-col a { color: #B0B0C0; font-size: var(--fs-small); line-height: 1.8; }
.footer-col a:hover { color: var(--orange-light); }
.footer-brand .nav-logo { color: #fff; margin-bottom: var(--space-sm); }
.footer-brand .footer-slogan { color: var(--orange-lighter); font-size: var(--fs-small); margin-top: var(--space-xs); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 13px;
  color: #808090;
}

/* ===== 表单 ===== */
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: var(--fs-small); color: var(--text-primary); }
.form-group label .req { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  background: var(--bg-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}
.form-control.error { border-color: var(--danger); }
.form-control.success { border-color: var(--success); }
.form-msg { font-size: 13px; margin-top: 6px; min-height: 18px; }
.form-msg.error { color: var(--danger); }
.form-msg.success { color: var(--success); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ===== FAQ 折叠 ===== */
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: var(--space-sm); overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-md);
  font-weight: 600;
  font-size: var(--fs-body);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  background: var(--bg-white);
}
.faq-question:hover { background: var(--orange-lightest); }
.faq-question .faq-icon { color: var(--orange-primary); transition: transform var(--transition-fast); flex-shrink: 0; }
.faq-item.active .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}
.faq-answer-inner { padding: 0 var(--space-md) var(--space-md); color: var(--text-secondary); font-size: var(--fs-small); line-height: 1.7; }

/* ===== CTA 区块 ===== */
.cta-section { text-align: center; padding: var(--space-2xl) 0; }
.cta-section h2 { color: #fff; font-size: var(--fs-h1); margin-bottom: var(--space-sm); }
.cta-section p { color: rgba(255,255,255,0.9); font-size: var(--fs-h4); margin-bottom: var(--space-lg); }

/* ===== 页面通用 Hero ===== */
.page-hero { padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl); text-align: center; }
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: var(--space-sm); }
.page-hero p { color: var(--text-secondary); font-size: var(--fs-h4); max-width: 640px; margin: 0 auto; }

/* ===== 城市标签云 ===== */
.city-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.city-tag {
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.city-tag:hover { background: var(--orange-primary); color: #fff; border-color: var(--orange-primary); transform: translateY(-3px); }

/* ===== 清洗喵动画类（内联 SVG 用） ===== */
.mist-drop { animation: mist 2s ease-in-out infinite; transform-origin: center; }
.mist-drop:nth-child(2) { animation-delay: 0.4s; }
.mist-drop:nth-child(3) { animation-delay: 0.8s; }
@keyframes mist {
  0%, 100% { opacity: 0.1; transform: scale(0.8); }
  50% { opacity: 0.5; transform: scale(1.1); }
}
.mascot-tail { transform-origin: 130px 420px; animation: tail-wag 3s ease-in-out infinite; }
@keyframes tail-wag {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}
.mascot-bounce { animation: mascot-bounce-in 0.8s ease both; }
@keyframes mascot-bounce-in {
  0% { opacity: 0; transform: translateY(30px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
