/* ==================== 基础样式 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-color: #0f4c81;
  --primary-dark: #0c3d67;
  --secondary-color: #f5c542;
  --secondary-dark: #e0b339;
  --light-color: #ffffff;
  --dark-color: #0b2c4a;
  --text-light: #e6f3fb;
  --text-muted: #cfe3f2;
  --border-radius: 14px;
  --border-radius-lg: 20px;
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0b2c4a 0%, #0e4b6e 100%) fixed;
  color: var(--light-color);
  line-height: 1.35; /* 全局基础行距 - 控制所有文本默认行高 */
  overflow-x: hidden;
  font-size: 1.1rem;
}

/* ==================== 头部导航 ==================== */
.assessment-header {
  background: rgba(11, 44, 74, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 2px solid var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.assessment-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 0.5rem;
  gap: 0.5rem;
}

/* ===== 左：返回首页（包含Logo） ===== */
.back-btn {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 0.5rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  white-space: normal;
  text-align: center;
}

.back-btn:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.logo-image {
  object-fit: contain;
  width: auto;
  height: 30px;
  display: block;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.back-btn:hover .logo-image {
  transform: scale(1.05);
}

/* ===== 右：典当摩托（包含Logo） ===== */
.nav-forward {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.7rem;
  padding: 0.5rem 0.5rem;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  white-space: normal;
  text-align: center;
}

.nav-forward:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.1);
}

.nav-icon {
  height: 30px;
  width: auto;
  display: block;
}

/* ===== 响应式调整（手机端 768px及以下） ===== */
@media (max-width: 768px) {
  .assessment-header .container {
    padding: 0.2rem 0.2rem;
    gap: 0.2rem;
  }
  
  .back-btn,
  .nav-forward {
    padding: 0.2rem 0.2rem;
    font-size: 0.6rem;
    gap: 1px;
    white-space: normal;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .logo-image,
  .nav-icon {
    height: 20px;
  }
}

/* ==================== 通用容器 ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* ==================== 六宫格网格布局 ==================== */
.asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 8px 12px;
  margin: var(--spacing-xl) auto;
}

/* 为每个网格项分配位置 */
#our-services {
  grid-column: 1;
  grid-row: 1;
}

#assessment-system {
  grid-column: 2;
  grid-row: 1;
}

#contact-form {
  grid-column: 3;
  grid-row: 1;
}

#electronics-pawn {
  grid-column: 1;
  grid-row: 2;
}

#motor-pawn {
  grid-column: 2;
  grid-row: 2;
}

#contact-navigation {
  grid-column: 3;
  grid-row: 2;
}

/* ==================== 通用横幅样式 ==================== */
.full-banner {
  width: 100%;
  height: 165px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-color);
}

.full-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ==================== 快速操作栏 ==================== */
.quick-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin: var(--spacing-md) auto;
  flex-wrap: wrap;
}

.quick-action-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  flex: 1;
  min-width: 260px;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.quick-action-card::after {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 5px;
  background: var(--secondary-color);
  border-radius: 3px;
}

.quick-action-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 197, 66, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.action-icon { 
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm); 
}

.action-title { 
  color: var(--secondary-color); 
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px #000;
  margin-bottom: var(--spacing-sm);
}

.action-description { 
  color: var(--text-light); 
  margin-bottom: var(--spacing-md); 
  font-size: 1rem; 
  line-height: 1.2; /* 快速操作卡描述行距 */
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin: 0 auto;
  min-width: 160px;
}

.action-btn.whatsapp {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.action-btn.whatsapp:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 197, 66, 0.4);
}

.action-btn.location {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.action-btn.location:hover {
  background-color: rgba(245, 197, 66, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 197, 66, 0.2);
}

/* ==================== 统一卡片组件 ==================== */
.unified-card {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(15, 76, 129, 0.4), 
    rgba(245, 197, 66, 0.2));
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  border: 2px solid rgba(245, 197, 66, 0.4);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: var(--spacing-md); /* 或具体像素值，如 20px */
  margin-bottom: var(--spacing-lg);
}

.unified-card::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 6px;
  background: var(--secondary-color);
  border-radius: 3px;
  z-index: 2;
}

.unified-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(245, 197, 66, 0.3);
  border-color: rgba(245, 197, 66, 0.6);
}

