/*
Theme Name: RapidDirect Clone
Theme URI: 
Author: Your Name
Author URI: 
Description: A modern WordPress theme inspired by RapidDirect
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rapiddirect-clone
*/

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 重置和基础样式 */
:root {
    --primary-color: #0066cb;
    --secondary-color: #004d99;
    --accent-color: #ff6b00;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    min-height: 100vh; /* 确保body至少占满视口高度 */
    display: flex;
    flex-direction: column;
}

html {
    height: 100%;
}

/* 确保主要内容区域能够扩展 */
.content-sections {
    flex: 1; /* 让内容区域占据剩余空间 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 头部样式 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    width: 100%;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 80px;
}

/* LOGO区域 */
.site-branding {
    flex: 0 0 auto;
    padding: 10px 0;
}

.custom-logo-link {
    display: block;
}

.custom-logo-link img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* 主菜单区域 */
.main-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    margin: 0 20px;
}

.nav-menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

/* 一级菜单项 */
.nav-menu > li {
    position: static;
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 80px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu > li:hover > a {
    color: #005AEE;
}

/* Mega Menu 容器 */
.mega-menu {
    position: absolute; /* 改回absolute定位 */
    top: 100%; /* 相对于父容器定位 */
    left: 50%; /* 居中定位 */
    transform: translateX(-50%); /* 水平居中 */
    width: 100vw; /* 使用视口宽度确保全屏 */
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999; /* 确保在最顶层 */
    pointer-events: none;
}

.menu-item-has-children:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Mega Menu 内容区域 */
.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex; /* 改为flex布局 */
    flex-wrap: wrap; /* 允许换行 */
    gap: 40px;
    align-items: flex-start;
}

.mega-menu-column {
    flex: 1 1 200px; /* 弹性布局，最小宽度200px */
    min-width: 200px;
}

/* Mega Menu 标题 */
.mega-menu-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.mega-menu-title a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

.mega-menu-title a:hover {
    color: #005AEE;
}

/* Mega Menu 列表 */
.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin: 0;
    padding: 0;
}

.mega-menu-list li a {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.mega-menu-list li a:hover {
    color: #005AEE;
    padding-left: 5px;
}

/* 右侧按钮 */
.header-actions {
    flex: 0 0 auto;
    margin-left: 20px;
}

.header-cta {
    display: inline-block;
    padding: 10px 20px;
    background: #005AEE;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.header-cta:hover {
    background: #0046bb;
    color: #fff;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-navigation {
        height: 70px;
    }

    .nav-menu > li > a {
        padding: 0 15px;
        height: 70px;
    }

    .mega-menu {
        top: 100%; /* 保持相对于父容器的定位 */
    }

    .mega-menu-container {
        padding: 20px;
        gap: 20px;
        flex-wrap: wrap; /* 确保在中等屏幕下也能换行 */
    }

    .mega-menu-column {
        min-width: 180px;
        flex: 1 1 180px; /* 调整弹性布局 */
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: #333;
        margin: 5px 0;
        transition: 0.3s;
    }

    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 0;
        margin: 0;
        display: none;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }

    .main-menu.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        height: auto;
        padding: 15px 20px;
    }

    .mega-menu {
        display: none;
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        transform: none !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-top: none !important;
        z-index: auto !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .mega-menu.open {
        display: block;
    }
    .mega-menu-list ul {
        display: none;
    }
    .mega-menu-list ul.open {
        display: block;
    }

    .mega-menu-container {
        flex-direction: column;
        padding: 0;
        display: flex; /* 保持flex布局 */
    }

    .mega-menu-column {
        max-width: none;
        padding: 0 20px;
        flex: 1 1 auto; /* 移动端全宽显示 */
    }

    .mega-menu-title {
        border-bottom: none;
        margin: 10px 0;
    }

    .mega-menu-list li a {
        padding: 8px 15px;
    }
}

/* 首页欢迎区域样式 */
.hero-welcome-section {
    background-color: #0066cb;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px 80px 20px;
    padding-top: 0 !important;
    margin-top: 0;
}

.hero-welcome-section h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-welcome-section p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-welcome-section {
        padding-top: 140px;
        padding-bottom: 60px;
        margin-top: 16px;
    }
    .hero-welcome-section h1 {
        font-size: 2.5rem;
    }
    .hero-welcome-section p {
        font-size: 1.1rem;
    }
}

