/* ========================================
   壹波车服官网 · 前台公共样式
   ======================================== */

:root {
  --brand: #2E86AB;
  --brand-deep: #1A5F7A;
  --brand-light: #E8F4F8;
  --accent: #E8A838;
  --accent-hover: #D4962F;
  --eco: #27AE60;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #1A1A2E;
  --text2: #6B7280;
  --text3: #9CA3AF;
  --border: #E5E7EB;
  --shadow: 0 1px 4px rgba(0,0,0,0.05);
  --shadow-hover: 0 6px 16px rgba(0,0,0,0.08);
  --r: 10px;
  --r-sm: 6px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

/* 强制覆盖系统暗色模式：手机微信/Chrome/Safari 等 */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #F5F7FA !important;
    color: #1A1A2E !important;
  }
  .header, .footer, .biz-card, .qual-card, .showcase-card, .news-card, .modal-content {
    background-color: #FFFFFF !important;
    color: #1A1A2E !important;
  }
  .sec-title, .sec-sub { color: #1A1A2E !important; }
  a { color: inherit !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #F5F7FA;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea {
  font-family: inherit;
  font-size: 16px;
  outline: none;
  border: none;
  background: transparent;
}

/* ========================================
   区块标题（标题+副标题同行）
   ======================================== */
.section-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 16px;
}

.section-header .title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.section-header .subtitle {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    flex: 1;
    min-width: 200px;
}

/* ========================================
   区块容器（统一通栏白色卡片，视觉 100%）
   ======================================== */
.carousel-sec,
.biz-sec,
.trust-sec,
.news-sec {
  width: 100%;
  margin: 0 0 12px;
  padding: 16px 4% 18px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r);
}

/* ========================================
   轮播图
   ======================================== */
.carousel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.carousel {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  box-shadow: var(--shadow);
  width: 100%;
}

.carousel-link { display: block; width: 100%; height: 100%; }
.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}
.carousel-slide { flex: 0 0 100%; height: 100%; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  letter-spacing: 3px;
}
.carousel-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
}
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all .2s;
}
.carousel-dots .dot.active {
  background: #fff;
  width: 14px;
  border-radius: 3px;
}

/* ========================================
   主要业务卡片
   ======================================== */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  justify-items: stretch;
}

.biz-card {
  background: var(--card);
  border-radius: var(--r);
  padding: 14px 18px;
  border: 1px solid var(--border);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.biz-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--eco));
  opacity: 0;
  transition: opacity .2s;
}
.biz-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}
.biz-card:hover::before { opacity: 1; }

.biz-card .biz-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.biz-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 20px;
  overflow: hidden;
  background: var(--brand-light);
  flex-shrink: 0;
}
.biz-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}
.biz-card .icon .icon-fallback {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

.biz-card .biz-company {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
  line-height: 1.35;
}
.biz-card .biz-company .zt-line {
  display: block;
  word-break: break-all;
}
.biz-card .biz-company .zt-line .zt-jc {
  color: var(--text3);
  font-weight: 400;
}

.biz-card:nth-child(1) .icon { background: #E8F5E9; }
.biz-card:nth-child(2) .icon { background: #F3E5F5; }
.biz-card:nth-child(3) .icon { background: #E0F7FA; }
.biz-card:nth-child(4) .icon { background: #FFF3E0; }

.biz-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
  text-align: left;
}
.biz-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 10px;
  text-align: left;
}

.biz-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-sm-main {
  background: var(--brand);
  color: #fff;
}
.btn-sm-main:hover { background: var(--brand-deep); }
.btn-sm-sec {
  background: var(--bg);
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-sm-sec:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ========================================
   热销展示（6列网格）
   ======================================== */
.showcase {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 4% 18px;
  margin: 0 0 12px;
  width: 100%;
}

.showcase-inner {
  max-width: 100%;
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  justify-items: stretch;
}

.showcase-grid .show-item {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
}
.showcase-grid .show-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.showcase-grid .show-item .show-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #E8F5E9, #E3F2FD);
  display: grid;
  place-items: center;
  color: var(--text3);
  font-size: 11px;
  overflow: hidden;
}
.showcase-grid .show-item .show-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 卡片内三列：名称 | 价格 | 标签 */
.showcase-grid .show-item .show-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 8px;
  gap: 4px;
}
.showcase-grid .show-item .show-info .name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.showcase-grid .show-item .show-info .price {
  font-size: 13px;
  color: #E74C3C;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.showcase-grid .show-item .show-info .tag {
  font-size: 10px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: right;
}

.showcase-row-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  padding-left: 2px;
  text-align: left;
}
.showcase-row-label small {
  font-weight: 400;
  font-size: 12px;
  color: var(--text3);
  margin-left: 8px;
}

/* ========================================
   资质实力（左文右图）
   ======================================== */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  justify-items: stretch;
}

.trust-block {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 16px;
  transition: all .2s;
}
.trust-block:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}

.trust-block .trust-left {
  margin-bottom: 10px;
}
.trust-block .trust-left h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-deep);
  text-align: left;
}
.trust-block .trust-left .trust-enterprise {
  font-size: 13px;
  color: var(--brand);
  font-weight: 500;
  text-align: left;
}
.trust-block .trust-left p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-top: 4px;
  text-align: left;
}