/* 卡片标题 */
.card-title {
  color: var(--secondary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 2px #000;
  line-height: 1.2; /* 卡片标题行距 */
}

/* 卡片描述 */
.card-desc {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.2; /* 卡片描述文本行距 */
}
.card-highlight {
  color: var(--secondary-color);
  font-weight: bold;
  display: inline-block;
  margin-top: 0.2rem; /* 高亮文本上边距 */
}

/* 统一行动号召按钮 */
.card-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: var(--dark-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  margin: var(--spacing-md) 0;
  border: 3px solid transparent;
  min-width: 220px;
  margin: 0 auto;
}

/* 卡片列表项 */
.card-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
  font-size: 1rem;
  text-align: left;
  line-height: 1.2; /* 列表项行距 */
}

.list-icon {
  color: var(--secondary-color);
  font-size: 1.1rem;
  min-width: 24px;
  display: flex;
  justify-content: center;
}

/* SEO 文本信息区块 + 贷款信息区块 */
.seo-text-content.loan-info-section {
  background: rgba(15, 76, 129, 0.25);
  border: 1px solid rgba(245, 197, 66, 0.25);
  margin: var(--spacing-lg) auto;
}

.seo-text-content.loan-info-section h2 {
  text-align: center;
  color: var(--secondary-color);
  font-size: 1.6rem;
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2; /* 贷款区块标题行距 */
}

/* ==================== 贷款信息网格布局 ==================== */
.balanced-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.grid-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-height: 200px;
  justify-content: space-between;
}

.grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(245, 197, 66, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.card-header {
  text-align: center;
  margin-bottom: 0.8rem;
}

.card-icon-large {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  color: var(--secondary-color);
  text-shadow: 0 0 8px rgba(245, 197, 66, 0.4);
}

.card-header h3 {
  color: var(--text-light);
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2; /* 贷款卡片小标题行距 */
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 贷款信息卡片正文段落 - 紧凑行距 */
.grid-card .card-body p {
  color: var(--text-muted);
  margin: 0.1rem 0 !important; /* 最小边距 */
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.0 !important; /* 贷款卡片正文行距 - 非常紧凑 */
}

/* 强调文本样式 */
.grid-card .card-body strong {
  color: var(--text-light);
  font-weight: 600;
}

.warning-box {
  background: rgba(245, 197, 66, 0.15);
  border-radius: 8px;
  padding: 0.6rem;
  margin-top: 0.8rem;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  border-left: 3px solid var(--secondary-color);
}

.warning-icon-small {
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--secondary-color);
  margin-top: 0.05rem;
}

.warning-box p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
  text-align: left;
  line-height: 1.0 !important; /* 警告框文本行距 - 非常紧凑 */
}

/* 贷款信息响应式 */
@media (max-width: 992px) {
  .balanced-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .balanced-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-card {
    min-height: auto;
    padding: 1.2rem;
  }
  
  /* 移动端更紧凑 */
  .grid-card .card-body p {
    margin: 0.08rem 0 !important;
    font-size: 0.85rem;
    line-height: 1.0 !important; /* 移动端贷款卡片正文行距 - 更加紧凑 */
  }
  
  .warning-box {
    padding: 0.5rem;
    margin-top: 0.6rem;
  }
  
  .warning-box p {
    font-size: 0.75rem;
    line-height: 1.0 !important; /* 移动端警告框行距 */
  }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ==================== 响应式设计 ==================== */

/* 平板竖屏和横屏（769px-1200px） */
@media (max-width: 1200px) and (min-width: 769px) {
  .asymmetric-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 4px 8px;
  }

  #assessment-system { 
    grid-column: 1 / span 2; 
    grid-row: 1; 
  }
  
  #motor-pawn { 
    grid-column: 1; 
    grid-row: 2; 
  }
  
  #electronics-pawn { 
    grid-column: 2; 
    grid-row: 2; 
  }
  
  #our-services { 
    grid-column: 1; 
    grid-row: 3; 
  }
  
  #contact-navigation { 
    grid-column: 2; 
    grid-row: 3; 
  }
  
  .quick-actions { 
    flex-direction: row; 
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
  
  .quick-action-card { 
    flex: 1 1 calc(50% - var(--spacing-md));
    min-width: 280px;
    max-width: none;
  }
  
  .contact-info {
    max-width: 600px;
  }
}

