/* ========================================
   全国征信网点导航主题 - 样式文件
   ======================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #003d82;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   顶部导航
   ======================================== */
.site-header {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.site-logo:hover {
    color: #fff;
}

.logo-icon {
    font-size: 24px;
    margin-right: 8px;
}

.logo-text {
    letter-spacing: 1px;
}

.site-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.site-nav ul {
    display: flex;
    gap: 30px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    padding: 5px 0;
    position: relative;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
}

.site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

/* ========================================
   主内容区
   ======================================== */
.site-main {
    padding: 20px 0 40px;
    min-height: calc(100vh - 300px);
}

/* ========================================
   搜索区域
   ======================================== */
.search-section {
    margin-bottom: 20px;
}

.search-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-item label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.city-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 120px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.city-select:focus {
    outline: none;
    border-color: #0056b3;
}

.search-keyword {
    flex: 1;
    min-width: 250px;
}

.search-keyword input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-keyword input:focus {
    outline: none;
    border-color: #0056b3;
}

.search-btn {
    padding: 8px 24px;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #003d82;
}

/* ========================================
   网点区域
   ======================================== */
.outlet-section {
    margin-bottom: 30px;
}

.outlet-layout {
    display: flex;
    gap: 20px;
    min-height: 500px;
}

/* 网点列表面板 */
.outlet-list-panel {
    width: 380px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 16px;
    color: #333;
}

.outlet-count {
    font-size: 13px;
    color: #999;
}

.outlet-count em {
    color: #0056b3;
    font-style: normal;
    font-weight: bold;
}

.outlet-list {
    flex: 1;
    overflow-y: auto;
    max-height: 550px;
}

.outlet-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s;
}

.outlet-item:hover {
    background: #f8faff;
}

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

.outlet-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.outlet-name a {
    color: #333;
}

.outlet-name a:hover {
    color: #0056b3;
}

.outlet-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.outlet-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.tag-city {
    background: #e6f3ff;
    color: #0056b3;
}

.tag-type {
    background: #fff3e0;
    color: #e65100;
}

.outlet-detail-link {
    font-size: 12px;
    color: #0056b3;
}

.no-result {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

/* 地图面板 */
.outlet-map-panel {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.outlet-map {
    width: 100%;
    height: 550px;
}

/* Leaflet 地图自定义样式 */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 13px;
}

.leaflet-popup-content h4 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

.leaflet-popup-content p {
    color: #666;
    margin: 0;
}

/* ========================================
   征信资讯
   ======================================== */
.news-section {
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #0056b3;
}

.section-header h2 {
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
}

.news-title a:hover {
    color: #0056b3;
}

.news-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.news-cate {
    color: #0056b3;
}

.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 资讯列表页 */
.news-list {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.news-item .news-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-item .news-excerpt {
    font-size: 14px;
    margin-bottom: 10px;
}

/* ========================================
   关于平台
   ======================================== */
.about-section {
    margin-bottom: 30px;
}

.about-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.about-card h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.tag-cloud {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: #e6f3ff;
    color: #0056b3;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-link:hover {
    background: #0056b3;
    color: #fff;
}

/* ========================================
   文章详情页
   ======================================== */
.article-detail {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.article-meta a {
    color: #0056b3;
}

.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h2,
.article-content h3 {
    margin: 25px 0 15px;
    color: #333;
}

.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags .tag {
    background: #f5f5f5;
    color: #666;
    padding: 4px 12px;
}

.article-tags .tag:hover {
    background: #0056b3;
    color: #fff;
}

/* 网点详情信息 */
.outlet-detail-info {
    margin-top: 30px;
    padding: 25px;
    background: #f8faff;
    border-radius: 8px;
}

.outlet-detail-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0056b3;
    display: inline-block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 10px;
}

.info-item label {
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.info-item span {
    color: #333;
}

.outlet-detail-map h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.detail-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

/* ========================================
   列表页
   ======================================== */
.list-header {
    margin-bottom: 20px;
}

.list-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 8px;
}

.list-desc {
    font-size: 14px;
    color: #666;
}

/* 分页 */
.pagination {
    margin-top: 25px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.pagination a:hover {
    border-color: #0056b3;
    color: #0056b3;
}

.pagination .current {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

/* ========================================
   页面模板
   ======================================== */
.page-detail {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.page-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 24px;
    color: #333;
}

.page-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.page-content p {
    margin-bottom: 15px;
}

/* ========================================
   底部
   ======================================== */
.site-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 25px 0;
    text-align: center;
}

.footer-content {
    color: #999;
    font-size: 13px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    margin: 0 5px;
}

.footer-links a:hover {
    color: #0056b3;
}

.footer-links .sep {
    color: #ddd;
}

.copyright {
    margin-bottom: 5px;
}

.footer-note {
    font-size: 12px;
    color: #bbb;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 992px) {
    .outlet-layout {
        flex-direction: column;
    }

    .outlet-list-panel {
        width: 100%;
    }

    .outlet-list {
        max-height: 400px;
    }

    .outlet-map {
        height: 400px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        padding: 12px 0;
    }

    .site-nav ul {
        gap: 20px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-item {
        width: 100%;
    }

    .search-keyword {
        min-width: auto;
    }

    .search-btn {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .article-detail,
    .about-card,
    .page-detail {
        padding: 20px;
    }

    .article-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .site-logo {
        font-size: 18px;
    }

    .site-nav ul {
        gap: 15px;
    }

    .site-nav a {
        font-size: 14px;
    }
}
