/* =========================================================
   美洲豹电动车 - 全站公共样式（设计语言新宪法）
   小马嘟嘟现代简约 + 美洲豹品牌橙
   主色：#f5a516 / hover：#e0940a / 浅橙底：#fff6e6
   文字：标题 #222 / 正文 #555 / 辅助 #999
   组件：圆角 6px，轻阴影 0 4px 20px rgba(0,0,0,0.05)，hover 上浮 6px
   ========================================================= */

:root {
  /* 品牌橙 */
  --c-primary: #f5a516;
  --c-primary-dark: #e0940a;
  --c-primary-light: #ffc54d;
  --c-accent: #fdb813;
  --c-accent-dark: #E8A020;
  --c-orange-soft: #fff6e6;
  --c-orange-pale: #fffaf0;

  /* 文字三阶灰 */
  --c-dark: #222;
  --c-text: #555;
  --c-text-light: #666;
  --c-text-mute: #999;

  /* 背景 */
  --c-bg: #fff;
  --c-bg-soft: #f8f9fa;
  --c-border: #e5e8ec;

  /* 深底（页脚用） */
  --c-footer-bg: #1f2937;
  --c-footer-text: #9ca3af;

  /* 阴影：轻 */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12);

  /* 圆角：统一 6px */
  --radius-sm: 6px;
  --radius-md: 6px;
  --radius-lg: 6px;

  /* 过渡 */
  --t-fast: 0.2s ease;
  --t-base: 0.3s ease;
  --t-slow: 0.5s ease;

  /* 布局 */
  --header-h: 72px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--c-text);
  line-height: 1.6;
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { padding-top: var(--header-h); }

h1, h2, h3, h4, h5, h6 { color: var(--c-dark); font-weight: 700; line-height: 1.3; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; outline: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== 通用按钮：6px 圆角矩形 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(245, 165, 22, 0.3); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(247, 176, 40, 0.3); }
.btn-ghost { background: transparent; color: var(--c-text); border: 1px solid var(--c-border); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline { background: #fff; color: var(--c-dark); border: 1px solid var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }

/* ===== 顶部导航：白底深字 + 橙色激活下划线 ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #fff;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--t-base), background var(--t-base);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-dark);
}
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(245, 165, 22, 0.35);
}
.logo-icon svg { width: 24px; height: 24px; }
.logo-text-wrap { line-height: 1.1; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: 1px; color: var(--c-dark); }
.logo-sub { font-size: 10px; color: var(--c-text-mute); letter-spacing: 1.5px; }
.nav { display: flex; gap: 36px; }
.nav a {
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color var(--t-fast);
}
.nav a:hover { color: var(--c-primary); }
.nav a.active { color: var(--c-primary); }
.nav a.active::after,
.nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
}
.nav-cta {
  background: var(--c-primary);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--c-primary-dark); color: #fff !important; }

/* 首页 Hero 透明导航（覆盖在首屏大图上） */
.header.home-header {
  background: transparent;
  box-shadow: none;
}
.header.home-header .logo-text { color: #fff; }
.header.home-header .logo-sub { color: rgba(255, 255, 255, 0.7); }
.header.home-header .nav a { color: rgba(255, 255, 255, 0.88); }
.header.home-header .nav a:hover,
.header.home-header .nav a.active { color: #fff; }
/* 滚动后变白底 */
.header.home-header.scrolled {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.header.home-header.scrolled .logo-text { color: var(--c-dark); }
.header.home-header.scrolled .logo-sub { color: var(--c-text-mute); }
.header.home-header.scrolled .nav a { color: var(--c-text); }
.header.home-header.scrolled .nav a:hover,
.header.home-header.scrolled .nav a.active { color: var(--c-primary); }

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  color: var(--c-dark);
  font-size: 20px;
  cursor: pointer;
}
.header.home-header:not(.scrolled) .menu-toggle { color: #fff; }
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #fff;
  flex-direction: column;
  padding: 12px 24px;
  display: none;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--c-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 15px;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--c-primary); }

/* ===== 右侧悬浮客服 ===== */
.float-contact {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-item {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 4px 16px rgba(245, 165, 22, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all var(--t-base);
  position: relative;
  color: #fff;
}
.float-item:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 24px rgba(245, 165, 22, 0.45); background: var(--c-primary-dark); }
.float-phone { background: var(--c-primary); }
.float-wechat { background: var(--c-accent); }
.float-qq { background: var(--c-primary-dark); }
.float-top { background: var(--c-accent-dark); }
.float-item i { color: #fff; }
.float-tip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  color: var(--c-text);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.float-tip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: #fff;
  box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.05);
}
.float-item:hover .float-tip { opacity: 1; }
.wechat-qrcode {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-size: 12px;
  color: var(--c-text-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.wechat-qrcode img { width: 120px; height: 120px; display: block; margin: 0 auto 6px; border-radius: var(--radius-sm); }
.wechat-qrcode::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: #fff;
  box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.05);
}
.float-wechat:hover .wechat-qrcode { opacity: 1; }

/* ===== 通用页脚：深灰底，浅字，链接 hover 橙 ===== */
.footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-text);
  padding: 56px 24px 24px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand {
  background: var(--c-primary);
  display: inline-block;
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.footer-desc { color: rgba(255, 255, 255, 0.65); font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-left: 12px; }
.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 16px;
  background: var(--c-primary);
  border-radius: 2px;
}
.footer-col a, .footer-col p { display: block; color: rgba(255, 255, 255, 0.6); font-size: 14px; line-height: 2; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--c-primary); }
.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom a:hover { color: var(--c-primary); }
.footer-bottom img { width: 16px; height: 16px; }
.footer-bottom-wraps { display: inline-flex; gap: 6px; }

/* ===== 通用 Banner 头部 ===== */
.page-banner {
  position: relative;
  height: 320px;
  background: linear-gradient(135deg, #1a2733 0%, #0f1922 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(245, 165, 22, 0.28), transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(253, 184, 19, 0.2), transparent 60%);
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
}
.page-banner h1 {
  position: relative;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 12px;
  z-index: 1;
}
.page-banner p {
  position: relative;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  z-index: 1;
}
.breadcrumb {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.6); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { color: var(--c-primary); margin: 0 6px; }

/* ===== 通用 Section 标题 ===== */
.section { padding: 80px 24px; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title .eyebrow {
  display: inline-block;
  color: var(--c-primary);
  font-size: 13px;
  letter-spacing: 4px;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 16px;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--c-primary);
  margin: 14px auto 0;
  border-radius: 2px;
}
.section-title p { color: var(--c-text-light); font-size: 15px; max-width: 640px; margin: 0 auto; }

/* 内页通用 section-header（about/business/contact/vehicles/news 共用） */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .eyebrow {
  color: var(--c-primary);
  font-size: 13px;
  letter-spacing: 4px;
  margin-bottom: 12px;
  display: inline-block;
}
.section-header h2 {
  font-size: 36px;
  color: var(--c-dark);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--c-primary);
  margin: 14px auto 0;
  border-radius: 2px;
}
.section-header p { color: var(--c-text-light); font-size: 15px; }

/* ===== 卡片基础：小圆角 + 轻阴影 + hover 上浮 6px ===== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }

/* 通用小按钮（内页卡片用） */
.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--t-base);
  align-self: flex-start;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-sm:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 165, 22, 0.3);
}