/* 手机端（768px及以下） */
@media (max-width: 768px) {
  /* 调整横幅高度 */
  .full-banner {
    height: 75px;
  }
  
  /* 手机端六宫格间距调整 */
  .asymmetric-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: var(--spacing-md) auto;
  }
  
  /* 手机端显示顺序 */
  #assessment-system { order: 1; }
  #motor-pawn { order: 2; }
  #electronics-pawn { order: 3; }
  #our-services { order: 4; }
  #contact-form { order: 5; }
  #contact-navigation { order: 6; }
  
  /* 统一卡片响应式 */
  .unified-card {
    padding: var(--spacing-md);
    margin-bottom: 4px;
  }
  
  .card-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.0; /* 移动端卡片标题行距 */
  }
  
  .card-desc {
    font-size: 0.95rem;
    line-height: 1.2; /* 移动端卡片描述行距 */
    margin-bottom: var(--spacing-sm);
  }
  
  .card-cta-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    min-width: 180px;
    margin-top: var(--spacing-sm);
  }
  
  .card-cta-btn:active {
    transform: scale(0.98);
  }
  
  /* 快速操作栏 */
  .quick-actions {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: var(--spacing-sm) auto;
  }
  
  .quick-action-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 4px;
    padding: var(--spacing-md);
  }
  
  .action-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .action-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .action-description {
    font-size: 0.9rem;
    line-height: 1.2; /* 移动端快速操作描述行距 */
    margin-bottom: var(--spacing-sm);
  }
  
  .action-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    min-width: 160px;
  }
  
  /* SEO格手机端调整 */
  .seo-text-content {
    margin: var(--spacing-md) auto;
    padding: var(--spacing-md);
    font-size: 0.85rem;
    line-height: 1.2; /* 移动端SEO文本行距 */
  }
  
  .seo-text-content h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.0; /* 移动端SEO标题行距 */
  }
  
  .seo-text-content p {
    margin-bottom: 0.5rem;
  }
  
  /* 落地页信任区块手机端调整 */
  .trust-box {
    margin: 1rem 0 0.5rem;
    padding: 0.8rem 1rem;
    gap: 0.5rem;
    grid-template-columns: 1fr;
  }
  
  .trust-item {
    font-size: 0.75rem;
    line-height: 1.2; /* 移动端信任项行距 */
  }
}

/* ==================== 图库页面专用样式 ==================== */
.gallery-item {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: var(--spacing-md) 0;
  border-radius: var(--border-radius);
}

.gallery-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.gallery-item figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-top: var(--spacing-sm);
  padding: 0 var(--spacing-sm);
  line-height: 1.0; /* 图库说明文字行距 */
}

/* 只在图库页面中调整统一卡片的样式 */
.gallery-page .unified-card {
  padding: var(--spacing-lg);
}

/* 确保图库页面中的卡片标题有适当间距 */
.gallery-page .card-subtitle {
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-align: center;
  line-height: 1.2; /* 图库页面卡片副标题行距 */
}

/* ==================== 页脚优化 - 完整版 ==================== */
footer {
  background: rgba(11, 44, 74, 0.9);
  margin-top: var(--spacing-md);
  padding: var(--spacing-md) 0 var(--spacing-sm);
  border-top: 2px solid var(--secondary-color);
}

.footer-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.copyright {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  line-height: 1.0;
}

.highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.company-info {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0 0.5rem;
}

/* 工作时间信息 */
.operating-hours {
  color: var(--text-muted);
  font-size: 0.8rem; /* 工作时间文字大小 */
  line-height: 1.2;
  margin: 0.2rem 0;
}

/* 安全提示信息 */
.security-note {
  color: var(--text-muted);
  font-size: 0.8rem; /* 安全提示文字大小（更小） */
  line-height: 1.2;
  margin: 0.3rem 0 0;
  opacity: 0.8;
}

/* 联系电话布局 */
.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem auto;
  padding: 0.4rem 0;
  max-width: 550px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* 落地页信任区块（保留原有） */
.trust-box {
  margin: 1.5rem 0 1rem;
  padding: 1rem 1.2rem;
  background: rgba(15, 76, 129, 0.35);
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  text-align: center;
}

.trust-item {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
}

.trust-item strong {
  color: #f5c542;
  font-weight: 600;
}

/* ==================== 移动端响应式 ==================== */
@media (max-width: 768px) {
  footer {
    padding: var(--spacing-sm) 0;
  }
  
  .copyright {
    font-size: 1rem;
  }
  
  .contact-info {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
  }
  
  .contact-link {
    padding: 5px 10px;
    font-size: 0.85rem;
  }
  
  .operating-hours {
    font-size: 0.7rem; /* 移动端工作时间文字稍小 */
    line-height: 1.0;
  }
  
  .security-note {
    font-size: 0.7rem; /* 移动端安全提示文字更小 */
    line-height: 1.0;
  }
}