.hero-welcome-section .container.welcome-flex {
    margin-top: 20px;
}
@media (max-width: 600px) {
    .hero-welcome-section .container.welcome-flex {
        margin-top: 10px;
    }
}

/* ==========================================================================
   通用内容区域和卡片样式
   ========================================================================== */

/* 通用内容区域 */
.content-section {
    padding: 80px 0;
    border-bottom: 1px solid #f0f0f0;
}

.content-section:nth-child(even) {
    background-color: #f9f9f9;
}

/* 统一网格布局 */
.unified-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 统一卡片样式 */
.unified-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.unified-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* 卡片中的图标/图片 */
.unified-card .business-icon,
.unified-card .feature-icon {
    margin-bottom: 20px;
    text-align: center;
}

.unified-card .business-icon img,
.unified-card .feature-icon img {
    max-width: 60px;
    height: auto;
    width: 100%;
    object-fit: contain; /* 保持图片比例 */
    transition: transform 0.3s ease;
}

.unified-card:hover .business-icon img,
.unified-card:hover .feature-icon img {
    transform: scale(1.1);
}

/* 服务卡片美化（上图下文+红色对勾列表） */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 32px 24px 28px 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    transition: box-shadow 0.2s, transform 0.2s;
    width: 320px;
    min-height: 380px;
    margin: 0 auto;
    position: relative;
}
.service-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    transform: translateY(-4px) scale(1.02);
}
.service-image {
    width: 120px;
    height: 120px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #f7f7f7;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.service-content h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #222;
    display: flex;
    align-items: center;
    gap: 6px;
}
.service-content h3::after {
    content: '\2197';
    color: #e53935;
    font-size: 1rem;
    margin-left: 4px;
    font-weight: bold;
    display: inline-block;
    transform: translateY(-2px) scale(0.9);
}
.service-excerpt {
    color: #444;
    font-size: 1rem;
    margin-bottom: 14px;
    min-height: 48px;
    line-height: 1.7;
}
.service-excerpt ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-excerpt li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    color: #222;
    font-size: 0.98rem;
    line-height: 1.6;
}
.service-excerpt li::before {
    content: '\2714';
    color: #e53935;
    font-size: 1.1em;
    position: absolute;
    left: 0;
    top: 2px;
}
.read-more {
    color: #e53935;
    font-size: 0.98rem;
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
}
@media (max-width: 900px) {
    .service-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

/* 客户评价卡片特殊样式 */
.testimonial-item .testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #555;
    font-size: 1.1rem;
    position: relative;
    padding-left: 25px;
}

.testimonial-item .testimonial-content::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: #0066cb;
    opacity: 0.2;
}

.testimonial-item .testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto; /* 确保作者信息总在卡片底部 */
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.testimonial-item .testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-item .author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.testimonial-item .author-info p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

/* ==========================================================================
   面包屑导航
   ========================================================================== */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9em;
    width: 100%;
    background-color: #1a202c; /* 深色背景 */
    color: #a0aec0; /* 浅色文字 */
    border-bottom: 1px solid #2d3748;
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs a {
    color: #718096; /* 链接颜色 */
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #fff; /* 鼠标悬停时变白 */
    text-decoration: underline;
}

.breadcrumbs span.current {
    color: #fff; /* 当前页面文字为白色 */
    font-weight: 600;
}

.breadcrumbs span.separator {
    margin: 0 10px;
    color: #4a5568; /* 分隔符颜色 */
}

/* ==========================================================================
   文章页面 (single.php) UI优化样式
   ========================================================================== */

/* 整体容器和布局 */
.single-post-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 35px rgba(0,0,0,0.07);
}

/* 特色图片 */
.post-thumbnail-header {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}
.post-thumbnail-header img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章标题 */
.entry-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}
.entry-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

/* 文章元信息 (作者、日期、分类) */
.entry-meta {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.entry-meta .meta-item {
    display: flex;
    align-items: center;
}
.entry-meta .meta-item i {
    color: #0066cb;
    margin-right: 8px;
}
.entry-meta a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}
.entry-meta a:hover {
    color: #0066cb;
}

/* 文章内容排版 */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.entry-content p {
    margin-bottom: 1.5em;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
    color: #222;
}
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.7rem; }
.entry-content h4 { font-size: 1.4rem; }
.entry-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: #f9f9f9;
    border-left: 5px solid #0066cb;
    font-style: italic;
    font-size: 1.2rem;
}
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* 文章标签 */
.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.tags-links {
    font-size: 0.9rem;
}
.tags-links i {
    margin-right: 8px;
    color: #0066cb;
}
.tags-links a {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s;
}
.tags-links a:hover {
    background: #0066cb;
    color: #fff;
}

