/*
Theme Name: CRAC
Description: Custom WordPress theme for CRAC organization
Version: 1.0
Author: CRAC Team
Text Domain: crac
*/

html{
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* CSS Variables */
:root {
    --wp--preset--font-family--mukta: "Mukta", serif;
}

/* Local Font Face Definitions */
@font-face {
    font-family: 'Mukta';
    src: url('./fonts/Mukta-Regular.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta';
    src: url('./fonts/Mukta-SemiBold.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta';
    src: url('./fonts/Mukta-Bold.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

.site-header {
    background-color: white;
    padding-top: 15px;
    padding-bottom: 15px;
    font-family: var(--wp--preset--font-family--mukta);
}


/* Theme styles will be added here */
body {
    font-family: var(--wp--preset--font-family--mukta);
    margin: 0;
    padding: 0;
}

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


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1580px;
    margin: 0 auto;
    gap: 10px;
}

/* 左边：Logo和组织信息 */
.header-left {
    display: flex;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo .logo-image {
    height: 100px;
    width: auto;
    max-width: 60px;
}

.site-logo .logo-text {
    font-size: 24px;
    color: #1e538f;
    font-family: var(--wp--preset--font-family--mukta);
}

.site-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    font-size: 1.58rem;
    font-weight: 600;
    color: #1e538f;
    line-height: 1.2;
}

.site-title a {
    color: #1e538f;
    text-decoration: none;
}

.site-title a:hover {
    color: #2d5aa0;
    text-decoration: none;
}

.site-subtitle {
    font-size: 1rem;
    color: #1e538f;
    line-height: 1.2;
    font-family: var(--wp--preset--font-family--mukta);
}

/* 右边：导航菜单 */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.main-navigation .nav-menu li {
    margin: 0;
}

.main-navigation .nav-menu a {
    text-decoration: none;
    color: #1e538f;
    font-size: 16px;
    font-style: normal;
    text-transform: uppercase;
    padding-top: 15px;
    padding-bottom: 15px;
    /* padding-left: 10px; */
    /* padding-right: 10px; */
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    font-family: var(--wp--preset--font-family--mukta);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(30, 83, 143, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #1e538f;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* 菜单按钮激活状态 */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 搜索功能样式 */
.header-search {
    position: relative;
    margin-left: 20px;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1e538f;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background-color: rgba(30, 83, 143, 0.1);
    transform: scale(1.05);
}

.search-toggle[aria-expanded="true"] {
    background-color: rgba(30, 83, 143, 0.1);
    color: #007cba;
}

.search-icon {
    width: 20px;
    height: 20px;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 300px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid #ddd;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: var(--wp--preset--font-family--mukta);
}

.search-field:focus {
    border-color: #1e538f;
    box-shadow: 0 0 0 3px rgba(30, 83, 143, 0.1);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #1e538f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background-color: #007cba;
    transform: scale(1.05);
}

.search-submit svg {
    width: 16px;
    height: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    /* 左侧部分左对齐 */
    .header-left {
        justify-content: flex-start;
        text-align: left;
    }
    
    .logo-section {
        gap: 10px;
    }
    
    .site-logo .logo-image {
        height: 60px;
        max-width: 45px;
    }
    
    .site-title {
        font-size: 1.0rem;
    }
    
    .site-subtitle {
        font-size: 0.8rem;
    }
    
    /* 右侧菜单适应 */
    .header-right {
        position: relative;
        justify-content: flex-end;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* 隐藏桌面版菜单，准备移动版 */
    .main-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        min-width: 220px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        margin-top: 10px;
    }
    
    /* 激活状态的移动菜单 */
    .main-navigation.active {
        max-height: 600px;
        opacity: 1;
        visibility: visible;
    }
    
    .main-navigation .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .main-navigation .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .main-navigation .nav-menu a {
        display: block;
        font-size: 16px;
        border-bottom: none;
        border-top: 1px solid #f0f0f0;
    }
    
    .main-navigation .nav-menu li:first-child a {
        border-top: none;
    }
    
    .main-navigation .nav-menu a:hover {
        background-color: rgba(30, 83, 143, 0.05);
        border-bottom: none;
    }
}

/* 超小屏幕适应 */
@media (max-width: 480px) {
    .header-content {
        padding: 0 10px;
    }
    
    .site-title {
        font-size: 1.0rem;
    }
    
    .site-subtitle {
        font-size: 0.7rem;
    }
    
    .main-navigation {
        right: -10px;
        left: 10px;
        min-width: auto;
    }
    
    .main-navigation.active {
        max-height: 650px;
    }
    
    /* 移动端搜索样式 */
    .header-search {
        margin-left: 10px;
    }
    
    .search-dropdown {
        min-width: 280px;
        left: -240px;
        right: auto;
        padding: 15px;
    }
    
    .search-dropdown::before {
        right: 20px;
    }
    
    .search-field {
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* Hero Section Styles */
.hero-section {
    padding: 40px 0;
    margin-bottom: 20px;
}

.hero-content {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

/* Left Side - Carousel */
.hero-carousel {
    flex: 1;
    max-width: 65%;
    display: flex;
    flex-direction: column;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.carousel-slides {
    position: relative;
    height: 100%;
    min-height: 350px;
}

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

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* 懒加载图片占位符 */
.carousel-slide img.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: -100% 50%;
    }
}

/* 图片加载失败时的样式 */
.carousel-slide img[src=""],
.carousel-slide img:not([src]) {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.carousel-slide img[src=""]:before,
.carousel-slide img:not([src]):before {
    content: "图片加载中...";
    position: absolute;
    text-align: center;
}

/* Carousel Descriptions */
.carousel-descriptions {
    margin-top: 15px;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

.slide-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.slide-description.active {
    opacity: 1;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: #1e538f;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
}

/* Right Side - Latest Posts */
.hero-latest-posts {
    flex: 1;
    max-width: 35%;
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.latest-posts-title {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e538f;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    padding-left: 0;
}

.latest-post-item {
    padding: 8px 0 8px 20px;
    position: relative;
}

.latest-post-item:last-child {
    border-bottom: none;
    padding-bottom: 8px;
}

.latest-post-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #1e538f;
    border-radius: 50%;
}

.latest-post-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.0;
}

.latest-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.latest-post-title a:hover {
    color: #1e538f;
}

/* 隐藏要闻区域不需要的meta信息 */
.hero-latest-posts .latest-post-meta,
.hero-latest-posts .latest-post-date,
.hero-latest-posts .latest-post-tag {
    display: none;
}

.no-latest-posts {
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Hero Section Responsive */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
    
    .carousel-slides {
        min-height: 280px;
    }
    
    .hero-latest-posts {
        min-height: 350px;
        padding: 20px;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .hero-carousel,
    .hero-latest-posts {
        max-width: 100%;
    }
    
    .carousel-slides {
        min-height: 200px;
    }
    
    .hero-latest-posts {
        min-height: auto;
    }
    
    .carousel-descriptions {
        margin-top: 10px;
        height: 40px;
    }
    
    .slide-description {
        font-size: 0.85rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
}

footer {
    color: #031728;
    padding: 20px 0;
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 3rem;
    padding: 40px 0;
    min-height: 500px;
}

/* Left Column - Posts */
.main-left {
    flex-basis: 66.66%;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-card {
    background: #f7f7f7;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

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

.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 200px;
}

.post-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    min-height: 80px;
}

.post-title a {
    color: #1e538f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #007cba;
}

.post-bottom {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
    margin-top: auto;
    padding-top: 15px;
    min-height: 40px;
    flex-shrink: 0;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-category {
    background: #e0e7ed;
    color: #1e538f;
    padding: 2px 8px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.post-category:hover {
    background: #d0d7dd;
}

.post-excerpt {
    display: none;
}

.post-read-more {
    display: none;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.pagination {
    text-align: center;
    margin-top: 2rem;
}

.view-more-container {
    text-align: right;
    margin-top: 2rem;
}

.view-more-btn {
    display: inline-block;
    color: #1e538f;
    background-color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Right Column - Sidebar */
.main-right {
    flex-basis: 33.33%;
}

.sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    border-width: 0px;
    border-radius: 0px;
    background-color: #f3faff;
    padding: 16px 20px;
    background-image: url('./images/20210526-jy-bg.png');
    background-size: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
}

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

.card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e538f;
    text-align: left;
    width: 100%;
}

.card-content {
    color: #555;
    line-height: 1.6;
}

.card-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Homepage Links Section */
.homepage-links-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
}

.homepage-links-title {
    text-align: center;
    font-size: 2rem;
    color: #1e538f;
    margin-bottom: 40px;
    font-weight: 600;
}

.homepage-links-container {
    max-width: 1200px;
    margin: 0 auto;
}

.homepage-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.homepage-link-item {
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    border: 2px solid #1e538f;
    border-radius: 25px;
    color: #1e538f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.homepage-link-item:hover {
    background-color: #1e538f;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 83, 143, 0.2);
}

.homepage-link-text {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #666;
    cursor: default;
}

.homepage-link-text:hover {
    background-color: #f5f5f5;
    color: #666;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        gap: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .main-left,
    .main-right {
        flex-basis: auto;
    }
    
    .posts-grid {
        gap: 1rem;
    }
    
    .post-card-content {
        padding: 1.25rem;
    }
    
    .sidebar-cards {
        gap: 0.75rem;
    }
    
    .sidebar-card {
        padding: 12px 16px;
        min-height: 45px;
    }
    
    /* Homepage Links Mobile Styles */
    .homepage-links-section {
        padding: 40px 0;
        margin-top: 30px;
    }
    
    .homepage-links-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .homepage-links-list {
        gap: 15px;
    }
    
    .homepage-link-item {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

.content {
    padding: 40px 0;
    min-height: 500px;
    padding-top: min(6.5rem, 8vw);
    padding-right: min(4rem, 5vw);
    padding-bottom: min(6.5rem, 8vw);
    padding-left: min(4rem, 5vw);
}

/* Footer Styles */
.site-footer {
    background-color: white;
    padding: 40px 0 20px 0;
    margin-top: 40px;
}

/* Footer Top Section */
.footer-top {
    margin-bottom: 30px;
}

.footer-top-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

/* Footer Links Section */
.footer-links-section {
    flex: 1;
}

.footer-section-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: #1e538f;
    margin-bottom: 20px;
    font-family: var(--wp--preset--font-family--mukta);
    text-align: left;
}

.footer-links-grid {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
}

.footer-links-column {
    flex: 1;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-links-list span {
    color: #1e538f;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    font-family: var(--wp--preset--font-family--mukta);
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: left;
    margin: 16px 0 0 0;
}

.footer-links-list span:hover {
    color: #007cba;
}

.footer-links-list a {
    color: #1e538f;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    font-family: var(--wp--preset--font-family--mukta);
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: left;
    margin: 16px 0 0 0;
    display: block;
}

.footer-links-list a:hover {
    color: #007cba;
    text-decoration: underline;
}

/* Footer Thanks Section */
.footer-thanks-section {
    flex: 1;
}

.footer-thanks-content {
    min-height: 60px;
}

/* Footer Bottom Section */
.footer-bottom {
    padding-top: 20px;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    color: #1e538f;
    font-size: 1rem;
    font-family: var(--wp--preset--font-family--mukta);
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-top-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-section-title {
        font-size: 1.1rem;
    }
    
    .site-footer {
        padding: 30px 0 15px 0;
    }
}

/* Single Post Styles */
.single-post {
    margin: 0 auto;
}

.single-post .post-header {
    margin-bottom: 40px;
}

.single-post .post-title {
    color: #070707;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
}

.single-post .post-title-separator {
    background-color: #999;
    border: none;
    border-radius: 0px;
    border-width: 0px;
    color: #999;
    height: 1px;
    margin-bottom: min(2.5rem, 3vw);
}

.single-post .post-meta {
    display: flex;
    gap: 20px;
    font-size: 18px;
    color: #031728;
    flex-wrap: wrap;
    font-weight: 400;
}

.single-post .post-meta span {
    position: relative;
}

.single-post .post-meta span:not(:last-child)::after {
    position: absolute;
    right: -12px;
    color: #ccc;
}

.single-post .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #031728;
    margin-bottom: 40px;
}

.single-post .post-content p {
    margin-bottom: 20px;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    margin-bottom: 15px;
}

.single-post .post-tags {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.single-post .post-tags a {
    text-decoration: none;
    color: #666;
}

.single-post .tags-label {
    font-weight: 600;
    margin-right: 10px;
}

.single-post .post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.single-post .nav-previous,
.single-post .nav-next {
    flex: 1;
}

.single-post .nav-previous a,
.single-post .nav-next a {
    display: block;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.single-post .nav-previous a:hover,
.single-post .nav-next a:hover {
    background: #e9ecef;
}

.single-post .nav-next {
    text-align: right;
}

/* Responsive Design for Single Post */
@media (max-width: 768px) {
    .single-post {
        padding: 20px 15px;
    }
    
    .single-post .post-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .single-post .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .single-post .post-meta span:not(:last-child)::after {
        display: none;
    }
    
    .single-post .post-navigation {
        flex-direction: column;
    }
    
    .single-post .nav-next {
        text-align: left;
    }
}


.single-page {
    padding-top: 80px;
    font-size: 18px;
    max-width: 750px;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #031728;
}

.page-header{
    max-width: 1270px;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 25px;
}

/* Archives Page Styles */
.archives-page {
    padding: 40px 0;
}

.archives-content {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Sidebar - Year Navigation */
.archives-sidebar {
    flex: 0 0 250px;
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.archives-sidebar-title {
    font-size: 1.5rem;
    color: #1e538f;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #1e538f;
    padding-bottom: 10px;
}

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

.year-item {
    margin-bottom: 8px;
}

.year-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.year-link:hover {
    background-color: #e3f2fd;
    color: #1e538f;
    text-decoration: none;
}

.year-item.active .year-link {
    background-color: #1e538f;
    color: white;
}

.post-count {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Right Main Content */
.archives-main {
    flex: 1;
    min-width: 0;
}

.archive-title {
    font-size: 2rem;
    color: #1e538f;
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 3px solid #1e538f;
    padding-bottom: 15px;
}

.archive-posts {
    margin-bottom: 40px;
}

.archive-post-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.archive-post-item:hover {
    background-color: #f8f9fa;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 8px;
}

.post-meta-date {
    flex: 0 0 120px;
    text-align: center;
    color: #1e538f;
    background-color: white;
    padding: 15px 10px;
    border-radius: 8px;
    height: fit-content;
}

.post-meta-date time {
    font-size: 0.9rem;
    font-weight: 500;
}

.post-content {
    flex: 1;
}

.archive-post-item .post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.archive-post-item .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-post-item .post-title a:hover {
    color: #1e538f;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.archive-post-item .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #888;
}

.post-category {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* Welcome Section */
.archive-welcome {
    text-align: center;
    padding: 60px 40px;
}

.archive-welcome h2 {
    font-size: 2.5rem;
    color: #1e538f;
    margin-bottom: 20px;
}

.archive-welcome p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.recent-posts-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.recent-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.recent-post-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.recent-post-item a:hover {
    color: #1e538f;
}

.recent-post-item .post-date {
    color: #888;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

/* Pagination */
.archive-pagination {
    text-align: center;
    margin-top: 40px;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background-color: #1e538f;
    color: white;
    border-color: #1e538f;
}

.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .archives-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .archives-sidebar {
        flex: none;
        position: static;
        padding: 20px 15px;
    }
    
    .archive-post-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-meta-date {
        flex: none;
        text-align: left;
        padding: 10px 15px;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .archive-welcome h2 {
        font-size: 2rem;
    }
}

.footer-beian{
    text-align: center;
    margin-top: 10px;
    font-size:1rem;
    color: #1e538f;
    
}

/* 搜索结果页面样式 */
.search-results-page {
    padding: 40px 0;
    min-height: 60vh;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.search-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.search-query {
    color: #007cba;
    font-weight: 700;
}

.search-count {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin-top: 8px;
}

.search-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-form-large {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.search-field-large {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--wp--preset--font-family--mukta);
}

.search-field-large:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-submit-large {
    padding: 15px 30px;
    background: #1e538f;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-family: var(--wp--preset--font-family--mukta);
}

.search-submit-large:hover {
    background: #007cba;
}

.search-content {
    max-width: 800px;
    margin: 0 auto;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.search-result-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    border-color: #1e538f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.result-title {
    margin: 0 0 15px 0;
}

.result-title a {
    color: #333;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #1e538f;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.result-meta svg {
    margin-right: 6px;
    opacity: 0.7;
}

.result-category a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-category a:hover {
    color: #1e538f;
}

.result-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.search-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.result-read-more {
    color: #1e538f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.result-read-more:hover {
    color: #007cba;
}

.search-pagination {
    margin-top: 50px;
    text-align: center;
}

.search-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #1e538f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-pagination .page-numbers:hover {
    background: #1e538f;
    color: white;
    border-color: #1e538f;
}

.search-pagination .page-numbers.current {
    background: #1e538f;
    color: white;
    border-color: #1e538f;
}

/* 无结果页面样式 */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    margin-bottom: 30px;
    opacity: 0.3;
}

.no-results h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.search-suggestions {
    max-width: 400px;
    margin: 0 auto 40px;
    text-align: left;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.search-suggestions h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.search-suggestions ul {
    list-style: none;
    padding-left: 0;
}

.search-suggestions li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.search-suggestions li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1e538f;
    font-weight: bold;
}

.recommended-posts {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.recommended-posts h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.recommended-posts ul {
    list-style: none;
    padding-left: 0;
}

.recommended-posts li {
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.recommended-posts li:last-child {
    border-bottom: none;
}

.recommended-posts a {
    color: #1e538f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommended-posts a:hover {
    color: #007cba;
}

/* 搜索结果页面移动端适配 */
@media (max-width: 768px) {
    .search-results-page {
        padding: 20px 0;
    }
    
    .search-title {
        font-size: 22px;
    }
    
    .search-form-large {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-submit-large {
        width: 100%;
    }
    
    .search-result-item {
        padding: 20px;
    }
    
    .result-title a {
        font-size: 20px;
    }
    
    .result-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .search-title {
        font-size: 18px;
    }
    
    .search-field-large,
    .search-submit-large {
        font-size: 16px;
    }
    
    .result-title a {
        font-size: 18px;
    }
    
    .search-suggestions,
    .recommended-posts {
        text-align: center;
    }

    .content{
        padding: 0;
        padding-right: 0;
        padding-left: 0;
    }
    .container{
        padding: 0;
    }
}