body {
    background-image: url('../img/bg.png'); /* 替换为实际的背景图片路径 */
    background-size: cover;
    color: white;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}
.header {
    padding: 20px;
    margin-bottom: 10px;
    background-image: url("../img/head_bg.png"); /* 背景图片 */
    background-size: contain; /* 背景图填充区域 */
    background-repeat: no-repeat; /* 不重复背景 */
    background-position: center; /* 中心对齐背景 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    height: 80px; /* 适当的最小高度 */
    width: 100%; /* 确保 header 宽度占满 */
    overflow: hidden;         /* 隐藏超出部分 */
}
.header .title {
    font-size: 35px;
    font-weight: 800;
    color: #e6e9f0;
}
.data-frame {
    filter: drop-shadow(0 0 10px rgba(0,242,254,0.3));
    border-radius: 8px; /* 圆角 */
    padding: 20px;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); !* 阴影效果 *!*/
    margin-bottom: 2vh;
    height: 42vh;
    border: 2px solid #3d5afe;
    background: linear-gradient(145deg, #1a237e 0%, rgba(10, 17, 69, 0.52) 100%);
    box-shadow: 0 0 30px #3d5afe33;
}
.map-frame {
    height: 62vh; /* 设置地图框的高度 */
    /*background: rgba(50, 66, 72, 0.66); !* 可以用半透明背景来显示 *!*/
    filter: drop-shadow(0 0 10px rgba(0,242,254,0.3));
    border-radius: 8px; /* 圆角 */
    border: 2px solid #3d5afe;
    background: linear-gradient(145deg, #1a237e 0%, rgba(10, 17, 69, 0.52) 100%);
    box-shadow: 0 0 30px #3d5afe33;
}
#map {
    padding: 20px;
    height: 100%;
}
.data_1 {
    height: 100%;
    color: white;
}

/* 自定义样式 */
.total-frame {
    /*filter: drop-shadow(0 0 10px rgba(0,242,254,0.3));*/
    border-radius: 8px; /* 圆角 */
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); !* 阴影效果 *!*/
    margin-bottom: 2vh;
    /*height: 220px;*/
    height: 22vh;
    border: 2px solid #3d5afe;
    background: linear-gradient(145deg, #1a237e 0%, rgba(10, 17, 69, 0.52) 100%);
    box-shadow: 0 0 30px #3d5afe33;
}

