
/* 重置样式 - 兼容性更好的方式 */
body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, form, fieldset, legend, input, textarea, button, select, th, td {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    font: 14px/1.5 "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

a {
    text-decoration: none;
    color: #333;
}

img {
    border: 0;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* 清除浮动 - 兼容性更好的方式 */
.clearfix:before, .clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* 布局容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 主内容区包装 */
.main-wrapper {
    width: 100%;
    position: relative;
}

/* 紧凑版头部样式 */
.site-header {
    background: #1e50a2;
    background: -webkit-linear-gradient(-45deg, #1e50a2 0%, #2c3e50 100%);
    background: -moz-linear-gradient(-45deg, #1e50a2 0%, #2c3e50 100%);
    background: -o-linear-gradient(-45deg, #1e50a2 0%, #2c3e50 100%);
    background: linear-gradient(135deg, #1e50a2 0%, #2c3e50 100%);
    color: white;
    padding: 15px 0;
    margin-bottom: 0px;
}

.header-content {
    display: block;
}

.header-left {
    float: left;
}

.header-right {
    float: right;
    height: 60px; /* 与左侧高度一致 */
    display: table;
}

.header-right-content {
    display: table-cell;
    vertical-align: middle;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}
.logo a{
    color: #ffffff;
}
.subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 3px;
}

.hot-plate {
    font-size: 14px;
    margin-left: 15px;
    display: inline-block;
}

.hot-plate span {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.hot-plate a {
    color: #fff;
}

.hot-plate span:hover {
    background: rgba(255,255,255,0.2);
}

/* 紧凑导航栏 */
.nav-container {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px; /* 导航下方添加边距 */
}

.site-nav {
    display: block;
    text-align: center;
}

.nav-tab {
    color: #555;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.nav-tab:hover, .nav-tab.active {
    color: #1e50a2;
    background-color: #f0f7ff;
}

/* 主要内容区 */
.main-content {
    float: left;
    width: calc(100% - 270px); /* 减去右侧边栏宽度和间距 */
    margin-right: 20px;
}

.sidebar {
    float: right;
    width: 250px; /* PC端右侧边栏宽度 */
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: block;
    overflow: hidden;
}

.card-title {
    font-size: 16px;
    color: #1e50a2;
    font-weight: bold;
    float: left;
}

.card-more {
    color: #666;
    font-size: 13px;
    float: right;
}

.card-body {
    padding: 15px;
}

/* 字母导航 */
.letter-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 -2px 10px;
}

.letter-btn {
    display: inline-block;
    width: calc(4.166% - 4px); /* 24个字母，每个占1/24宽度 */
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #f0f7ff;
    color: #1e50a2;
    border-radius: 4px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    font-weight: bold;
    margin: 2px;
    font-size: 14px;
    flex-grow: 0;
    flex-shrink: 0;
}

.letter-btn:hover, .letter-btn.active {
    background: #1e50a2;
    color: white;
}

/* 车牌图片列表 - PC端每行5个 */
.plate-images {
    display: block;
    margin: 15px 0px 0;
    font-size: 0;
}

.plate-image-item {
    width: 20%; /* 100% / 5 = 20% */
    display: inline-block;
    margin: 0 0 16px;
    text-align: center;
    font-size: 14px;
    padding: 0 8px;
    box-sizing: border-box;
}

.plate-image {
    width: 100%;
    height: 120px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.plate-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.3s;
    -moz-transition: -moz-transform 0.3s;
    transition: transform 0.3s;
}

.plate-image:hover img {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    transform: scale(1.06);
}

.plate-image-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: block;
    text-align: center;
}




/* 车牌详情容器 */
.plate-detail-container {
    display: flex;
    margin-bottom: 20px;
}
.plate-image-wrapper {
    flex: 0 0 320px;
    margin-right: 30px;
    max-width: 100%;
}
.plate-image {
    max-width: 100%; 
    height: auto; 
    border-radius: 4px;
}
.plate-info-wrapper {
    flex: 1;
}





/* 省份简称筛选 - PC端每行10个 */
.province-short-grid {
    display: block;
    margin: 0 -5px;
    font-size: 0;
}

.province-short-item {
    width: 10%; /* 100% / 10 = 10% */
    display: inline-block;
    margin: 0 0 10px;
    text-align: center;
    font-size: 14px;
    padding: 0 5px;
    box-sizing: border-box;
}

.province-short-btn {
    display: block;
    padding: 8px 5px;
    background: #f0f7ff;
    color: #1e50a2;
    border-radius: 4px;
    font-weight: bold;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
}

.province-short-btn:hover, .province-short-btn.active {
    background: #1e50a2;
    color: white;
}

/* 热门车牌 - 单独样式 */
.hot-plate-grid {
    display: block;
    font-size: 0;
}

.hot-plate-item {
    width: 10%; /* 100% / 10 = 10% */
    display: inline-block;
    margin: 0 0 10px;
    text-align: center;
    font-size: 14px;
    padding: 0 5px;
    box-sizing: border-box;
}

.hot-plate-btn {
    display: block;
    padding: 8px 5px;
    background: #f0f7ff;
    color: #333333;
    border-radius: 4px;
    font-weight: normal;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
}

.hot-plate-btn:hover {
    background: #1e50a2;
    color: white;
}

/* 省份查询 - PC端每行6个 */
.province-card {
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex; 
    -ms-flex-wrap: wrap; 
    flex-wrap: wrap; 
    margin: 0 -5px;
}
.province-item {
    width: calc(16.666% - 10px); /* PC端6个一行 */ margin: 0 5px 10px; background: #f9f9f9; border-radius: 4px; -webkit-transition: all 0.3s; 
    transition: all 0.3s; overflow: hidden; text-align: center;display: flex; align-items: center; justify-content: center;
}

.province-item:hover {
    -webkit-transform: translateY(-2px); box-shadow: 0 3px 4px rgba(80, 80, 80, 0.1);
}

.province-link {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.province-link:hover {
    color: #1e50a2;
}

/* 资讯列表 */
.news-list {
    margin-top: 10px;
}

.news-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    display: block;
    -webkit-transition: color 0.3s;
    -moz-transition: color 0.3s;
    transition: color 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.news-item a:hover {
    color: #1e50a2;
}

.news-date {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 最新城市列表 */
.city-list {
    margin-top: 10px;
}

.city-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: block;
    overflow: hidden;
}

.city-item:last-child {
    border-bottom: none;
}

.city-name {
    font-size: 14px;
    font-weight: 500;
    float: left;
}

.city-name a {
    color: #333;
    -webkit-transition: color 0.3s;
    -moz-transition: color 0.3s;
    transition: color 0.3s;
}

.city-name a:hover {
    color: #1e50a2;
}

.city-date {
    font-size: 12px;
    color: #999;
    float: right;
}

/* 页脚 */
.site-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 14px;
    line-height: 30px;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    /* 字母导航在中等屏幕下显示为两行 */
    .letter-filter {
        display: flex;
        flex-wrap: wrap;
    }
    
    .letter-btn {
        width: calc(8.333% - 4px); /* 12个字母一行 */
    }
}

@media screen and (max-width: 768px) {
    .main-content, .sidebar {
        float: none;
        width: 100%;
        margin-right: 0;
    }
    
    .header-left, .header-right {
        float: none;
        text-align: center;
        height: auto;
        display: block;
    }
    
    .header-right-content {
        display: block;
        padding: 10px 0;
    }
    
    .header-right {
        margin-top: 10px;
    }
    
    .hot-plate {
        margin-left: 0;
        margin-bottom: 5px;
        display: block;
    }
    
    .hot-plate span {
        margin-left: 5px;
    }
    
    .nav-tab {
        padding: 8px 12px;
    }
    
    /* 车牌图片列表 - WAP端每行2个 */
    .plate-image-item {
        width: 50%; /* 100% / 2 = 50% */
    }
    
    /* 省份简称筛选 - WAP端每行6个 */
    .province-short-item {
        width: 16.666%; /* 100% / 6 ≈ 16.666% */
    }
    
    /* 热门车牌 - WAP端每行6个 */
    .hot-plate-item {
        width: 16.666%; /* 100% / 6 ≈ 16.666% */
    }
    
    /* 省份查询 - WAP端每行4个 */
    .province-item {
        width: calc(25% - 10px); /* 100% / 4 = 25% */
        margin: 0 5px 12px;
    }
    
    /* 字母导航在小屏幕下显示为三行 */
    .letter-btn {
        width: calc(12.5% - 4px); /* 8个字母一行 */
    }
}

@media screen and (max-width: 480px) {
    /* 更小屏幕下的微调 */
    .plate-image-item {
        width: 50%;
    }
    
    .province-short-item {
        width: 16.666%;
    }
    
    .hot-plate-item {
        width: 16.666%;
    }
    
    .letter-btn {
        width: calc(12.5% - 4px);
        min-width: 30px;
    }
    
    .province-item {
        width: calc(25% - 10px);
    }
}



/* 主图切换 */
    #toggleImage { cursor: pointer; width: 300px; height: auto; }
    #hiddenImage { display: none; }
    .image-container { display: flex;flex-direction: column;align-items: center;margin-bottom: 10px;}
    .caption {margin-top: 5px;font-size: 14px;text-align: center ;color: #888;}
    .hidden-container {display: none;}
    .indicator-container {display: flex;justify-content: center;margin-top: 10px;}
    .indicator {width: 8px;height: 8px;border-radius: 50%;background-color: #ccc;margin: 0 5px;cursor: pointer;}
    .indicator.active {background-color: #666;}




/* 面包屑导航 */
.breadcrumb {
    padding: 10px 0; 
    font-size: 14px; 
    color: #666;
}
.breadcrumb a {
    color: #1e50a2;
}
.breadcrumb span {
    color: #333;
}
/* 车牌信息列表 */
.plate-info-list {
    margin-bottom: 20px; background-color: #f8f9fa; padding: 15px; border-radius: 5px;
}
.info-item { display: flex; margin-bottom: 10px; line-height: 1.6; }
.info-item a{  color: #4d7ffe;}
.info-label {
    font-weight: bold; min-width: 80px; color: #666;
}
.info-content {flex: 1;
}
.text-link {color: #1e50a2; margin-left: 5px;
}
.plate-example {
    display: inline-block; 
    margin-right: 10px; 
    font-family: monospace;
}

/* 城市介绍 */
.city-intro {
    margin-top: 25px;
}
.section-title {
    font-size: 18px; 
    color: #1e50a2; 
    margin-bottom: 10px; 
    padding-bottom: 5px; 
    border-bottom: 1px solid #eee;
}
.intro-content p {
    margin-bottom: 10px; 
    line-height: 1.6;
}

/* 相关车牌 */
.related-plates {
    display: flex; 
    flex-wrap: wrap; 
    margin: 0 -5px;
}
.plate-tag {
    display: inline-block; 
    padding: 5px 10px; 
    margin: 5px; 
    background: #f0f7ff; 
    color: #1e50a2; 
    border-radius: 3px; 
    transition: all 0.3s;
}
.plate-tag:hover {
    background: #1e50a2; 
    color: white;
}


@media screen and (max-width: 768px) {
    /* 增强移动端布局稳定性 */
    .plate-detail-container {
        display: block; /* 改为传统布局而非flex */
        overflow: hidden; /* 清除浮动 */
    }
    
    .plate-image-wrapper, 
    .plate-info-wrapper {
        float: none;
        width: 100%;
        margin: 0;
    }
    
    .plate-image-wrapper {
        margin-bottom: 15px;
    }
    
    /* 确保图片容器不会影响布局 */
    .image-container {
        width: 100%;
        max-width: 300px; /* 限制最大宽度 */
        margin: 0 auto; /* 居中显示 */
    }
    
    /* 修复信息列表布局 */
    .plate-info-list {
        clear: both; /* 清除可能的浮动影响 */
    }
}