/* 作者简介 */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px; /* 只保留上边距 */
}
.author-avatar img {
    border-radius: 50%;
}
.author-title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.author-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* 评论区 */
.comments-area {
    background: #fff;
    padding: 40px 0; /* 调整内边距 */
    margin-top: 40px; /* 只保留上边距 */
    border-top: 1px solid #eee; /* 添加一个顶部分隔线 */
}
.comments-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #0066cb;
    padding-bottom: 15px;
    display: inline-block;
}
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-list .comment {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.comment-author .avatar {
    border-radius: 50%;
    margin-right: 15px;
}
.comment-author .fn {
    font-weight: 700;
    font-style: normal;
    font-size: 1.1rem;
}
.comment-meta a {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
}
.comment-content {
    line-height: 1.7;
}
.reply a {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
}
.reply a:hover {
    background: #0066cb;
    color: #fff;
}

/* 评论表单 */
.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #0066cb;
    box-shadow: 0 0 0 3px rgba(0, 102, 203, 0.15);
    outline: none;
}
.comment-form .submit {
    background: #0066cb;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.comment-form .submit:hover {
    background: #004d99;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .single-post-container, .comments-area, .author-box {
        margin-left: 15px;
        margin-right: 15px;
        padding: 20px;
        width: auto;
    }
    .entry-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   页脚样式
   ========================================================================== */

.site-footer {
    background-color: #000000; /* 改为黑色背景 */
    color: #ffffff;
    padding: 60px 0 20px 0;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-area {
    padding: 0 20px;
}

.footer-widget-area h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-widget-area p,
.footer-widget-area li {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.footer-widget-area a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget-area a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
}

.footer-widget-area ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px 0;
        margin-top: 40px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-widget-area {
        padding: 0 15px;
    }
}

/* ==========================================================================
   博客文章列表页面样式
   ========================================================================== */