.indicator-box {
  position: relative;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.indicator-box .label {
    color: #82b1ff;
    font-size: 0.8vw;
    font-weight: 700;
    /*letter-spacing: 1px;*/
}

.indicator-box .value {
    /*color: #00d4ff;*/
    /*font-weight: 700;*/
    /*font-size: 50px;*/
    /*text-shadow: 0 0 10px rgba(0,212,255,0.3);*/
    /*!*margin: 0.5rem 0;*!*/
    color: #00e5ff;
    font-size: 2.2vw;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    background: linear-gradient(90deg, #00e5ff, #4a5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.clip-upper {
    width: 100%;
    height: 20%;
    clip-path: polygon(0 15%, 100% 15%, 100% 100%, 0 100%);
}

.trend {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.trend.positive {
  background: rgba(69,212,131,0.2);
  color: #45d483;
}

.sub-indicator {
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.sub-indicator .label {
    color: #a8b5d1;
    font-size: 1vw;
    font-weight: 700;
}

.sub-indicator .value {
  font-size: 1.2vw;
  font-weight: 600;
  margin: 0.25rem 0;
}

.bg-gradient-cyan {
  background: linear-gradient(90deg, #00d4ff, #3d5afe);
}

/* 冠军车型卡片特效 */
.champion-card {
    border: 1px solid rgba(74, 92, 255, 0.3);
    animation: float 4s ease-in-out infinite;
}

.champion-card .name {
    color: #00e5ff;
    font-size: 1.8vw;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    margin: 1rem 0;
    background: linear-gradient(90deg, #00e5ff, #4a5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.champion-card .badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff2079;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8vw;
    box-shadow: 0 0 15px rgba(255, 32, 121, 0.3);
}

/* 数据统计卡片 */
.stats-card {
    background: rgba(50, 93, 159, 0.75);  /* 添加深色背景增强对比 */
    border-radius: 8px;                  /* 保持圆角统一 */
    padding: 10px;
}

.stats-card .divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(74, 92, 255, 0.6) 50%,
        transparent 100%);
    margin: 0.5vh;
}

.stats-card .custom-bg-color {
    background: rgba(74, 92, 255, 0.1);
    border: 1px solid rgba(74, 92, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 0.3vh;
}

ul li .city-badge {
    width: 23px;
    height: 23px;
    background-color: #1183da;
    color: #e6e9f0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: 700;
    box-shadow: 0 0 6px currentColor;
}

ul li .city {
    color: #bfc7fa;
    font-weight: 700;
}

ul li .amount {
    color: #30dff6;
    font-weight: 700;
}

/* 汽车图片容器 */
.car-image-container {
    /*position: relative;*/
    position: absolute;
    bottom: -30px;
    z-index: 10; /* 确保图片在其他内容之上 */
    margin-top: 2rem;
    /*border-radius: 8px;*/
    overflow: hidden;
}

img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    transition: transform 0.3s ease;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 50%,
        rgba(74, 92, 255, 0.05) 50%);
    background-size: 100% 4px;
    animation: scan 3s linear infinite;
}


/* 动态效果 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hover-glow:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 15px rgba(74, 92, 255, 0.3));
}

@keyframes borderFlow {
    0% { opacity: 0.8; background-position: 0% 50%; }
    50% { opacity: 0.3; background-position: 100% 50%; }
    100% { opacity: 0.8; background-position: 0% 50%; }
}

/* 时间选择器定位*/
.time-picker {
    right: 2rem;
    top: 4%;
    transform: translateY(-50%);
    z-index: 1000;
}

/* 科技感输入组*/
.input-group-tech {
    background: rgba(61, 90, 254, 0.15);
    border: 1px solid #3d5afe;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.input-group-text {
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff !important;
    padding: 0.375rem 0.75rem;
}

.input-group-tech .custom-select {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.3);
    min-width: 140px;
}

.input-group-tech option {
    background: #1a237e;
    color: #e6e9f0;
}
.custom-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2300d4ff' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.help-icon {
    cursor: pointer;
    color: #4a5cff;  /* 科技蓝 */
    transition: all 0.3s;
    margin-right: 10px;
}

.help-icon:hover {
    color: #00e5ff;  /* 荧光蓝 */
    transform: scale(1.1);
}

/* 移动端通用适配 */
@media (max-width: 768px) {
    .header {
        margin-bottom: 5vh;
        background-size: auto 75%; /* 垂直方向放大图片 */
        background-position: center 30%; /* 聚焦图片上半部分 */
    }
    .header .title {
        font-size: 30px;
        background-size: contain; /* 背景图填充区域 */
        background-repeat: no-repeat; /* 不重复背景 */
        background-position: center; /* 中心对齐背景 */
        display: flex;
    }
    .time-picker {
    top: 13%;
    }
    .data-frame {
        height: 500px;
    }
    .total-frame {
        height: 450px;
        margin-bottom: 2.5vh;
    }
    .map-frame {
        margin-bottom: 2vh;
    }
    .indicator-box {
        margin-bottom: 1.5vh;
    }
    .indicator-box .label {
        font-size: 18px;
    }
    .indicator-box .value {
        font-size: 50px;
    }
    .sub-indicator .label {
        font-size: 15px;
    }
    .sub-indicator .value {
        font-size: 20px;
    }
    .champion-card .name {
        font-size: 30px;
    }
    .champion-card .badge {
        font-size: 10px;
    }
    .car-image-container {
        position: absolute;
        top: 280px;
        /*transform: translateX(0%);*/
        width: 80%;
    }
}

