/* 首页样式 - 与小程序保持一致 */
.container {
  min-height: 100vh;
  background: #f8f9fa;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* 加载遮罩层 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 加载动画 */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #0984e3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 页面头部 */
.header {
  padding: 30px 20px 20px;
  text-align: left;
  background: #f8f9fa;
  width: 100%;
  box-sizing: border-box;
}

.header-content {
  position: relative;
  z-index: 2;
}

.title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  display: block;
}

.subtitle {
  font-size: 16px;
  color: #666;
  display: block;
}

/* 主要内容区域 */
.main-content {
  padding: 10px 15px;
  background: #f8f9fa;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

/* 服务卡片组 */
.service-cards {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
}

.service-card {
  flex: 1;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  cursor: pointer;
}

.service-card:active {
  transform: scale(0.98);
}

/* ETC注销卡片 - 橙色渐变 */
.cancel-card {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
}

/* ETC办理卡片 - 蓝色渐变 */
.handle-card {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.card-content {
  padding: 20px 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.card-header {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
  color: white;
  display: block;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 1px;
  color: white;
  display: block;
}

/* 卡片插画 */
.card-illustration {
  position: relative;
  height: 70px;
  margin: 5px 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px;
}

/* 汽车场景（注销卡片） */
.car-scene {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.car-main-body {
  position: relative;
  width: 60px;
  height: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px 15px 7px 7px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.car-roof {
  position: absolute;
  top: 5px;
  left: 10px;
  width: 40px;
  height: 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px 10px 2px 2px;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.car-windshield {
  position: absolute;
  top: 7px;
  left: 12px;
  width: 35px;
  height: 7px;
  background: linear-gradient(135deg, rgba(135, 206, 250, 0.8) 0%, rgba(70, 130, 180, 0.6) 100%);
  border-radius: 5px;
}

.car-side {
  position: absolute;
  bottom: 6px;
  left: 15px;
  width: 30px;
  height: 5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
}

.car-wheels {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 10px;
}

.wheel {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.front-wheel {
  left: 0;
}

.rear-wheel {
  right: 0;
}

/* 场景装饰元素 */
.scene-elements {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  z-index: 1;
}

.element {
  position: absolute;
  background: rgba(46, 204, 113, 0.9);
  border-radius: 50% 50% 0 0;
}

.element-1 {
  left: 5px;
  bottom: 0;
  width: 8px;
  height: 20px;
  background: rgba(46, 204, 113, 0.8);
}

.element-2 {
  left: 15px;
  bottom: 0;
  width: 10px;
  height: 27px;
  background: rgba(39, 174, 96, 0.9);
}

/* ETC设备场景（办理卡片） */
.etc-device-scene {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.device-container {
  position: relative;
  z-index: 3;
}

.device-frame {
  width: 50px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 1);
  position: relative;
  transform: perspective(300px) rotateY(-8deg) rotateX(3deg);
}

.device-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(220, 220, 220, 0.7) 100%);
  border-radius: 10px;
  z-index: -1;
}

.device-screen-area {
  width: 35px;
  height: 12px;
  background: rgba(135, 206, 250, 0.3);
  border-radius: 4px;
  margin-bottom: 5px;
  border: 1px solid rgba(135, 206, 250, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-display {
  width: 30px;
  height: 7px;
  background: linear-gradient(135deg, rgba(135, 206, 250, 0.9) 0%, rgba(70, 130, 180, 0.7) 100%);
  border-radius: 2px;
}

.device-text {
  font-size: 11px;
  color: #333;
  font-weight: bold;
  letter-spacing: 1px;
}

/* 信号指示器 */
.signal-indicator {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 20px;
  height: 20px;
  z-index: 2;
}

.signal-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: signalPulse 2s infinite;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

.dot-1 {
  top: 0;
  right: 0;
  animation-delay: 0s;
}

.dot-2 {
  top: 9px;
  right: 9px;
  animation-delay: 0.6s;
}

.signal-line {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  border-radius: 0.5px;
}

@keyframes signalPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* 按钮区域 */
.card-button-area {
  margin: 10px 0;
  display: flex;
  justify-content: center;
}

.card-action-btn {
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  display: block;
  width: auto;
  cursor: pointer;
}

/* 注销按钮样式 */
.cancel-action-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.2);
}

.cancel-action-btn:active {
  transform: scale(0.95);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* 办理按钮样式 */
.handle-action-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  box-shadow: 0 3px 10px rgba(116, 185, 255, 0.2);
}

.handle-action-btn:active {
  transform: scale(0.95);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
  box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

/* 服务说明区域 */
.service-info {
  margin-bottom: 15px;
  padding: 15px;
  background: linear-gradient(135deg, rgb(148, 115, 209) 0%, rgb(130, 119, 190) 100%);
  border-radius: 10px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.service-info:active {
  transform: scale(0.98);
}

.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.info-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 4px;
  display: block;
}

.info-desc {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
  display: block;
}

.info-action {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

/* 推广区域 */
.promotion-section {
  margin-bottom: 15px;
  padding: 20px 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

/* 汽车热销爆品区域 */
.hot-products {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.promotion-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.promotion-left {
  flex: 1;
}

.promotion-title {
  font-size: 18px;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 4px;
}

.promotion-subtitle {
  font-size: 14px;
  color: #1565c0;
  margin-bottom: 12px;
  opacity: 0.8;
}

.promotion-btn {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.promotion-right {
  position: relative;
  width: 30%;
  height: 60px;
  min-width: 60px;
}

.car-showcase {
  position: relative;
  width: 100%;
  height: 100%;
}

.showcase-car {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 60px;
  height: 30px;
}

.car-main {
  width: 50px;
  height: 20px;
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  border-radius: 10px 10px 3px 3px;
  position: relative;
}

.car-main::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 35px;
  height: 7px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.car-main::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 7px;
  width: 8px;
  height: 8px;
  background: #424242;
  border-radius: 50%;
  box-shadow: 27px 0 0 #424242;
}

/* 无卡智能ETC区域 - 修复：与热销产品宽度一致 */
.etc-smart-section {
  margin-bottom: 20px;
  padding: 20px 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.smart-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.smart-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.smart-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
  display: block;
  line-height: 1.3;
}

.smart-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: block;
}

.smart-right {
  margin-left: 15px;
}

.percentage-highlight {
  font-size: 60px;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* 底部占位 */
.bottom-placeholder {
  height: 70px;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 414px;
  margin: 0 auto;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 0;
  height: 100%;
}

.nav-item:active {
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.05);
}

.nav-icon-img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  object-fit: contain;
  display: block;
}

.nav-icon {
  font-size: 24px;
  margin-bottom: 3px;
}

.nav-text {
  font-size: 11px;
  color: #666;
  line-height: 1.2;
  text-align: center;
  display: block;
}

.nav-item.active .nav-text {
  color: #0984e3;
  font-weight: 600;
}

/* 动画增强 */
.service-card {
  animation: slideInUp 0.6s ease forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-info {
  animation: slideInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.promotion-section {
  animation: slideInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.etc-smart-section {
  animation: slideInUp 0.6s ease 0.5s forwards;
  opacity: 0;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 375px) {
  .service-cards {
    flex-direction: column;
    gap: 10px;
  }
  
  .service-card {
    height: 160px;
  }
}
