
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a89dc;
    --accent-color: #ffeb3b;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-light: #666666;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif, monospace;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.top-nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    padding: 1rem 0;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 1rem 0.5rem;
    display: block;
    transition: color 0.3s, background-color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 1rem 0;
    cursor: pointer;
}

/* =========================================
   主体容器与布局
   ========================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 0.8rem 1rem;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-main);
    font-weight: 500;
}


/* 头部横幅 */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.source-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.3s;
    position: relative;
    z-index: 1;
}

.source-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 广告通用样式 */
.baidu-ad {
	background: var(--card-bg);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 卡片通用样式 */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    border-left: 5px solid var(--secondary-color);
    padding-left: 1rem;
    display: flex;
    align-items: center;
}

.card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.page-function-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin-bottom: 0.5rem;
}

.page-function-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    background-color: #f0f6ff;
    border-radius: 6px;
    transition: all 0.2s;
}

.page-function-nav a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* 城市列表网格 (用于省级页面) */
.city-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
}

.city-item a {
    display: block;
    padding: 1rem 1.2rem;
    background-color: #f0f6ff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.25s;
}

.city-item a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.city-count-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
}


.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag {
    background-color: #e8f0fe;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: default;
}
.tag a {
    color: var(--primary-color);
    text-decoration: none;
}
.tag:hover {
    background-color: var(--secondary-color);
    color: white;
}


.tags-adjustment {
    display: flex;
	flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}
.adjust {
    display: flex;
    background-color: #e8f0fe;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: default;
}
.adjust a {
    color: var(--primary-color);
    text-decoration: none;
}
.adjust:hover {
    background-color: var(--bg-color);
    color: white;
}


.gov-info {
    margin-top: 1.5rem;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.gov-label {
    font-weight: bold;
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.gov-address {
    font-size: 1.1rem;
    color: var(--text-main);
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 1000px; /* 设定最大高度 */
    overflow-y: auto; /* 启用垂直滚动 */
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 400;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: #f9fbfd;
}

tr:hover {
    background-color: #f0f4f8;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    background-color: white;
    margin-top: auto;
    border-top: 1px solid #eee;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }

    .nav-links.active {
        height: auto;
    }

    .nav-links a {
        padding: 0.8rem 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .container {
        padding: 15px;
    }

    header {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .tag, .adjust {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .city-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}