/* 汽车租赁平台 - 全局样式 */

/* Tailwind CSS CDN 已在 HTML 中引入，此处仅定义自定义样式 */

/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

/* 全局字体设置 */
* {
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif
}

/* Banner 标题/副标题 - 字体随视口宽度平滑缩放 */
.banner-title {
  font-size: clamp(1.5rem, 2.2vw, 3.75rem) !important;
}

.banner-subtitle {
  font-size: clamp(0.875rem, 0.8vw, 1.25rem) !important;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 导航栏模糊背景效果 */
.nav-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Hero 动画 */
.hero-fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 卡片悬停效果 */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* FAQ 手风琴动画 */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.open {
  max-height: 500px;
}

/* 旋转箭头动画 */
.rotate-icon {
  transition: transform 0.3s ease;
}

.rotate-icon.open {
  transform: rotate(180deg);
}

/* 移动端菜单动画 */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Instructions 页签 */
.instructions-tab {
  color: #6b7280;
  cursor: pointer;
}

.instructions-tab:hover {
  background-color: #f9fafb;
}

.instructions-tab.active {
  color: #1f2937;
  background-color: #f9fafb;
}

.instructions-tab .instructions-icon {
  transition: transform 0.3s ease;
}

.instructions-tab.active .instructions-icon {
  transform: rotate(45deg);
}

.instructions-panel {
  display: none;
}

.instructions-panel.active {
  display: block;
}

/* Markdown 渲染样式 */
.markdown-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.markdown-body h2:first-child {
  margin-top: 0;
}

.markdown-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.markdown-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #374151;
}

.markdown-body ul, .markdown-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-body ul { list-style-type: disc; }
.markdown-body ol { list-style-type: decimal; }

.markdown-body li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.markdown-body strong {
  font-weight: 600;
  color: #1f2937;
}

.markdown-body a {
  color: #3c7d5c;
  text-decoration: underline;
}

.markdown-body a:hover {
  color: #33654c;
}

.markdown-body blockquote {
  border-left: 4px solid #79B897;
  padding: 1rem 1.25rem;
  color: #6b7280;
  margin: 1.5rem 0;
  font-style: italic;
  background: #f0f7f3;
  border-radius: 0 0.5rem 0.5rem 0;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

.markdown-body img {
  width: 100%;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* 表格样式 */
.terms-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.terms-table th,
.terms-table td {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.terms-table th {
  background-color: #f9fafb;
  font-weight: 600;
}

/* 高亮文本 */
.highlight {
  background: linear-gradient(120deg, #79B897 0%, #4e9b74 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 按钮渐变 */
.btn-gradient {
  background: linear-gradient(135deg, #4e9b74 0%, #3c7d5c 100%);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #3c7d5c 0%, #33654c 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* 门店位置地图容器 */
.map-container {
  position: relative;
  padding-bottom: 59.25%; /* 56.25为 16:9 此为基于16:9宽高比进行微调的结果 */
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 联系我们地图容器 */
.map-container-cu {
  position: relative;
  padding-bottom: 53.25%; /* 56.25为 16:9 此为基于16:9宽高比进行微调的结果 */
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}

.map-container-cu iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 驾驶提示卡片 */
.tip-card {
  border-left: 4px solid #4e9b74;
  transition: all 0.3s ease;
}

.tip-card:hover {
  background-color: #dceee4;
}

/* 交通标志 */
.traffic-sign {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

/* 表单项聚焦效果 */
.form-input:focus {
  border-color: #4e9b74;
  box-shadow: 0 0 0 3px rgba(78, 155, 116, 0.1);
}

/* 页脚链接悬停 */
.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #4e9b74;
}

/* 社交媒体图标 */
.social-icon {
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  color: #4e9b74;
}

/* ── Hero 轮播 ── */
.hero-carousel {
  min-height: 700px;
}

.carousel-slide {
  z-index: 0;
}

.carousel-slide.active {
  z-index: 1;
}

.carousel-title {
  pointer-events: none;
}

/* 移动端遮罩层 */
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* 车队卡片图片悬停缩放 */
.fleet-card-img {
  transition: transform 0.3s ease;
}

.fleet-card:hover .fleet-card-img {
  transform: scale(1.05);
}

/* 评价引号图标 */
.review-quote {
  color: rgba(78, 155, 116, 0.2);
}

/* ── 资质认证 Logo 滚动 ── */
.cert-marquee-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.cert-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
}

.cert-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.75rem 3rem;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.cert-logo-item:hover {
  opacity: 1;
}
