/* 全局样式 */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --accent-color: #FF9800;
    --text-color: #333;
    --light-text: #666;
    --background-color: #f8f9fa;
    --card-bg: #fff;
    --border-radius: 4px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

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

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.1);
}

.nav-link::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    background: var(--primary-color);
    border-radius: 4px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: var(--transition);
}

.mobile-menu-btn .menu-text {
    display: none;
    font-size: 12px;
    color: #fff;
    text-align: center;
    margin-top: 5px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: var(--transition);
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #e0e0e0;
    color: var(--primary-color);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 0;
}

.mobile-nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background: #f9f9f9;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-btn {
    z-index: 1002;
    position: relative;
}
    padding: 10px;
    border-radius: var(--border-radius);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.1);
}

/* 主体样式 */
.main {
    padding: 20px 0;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.section-title::before {
    display: none;
}

/* 限行查询工具 */
.query-tool {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.query-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 180px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.form-group select,
.form-group input[type="date"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group select:focus,
.form-group input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.query-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.query-btn:hover {
    background-color: #45a049;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: none;
}

/* 限行结果 */
.query-result {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-top: 20px;
    display: none;
    border: 1px solid #e0e0e0;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.result-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.result-item {
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}

.result-item h4 {
    font-size: 12px;
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-item p {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* 城市限行列表 */
.city-list-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.city-card {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.city-card:hover {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: var(--primary-color);
    transform: none;
}

.city-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.city-card p {
    font-size: 12px;
    color: var(--light-text);
    margin: 0;
}

/* 交通资讯 */
.news-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.news-list {
    list-style: none;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
}

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

.news-item:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
}

.news-item a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.news-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition);
}

.news-item:hover h3 {
    color: var(--primary-color);
}

.news-meta {
    font-size: 12px;
    color: var(--light-text);
}

/* 限号规则 */
.rules-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.rule-card {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.rule-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.rule-card p {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 30px 0 0;
    margin-top: 40px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.friend-links {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.friend-links .links-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.friend-links .links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.friend-links .links-list a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.friend-links .links-list a:hover {
    color: var(--primary-color);
}

.footer-brand {
    flex: 0 0 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 32px;
}

.footer-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact .contact-icon {
    font-size: 16px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin: 0;
}

.footer-bottom .icp {
    margin-top: 8px;
}

.footer-bottom .icp a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom .icp a:hover {
    color: var(--primary-color);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #45a049;
    transform: none;
}

/* 文章内容 */
.article-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.3;
}

.article-meta {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.article-content {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
    color: var(--text-color);
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 15px;
    color: var(--text-color);
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 18px 0 12px;
    color: var(--text-color);
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-style: italic;
    color: var(--light-text);
}

.prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
}

.prev-next .prev,
.prev-next .next {
    flex: 1;
}

.prev-next .prev {
    text-align: left;
}

.prev-next .next {
    text-align: right;
}

.prev-next a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.prev-next a:hover {
    color: #45a049;
    text-decoration: underline;
}

.comments {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.comments h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

/* 标签区域 */
.detail-tags {
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags i {
    color: var(--primary-color);
    font-size: 16px;
    margin-right: 5px;
}

.detail-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.detail-tags a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

/* 随机推荐 */
.random-recommend {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: var(--box-shadow);
}

.random-recommend h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.random-recommend h3::before {
    content: '\f005';
    font-family: FontAwesome;
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 16px;
}

.random-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.random-item {
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.random-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.random-item:hover {
    padding-left: 20px;
    background-color: #f8fff8;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.random-item:hover::before {
    transform: scaleY(1);
}

.random-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    line-height: 1.6;
    display: block;
}

.random-item a:hover {
    color: var(--primary-color);
}

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

/* 城市限行信息页面样式 */
.notice-box {
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notice-box i {
    color: #ff9800;
    font-size: 20px;
    margin-top: 2px;
}

.notice-box p {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.content-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.limit-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.limit-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.limit-table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #66bb6a 100%);
    color: #fff;
    padding: 15px 10px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

.limit-table thead th.highlight-today {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}

.limit-table thead th.separator {
    background: transparent;
    width: 10px;
    padding: 0;
}

.limit-table tbody tr {
    transition: var(--transition);
}

.limit-table tbody tr:hover {
    background-color: #f8f9fa;
}

.limit-table tbody td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.limit-table tbody tr.week-header td {
    background: #f5f5f5;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid #e0e0e0;
}

.limit-table tbody tr.date-row td {
    color: var(--light-text);
    font-size: 13px;
}

.limit-table tbody tr.week-row td {
    font-weight: 600;
    color: var(--text-color);
}

.limit-table tbody tr.number-row td {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.limit-table tbody td.today {
    background: #fff3e0;
    color: #ff9800;
    font-weight: 600;
}

.limit-area-tabs {
    margin-top: 25px;
}

.tab-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.tab-btn:hover {
    background: #e8f5e9;
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.limit-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.limit-info-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.limit-info-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.limit-info-card h3 i {
    font-size: 18px;
}

.limit-info-card p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.disclaimer {
    margin-top: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.disclaimer i {
    color: #1976d2;
    font-size: 20px;
    margin-top: 2px;
}

.disclaimer p {
    color: #0d47a1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 面包屑导航 */
.breadcrumb {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: #45a049;
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 5px;
    color: var(--light-text);
}

/* 内容布局 */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 20px;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-image {
    flex: 0 0 200px;
    min-height: 120px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-summary {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--light-text);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 侧边栏 */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

/* 阅读排行 */
.top-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.rank {
    background: var(--primary-color);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.title {
    flex: 1;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.title:hover {
    color: var(--primary-color);
}

.views {
    color: var(--light-text);
    font-size: 12px;
    white-space: nowrap;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: #f5f5f5;
    color: var(--text-color);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-color);
    color: #fff;
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        padding: 15px 0;
    }
    
    .nav-item {
        margin-left: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .query-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: auto;
        height: auto;
        padding: 10px;
        background: var(--primary-color);
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin-bottom: 3px;
    }
    
    .mobile-menu-btn span:last-child {
        margin-bottom: 0;
    }
    
    .mobile-menu-btn .menu-text {
        display: block;
        color: #fff;
        font-weight: 600;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .main {
        padding: 20px 0;
    }
    
    .section {
        margin-bottom: 40px;
    }
    
    .query-tool,
    .city-list-section,
    .news-section,
    .rules-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .result-info {
        grid-template-columns: 1fr;
    }
    
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        position: static;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-image {
        flex: none;
        height: 200px;
    }
    
    .tag-cloud {
        justify-content: center;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .friend-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .friend-links .links-list {
        justify-content: center;
    }
    
    .footer-brand {
        flex: none;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .query-tool,
    .city-list-section,
    .news-section,
    .rules-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .city-card h3 {
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 限行区域详细样式 */
.whxxztmap {
    margin-top: 20px;
}

.clearfix {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.whxxztmap_tab {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.whxxztmap_tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.list_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.whxxztmap_tab img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.whxxztmap_tab p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

.whxxztmap_tab p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .clearfix {
        flex-direction: column;
        gap: 15px;
    }
    
    .whxxztmap_tab {
        min-width: 100%;
        margin: 0 !important;
    }
    
    .whxxztmap_tab img {
        max-width: 100%;
    }
    
    .detail-tags {
        padding: 12px;
        gap: 8px;
    }
    
    .detail-tags a {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .random-recommend {
        padding: 15px;
    }
    
    .random-recommend h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .random-list {
        gap: 10px;
    }
    
    .random-item {
        padding: 10px 12px;
    }
    
    .limit-table-wrapper {
        margin: 0 -15px 30px;
        padding: 0 15px;
    }
    
    .limit-table {
        font-size: 12px;
    }
    
    .limit-table thead th,
    .limit-table tbody td {
        padding: 8px 5px;
    }
    
    .limit-table tbody tr.number-row td {
        font-size: 14px;
    }
    
    .tab-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        border-radius: 8px;
        text-align: center;
    }
    
    .notice-box,
    .disclaimer {
        padding: 12px 15px;
    }
    
    .content-title {
        font-size: 18px;
    }
    
    .limit-info-card {
        padding: 15px;
    }
    
    .limit-info-card h3 {
        font-size: 15px;
    }
}