/*
Theme Name: 征信查询网点导航
Theme URI: https://113x.cn
Author: 113x.cn
Description: 全国征信查询网点导航站
Version: 1.0.0
*/

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}
a { color: #1a56db; text-decoration: none; }
a:hover { color: #1442a8; text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-area { display: flex; gap: 30px; }
.main-content { flex: 1; min-width: 0; }
.sidebar-area { width: 300px; flex-shrink: 0; }

/* === Header === */
.site-header {
    background: linear-gradient(135deg, #1a56db 0%, #1442a8 100%);
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
.site-logo a { color: #fff; text-decoration: none; }
.site-logo span { color: #ffd700; }
.main-nav ul { display: flex; gap: 5px; }
.main-nav a {
    color: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}
.main-nav a:hover, .main-nav .current-menu-item a {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* === Breadcrumb === */
.breadcrumb {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #666;
}
.breadcrumb a { color: #1a56db; }
.breadcrumb span { margin: 0 8px; color: #999; }

/* === Hero / Search Section === */
.hero-section {
    background: linear-gradient(135deg, #1a56db 0%, #0f3a94 100%);
    padding: 60px 0 50px;
    text-align: center;
    color: #fff;
}
.hero-section h1 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
}
.hero-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}
.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 16px 60px 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    outline: none;
}
.search-box button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 24px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.search-box button:hover { background: #1442a8; }

/* === Province Grid === */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a56db;
    display: inline-block;
}
.province-section {
    padding: 40px 0;
}
.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}
.province-btn {
    display: block;
    padding: 12px 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    color: #333;
    transition: all 0.3s;
    cursor: pointer;
}
.province-btn:hover, .province-btn.active {
    background: #1a56db;
    color: #fff;
    border-color: #1a56db;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

/* === Hot Cities === */
.hot-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.hot-city-tag {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
}
.hot-city-tag:hover {
    background: #eef2ff;
    border-color: #1a56db;
    color: #1a56db;
    text-decoration: none;
}

/* === Credit Point Cards === */
.point-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}
.point-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #1a56db;
}
.point-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1a202c;
}
.point-card h3 a { color: #1a202c; }
.point-card h3 a:hover { color: #1a56db; text-decoration: none; }
.point-info { display: flex; flex-direction: column; gap: 8px; }
.point-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.point-info-item .icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    color: #1a56db;
}
.point-info-item a { color: #1a56db; }

/* === Single Point Detail === */
.point-detail {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #e5e7eb;
}
.point-detail h1 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #1a202c;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}
.detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.detail-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.detail-item label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detail-item .value {
    font-size: 16px;
    color: #1a202c;
    font-weight: 500;
}
.detail-item .value a { color: #1a56db; }
.phone-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #1a56db;
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 4px;
}
.phone-btn:hover { background: #1442a8; text-decoration: none; }

/* === Article Styles === */
.article-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}
.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.article-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
.article-card h2 a { color: #1a202c; }
.article-card h2 a:hover { color: #1a56db; text-decoration: none; }
.article-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}
.article-meta span { margin-right: 16px; }
.article-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* === Single Post === */
.single-post-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #e5e7eb;
}
.single-post-content h1 {
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1.4;
}
.post-content { font-size: 16px; line-height: 1.8; }
.post-content h2 { font-size: 22px; margin: 30px 0 15px; }
.post-content h3 { font-size: 18px; margin: 24px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 16px 0; padding-left: 24px; list-style: disc; }
.post-content li { margin-bottom: 8px; }

/* === Sidebar === */
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}
.sidebar-widget h3 {
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a56db;
}
.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: #333; font-size: 14px; }
.sidebar-widget ul li a:hover { color: #1a56db; }

/* === Footer === */
.site-footer {
    background: #1a202c;
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}
.pagination a:hover { background: #1a56db; color: #fff; border-color: #1a56db; text-decoration: none; }
.pagination .current { background: #1a56db; color: #fff; border-color: #1a56db; }

/* === Back Link === */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: #eef2ff;
    color: #1a56db;
    border-radius: 6px;
    font-size: 14px;
}
.back-link:hover { background: #1a56db; color: #fff; text-decoration: none; }

/* === Province Filter Tabs === */
.province-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.province-tab {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f7fa;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.province-tab:hover, .province-tab.active {
    background: #1a56db;
    color: #fff;
    text-decoration: none;
    border-color: #1a56db;
}

/* === Category List Page === */
.category-header {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
}
.category-header h1 {
    font-size: 28px;
    color: #1a202c;
}
.category-header p {
    font-size: 15px;
    color: #666;
    margin-top: 8px;
}

/* === Search Results === */
.search-results-header {
    background: #fff;
    padding: 20px 24px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}
.search-results-header h2 {
    font-size: 18px;
    color: #1a202c;
}
.search-results-header p {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .header-inner { height: 60px; }
    .site-logo { font-size: 18px; }
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #1a56db;
        padding: 20px;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 12px 16px; border-radius: 0; }
    .mobile-menu-toggle { display: block; }

    .hero-section { padding: 40px 0 30px; }
    .hero-section h1 { font-size: 24px; }

    .province-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .province-btn { padding: 10px 4px; font-size: 13px; }

    .content-area { flex-direction: column; }
    .sidebar-area { width: 100%; }

    .point-detail { padding: 20px; }
    .detail-info { grid-template-columns: 1fr; }
    .single-post-content { padding: 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; }

    .province-tabs { padding: 12px; gap: 6px; }
    .province-tab { padding: 4px 12px; font-size: 13px; }
}

@media (max-width: 480px) {
    .province-grid { grid-template-columns: repeat(3, 1fr); }
}
/* === Search Suggestions === */
.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 100;
    overflow: hidden;
    max-width: 600px;
}
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover {
    background: #f5f7fa;
    text-decoration: none;
}
.suggestion-icon {
    margin-right: 10px;
    font-size: 18px;
}
.suggestion-text {
    flex: 1;
}
.suggestion-type {
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

/* === Mobile search fix === */
@media (max-width: 768px) {
    .search-suggestions {
        max-width: 100%;
    }
}
