/*
Theme Name: 青岛市食品工业协会
Theme URI: https://www.qfia.net
Author: QFIA Team
Author URI: https://www.qfia.net
Description: 青岛市食品工业协会官方网站主题，完全参考中国食品工业协会官网（cnfia.cn）的设计风格，支持响应式设计，适用于食品行业协会类网站。
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qfia
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, responsive-layout, accessibility-ready, food-industry, association

青岛市食品工业协会 WordPress Theme, (C) 2024
参考网站: https://www.cnfia.cn/
*/

/* ============================================
   基础样式重置
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", "PingFang SC", "Hiragino Sans GB", "Arial", "Helvetica Neue", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: all 0.3s ease;
    outline: none;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

a:focus {
    outline: 2px dashed #1e3a5f;
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ============================================
   容器和布局
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 15px;
}

.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

/* ============================================
   头部样式 - 完全照搬 cnfia.cn/sfoods.cn
   ============================================ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 顶部信息栏 - 深色背景 */
.header-top {
    background: #2c3e50;
    color: #fff;
    padding: 10px 0;
    font-size: 12px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-top-left a {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    padding: 5px 0;
}

.header-top-left a:hover {
    color: #3498db;
}

.header-email {
    color: #fff;
    font-size: 12px;
}

.header-top-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.current-date,
.current-weekday {
    color: #fff;
    font-size: 12px;
}

/* 中间Logo区域 */
.header-middle {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.header-middle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo-link img,
.custom-logo-link img {
    height: 80px;
    width: auto;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    color: #2c3e50;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
}

.site-title a:hover {
    color: #3498db;
}

.site-subtitle {
    font-size: 12px;
    color: #7f8c8d;
    margin: 5px 0 0;
    font-weight: normal;
}

/* 右侧搜索和图标区域 */
.header-right-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.header-search {
    width: 100%;
}

.header-search .search-form {
    display: flex;
    align-items: center;
}

.header-search .search-field {
    width: 280px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.header-search .search-submit {
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.header-search .search-submit:hover {
    background: #2980b9;
}

.search-icon {
    font-size: 16px;
}

/* 社交图标 */
.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
}

.header-icon-link:hover {
    color: #3498db;
    transform: translateY(-2px);
}

.header-icon-link img {
    width: 24px;
    height: 24px;
}

/* 导航菜单 - 蓝色背景，双行布局 */
.header-nav {
    background: #2874ba;
    border-bottom: 3px solid #1e5a8e;
    position: relative;
    transition: all 0.3s ease;
    z-index: 900;
}

.header-nav .container {
    position: relative;
}

.header-nav.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-navigation {
    position: relative;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    position: relative;
    margin: 0;
}

.main-menu > li {
    flex: 0 0 auto;
}

.main-menu > li > a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a {
    background: #1e5a8e;
    color: #fff;
}

/* 二级菜单（如果有） */
.main-menu li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}

.main-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e5a8e;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
}

.main-menu li:hover > .sub-menu {
    display: block;
}

.main-menu .sub-menu li {
    width: 100%;
}

.main-menu .sub-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-toggle {
    display: none;
    background: #1e5a8e;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

/* 二维码弹窗 */
.qrcode-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.qrcode-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.qrcode-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.qrcode-close:hover {
    color: #333;
}

.qrcode-modal-body img {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border: 1px solid #ddd;
    padding: 5px;
}

.qrcode-modal-body p {
    font-size: 16px;
    color: #333;
    margin: 0;
}

/* ============================================
   首页横幅区域 - 参考cnfia.cn
   ============================================ */
.top-featured-banner {
    background: #fff;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.banner-item {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-item:hover .banner-image img {
    transform: scale(1.05);
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    padding: 30px 25px 20px;
}

.banner-text h2 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    line-height: 1.5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-text h2 a {
    color: #fff;
    text-decoration: none;
}

.banner-text h2 a:hover {
    color: #ffd700;
    text-decoration: none;
}

/* 次要新闻轮播 */
.secondary-news-slider {
    background: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.news-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.slider-item:last-child {
    border-bottom: none;
}

.slider-item:hover {
    padding-left: 5px;
}

.slider-icon {
    color: #c8102e;
    font-size: 18px;
    line-height: 1.4;
    flex-shrink: 0;
}

.slider-item h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.slider-item h3 a {
    color: #333;
    text-decoration: none;
}

.slider-item h3 a:hover {
    color: #c8102e;
    text-decoration: underline;
}

/* ============================================
   内容区域
   ============================================ */
.content-area {
    padding: 0;
    min-height: 500px;
}

.homepage {
    background: #f5f5f5;
}

.homepage .row {
    padding: 0 20px;
}

/* ============================================
   大图广告位 - centerCrop 效果
   ============================================ */
.hero-banner-section {
    margin-bottom: 0;
}

.hero-banner {
    width: 100%;
    height: 500px; /* PC端最大高度 */
    max-height: 500px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* 类似 Android centerCrop，保持比例裁剪填满 */
    object-position: center center; /* 居中显示 */
    transition: transform 0.3s ease;
}

.hero-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner-link:hover img {
    transform: scale(1.05); /* 鼠标悬停时轻微放大 */
}

/* 文字广告位（红色背景）*/
.text-banner-section {
    background: #c8102e;
    padding: 15px 0;
    margin-bottom: 20px;
}

.text-banner-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.text-banner-title a {
    color: #fff;
    text-decoration: none;
}

.text-banner-title a:hover {
    text-decoration: underline;
}

/* ============================================
   幻灯片 + 新闻列表区域 - 完全参照 cnfia.cn
   ============================================ */
.featured-content-section {
    background: #fff;
    padding: 0;
    margin-bottom: 20px;
}

.featured-content-section .container {
    padding: 20px;
}

.featured-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 左侧幻灯片 - 参照 cnfia.cn */
.featured-slider {
    flex: 0 0 58%;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 左上角"重要新闻"角标 - 参照 cnfia.cn */
.featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
    border-radius: 4px 0 8px 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide-item.active {
    opacity: 1;
    z-index: 1;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 图片标题覆盖层 - cnfia.cn 风格 */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    padding: 35px 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slide-caption h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.slide-link:hover .slide-caption h3 {
    color: #ffd700;
}

/* 幻灯片分类标签 - cnfia.cn 风格 */
.slide-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(40, 116, 186, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 3px;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

/* 幻灯片导航按钮 - cnfia.cn 风格 */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-nav:hover {
    background: rgba(40, 116, 186, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* 幻灯片指示点 - cnfia.cn 风格 */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    padding: 8px 15px;
    border-radius: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

.dot.active {
    background: #2874ba;
    border-color: #fff;
    transform: scale(1.3);
}

/* 右侧新闻列表 - 完全参照 cnfia.cn */
.featured-news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.featured-news-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px dashed #e5e5e5;
    transition: all 0.3s ease;
}

.featured-news-item:last-child {
    border-bottom: none;
}

.featured-news-item:hover {
    background: #f9f9f9;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 4px;
}

/* 红色方块标记 - cnfia.cn 风格 */
.news-bullet {
    color: #d32f2f;
    font-size: 14px;
    line-height: 1.8;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: bold;
}

.featured-news-item .news-title {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    flex: 1;
}

.featured-news-item .news-title a {
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.featured-news-item .news-title a:hover {
    color: #2874ba;
    text-decoration: none;
}

/* 区块标题 - 垂直旋转样式 - 完全照搬cnfia.cn */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #1e3a5f;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    position: relative;
    height: 100%;
}

.title-icon {
    display: inline-block;
    writing-mode: vertical-rl;
    text-orientation: upright;
    padding: 12px 10px;
    background: #f5f5f5;
    border-right: 3px solid #1e3a5f;
    margin-right: 12px;
    min-width: 45px;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0;
    font-size: 18px;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #1e3a5f;
    margin-top: 18px;
    margin-left: 12px;
    min-width: 0;
}

.more-link {
    color: #1e3a5f;
    font-size: 14px;
    text-decoration: none;
}

.more-link:hover {
    color: #2a5a8f;
    text-decoration: underline;
}

/* 重要新闻 - 完全照搬cnfia.cn */
.featured-news {
    background: #fff;
    padding: 0;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    min-height: 200px;
}

.featured-news .section-title {
    margin: 0;
    padding: 0;
    border-bottom: none;
    border-right: 1px solid #e5e5e5;
    min-height: 200px;
    align-items: stretch;
}

.featured-news .section-title::after {
    display: none;
}

.featured-news-list {
    flex: 1;
    padding: 20px;
}

.featured-item {
    display: flex;
    gap: 20px;
}

.featured-thumbnail {
    flex: 0 0 300px;
    max-width: 300px;
}

.featured-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.featured-content {
    flex: 1;
}

.featured-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-title a {
    color: #1e3a5f;
}

.featured-title a:hover {
    color: #2a5a8f;
    text-decoration: none;
}

.featured-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.featured-meta span {
    margin-right: 15px;
}

.featured-excerpt {
    color: #666;
    line-height: 1.8;
}

/* 新闻网格行 - 3列布局 */
.news-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* 网格中的新闻栏目 */
.news-section-grid {
    background: #fff;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.news-section-grid .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    border-bottom: none;
    flex: 0 0 auto;
    position: relative;
}

.news-section-grid .section-title {
    margin: 0;
    padding: 0;
    border-right: 1px solid #e5e5e5;
    min-height: 60px;
    align-items: stretch;
    flex-shrink: 0;
}

.news-section-grid .section-title::after {
    display: none;
}

.news-section-grid .more-link {
    position: absolute;
    top: 12px;
    right: 20px;
    z-index: 10;
    color: #1e3a5f;
    font-size: 14px;
    text-decoration: none;
}

.news-section-grid .more-link:hover {
    color: #2a5a8f;
    text-decoration: underline;
}

.news-section-grid .news-list {
    flex: 1;
    padding: 20px;
    margin: 0;
}

/* 全宽主内容区 */
.main-content-fullwidth {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* 带特色图片的板块样式 - 参考 cnfia.cn */
.section-with-featured-image {
    display: flex;
    flex-direction: column;
}

/* 顶部标题区域 */
.section-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0 12px 0;
    margin: 0;
    border-bottom: none;
}

.section-title-wrapper {
    position: relative;
    padding-top: 8px;
}

.section-title-top {
    margin: 0;
    padding: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    color: #c62828;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.section-title-top::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #c62828;
    transition: background 0.3s ease;
}

.section-title-wrapper:hover .section-title-top {
    color: #d32f2f;
}

.section-title-wrapper:hover .section-title-top::before {
    background: #d32f2f;
}

/* 顶部右侧导航 */
.section-nav-top {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
}

.section-nav-top a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-nav-top a:hover {
    color: #c62828;
}

.section-nav-top .more-link-top {
    color: #c62828;
    font-weight: 500;
}

/* 特色图片区域 */
.featured-image-area {
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-image-link {
    display: block;
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.featured-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-image-link:hover img {
    transform: scale(1.05);
}

.featured-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    padding: 25px 20px 18px;
    color: #fff;
}

.featured-image-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.featured-image-excerpt {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 简洁列表 */
.simple-list {
    padding: 15px 20px 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.simple-list-item {
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

.simple-list-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 12px;
}

.simple-list-item a::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c62828;
    font-weight: bold;
}

.simple-list-item a:hover {
    color: #c62828;
}

/* 2列布局行 */
.news-grid-row-2col {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-grid-row-2col .news-section-grid {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

/* 协会服务板块 - 单独一行全宽 参考 cnfia.cn */
.services-section-fullwidth {
    background: #fff;
    padding: 0;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.services-section-fullwidth .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #1e3a5f;
    background: linear-gradient(to right, #f8f9fa 0%, #fff 100%);
}

.services-section-fullwidth .section-title {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: bold;
    color: #1e3a5f;
    display: flex;
    align-items: center;
}

.services-section-fullwidth .section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #1e3a5f, #2a5a8f);
    margin-right: 12px;
    border-radius: 2px;
}

.services-section-fullwidth .section-title .title-text {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.services-section-fullwidth .more-link {
    color: #1e3a5f;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.services-section-fullwidth .more-link:hover {
    color: #2a5a8f;
    text-decoration: underline;
}

.services-grid-fullwidth {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 25px;
}

.service-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: #1e3a5f;
}

.service-card-inner {
    padding: 0;
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-image-default {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a5a8f 100%);
}

.service-image-default i {
    font-size: 48px;
    color: rgba(255,255,255,0.9);
}

.service-image-default .dashicons {
    width: 48px;
    height: 48px;
    font-size: 48px;
}

.service-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    padding: 18px 15px;
    line-height: 1.5;
    text-align: center;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.service-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.service-card-title a:hover {
    color: #1e3a5f;
}

/* 新闻列表 - 完全照搬cnfia.cn */
.news-section {
    background: #fff;
    padding: 0;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    min-height: 300px;
}

.news-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    border-bottom: none;
    flex: 1;
    min-height: 300px;
    position: relative;
}

.news-section .section-title {
    margin: 0;
    padding: 0;
    border-right: 1px solid #e5e5e5;
    min-height: 300px;
    align-items: stretch;
    flex-shrink: 0;
}

.news-section .section-title::after {
    display: block;
}

.news-section .more-link {
    position: absolute;
    top: 12px;
    right: 20px;
    z-index: 10;
    color: #1e3a5f;
    font-size: 14px;
    text-decoration: none;
}

.news-section .more-link:hover {
    color: #2a5a8f;
    text-decoration: underline;
}

.news-list {
    flex: 1;
    padding: 20px;
    margin: 0;
}

.news-list-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
    align-items: flex-start;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: #f9f9f9;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: -5px;
    margin-right: -5px;
    border-radius: 4px;
}

.news-item-date {
    flex: 0 0 65px;
    text-align: center;
    background: #f5f5f5;
    padding: 8px 6px;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

.date-day {
    display: block;
    font-size: 26px;
    font-weight: bold;
    color: #1e3a5f;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-weight: normal;
}

.news-item-content {
    flex: 1;
}

.news-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.6;
}

.news-item-title a {
    color: #333;
    text-decoration: none;
}

.news-item-title a:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

.news-item-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.news-category {
    color: #1e3a5f;
    font-size: 12px;
}

/* ============================================
   侧边栏样式 - 美化版
   ============================================ */
.sidebar {
    padding-left: 20px;
}

.widget {
    background: #fff;
    padding: 0;
    margin-bottom: 25px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: #ccc;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 2px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-icon {
    font-size: 20px;
    opacity: 0.8;
}

.widget-content {
    padding: 25px;
    font-size: 14px;
}

/* ============================================
   搜索框现代化样式 - 参考流行WordPress主题
   ============================================ */
.search-form-modern {
    margin: 0;
}

.search-wrapper-modern {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-wrapper-modern:focus-within {
    background: #fff;
    border-color: #2874ba;
    box-shadow: 0 0 0 3px rgba(40, 116, 186, 0.08);
}

.search-input-modern {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
    line-height: 1.5;
}

.search-input-modern::placeholder {
    color: #999;
    font-weight: 400;
}

.search-button-modern {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    border-left: 1px solid #e0e0e0;
}

.search-wrapper-modern:focus-within .search-button-modern {
    border-left-color: #e0e0e0;
}

.search-button-modern:hover {
    color: #2874ba;
    background: #f0f4f8;
}

.search-button-modern:active {
    background: #e8f0f5;
}

.search-icon-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.search-button-modern:hover .search-icon-svg {
    transform: scale(1.1);
}

/* 旧版搜索样式保留（兼容性） */
.search-form-enhanced {
    margin: 0;
}

.search-input-wrapper {
    display: flex;
    gap: 0;
    border: 2px solid #2874ba;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #1e5a8e;
    box-shadow: 0 0 0 3px rgba(40, 116, 186, 0.1);
}

.search-field-enhanced {
    flex: 1;
    padding: 12px 18px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.search-field-enhanced::placeholder {
    color: #999;
}

.search-submit-enhanced {
    padding: 12px 24px;
    background: #2874ba;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-submit-enhanced:hover {
    background: #1e5a8e;
    transform: scale(1.02);
}

.search-submit-enhanced:active {
    transform: scale(0.98);
}

.search-icon {
    font-size: 16px;
}

.search-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .search-text {
        display: none;
    }
    
    .search-submit-enhanced {
        padding: 12px 18px;
    }
    
    .search-button-modern {
        width: 40px;
        height: 40px;
    }
    
    .search-input-modern {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 菜单小工具 */
.widget-menu li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget-menu li:last-child {
    border-bottom: none;
}

.widget-menu li a {
    color: #666;
    display: block;
    padding-left: 15px;
    position: relative;
    font-size: 13px;
}

.widget-menu li a:before {
    content: "▪";
    position: absolute;
    left: 0;
    color: #1e3a5f;
    font-size: 12px;
}

.widget-menu li a:hover {
    color: #1e3a5f;
    padding-left: 20px;
    text-decoration: none;
}

/* 新闻小工具列表 - 美化版 */
.widget-news-list-enhanced {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-news-item-enhanced {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.widget-news-item-enhanced:first-child {
    padding-top: 0;
}

.widget-news-item-enhanced:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-news-item-enhanced:hover {
    background: #f8f9fa;
    margin-left: -5px;
    margin-right: -5px;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 6px;
}

/* 排名数字（热门文章） */
.news-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2874ba 0%, #1e5a8e 100%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 圆点图标（近期文章） */
.news-icon-dot {
    color: #d32f2f;
    font-size: 12px;
    line-height: 1.8;
    flex-shrink: 0;
    margin-top: 6px;
}

/* 新闻内容 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-link {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link:hover {
    color: #2874ba;
    text-decoration: none;
}

.news-date {
    font-size: 12px;
    color: #999;
}

.no-content-text {
    color: #999;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* 旧版兼容 */
.widget-news-list {
    margin: 0;
    padding: 0;
}

.widget-news-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
}

.widget-news-list li:last-child {
    border-bottom: none;
}

.widget-news-list li:hover {
    padding-left: 5px;
}

.widget-news-icon {
    color: #c8102e;
    font-size: 10px;
    line-height: 1.8;
    flex-shrink: 0;
}

.widget-news-list li a {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.widget-news-list li a:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

/* 标签云样式 - 美化版 */
.tag-cloud-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item-enhanced {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #666;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tag-item-enhanced:hover {
    background: linear-gradient(135deg, #2874ba 0%, #1e5a8e 100%);
    color: #fff;
    border-color: #2874ba;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 116, 186, 0.3);
}

/* 旧版兼容 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #1e3a5f;
    color: #fff;
    text-decoration: none;
}

/* 小工具标签页 */
.widget-tabs {
    margin-top: 15px;
}

.widget-tab-header {
    display: flex;
    border-bottom: 2px solid #1e3a5f;
    margin-bottom: 15px;
}

.widget-tab-btn {
    flex: 1;
    padding: 8px 5px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.widget-tab-btn:hover {
    color: #1e3a5f;
}

.widget-tab-btn.active {
    color: #1e3a5f;
    border-bottom-color: #1e3a5f;
    font-weight: bold;
}

.widget-tab-content {
    position: relative;
}

.widget-tab-pane {
    display: none;
}

.widget-tab-pane.active {
    display: block;
}

/* 更多链接 */
.widget-more {
    text-align: right;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.widget-more a {
    color: #1e3a5f;
    font-size: 13px;
    text-decoration: none;
}

.widget-more a:hover {
    color: #2a5a8f;
    text-decoration: underline;
}

/* 二维码小工具 - 标签页样式 */
.qrcode-tabs {
    margin-top: 10px;
}

.qrcode-tab-header {
    display: flex;
    border-bottom: 2px solid #1e3a5f;
    margin-bottom: 15px;
}

.qrcode-tab-btn {
    flex: 1;
    padding: 8px 5px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.qrcode-tab-btn:hover {
    color: #1e3a5f;
}

.qrcode-tab-btn.active {
    color: #1e3a5f;
    border-bottom-color: #1e3a5f;
    font-weight: bold;
}

.qrcode-tab-content {
    position: relative;
    min-height: 200px;
}

.qrcode-tab-pane {
    display: none;
    text-align: center;
}

.qrcode-tab-pane.active {
    display: block;
}

.qrcode-tab-pane img {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto 10px;
    border: 1px solid #ddd;
    padding: 5px;
}

.qrcode-tab-pane p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* ============================================
   页面内容样式
   ============================================ */
.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* 页面头部标题 */
.page-header {
    background: #fff;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 28px;
    color: #1e3a5f;
    margin: 0;
    padding: 0;
    border-bottom: none;
    font-weight: bold;
}

.archive-description {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* ============================================
   归档页面列表样式 - 左侧图片+右侧内容
   ============================================ */

/* 分类标题 - 左侧竖线 */
.archive-page-header {
    background: #fff;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.archive-page-title {
    margin: 0;
    padding-left: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #1e3a5f;
    border-left: 4px solid #2874ba;
    line-height: 1.3;
}

/* 文章列表容器 */
.archive-posts-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 单篇文章项 */
.archive-post-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.archive-post-item:first-child {
    padding-top: 0;
}

.archive-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 左侧特色图片 */
.post-thumbnail {
    flex: 0 0 200px;
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

/* 右侧内容区 */
.post-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 第一行：文章标题 */
.post-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #333;
    text-decoration: none;
}

/* 第二行：分类和时间 */
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 分类标签 - 红色边框 */
.post-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-category:hover {
    color: #fff;
    background: #d32f2f;
}

/* 发布时间 */
.post-date {
    color: #999;
    font-size: 13px;
}

/* 第三行：摘要 - 可多行 */
.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 无内容提示 */
.no-content-message {
    background: #fff;
    padding: 60px 30px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.no-content-message p {
    color: #999;
    font-size: 16px;
    margin: 0;
}

/* 面包屑导航 */
.breadcrumbs {
    background: #fff;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.breadcrumbs a {
    color: #1e3a5f;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================
   文章详情页样式 - 美化版
   ============================================ */
.single-post-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

/* 文章头部 */
.single-post-header {
    padding: 40px 40px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.post-category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    color: #d32f2f;
    border: 2px solid #d32f2f;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.single-post-title {
    font-size: 32px;
    font-weight: bold;
    color: #1e3a5f;
    line-height: 1.4;
    margin: 0 0 25px 0;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    font-size: 16px;
    opacity: 0.7;
}

.single-post-meta time,
.single-post-meta .author {
    color: #666;
}

/* 特色图片 */
.single-post-featured-image {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.single-post-featured-image img {
    height: auto;
    display: block;
    object-fit: cover;
}

/* 文章内容 */
.single-post-content {
    padding: 40px;
    line-height: 1.9;
    font-size: 16px;
    color: #333;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2 {
    font-size: 24px;
    color: #1e3a5f;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
    font-weight: 600;
}

.single-post-content h3 {
    font-size: 20px;
    color: #2874ba;
    margin: 30px 0 15px;
    font-weight: 600;
}

.single-post-content h4 {
    font-size: 18px;
    color: #333;
    margin: 25px 0 12px;
    font-weight: 600;
}

.single-post-content ul,
.single-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-post-content li {
    margin-bottom: 10px;
}

.single-post-content a {
    color: #2874ba;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-content a:hover {
    color: #1e5a8e;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.single-post-content blockquote {
    border-left: 4px solid #2874ba;
    padding: 15px 20px;
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
    color: #555;
}

.single-post-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #d32f2f;
}

.single-post-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 25px 0;
}

.single-post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* 分页链接 */
.page-links {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.page-links-title {
    font-weight: 600;
    margin-right: 15px;
    color: #1e3a5f;
}

.page-links a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #2874ba;
    color: #fff;
    border-color: #2874ba;
}

/* 文章底部 */
.single-post-footer {
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
}

/* 标签 */
.post-tags {
    margin-bottom: 25px;
}

.tags-label {
    font-weight: 600;
    color: #1e3a5f;
    margin-right: 10px;
}

.tags-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #2874ba;
    color: #fff;
    border-color: #2874ba;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(40, 116, 186, 0.3);
}

/* 分享按钮 */
.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.share-label {
    font-weight: 600;
    color: #1e3a5f;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-decoration: none;
}

.share-wechat:hover {
    background: #1aad19;
    color: #fff;
    border-color: #1aad19;
}

.share-weibo:hover {
    background: #e6162d;
    color: #fff;
    border-color: #e6162d;
}

.share-copy:hover {
    background: #2874ba;
    color: #fff;
    border-color: #2874ba;
}

/* 微信分享弹窗 */
.wechat-share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wechat-share-modal.active {
    display: flex;
    opacity: 1;
}

.wechat-share-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.wechat-share-modal.active .wechat-share-content {
    transform: scale(1);
}

.wechat-share-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.wechat-share-close:hover {
    color: #333;
}

.wechat-share-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #1e3a5f;
    font-weight: 600;
}

.wechat-share-content > p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

.wechat-qrcode-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 240px;
}

.wechat-qrcode-container img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.wechat-share-tip {
    margin: 15px 0 0 0 !important;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* 分享提示消息 */
.share-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 15px 30px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.share-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.share-message-success {
    background: #1aad19;
}

.share-message-error {
    background: #e6162d;
}

/* 上下篇文章导航 */
.single-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    padding: 0 40px;
}

.nav-previous,
.nav-next {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.nav-previous.no-post,
.nav-next.no-post {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-previous.no-post:hover,
.nav-next.no-post:hover {
    transform: none;
    box-shadow: none;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    text-decoration: none;
    color: #333;
}

.nav-link h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #1e3a5f;
    transition: color 0.3s ease;
}

.nav-link:hover h3 {
    color: #2874ba;
}

.nav-next {
    text-align: right;
}

/* 评论区 */
.single-post-comments {
    margin-top: 40px;
    padding: 0 40px 40px;
}

/* ============================================
   评论样式
   ============================================ */
.comments-area {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comments-title {
    font-size: 20px;
    color: #1e3a5f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e3a5f;
}

.comment-list {
    margin-bottom: 30px;
}

.comment {
    padding: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: bold;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.comment-content {
    color: #666;
    line-height: 1.8;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: #1e3a5f;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background: #2a5a8f;
}

/* ============================================
   底部样式 - 参考cnfia.cn
   ============================================ */
.site-footer {
    background: #2c3e50;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 40px;
    font-size: 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #34495e;
}

.links-section h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: bold;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
}

.links-list li {
    display: inline;
}

.links-list a {
    color: #ccc;
    font-size: 13px;
}

.links-list a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-nav {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #34495e;
}

.footer-nav h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
}

.footer-menu li {
    display: inline;
}

.footer-menu a {
    color: #ccc;
    font-size: 13px;
}

.footer-menu a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-social {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #34495e;
}

.footer-social h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: bold;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-link {
    color: #ccc;
    font-size: 13px;
    padding: 5px 10px;
    border: 1px solid #34495e;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #fff;
    border-color: #5a6c7d;
    text-decoration: none;
}

.footer-about {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #34495e;
}

.footer-about h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-about p {
    color: #ccc;
    line-height: 1.8;
    font-size: 13px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.footer-bottom-links a {
    color: #ccc;
    font-size: 13px;
}

.footer-bottom-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom-links .separator {
    color: #666;
}

.footer-copyright {
    color: #999;
    font-size: 12px;
    line-height: 1.8;
}

.footer-copyright p {
    margin: 5px 0;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e3a5f;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: none;
    z-index: 999;
    transition: background 0.3s ease;
}

.back-to-top:hover {
    background: #2a5a8f;
}

.back-to-top.show {
    display: block;
}

/* ============================================
   广告区域样式 - 完全照搬 sfoods.cn
   ============================================ */
.ad-banner-section {
    background: #fff;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ad-banner {
    min-height: 80px;
}

/* 带图片的新闻列表项 */
.news-list-item.featured-with-image {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-list-item.featured-with-image:hover {
    background: transparent;
    padding: 15px 0;
    margin: 0;
}

.news-list-item .news-thumbnail {
    width: 100%;
    margin-bottom: 10px;
}

.news-list-item .news-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/* 新闻列表项简化样式（无日期） */
.news-list-item .news-item-content h3.news-item-title a {
    display: block;
    line-height: 2;
}

/* 优秀品牌区域 */
.brands-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
}

/* 侧边栏二维码样式调整 */
.qrcode-content {
    text-align: center;
    padding: 15px 0;
}

.qrcode-content img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
}

.qrcode-content p {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* ============================================
   分页样式
   ============================================ */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #1e3a5f;
    color: #fff;
    border-color: #1e3a5f;
}

/* ============================================
   响应式设计 - 完全照搬cnfia.cn响应式
   ============================================ */
@media (max-width: 992px) {
    .col-lg-9,
    .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sidebar {
        margin-top: 20px;
        padding-left: 15px;
    }
    
    /* 平板端侧边栏 */
    .widget {
        margin-bottom: 20px;
    }
    
    .widget-title {
        font-size: 16px;
        padding: 18px 20px;
    }
    
    .widget-content {
        padding: 20px;
    }
    
    .news-section-grid {
        min-height: auto;
    }
    
    .news-section-grid .section-title {
        flex-direction: row;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 15px 20px;
    }
    
    .news-section-grid .section-title .title-icon {
        writing-mode: horizontal-tb;
        padding: 0;
        margin-right: 0;
    }
    
    .featured-item {
        flex-direction: column;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    /* 平板设备显示2列 */
    .news-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 767px) {
    /* 手机设备显示单列 */
    .news-grid-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-thumbnail {
        flex: 1;
        max-width: 100%;
    }
    
    .news-section {
        flex-direction: column;
    }
    
    .news-section .section-title {
        flex-direction: row;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 15px 20px;
    }
    
    .news-section .section-title .title-icon {
        writing-mode: horizontal-tb;
        padding: 0;
        margin-right: 0;
    }
    
    .news-section .section-title::after {
        display: none;
    }
    
    .featured-news {
        flex-direction: column;
    }
    
    .featured-news .section-title {
        flex-direction: row;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 15px 20px;
    }
    
    .featured-news .section-title .title-icon {
        writing-mode: horizontal-tb;
        padding: 0;
        margin-right: 0;
    }
}

/* ============================================
   平板响应式
   ============================================ */
@media (max-width: 1024px) {
    /* 平板端大图广告位 */
    .hero-banner {
        height: 400px; /* 平板端高度 */
        max-height: 400px;
    }
    
    .header-middle-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .site-branding {
        width: 100%;
        justify-content: center;
    }
    
    .header-right-area {
        width: 100%;
        justify-content: center;
    }
    
    .news-section-grid {
        flex: 0 0 48%;
        max-width: 48%;
    }
    
    .news-grid-row {
        justify-content: space-between;
    }
    
    /* 平板幻灯片和新闻列表 */
    .featured-content-wrapper {
        gap: 20px;
    }
    
    .featured-slider {
        flex: 0 0 55%;
    }
    
    .featured-badge {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .slider-container {
        height: 380px;
    }
    
    .slide-caption {
        padding: 25px 20px 15px;
    }
    
    .slide-caption h3 {
        font-size: 19px;
    }
    
    .slide-category {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .featured-news-item .news-title {
        font-size: 14px;
    }
    
    /* 平板端2列布局 */
    .news-grid-row-2col .news-section-grid {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* 平板端特色图片板块 */
    .featured-image-link {
        height: 220px;
    }
    
    .featured-image-title {
        font-size: 15px;
    }
    
    .featured-image-excerpt {
        font-size: 12px;
    }
    
    .section-nav-top {
        font-size: 12px;
        gap: 12px;
    }
    
    /* 平板端协会服务 */
    .services-grid-fullwidth {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 25px 20px;
    }
    
    .service-image {
        height: 160px;
    }
    
    .service-card-title {
        font-size: 14px;
        padding: 15px 12px;
    }
}

@media (max-width: 768px) {
    /* 移动端大图广告位 */
    .hero-banner {
        height: 300px; /* 手机端高度 */
        max-height: 300px;
    }
    
    /* 移动端幻灯片和新闻列表 */
    .featured-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .featured-slider {
        flex: 1;
        width: 100%;
    }
    
    .featured-badge {
        font-size: 13px;
        padding: 7px 14px;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slide-caption {
        padding: 20px 15px 12px;
        gap: 6px;
    }
    
    .slide-caption h3 {
        font-size: 17px;
    }
    
    .slide-category {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .slider-nav {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-dots {
        gap: 10px;
        padding: 6px 12px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .featured-news-item {
        padding: 12px 0;
    }
    
    .featured-news-item .news-title {
        font-size: 14px;
    }
    
    .news-bullet {
        font-size: 12px;
    }
    
    .text-banner-title {
        font-size: 16px;
        padding: 0 15px;
    }
    
    /* 移动端归档页面样式 */
    .archive-page-header {
        padding: 15px 20px;
    }
    
    .archive-page-title {
        font-size: 20px;
        padding-left: 12px;
        border-left-width: 3px;
    }
    
    .archive-posts-wrapper {
        padding: 20px;
    }
    
    .archive-post-item {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .post-thumbnail {
        flex: none;
        width: 100%;
        height: 200px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-meta {
        gap: 10px;
    }
    
    .post-category {
        padding: 3px 10px;
        font-size: 11px;
    }
    
    .post-date {
        font-size: 12px;
    }
    
    .post-excerpt {
        font-size: 13px;
    }
    
    /* 移动端文章详情页样式 */
    .single-post-header {
        padding: 30px 25px 20px;
    }
    
    .single-post-title {
        font-size: 26px;
    }
    
    .single-post-meta {
        gap: 20px;
        font-size: 13px;
    }
    
    .single-post-content {
        padding: 30px 25px;
        font-size: 15px;
    }
    
    .single-post-content h2 {
        font-size: 22px;
        margin: 30px 0 18px;
    }
    
    .single-post-content h3 {
        font-size: 19px;
        margin: 25px 0 14px;
    }
    
    .single-post-footer {
        padding: 25px;
    }
    
    .single-post-navigation {
        grid-template-columns: 1fr;
        padding: 0 25px;
        gap: 15px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .single-post-comments {
        padding: 0 25px 25px;
    }
    
    /* 移动端侧边栏 */
    .sidebar {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .widget {
        margin-bottom: 20px;
    }
    
    .widget-title {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .widget-content {
        padding: 18px;
    }
    
    .search-wrapper-modern {
        border-width: 1px;
    }
    
    .search-input-modern {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .search-button-modern {
        width: 40px;
        height: 40px;
    }
    
    .search-icon-svg {
        width: 16px;
        height: 16px;
    }
    
    /* 旧版兼容 */
    .search-input-wrapper {
        border-width: 1.5px;
    }
    
    .search-field-enhanced {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .search-submit-enhanced {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .widget-news-item-enhanced {
        padding: 12px 0;
    }
    
    .news-rank {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .news-link {
        font-size: 13px;
    }
    
    .news-date {
        font-size: 11px;
    }
    
    .tag-item-enhanced {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    /* 移动端微信分享弹窗 */
    .wechat-share-content {
        padding: 25px 20px;
        max-width: 90%;
    }
    
    .wechat-share-content h3 {
        font-size: 18px;
    }
    
    .wechat-qrcode-container {
        padding: 15px;
        min-height: 200px;
    }
    
    .wechat-qrcode-container img {
        max-width: 180px;
    }
    
    .share-message {
        padding: 12px 24px;
        font-size: 13px;
        max-width: 80%;
        text-align: center;
    }
    
    /* 移动端隐藏菜单按钮 */
    .menu-toggle {
        display: none !important;
    }
    
    /* 移动端导航栏 - 始终显示 */
    .header-nav {
        padding: 0;
    }
    
    .header-nav .container {
        padding: 0;
    }
    
    .main-navigation {
        display: block !important;
        width: 100%;
        background: #2874ba;
    }
    
    /* 移动端菜单自动换行显示 */
    .main-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    .main-menu > li {
        flex: 0 0 auto;
        display: flex;
    }
    
    .main-menu > li > a {
        padding: 12px 15px;
        font-size: 13px;
        display: block;
        border-right: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-menu > li:last-child > a {
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    
    /* 移动端隐藏二级菜单 */
    .main-menu .sub-menu {
        display: none !important;
    }
    
    /* 移动端顶部信息栏 */
    .header-top {
        padding: 8px 0;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .header-top-left {
        flex-direction: column;
        gap: 5px;
    }
    
    .header-top-right {
        gap: 10px;
    }
    
    /* 移动端Logo区域 */
    .header-middle {
        padding: 15px 0;
    }
    
    .header-middle-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-branding {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        width: 100%;
    }
    
    .site-logo-link img,
    .custom-logo-link img {
        height: 60px;
        margin: 0 auto;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .site-subtitle {
        font-size: 11px;
    }
    
    /* 移动端搜索和图标 */
    .header-right-area {
        width: 100%;
        align-items: center;
    }
    
    .header-search {
        width: 100%;
    }
    
    .header-search .search-field {
        width: 100%;
    }
    
    .header-icons {
        gap: 20px;
    }
    
    .header-icon-link {
        font-size: 10px;
    }
    
    .header-icon-link img {
        width: 20px;
        height: 20px;
    }
    
    .banner-item {
        height: 280px;
    }
    
    .banner-text h2 {
        font-size: 18px;
    }
    
    .news-item-date {
        flex: 0 0 55px;
    }
    
    .date-day {
        font-size: 22px;
    }
    
    .date-month {
        font-size: 11px;
    }
    
    .news-item-title {
        font-size: 13px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-links {
        flex-direction: column;
    }
    
    .qrcode-tab-btn {
        font-size: 11px;
        padding: 6px 3px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕大图广告位 */
    .hero-banner {
        height: 250px; /* 超小屏幕高度 */
        max-height: 250px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .content-area {
        padding: 15px 0;
    }
    
    /* 更小屏幕菜单进一步缩小 */
    .main-menu > li > a {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* 超小屏幕幻灯片和新闻列表 */
    .featured-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .slide-caption {
        padding: 15px 12px 10px;
        gap: 5px;
    }
    
    .slide-caption h3 {
        font-size: 15px;
    }
    
    .slide-category {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 22px;
    }
    
    .slider-prev {
        left: 8px;
    }
    
    .slider-next {
        right: 8px;
    }
    
    .slider-dots {
        gap: 8px;
        padding: 5px 10px;
    }
    
    .dot {
        width: 7px;
        height: 7px;
    }
    
    .featured-news-item {
        padding: 10px 0;
        gap: 8px;
    }
    
    .featured-news-item .news-title {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .news-bullet {
        font-size: 11px;
    }
    
    .featured-news,
    .news-section,
    .widget,
    .page-content {
        padding: 10px;
    }
    
    .featured-news-list,
    .news-list {
        padding: 10px;
    }
    
    /* 超小屏幕归档页面 */
    .archive-page-header {
        padding: 12px 15px;
    }
    
    .archive-page-title {
        font-size: 18px;
        padding-left: 10px;
    }
    
    .archive-posts-wrapper {
        padding: 15px;
    }
    
    .archive-post-item {
        padding: 12px 0;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .post-title {
        font-size: 15px;
    }
    
    .post-category {
        padding: 2px 8px;
        font-size: 10px;
    }
    
    .post-date {
        font-size: 11px;
    }
    
    .post-excerpt {
        font-size: 12px;
    }
    
    /* 超小屏幕文章详情页 */
    .single-post-header {
        padding: 20px 15px 15px;
    }
    
    .single-post-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .single-post-meta {
        gap: 12px;
        font-size: 12px;
    }
    
    .single-post-content {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    .single-post-content h2 {
        font-size: 18px;
        margin: 20px 0 12px;
    }
    
    .single-post-content h3 {
        font-size: 16px;
        margin: 15px 0 10px;
    }
    
    .single-post-footer {
        padding: 15px;
    }
    
    .single-post-navigation {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 12px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-link h3 {
        font-size: 14px;
    }
    
    .single-post-comments {
        padding: 0 15px 15px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .share-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    /* 超小屏幕侧边栏 */
    .widget-title {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .widget-content {
        padding: 15px;
    }
    
    .search-input-modern {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-button-modern {
        width: 36px;
        height: 36px;
    }
    
    .search-icon-svg {
        width: 15px;
        height: 15px;
    }
    
    /* 旧版兼容 */
    .search-field-enhanced {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-submit-enhanced {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .widget-news-item-enhanced {
        padding: 10px 0;
        gap: 10px;
    }
    
    .news-rank {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .news-link {
        font-size: 12px;
    }
    
    .tag-item-enhanced {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .site-description {
        font-size: 12px;
    }
    
    .banner-item {
        height: 220px;
    }
    
    .banner-text {
        padding: 20px 15px 15px;
    }
    
    .banner-text h2 {
        font-size: 16px;
    }
    
    .secondary-news-slider {
        padding: 10px 15px;
    }
    
    .slider-item h3 {
        font-size: 14px;
    }
    
    .news-item-date {
        flex: 0 0 48px;
    }
    
    .date-day {
        font-size: 20px;
    }
    
    .featured-thumbnail img {
        height: 180px;
    }
    
    .featured-title {
        font-size: 16px;
    }
    
    .widget-title {
        font-size: 15px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .header-qrcode-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .section-title .title-icon {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .qrcode-tab-btn {
        font-size: 10px;
    }
    
    /* 移动端主内容区全宽 */
    .main-content-fullwidth {
        padding: 0 10px;
    }
    
    /* 移动端2列布局改为单列 */
    .news-grid-row-2col {
        flex-direction: column;
    }
    
    .news-grid-row-2col .news-section-grid {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* 移动端特色图片板块 */
    .section-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .section-title-top {
        font-size: 16px;
    }
    
    .section-nav-top {
        font-size: 12px;
        gap: 10px;
        width: 100%;
    }
    
    .featured-image-link {
        height: 200px;
    }
    
    .featured-image-overlay {
        padding: 20px 15px 15px;
    }
    
    .featured-image-title {
        font-size: 14px;
    }
    
    .featured-image-excerpt {
        font-size: 12px;
        margin-top: 6px;
    }
    
    .simple-list {
        padding: 12px 15px 15px;
        gap: 10px;
    }
    
    .simple-list-item a {
        font-size: 13px;
    }
    
    /* 移动端协会服务 */
    .services-section-fullwidth .section-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .services-section-fullwidth .section-title {
        font-size: 18px;
    }
    
    .services-section-fullwidth .section-title::before {
        height: 20px;
        margin-right: 10px;
    }
    
    .services-section-fullwidth .section-title .title-text {
        font-size: 18px;
    }
    
    .services-grid-fullwidth {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    .service-image {
        height: 140px;
    }
    
    .service-image-default i {
        font-size: 36px;
    }
    
    .service-image-default .dashicons {
        width: 36px;
        height: 36px;
        font-size: 36px;
    }
    
    .service-card-title {
        font-size: 13px;
        padding: 12px 10px;
    }
    
    .service-card:hover {
        transform: translateY(-2px);
    }
}

/* 超小屏幕响应式 (小于480px) */
@media (max-width: 480px) {
    .services-grid-fullwidth {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-card-title {
        font-size: 14px;
        padding: 15px;
    }
    
    .services-section-fullwidth .section-header {
        padding: 12px;
    }
    
    .services-section-fullwidth .section-title {
        font-size: 16px;
    }
    
    .services-section-fullwidth .section-title .title-text {
        font-size: 16px;
    }
    
    /* 超小屏幕特色图片板块 */
    .section-title-top {
        font-size: 15px;
    }
    
    .featured-image-link {
        height: 180px;
    }
    
    .featured-image-title {
        font-size: 13px;
    }
    
    .section-nav-top {
        gap: 8px;
        font-size: 11px;
    }
}

/* ============================================
   CNFIA风格首页布局
   ============================================ */

/* 首页容器 */
.homepage-cnfia-style {
    background: #f5f5f5;
}

.container-full {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部幻灯片 - 红色装饰边框 */
.top-slider-section {
    margin: 20px 0;
}

.slider-decoration-frame {
    border: 8px solid #d32f2f;
    border-radius: 4px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #000;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide-item.active {
    opacity: 1;
    z-index: 1;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
    padding: 25px 30px;
}

.slide-caption-bottom h2 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-nav:hover {
    background: rgba(0,0,0,0.8);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dots .dot.active {
    background: #fff;
}

/* 主内容区域 */
.main-content-area {
    background: #fff;
    margin: 20px 0;
    padding: 20px 0;
}

.content-row {
    display: flex;
    gap: 20px;
}

.left-news-column {
    flex: 0 0 70%;
}

.right-sidebar-column {
    flex: 0 0 calc(30% - 20px);
}

/* 左侧新闻列表 */
.news-list-compact {
    background: #fff;
}

.news-item-compact {
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-item-compact:last-child {
    border-bottom: none;
}

.hot-label {
    background: #d32f2f;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: bold;
}

.news-compact-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.news-compact-title:hover {
    color: #d32f2f;
}

.news-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* 右侧栏 */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.widget-title-red {
    background: #d32f2f;
    color: #fff;
    padding: 12px 15px;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.notice-list {
    padding: 15px;
}

.notice-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    display: block;
    transition: color 0.3s ease;
}

.notice-item a:hover {
    color: #d32f2f;
}

/* 三栏图片区域 */
.three-images-section {
    margin: 20px 0;
}

.three-images-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-card-title {
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
}

/* 广告横幅 */
.ad-banner-full,
.ad-banner-inner {
    margin: 20px 0;
    text-align: center;
}

.ad-banner-full img,
.ad-banner-inner img {
    max-width: 100%;
    height: auto;
}

/* 多栏板块区域 */
.multi-column-sections {
    background: #fff;
    padding: 20px 0;
}

.sections-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* 板块样式 */
.cnfia-section-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.section-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    border-bottom: 2px solid #d32f2f;
    background: linear-gradient(to right, #fafafa 0%, #fff 100%);
}

.section-block-title {
    margin: 0;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #d32f2f;
    position: relative;
}

.section-block-nav {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    font-size: 12px;
}

.section-block-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-block-nav a:hover {
    color: #d32f2f;
}

.section-block-nav a.more {
    color: #d32f2f;
    font-weight: 500;
}

/* 特色图片 */
.section-featured-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.section-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-featured-image img.section-logo-image {
    object-fit: contain;
    padding: 20px;
}

.section-featured-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    color: #fff;
    padding: 20px 15px 12px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
}

/* 文章列表 */
.section-posts-list {
    padding: 15px;
}

.section-list-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.section-list-item:last-child {
    border-bottom: none;
}

.section-list-item a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    display: block;
    transition: color 0.3s ease;
    padding-left: 12px;
    position: relative;
}

.section-list-item a::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #d32f2f;
    font-weight: bold;
}

.section-list-item a:hover {
    color: #d32f2f;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-slider {
        height: 380px;
    }
    
    .slide-caption-bottom h2 {
        font-size: 20px;
    }
    
    .three-images-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sections-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slider-decoration-frame {
        border-width: 5px;
    }
    
    .main-slider {
        height: 300px;
    }
    
    .slide-caption-bottom {
        padding: 20px 15px;
    }
    
    .slide-caption-bottom h2 {
        font-size: 16px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .content-row {
        flex-direction: column;
    }
    
    .left-news-column,
    .right-sidebar-column {
        flex: 0 0 100%;
    }
    
    .three-images-row {
        grid-template-columns: 1fr;
    }
    
    .sections-row {
        grid-template-columns: 1fr;
    }
    
    .section-featured-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .slider-decoration-frame {
        border-width: 3px;
        padding: 3px;
    }
    
    .main-slider {
        height: 240px;
    }
    
    .slide-caption-bottom h2 {
        font-size: 14px;
    }
    
    .section-block-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-block-nav {
        padding: 8px 15px;
        border-top: 1px solid #e0e0e0;
        width: 100%;
    }
}
