/*
Theme Name: 上海居住证积分网
Theme URI: http://www.shzyyun.cn
Author: shzyyun
Description: 门户资讯风格 WordPress 主题，复刻原站样式
Version: 2.0
*/

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #004080;
}

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

ul, ol {
    list-style: none;
}

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

/* ===== 顶部公告条 ===== */
.top-notice {
    background: #333;
    color: #fff;
    font-size: 11px;
    line-height: 30px;
    text-align: left;
}

.top-notice .notice-text {
    display: inline-block;
}

/* ===== 主导航 ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.nav-wrapper {
    background: #fff;
}

.header-main {
    height: 88px;
    display: flex;
    align-items: center;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    height: 88px;
}

.logo-img {
    height: 68px;
    width: auto;
}

.main-nav {
    margin-left: 40px;
    flex: 1;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-right: 5px;
    position: relative;
}

.main-nav a {
    display: block;
    padding: 0 16px;
    line-height: 88px;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: #004080;
    text-decoration: none;
}

.main-nav .current-menu-item > a {
    color: #004080;
}

.header-search {
    flex-shrink: 0;
}

.header-search form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0 4px 0 14px;
    height: 36px;
    background: #fff;
}

.header-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    width: 140px;
    padding: 0;
    color: #666;
}

.header-search button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 6px;
    font-size: 14px;
    color: #999;
}

.header-search button:hover {
    color: #004080;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #004080;
}

.breadcrumb .separator {
    margin: 0 6px;
    color: #ccc;
}

/* ===== Banner 区域 ===== */
.banner-section {
    padding: 20px 0;
}

.banner-row {
    display: flex;
    gap: 20px;
}