/* 通用筛选标签（vehicles/news 共用） */
.tab-btn, .news-tab {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: #fff;
  font-size: 14px;
  color: var(--c-text);
  cursor: pointer;
  transition: all var(--t-base);
  font-weight: 500;
}
.tab-btn:hover, .news-tab:hover { color: var(--c-primary); border-color: var(--c-primary); }
.tab-btn.active, .news-tab.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  box-shadow: 0 4px 12px rgba(245, 165, 22, 0.25);
}

/* 通用分页 */
.pagination { margin-top: 48px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.page-btn {
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--t-base);
  color: var(--c-text);
}
.page-btn:hover:not(.active):not(:disabled) { border-color: var(--c-primary); color: var(--c-primary); }
.page-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 入场动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式：平板 ===== */
@media (max-width: 992px) {
  :root { --header-h: 64px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 60px 20px; }
  .section-title h2, .section-header h2 { font-size: 28px; }
  .page-banner { height: 280px; }
  .page-banner h1 { font-size: 32px; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  body { font-size: 14px; }
  .nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .logo-text { font-size: 16px; }
  .logo-sub { font-size: 9px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 16px; }
  .section-title, .section-header { margin-bottom: 36px; }
  .section-title h2, .section-header h2 { font-size: 24px; }
  .section-title p, .section-header p { font-size: 14px; }
  .page-banner { height: 220px; }
  .page-banner h1 { font-size: 26px; letter-spacing: 2px; }
  .page-banner p { font-size: 12px; }
  .container { padding: 0 16px; }
  .float-contact { right: 12px; bottom: 70px; }
  .float-item { width: 46px; height: 46px; font-size: 18px; }
  .footer-bottom { font-size: 12px; justify-content: center; text-align: center; }
}