/* 博客页面头部 */
.blog-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.blog-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 九宫格布局 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 文章卡片样式 */
.blog-post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* 文章缩略图 */
.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-thumbnail a {
    display: block;
    height: 100%;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post-card:hover .post-image {
    transform: scale(1.05);
}

/* 文章内容区域 */
.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 文章标题 */
.entry-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.entry-title a:hover {
    color: #0066cb;
}

/* 文章元信息 */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-meta i {
    color: #0066cb;
    font-size: 0.8rem;
}

.entry-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.entry-meta a:hover {
    color: #0066cb;
}

/* 文章摘要 */
.entry-content {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

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

/* 阅读更多按钮 */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066cb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-top: auto;
}

.read-more:hover {
    color: #004d99;
    gap: 12px;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 分页样式 */
.blog-pagination {
    text-align: center;
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 0 5px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #0066cb;
    color: #fff;
    border-color: #0066cb;
}

.blog-pagination .prev,
.blog-pagination .next {
    width: auto;
    padding: 0 20px;
    gap: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-header {
        margin-bottom: 40px;
        padding: 30px 20px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .entry-title {
        font-size: 1.2rem;
    }
    
    .entry-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        gap: 15px;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .blog-pagination .page-numbers {
        width: 40px;
        height: 40px;
        margin: 0 3px;
    }
    
    .blog-pagination .prev,
    .blog-pagination .next {
        padding: 0 15px;
        font-size: 0.9rem;
    }
}

.welcome-flex {
    display: flex;
    gap: 40px;
}
.welcome-left, .welcome-right {
    width: 50%;
}
@media (max-width: 900px) {
    .welcome-flex {
        flex-direction: column;
        gap: 20px;
    }
    .welcome-left, .welcome-right {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .welcome-left {
        display: none !important;
    }
    .welcome-right {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ========================================
   页面布局样式系统
   ======================================== */

/* 默认布局样式 */
.layout-default .entry-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.layout-default .entry-content h1,
.layout-default .entry-content h2,
.layout-default .entry-content h3,
.layout-default .entry-content h4,
.layout-default .entry-content h5,
.layout-default .entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.layout-default .entry-content p {
    margin-bottom: 1.5rem;
}

.layout-default .entry-content img {
        max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* 卡片式布局 */
.layout-card .entry-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.layout-card .entry-content > * {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layout-card .entry-content > *:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.layout-card .entry-content h1,
.layout-card .entry-content h2,
.layout-card .entry-content h3,
.layout-card .entry-content h4,
.layout-card .entry-content h5,
.layout-card .entry-content h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.layout-card .entry-content p {
    color: var(--text-color);
    line-height: 1.6;
}

/* 列表式布局 */
.layout-list .entry-content {
    max-width: 900px;
    margin: 0 auto;
}

.layout-list .entry-content > * {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 203, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.layout-list .entry-content > *:hover {
    border-left-width: 6px;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 102, 203, 0.1);
}

.layout-list .entry-content h1,
.layout-list .entry-content h2,
.layout-list .entry-content h3,
.layout-list .entry-content h4,
.layout-list .entry-content h5,
.layout-list .entry-content h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 网格式布局 */
.layout-grid .entry-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.layout-grid .entry-content > * {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
        text-align: center;
    transition: all 0.3s ease;
}

.layout-grid .entry-content > *:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 102, 203, 0.1);
}

.layout-grid .entry-content h1,
.layout-grid .entry-content h2,
.layout-grid .entry-content h3,
.layout-grid .entry-content h4,
.layout-grid .entry-content h5,
.layout-grid .entry-content h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.layout-grid .entry-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 瀑布流布局 */
.layout-masonry .entry-content {
    column-count: 3;
    column-gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.layout-masonry .entry-content > * {
    break-inside: avoid;
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.layout-masonry .entry-content > *:hover {
    transform: scale(1.02);
}

.layout-masonry .entry-content h1,
.layout-masonry .entry-content h2,
.layout-masonry .entry-content h3,
.layout-masonry .entry-content h4,
.layout-masonry .entry-content h5,
.layout-masonry .entry-content h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 时间线布局 */
.layout-timeline .entry-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.layout-timeline .entry-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.layout-timeline .entry-content > * {
    position: relative;
    margin-bottom: 3rem;
    width: 45%;
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.layout-timeline .entry-content > *:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
}

.layout-timeline .entry-content > *:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

.layout-timeline .entry-content > *::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.layout-timeline .entry-content > *:nth-child(odd)::before {
    right: -60px;
}

.layout-timeline .entry-content > *:nth-child(even)::before {
    left: -60px;
}

.layout-timeline .entry-content h1,
.layout-timeline .entry-content h2,
.layout-timeline .entry-content h3,
.layout-timeline .entry-content h4,
.layout-timeline .entry-content h5,
.layout-timeline .entry-content h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 极简布局 */
.layout-minimal .entry-content {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Georgia', serif;
    line-height: 1.8;
}

.layout-minimal .entry-content > * {
    margin-bottom: 2rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.layout-minimal .entry-content h1,
.layout-minimal .entry-content h2,
.layout-minimal .entry-content h3,
.layout-minimal .entry-content h4,
.layout-minimal .entry-content h5,
.layout-minimal .entry-content h6 {
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.layout-minimal .entry-content p {
    color: #666;
    font-size: 1.1rem;
}

.layout-minimal .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 1rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 卡片式布局响应式 */
    .layout-card .entry-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    /* 网格式布局响应式 */
    .layout-grid .entry-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }
    
    /* 瀑布流布局响应式 */
    .layout-masonry .entry-content {
        column-count: 2;
        column-gap: 1rem;
        padding: 0 1rem;
    }
    
    /* 时间线布局响应式 */
    .layout-timeline .entry-content::before {
        left: 20px;
    }
    
    .layout-timeline .entry-content > * {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .layout-timeline .entry-content > *::before {
        left: -50px !important;
        right: auto !important;
    }
}

@media (max-width: 480px) {
    /* 瀑布流布局小屏幕响应式 */
    .layout-masonry .entry-content {
        column-count: 1;
    }
    
    /* 列表式布局响应式 */
    .layout-list .entry-content > * {
        padding-left: 1rem;
        margin-left: 0;
    }
    
    /* 极简布局响应式 */
    .layout-minimal .entry-content {
        padding: 0 1rem;
    }
}

/* 布局切换动画 */
.layout-card .entry-content > *,
.layout-grid .entry-content > *,
.layout-masonry .entry-content > *,
.layout-list .entry-content > *,
.layout-timeline .entry-content > * {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 布局样式预览 */
.layout-preview {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.layout-preview.show {
    display: block;
}

.layout-preview h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.layout-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layout-preview li {
    padding: 0.25rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.layout-preview li:hover {
    color: var(--primary-color);
}

.layout-preview li.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   头部内容段样式
   ======================================== */

/* 头部内容段基础样式 */
.header-content-section {
    width: 100%;
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.header-content-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-content-section p {
    margin: 0;
    line-height: 1.5;
}

.header-content-section a {
    color: inherit;
    text-decoration: underline;
}

.header-content-section a:hover {
    text-decoration: none;
}

/* 默认样式 */
.header-content-default {
    background: var(--light-gray);
    color: var(--text-color);
    border-bottom: 1px solid #e0e0e0;
}

/* 横幅样式 */
.header-content-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 102, 203, 0.3);
}

.header-content-banner a {
    color: white;
    font-weight: 600;
}

/* 警告样式 */
.header-content-alert {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
}

.header-content-alert a {
    color: #856404;
    font-weight: 600;
}

/* 信息样式 */
.header-content-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
}

.header-content-info a {
    color: #0c5460;
    font-weight: 600;
}

/* 成功样式 */
.header-content-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.header-content-success a {
    color: #155724;
    font-weight: 600;
}

/* 自定义样式 */
.header-content-custom {
    background: transparent;
    color: var(--text-color);
}

/* 头部内容段标题 */
.header-content-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 头部内容段小工具 */
.header-content-widget {
    margin-bottom: 0;
}

.header-content-widget-wrapper {
    margin-bottom: 0;
}

/* 关闭按钮 */
.header-content-section .close-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.header-content-section .close-btn:hover {
    opacity: 1;
}

/* 动画效果 */
.header-content-section {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content-section {
        padding: 0.75rem 0;
    }
    
    .header-content-section .container {
        padding: 0 1rem;
    }
    
    .header-content-section .close-btn {
        right: 0.5rem;
    }
    
    .header-content-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content-section {
        padding: 0.5rem 0;
    }
    
    .header-content-section .container {
        padding: 0 0.75rem;
    }
}

/* 特殊位置样式 */
/* 网站最顶部 */
.header-content-section[data-position="top"] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 当有顶部内容段时，调整body padding */
body.has-top-content {
    padding-top: 60px;
}

/* 导航栏下方 */
.header-content-section[data-position="after_header"] {
    border-bottom: 1px solid #e0e0e0;
}

/* 内容区域前 */
.header-content-section[data-position="before_content"] {
    margin-bottom: 2rem;
}

/* 隐藏头部内容段的JavaScript样式 */
.header-content-section.hidden {
    display: none;
}

/* 头部内容段图标 */
.header-content-section .icon {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* 头部内容段按钮 */
.header-content-section .btn {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-left: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.header-content-section .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* 头部内容段倒计时 */
.header-content-section .countdown {
    font-weight: bold;
    color: var(--accent-color);
}

/* 头部内容段进度条 */
.header-content-section .progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.header-content-section .progress-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

/* 头部内容段轮播 */
.header-content-section .content-carousel {
    overflow: hidden;
}

.header-content-section .carousel-item {
    display: none;
}

.header-content-section .carousel-item.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 全屏容器基础样式 */
.fullwidth-container {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    box-sizing: border-box;
}

/* 极简全屏布局样式 - 简化版本 */
.minimal-fullwidth-content {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 2rem 4rem !important;
    line-height: 1.8;
    font-size: 1.1rem;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
}

/* 确保父容器不会限制宽度 */
.layout-minimal-fullwidth .site-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* 重置所有可能的容器限制 */
.layout-minimal-fullwidth .container,
.layout-minimal-fullwidth .fullwidth-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 确保body和html不会限制宽度 */
.layout-minimal-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

.layout-minimal-fullwidth body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

/* 重置WordPress默认样式 */
.layout-minimal-fullwidth .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.layout-minimal-fullwidth .entry-content h1,
.layout-minimal-fullwidth .entry-content h2,
.layout-minimal-fullwidth .entry-content h3,
.layout-minimal-fullwidth .entry-content h4,
.layout-minimal-fullwidth .entry-content h5,
.layout-minimal-fullwidth .entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.layout-minimal-fullwidth .entry-content p {
    margin-bottom: 1.5rem;
}

.layout-minimal-fullwidth .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .layout-minimal-fullwidth .entry-content {
        padding: 1.5rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .layout-minimal-fullwidth .entry-content {
        padding: 1rem;
    }
} 