.trust-block .trust-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.trust-block .trust-img {
  aspect-ratio: 4/3;
  min-height: 80px;
  background: linear-gradient(135deg, #E8F5E9, #E3F2FD);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--text3);
  font-size: 11px;
  border: 1px solid var(--border);
  overflow: hidden;
  font-weight: 500;
  position: relative;
}
.trust-block .trust-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trust-block .trust-img .img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  text-align: center;
}

/* ========================================
   资讯快览
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  justify-items: stretch;
}

.news-card {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
}
.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.news-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #E8F5E9, #E3F2FD);
  display: grid;
  place-items: center;
  color: var(--text3);
  font-size: 11px;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-body {
  padding: 6px 8px 8px;
}
.news-body .news-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
.news-body .news-summary {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
.news-body .news-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--brand);
  background: var(--brand-light);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

/* ========================================
   全局占位文字（统一左对齐）
   ======================================== */
.placeholder-text {
    grid-column: 1 / -1;
    text-align: left !important;
    color: var(--text3);
    padding: 8px 0;
    font-size: 13px;
    display: block;
    width: 100%;
}

/* 手机端保持一致 */
@media (max-width: 768px) {
    .placeholder-text {
        text-align: left !important;
        padding-left: 0;
    }
}

/* ========================================
   底部
   ======================================== */
.site-footer {
  background: #0F2933;
  color: #94A3B8;
  padding: 24px 4% 16px;
  margin-top: auto;
}
.site-footer-inner {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.site-footer .footer-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 6px;
}
.site-footer .footer-contact a {
  color: #94A3B8;
  text-decoration: none;
}
.site-footer .footer-contact a:hover {
  color: #fff;
}
.site-footer .footer-bot {
  font-size: 12px;
  color: #64748B;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
  margin-top: 6px;
}
.site-footer .footer-bot a {
  color: #94A3B8;
  text-decoration: none;
}
.site-footer .footer-bot a:hover {
  color: #fff;
}

/* ========================================
   悬浮咨询按钮
   ======================================== */
.site-float-btn {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 99;
  transition: background .2s;
}
.site-float-btn:hover {
  background: var(--brand-deep);
}

/* ========================================
   顶部导航
   ======================================== */
.site-header {
  background: var(--card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}
.site-logo i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand), var(--eco));
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  font-style: normal;
  line-height: 1;
  flex-shrink: 0;
}
.site-logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text2);
  letter-spacing: 0.3px;
  margin-top: -1px;
}
.site-logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}
.site-nav-links {
  display: flex;
  gap: 1px;
  align-items: center;
}
.site-nav-links a {
  padding: 5px 9px;
  font-size: 13px;
  color: var(--text2);
  border-radius: 6px;
  transition: all .2s;
  font-weight: 500;
}
.site-nav-links a:hover,
.site-nav-links a.active {
  color: var(--brand);
  background: var(--brand-light);
}
.site-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--brand);
  cursor: pointer;
}

/* ========================================
   弹窗
   ======================================== */
.site-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.site-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.site-modal-overlay.active .site-modal-content {
  transform: translateY(0);
}
.site-modal-content {
  background: var(--card);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: var(--r) var(--r) 0 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform .3s;
  overflow-y: auto;
}
.site-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.site-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}
.site-modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  font-size: 20px;
  color: var(--text2);
  cursor: pointer;
}

/* ========================================
   工具类
   ======================================== */
.site-flex { display: flex; }
.site-items-center { align-items: center; }
.site-justify-between { justify-content: space-between; }
.site-flex-1 { flex: 1; }
.site-mt-10 { margin-top: 10px; }
.site-mt-16 { margin-top: 16px; }
.site-mt-20 { margin-top: 20px; }
.site-mt-30 { margin-top: 30px; }
.site-mb-10 { margin-bottom: 10px; }
.site-hidden { display: none !important; }

.site-loading {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: site-spin .8s linear infinite;
}
@keyframes site-spin {
  to { transform: rotate(360deg); }
}
.site-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3);
  font-size: 14px;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1024px) {
  .carousel-row { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .site-nav-links { display: none; }
  .site-nav-links.open {
    display: flex;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 8px 4%;
    box-shadow: var(--shadow-hover);
    gap: 2px;
    z-index: 100;
  }
  .site-menu-btn { display: block; }

  .carousel-row { grid-template-columns: 1fr !important; gap: 10px; }
  .biz-grid { grid-template-columns: 1fr !important; }
  .trust-grid { grid-template-columns: 1fr !important; gap: 16px; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .section-header .title { font-size: 19px; }
  .section-header .subtitle {
    font-size: 12px;
    min-width: unset;
  }

  .showcase-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .news-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .trust-block .trust-imgs { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .trust-block .trust-img { min-height: 60px; }
}

@media (max-width: 480px) {
  .carousel-row { grid-template-columns: 1fr !important; gap: 8px; }
  .carousel { aspect-ratio: 16/9; }

  .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .showcase-grid .show-item .show-info .name { font-size: 11px; }
  .showcase-grid .show-item .show-info .price { font-size: 12px; }
  .showcase-grid .show-item .show-info .tag { font-size: 9px; }

  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .news-body .news-title { font-size: 11px; }
  .news-body .news-summary { font-size: 10px; }
  .news-body .news-tag { font-size: 9px; }

  .trust-block .trust-imgs { grid-template-columns: repeat(3, 1fr) !important; gap: 3px; }
  .trust-block .trust-img { min-height: 50px; font-size: 10px; }
}