.banner-left {
    width: 300px;
    flex-shrink: 0;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.banner-menu {
    padding: 10px 0;
}

.banner-menu li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.banner-menu li:last-child a {
    border-bottom: none;
}

.banner-menu li a:hover {
    background: #004080;
    color: #fff;
    text-decoration: none;
}

.banner-right {
    flex: 1;
    min-width: 0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.banner-slider {
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.banner-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.banner-slider .slide.active {
    opacity: 1;
}

.banner-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: #fff;
}

/* ===== 功能图标导航 ===== */
.icon-nav {
    padding-bottom: 20px;
}

.icon-nav-inner {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
}

.icon-item {
    text-align: center;
    cursor: pointer;
    flex: 1;
}

.icon-item .icon-img {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-item .icon-img img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.icon-item span {
    font-size: 16px;
    color: #666;
}

.icon-item:hover span {
    color: #004080;
}

/* ===== 资讯模块 ===== */
.news-section {
    padding-bottom: 30px;
}

/* 左右两栏布局 */
.news-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.news-main {
    flex: 1;
    min-width: 0;
}

.news-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.news-row:last-child {
    margin-bottom: 0;
}

.row-2col {
    display: flex;
    gap: 20px;
}

.row-2col .news-col {
    flex: 1;
    min-width: 0;
}

/* 资讯卡片 */
.news-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

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

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #004080;
    display: flex;
    align-items: center;
}

.title-icon {
    color: #004080;
    margin-right: 6px;
    font-size: 12px;
}

.more-link {
    font-size: 12px;
    color: #999;
}

.more-link:hover {
    color: #004080;
    text-decoration: none;
}

.news-card-body {
    padding: 15px 20px 20px;
}

/* 头条文章 */
.news-feature {
    margin-bottom: 10px;
}

.news-feature .feat-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.news-feature .feat-thumb {
    width: 130px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-feature .feat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-feature .feat-title {
    flex: 1;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.news-feature .feat-link:hover .feat-title {
    color: #004080;
}

/* 资讯列表 */
.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dotted #eee;
    font-size: 16px;
}

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

.news-list .news-link {
    flex: 1;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.news-list .news-link:hover {
    color: #004080;
}

.news-list .news-date {
    flex-shrink: 0;
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

/* 二维码卡片 */
.qr-card .news-card-body {
    padding: 15px;
}

.qr-code-box {
    text-align: center;
}

.qr-img {
    width: 160px;
    height: 160px;
    margin: 0 auto 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.qr-tip {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.qr-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* 常见问答 */
.faq-list li {
    padding: 10px 0;
    border-bottom: 1px dotted #eee;
}

.faq-list li:last-child {
    border-bottom: none;
}

.faq-q {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}

.ask-tag {
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    padding: 0 5px;
    border-radius: 2px;
    flex-shrink: 0;
    line-height: 18px;
    margin-top: 1px;
}

.faq-q a {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.faq-q a:hover {
    color: #004080;
}

.faq-a {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.ans-tag {
    background: #52c41a;
    color: #fff;
    font-size: 11px;
    padding: 0 5px;
    border-radius: 2px;
    flex-shrink: 0;
    line-height: 18px;
    margin-top: 1px;
}

.faq-a {
    color: #999;
    font-size: 12px;
    line-height: 1.5;
}

/* ===== 右侧浮动工具栏 ===== */
.float-toolbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.float-item {
    width: 48px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 2px;
    text-align: center;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    color: #666;
}

.float-item:hover {
    background: #004080;
    color: #fff;
    border-color: #004080;
}

.float-icon {
    font-size: 18px;
    margin-bottom: 3px;
}

/* ===== 内页两栏布局 ===== */
.layout {
    display: flex;
    gap: 20px;
    padding: 10px 0 30px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar-right {
    width: 300px;
    flex-shrink: 0;
}

/* 内页文章列表 */
.post-list .post-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.post-list .post-item:hover {
    border-color: #004080;
    box-shadow: 0 2px 8px rgba(0,64,128,0.08);
}

.post-list .post-title {
    margin-bottom: 10px;
}

.post-list .post-title a {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.post-list .post-title a:hover {
    color: #004080;
}

.post-list .post-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-list .post-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.post-list .post-meta .post-author {
    color: #004080;
}

.post-list .post-meta .post-cats a {
    display: inline-block;
    padding: 1px 8px;
    background: #e8f0fa;
    color: #004080;
    border-radius: 10px;
    font-size: 12px;
    margin-right: 5px;
}

.post-list .post-meta .post-cats a:hover {
    background: #004080;
    color: #fff;
    text-decoration: none;
}

/* 归档/搜索标题条 */
.archive-title,
.search-results-title {
    background: #f7f9fc;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 12px 18px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* ===== 侧边栏 widget ===== */
.widget {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 18px;
    overflow: hidden;
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    color: #004080;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #004080;
    margin-right: 8px;
    vertical-align: middle;
}

.widget ul {
    padding: 8px 15px;
}

.widget ul li {
    padding: 7px 0;
    border-bottom: 1px dotted #eee;
    font-size: 13px;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget ul li a:hover {
    color: #004080;
    padding-left: 3px;
}

/* 热门文章 */
.widget_popular li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.widget_popular .num {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #ccc;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.widget_popular li:nth-child(1) .num { background: #ff4d4f; }
.widget_popular li:nth-child(2) .num { background: #ff7a45; }
.widget_popular li:nth-child(3) .num { background: #ffa940; }

/* 标签云 */
.tagcloud {
    padding: 12px 15px;
}

.tagcloud a {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 6px 6px 0;
    background: #f0f5ff;
    color: #004080;
    border-radius: 12px;
    font-size: 12px !important;
    transition: all 0.2s;
}

.tagcloud a:hover {
    background: #004080;
    color: #fff;
    text-decoration: none;
}

/* ===== 文章详情页 ===== */
.single-post-content {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 25px 30px;
}

.single-post-content h1.post-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: center;
}

.single-post-content .post-meta {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.single-post-content .post-meta span {
    margin: 0 8px;
}

.single-post-content .post-meta a {
    color: #004080;
}

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

.single-post-content .post-content p {
    margin-bottom: 1em;
}

.single-post-content .post-content h2,
.single-post-content .post-content h3,
.single-post-content .post-content h4 {
    margin: 25px 0 15px;
    color: #333;
    font-weight: 700;
}

.single-post-content .post-content h2 { font-size: 18px; }
.single-post-content .post-content h3 { font-size: 16px; }

.single-post-content .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    margin: 10px auto;
}

.single-post-content .post-content a {
    color: #004080;
}

.single-post-content .post-content a:hover {
    text-decoration: underline;
}

.single-post-content .post-content ul,
.single-post-content .post-content ol {
    margin: 10px 0 16px;
    padding-left: 24px;
}

.single-post-content .post-content ul li { list-style: disc; margin-bottom: 6px; }
.single-post-content .post-content ol li { list-style: decimal; margin-bottom: 6px; }

.single-post-content .post-content blockquote {
    border-left: 4px solid #004080;
    padding: 10px 15px;
    background: #f7f9fc;
    margin: 15px 0;
    color: #666;
}

.single-post-content .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.single-post-content .post-content table th,
.single-post-content .post-content table td {
    border: 1px solid #e5e5e5;
    padding: 8px 12px;
}

.single-post-content .post-content table th {
    background: #f7f9fc;
    font-weight: 700;
}

/* 文章标签 */
.single-post-content .post-tags {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.single-post-content .post-tags strong {
    color: #666;
    margin-right: 8px;
    font-size: 13px;
}

.single-post-content .post-tags a {
    display: inline-block;
    padding: 3px 12px;
    margin: 0 6px 6px 0;
    background: #f0f5ff;
    color: #004080;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.2s;
}

.single-post-content .post-tags a:hover {
    background: #004080;
    color: #fff;
    text-decoration: none;
}

/* 上下篇导航 */
.article-nav-wrapper {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px 20px;
    margin-top: 18px;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.article-nav .nav-item {
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-nav .nav-item a {
    color: #555;
}

.article-nav .nav-item a:hover {
    color: #004080;
}

/* ===== 分页 ===== */
.pagination {
    text-align: center;
    padding: 25px 0;
}

.pagination .page-numbers {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
    background: #fff;
    margin: 0 2px;
}

.pagination .page-numbers:hover {
    border-color: #004080;
    color: #004080;
    text-decoration: none;
}

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

/* ===== 404 页面 ===== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.error-404 h1 {
    font-size: 80px;
    color: #004080;
    margin-bottom: 10px;
}

.error-404 p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.error-404 a {
    display: inline-block;
    padding: 10px 30px;
    background: #004080;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.error-404 a:hover {
    background: #003366;
    color: #fff;
    text-decoration: none;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 20px;
    margin-top: 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-links h1 {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    margin: 16.08px 0;
    margin-right: 20px;
    flex-shrink: 0;
}

.footer-links .links-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding-top: 16.08px;
    padding-bottom: 16.08px;
}

.footer-links .links-wrapper p {
    margin: 0;
    margin-right: 20px;
    line-height: 18px;
}

.footer-links a {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-content-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-column {
    width: 352px;
    flex-shrink: 0;
}

.footer-column h1 {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    margin: 16.08px 0;
}

.footer-column p {
    font-size: 12px;
    color: #fff;
    line-height: 18px;
    margin: 12px 0;
}

.footer-qrcode {
    text-align: left;
}

.footer-qrcode img {
    width: 100px;
    height: 100px;
    display: block;
}

.footer-qrcode p {
    font-size: 12px;
    color: #fff;
    line-height: 18px;
    margin: 12px 0;
    text-align: left;
}

.footer-info {
    text-align: center;
    color: #fff;
    font-size: 12px;
}

.footer-info p {
    font-size: 12px;
    color: #fff;
    line-height: 18px;
    margin: 12px 0;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}

/* ===== 内页(分类列表页) ===== */
.archive-layout {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 30px;
    align-items: flex-start;
}

.archive-main {
    flex: 1;
    min-width: 0;
}

.archive-sidebar {
    width: 284px;
    flex-shrink: 0;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #000;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #004080;
}

.breadcrumb .separator {
    margin: 0 5px;
    color: #999;
}

/* 文章列表 */
.archive-main .left-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: none;
    padding: 10px;
}

.archive-main .left-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #303133;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.archive-main .news-list {
    display: block;
    padding: 0;
    background: transparent;
}

.archive-main .news-item {
    display: block;
    padding: 0;
    background: #fff;
    border: none;
    border-radius: 10px;
    margin: 20px 0;
    cursor: pointer;
    transition: all .3s ease;
}

.archive-main .news-item:hover {
    background-color: #f0f0f0;
}

.archive-main .news-content {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.archive-main .news-title {
    flex: 1;
    margin-right: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-main .news-item:hover .news-title {
    color: #004080;
}

.archive-main .news-time {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.archive-main .news-time::before {
    content: "|";
    margin-right: 5px;
    color: #333;
}

/* 分页 */
.archive-pagination {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
}

.archive-pagination .page-numbers {
    display: inline-block;
    min-width: 30px;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    margin: 0 2px;
    font-size: 13px;
    color: #606266;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    text-decoration: none;
}

.archive-pagination .page-numbers:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background: #ecf5ff;
}

.archive-pagination .page-numbers.current {
    color: #fff;
    background: #409eff;
    border-color: #409eff;
}

.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
    padding: 0 10px;
}

/* 右侧栏卡片 */
.side-card {
    background: #fff;
    border: 0.8px solid #ddd;
    border-radius: 4px;
    box-shadow: none;
    margin-bottom: 20px;
    overflow: hidden;
}

.side-card-body {
    padding: 15px 20px 20px;
}

.side-card-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #303133;
    margin: 0;
    padding: 10px 0;
    border-bottom: 0.8px solid #ddd;
}

.tool-item {
    display: block;
    background: #f9f9f9;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    color: #303133;
    text-align: center;
    cursor: pointer;
}

.tool-item a {
    color: #303133;
    text-decoration: none;
}

.tool-item:hover,
.tool-item:hover a {
    color: #409eff;
}

.hot-landing-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
}

.method-item {
    display: block;
    background: #f9f9f9;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    color: #303133;
    text-align: center;
}

.method-item a {
    color: #303133;
    text-decoration: none;
}

.method-item:hover a {
    color: #409eff;
}

.qr-code {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.qr-code img {
    flex-shrink: 0;
}

.qr-text p {
    font-size: 12px;
    color: #666;
    line-height: 18px;
    margin: 0 0 5px;
}

.faq-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-question {
    font-size: 13px;
    color: #333;
    line-height: 20px;
    margin-bottom: 5px;
}

.faq-question b {
    margin-right: 5px;
}

.faq-answer {
    font-size: 12px;
    color: #999;
    line-height: 18px;
}

.faq-answer b {
    margin-right: 5px;
}

/* ===== 文章内页 ===== */
.single-layout {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 30px;
    align-items: flex-start;
}

.single-main {
    flex: 1;
    min-width: 0;
}

.single-sidebar {
    width: 284px;
    flex-shrink: 0;
}

/* 文章头部 */
.article-header {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.blog-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.blog-date,
.blog-views {
    font-size: 14px;
    color: #999;
    margin: 0 10px;
}

.blog-cat {
    font-size: 14px;
    color: #999;
}

.blog-cat a {
    color: #999;
}

.blog-cat a:hover {
    color: #007bff;
}

/* 正文内容 */
.article-content-wrapper {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

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

.article-content img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
}

.article-content p {
    margin: 0 0 1em 0 !important;
}

/* 标签 */
.post-tags {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.post-tags strong {
    color: #333;
    margin-right: 8px;
}

.post-tags a {
    display: inline-block;
    padding: 3px 8px;
    margin-right: 6px;
    margin-bottom: 5px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
}

.post-tags a:hover {
    background: #007bff;
    color: #fff;
}

/* 上下篇导航 */
.article-nav-wrapper {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-nav .nav-item {
    display: flex;
    align-items: center;
}

.article-nav .nav-item a {
    color: #000;
    text-decoration: none;
}

.article-nav .nav-item a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 相关文章 */
.related-articles-wrapper {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
}

.related-articles h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 10px;
    font-size: 14px;
}

.related-articles li a {
    color: #333;
    text-decoration: none;
}

.related-articles li a:hover {
    color: #007bff;
    text-decoration: underline;
}

.related-articles li span.date {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
}
@media (max-width: 1240px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .banner-row { flex-direction: column; }
    .banner-left { width: 100%; }
    .banner-right { height: 200px; }
    .news-layout { flex-direction: column; }
    .news-sidebar { width: 100%; }
    .news-row { flex-direction: column; }
    .row-2col { flex-direction: column; }
    .layout { flex-direction: column; }
    .sidebar-right { width: 100%; }
    .archive-layout { flex-direction: column; }
    .archive-sidebar { width: 100%; }
    .single-layout { flex-direction: column; }
    .single-sidebar { width: 100%; }
    .main-nav { display: none; }
    .header-search input { width: 100px; }
    .footer-cols { flex-direction: column; gap: 20px; }
    .footer-content-wrapper { flex-direction: column; }
    .footer-column { width: 100%; }
    .icon-nav-inner { flex-wrap: wrap; }
    .icon-item { flex: 0 0 33%; margin-bottom: 10px; }
    .float-toolbar { display: none; }
    .single-post-content { padding: 15px; }
    .single-post-content h1.post-title { font-size: 18px; }
    .archive-layout { flex-direction: column; }
    .archive-sidebar { width: 100%; }
}

/* ===== 落户资格测评系统 ===== */
.evaluation-system {
    width: 100%;
    padding: 10px 0 30px;
}

.evaluation-system .outer-container {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
}

.evaluation-system .title-container {
    margin-bottom: 10px;
}

.evaluation-system .system-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0;
}

.evaluation-system .system-desc {
    font-size: 16px;
    color: #999;
    text-align: center;
    margin-top: 15px;
}

.evaluation-system .form-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.evaluation-system .form-wrapper {
    width: 600px;
    max-width: 100%;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
}

.evaluation-system .form-border {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 25px 30px;
}

.evaluation-system .evaluation-form {
    width: 100%;
}

.evaluation-system .form-item {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.evaluation-system .form-label {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 12px;
    font-size: 15px;
    color: #606266;
    line-height: 40px;
}

.evaluation-system .form-control {
    flex: 1;
    min-width: 0;
}

.evaluation-system .form-control input,
.evaluation-system .form-control select {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.evaluation-system .form-control input:focus,
.evaluation-system .form-control select:focus {
    border-color: #409eff;
}

.evaluation-system .form-control select {
    cursor: pointer;
    appearance: auto;
}

.evaluation-system .tip-text {
    font-size: 14px;
    color: #f56c6c;
    margin-bottom: 18px;
    text-align: center;
}

.evaluation-system .button-group {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.evaluation-system .btn {
    margin: 0 15px;
    width: 200px;
    height: 40px;
    font-size: 16px;
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.evaluation-system .btn-primary {
    color: #409eff;
    border-color: #409eff;
    background: #ecf5ff;
}

.evaluation-system .btn-primary:hover {
    background: #409eff;
    color: #fff;
}

.evaluation-system .btn-primary:disabled {
    background: #a0cfff;
    border-color: #a0cfff;
    color: #fff;
    cursor: not-allowed;
}

.evaluation-system .btn-info {
    color: #909399;
    border-color: #909399;
    background: #f4f4f5;
}

.evaluation-system .btn-info:hover {
    background: #909399;
    color: #fff;
}

.evaluation-system .agreement {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.evaluation-system .agreement-label {
    cursor: pointer;
    color: #606266;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.evaluation-system .agreement-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.evaluation-system .agreement a {
    color: #409eff;
    text-decoration: none;
}

.evaluation-system .agreement a:hover {
    text-decoration: underline;
}

/* 表单错误提示 */
.eval-error-msg {
    color: #f56c6c;
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
    padding: 8px;
    background: #fef0f0;
    border-radius: 4px;
}

/* 提交成功弹窗 */
.eval-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eval-modal {
    background: #fff;
    border-radius: 8px;
    width: 420px;
    max-width: 90%;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

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

.eval-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.eval-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #909399;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.eval-modal-close:hover {
    color: #409eff;
}

.eval-modal-body {
    padding: 20px;
    text-align: center;
}

.eval-qr-box {
    text-align: center;
    margin-bottom: 15px;
}

.eval-qr-box img {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: block;
}

.eval-submit-no {
    font-size: 14px;
    color: #606266;
    line-height: 1.8;
    margin: 0;
}

.eval-submit-no strong {
    color: #f56c6c;
    font-size: 16px;
}

.eval-modal-footer {
    padding: 10px 20px 20px;
    text-align: center;
}

.eval-modal-footer .btn {
    margin: 0;
    width: 120px;
}

@media (max-width: 768px) {
    .evaluation-system .form-wrapper { width: 100%; }
    .evaluation-system .form-border { padding: 15px; }
    .evaluation-system .form-item { flex-direction: column; align-items: flex-start; }
    .evaluation-system .form-label { width: auto; text-align: left; padding-right: 0; margin-bottom: 6px; }
    .evaluation-system .btn { width: 45%; margin: 0 5px; }
}

/* ===== 个税计算器（社保个税测算） ===== */
.calc-system {
    width: 100%;
    padding: 10px 0 30px;
}

.calc-title-desc {
    text-align: center;
    margin: 20px auto;
    max-width: 1200px;
}

.calc-title {
    font-weight: 700;
    color: #004080;
    font-size: 24px;
    margin: 0;
}

.calc-desc {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.calc-biaodan {
    margin-top: 20px;
    margin-bottom: 0;
}

.calc-form-wrapper {
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1200px;
    margin-bottom: 0 !important;
}

.calc-wenda {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}

.calc-step-box {
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.calc-question-title {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.calc-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.calc-label {
    margin-right: 10px;
    font-size: 14px;
    color: #333;
}

.calc-input-box {
    width: 200px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.calc-input-box:focus {
    border-color: #004080;
}

.calc-unit {
    margin-left: 10px;
    font-size: 14px;
    color: #333;
}

.calc-radio-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.calc-radio-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.calc-radio-row {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.calc-radio-row input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #004080;
}

.calc-radio-label {
    margin-right: 10px;
}

.calc-button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.calc-btn {
    flex: 1;
    margin: 0 10px;
    height: 40px;
    font-size: 14px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: #606266;
}

.calc-btn:hover {
    color: #004080;
    border-color: #004080;
}

.calc-btn-prev {
    /* 上一题：默认浅色按钮 */
}

.calc-btn-next {
    background-color: #004080;
    border-color: #004080;
    color: #fff;
    width: 45%;
}

.calc-btn-next:hover {
    background: #003366;
    border-color: #003366;
    color: #fff;
}

.calc-btn-next:disabled {
    background: #6c8eb3;
    border-color: #6c8eb3;
    cursor: not-allowed;
}

.calc-btn-submit {
    background-color: #004080;
    border-color: #004080;
    color: #fff;
}

.calc-btn-submit:hover {
    background: #003366;
    border-color: #003366;
    color: #fff;
}

.calc-btn-submit:disabled {
    background: #6c8eb3;
    border-color: #6c8eb3;
    cursor: not-allowed;
}

/* 计算器成功弹窗 */
.calc-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-modal {
    background: #fff;
    border-radius: 8px;
    width: 420px;
    max-width: 90%;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

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

.calc-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.calc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #909399;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.calc-modal-close:hover {
    color: #004080;
}

.calc-modal-body {
    padding: 20px;
    text-align: center;
}

.calc-modal-qr {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calc-modal-qr img {
    max-width: 100%;
    max-height: 200px;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .calc-wenda { width: 100%; }
    .calc-step-box { padding: 15px 10px; }
    .calc-input-box { width: 150px; }
    .calc-btn { margin: 0 5px; }
    .calc-radio-row { flex-wrap: wrap; }
}

/* ===== 居住证积分模拟器样式 ===== */
.jifen-system {
    background: #fff;
    padding: 30px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.jifen-title-desc {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.jifen-title {
    font-size: 26px;
    color: #004080;
    margin-bottom: 12px;
    font-weight: 600;
}

.jifen-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 800px;
}

.jifen-biaodan {
    max-width: 860px;
    margin: 0 auto;
}

.jifen-form-wrapper {
    background: #f8fafc;
    border: 1px solid #e3eaf3;
    border-radius: 6px;
    padding: 25px 30px;
}

.jifen-wenda {
    width: 100%;
}

.jifen-step-box {
    padding: 10px 5px;
    margin-bottom: 20px;
}

.jifen-question-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left;
}

.jifen-question-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    text-align: left;
}

.jifen-option-group {
    margin-bottom: 10px;
}

.jifen-option-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #dde4ed;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jifen-option-item:hover {
    border-color: #004080;
    background: #f0f6ff;
}

.jifen-option-item input[type="radio"],
.jifen-option-item input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.jifen-option-label {
    flex: 1;
    color: #444;
    font-size: 15px;
}

.jifen-option-score {
    color: #004080;
    font-weight: 600;
    font-size: 15px;
    margin-left: 10px;
}

.jifen-option-score.negative {
    color: #d9534f;
}

.jifen-option-with-input {
    flex-wrap: wrap;
    gap: 8px;
}

.jifen-option-with-input .jifen-option-label {
    flex: none;
}

.jifen-input-box {
    width: 90px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.jifen-input-box:focus {
    border-color: #004080;
}

.jifen-option-unit {
    color: #666;
    font-size: 14px;
}

.jifen-button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.jifen-btn {
    flex: 1;
    height: 42px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid #cfd8e3;
    background: #fff;
    color: #606266;
    transition: all 0.2s ease;
}

.jifen-btn:hover {
    color: #004080;
    border-color: #004080;
}

.jifen-btn-next,
.jifen-btn-submit {
    background-color: #004080;
    border-color: #004080;
    color: #fff;
}

.jifen-btn-next:hover,
.jifen-btn-submit:hover {
    background: #003366;
    border-color: #003366;
    color: #fff;
}

.jifen-btn-next:disabled,
.jifen-btn-submit:disabled {
    background: #6c8eb3;
    border-color: #6c8eb3;
    cursor: not-allowed;
}

/* 弹窗 */
.jifen-modal-mask {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.jifen-modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.jifen-modal-header {
    padding: 16px 20px;
    background: #004080;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jifen-modal-title {
    font-size: 16px;
    font-weight: 600;
}

.jifen-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.jifen-modal-body {
    padding: 25px 20px;
    text-align: center;
}

.jifen-modal-score {
    margin-bottom: 20px;
    padding: 20px;
    background: #f0f6ff;
    border-radius: 6px;
}

.jifen-score-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.jifen-score-value {
    font-size: 42px;
    font-weight: 700;
    color: #004080;
    margin-bottom: 8px;
}

.jifen-score-value.pass {
    color: #28a745;
}

.jifen-score-value.fail {
    color: #d9534f;
}

.jifen-score-tip {
    font-size: 14px;
    color: #555;
}

.jifen-modal-no {
    font-size: 14px;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.6;
}

.jifen-modal-qr img {
    width: 180px;
    height: 180px;
    border: 1px solid #eee;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .jifen-wenda { width: 100%; }
    .jifen-step-box { padding: 15px 10px; }
    .jifen-input-box { width: 80px; }
    .jifen-btn { margin: 0 5px; }
    .jifen-form-wrapper { padding: 15px; }
    .jifen-option-item { padding: 10px 12px; }
}



