.display-6 {
  font-weight: 300;
  line-height: 1.2;
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
  .display-6 {
    font-size: 2.5rem;
  }
}
.article-container .article-body ul li a{
    text-decoration: underline;
}
.fw-bold {
  font-weight: 700 !important;
}

.back-to-blog {
    background: rgba(108, 190, 3, 0.8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.back-to-blog:hover {
    background: rgba(108, 190, 3, 1);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.page-category-title {
    font-size: 3em;
    font-weight: 700;
    color: #f4a700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.category-subtitle {
    font-size: 1.2em;
    color: white;
    margin-bottom: 30px;
}

.category-nav {
    background: rgba(3, 131, 8, 0.9);
    padding: 15px 0;
    margin-top: 30px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.category-nav .nav-link {
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block !important;
    visibility: visible !important;
}

.category-nav .nav-link:hover {
    background: #f4a700;
    color: #038308;
}

.category-nav .nav-link.active {
    background: #f4a700;
    color: #038308;
}

.articles-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* 确保文章列具有相同高度 */
.articles-section .row {
    display: flex;
    flex-wrap: wrap;
}

.articles-section .col-lg-4,
.articles-section .col-md-6 {
    display: flex;
    margin-bottom: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: #6cbe03;
}

.article-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-meta i {
    color: #6cbe03;
}

.article-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.read-more-btn {
    display: inline-block;
    background: #6cbe03;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-top: auto;
    align-self: flex-start;
}

.read-more-btn:hover {
    background: #5aa802;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 190, 3, 0.3);
}

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

.pagination {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.page-link {
    margin: 0 5px 5px 0; /* 右边和下边都有间距 */
}

.page-link {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: #6cbe03;
    color: white;
    border-color: #6cbe03;
    text-decoration: none;
    transform: translateY(-2px);
}

.page-link.active {
    background: #6cbe03;
    color: white;
    border-color: #6cbe03;
}

.page-link.disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.page-link.disabled:hover {
    background: transparent;
    color: #999;
    border-color: #ddd;
    transform: none;
}

/* Mobile Category Dropdown Styles */
.mobile-category-dropdown {
    flex: 1;
    margin-right: 15px;
    position: relative;
    display: block !important;
    visibility: visible !important;
}

/* 确保Bootstrap响应式类不会隐藏导航 */
.d-none.d-lg-block {
    display: block !important;
}

.d-lg-none {
    display: block !important;
}

@media (min-width: 992px) {
    .d-none.d-lg-block {
        display: block !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .d-none.d-lg-block {
        display: none !important;
    }

    .d-lg-none {
        display: block !important;
    }
}

.mobile-category-btn {
    background: linear-gradient(135deg, #6cbe03 0%, #038308 100%);
    color: white;
    border: 2px solid #f4a700;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(108, 190, 3, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    white-space: nowrap;
    display: block !important;
    visibility: visible !important;
}

.mobile-category-btn:hover,
.mobile-category-btn:focus {
    background: linear-gradient(135deg, #5aa802 0%, #027a07 100%);
    color: white;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 190, 3, 0.4), 0 0 0 3px rgba(244, 167, 0, 0.3);
}

.mobile-category-btn i {
    margin-right: 8px;
    color: #f4a700;
}

.mobile-category-menu {
    background: rgba(3, 131, 8, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-top: 8px;
    min-width: 250px;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    z-index: 1050;
    position: absolute;
    top: 100%;
}

.mobile-category-menu .dropdown-item {
    color: white;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.mobile-category-menu .dropdown-item:hover {
    background: rgba(244, 167, 0, 0.2);
    color: #f4a700;
    transform: translateX(5px);
}

.mobile-category-menu .dropdown-item.active {
    background: #f4a700;
    color: #038308;
    font-weight: 600;
}

.mobile-category-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 8px 0;
}

@media (max-width: 768px) {
    .category-header {
        padding: 60px 0 30px 0;
    }

    .category-nav {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .category-nav .nav-link {
        margin: 2px;
        font-size: 12px;
        padding: 6px 12px;
        display: inline-block !important;
        visibility: visible !important;
    }

    .back-to-blog {
        font-size: 12px;
        padding: 8px 16px;
        white-space: nowrap;
        flex-shrink: 0;
        display: inline-flex !important;
        visibility: visible !important;
    }

    .page-category-title {
        font-size: 2em;
    }

    .article-card {
        margin-bottom: 20px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-category-dropdown {
        display: block !important;
        visibility: visible !important;
    }

    .mobile-category-btn {
        font-size: 13px;
        padding: 8px 16px;
        display: block !important;
        visibility: visible !important;
    }

    .mobile-category-menu {
        min-width: 200px;
        visibility: visible !important;
    }

    .mobile-category-menu .dropdown-item {
        font-size: 14px;
        padding: 10px 16px;
        display: block !important;
        visibility: visible !important;
    }
}

.blog-hero {
    background: linear-gradient(135deg, #6cbe03 0%, #038308 100%);
    color: white;
    padding: 140px 0 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero-image {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    z-index: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 150px 0;
    }

    .blog-hero-image {
        bottom: 0px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 50px 0 120px 0;
    }

    .blog-hero-image {
        bottom: 0px;
    }
}

.blog-categories {
    padding: 60px 0;
    background: #f8f9fa;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.category-icon {
    width: 100%;
    height: 80px;
    margin-bottom: 20px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-category-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.category-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5em;
    font-weight: 700;
    color: #6cbe03;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
}

.category-articles {
    margin-top: 20px;
}

.article-preview {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.article-preview:last-child {
    border-bottom: none;
}

.preview-article-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.preview-article-meta {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 5px;
}

.preview-article-excerpt {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
}

.view-all-btn {
    background: #6cbe03;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #5aa002;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.featured-posts {
    padding: 60px 0;
    background: white;
}

/* 确保Featured Posts列具有相同高度 */
.featured-posts .row {
    display: flex;
    flex-wrap: wrap;
}

.featured-posts .col-lg-4,
.featured-posts .col-md-6 {
    display: flex;
    margin-bottom: 30px;
}

.featured-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.featured-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-post-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.featured-post-meta {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 15px;
}

.featured-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.featured-read-more-btn {
    background: transparent;
    color: #6cbe03;
    border: 2px solid #6cbe03;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.featured-read-more-btn:hover {
    background: #6cbe03;
    color: white;
    text-decoration: none;
}

.article-container {
    padding: 80px 0 40px 0;
}

/* Full width layout for article page */
.article-container .row {
    flex-direction: column;
}

.article-container .col-lg-8,
.article-container .col-lg-4 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.article-container .sidebar {
    margin-top: 40px;
    position: static;
    /* Optional: Center sidebar content if needed, or keep full width */
}

/* Embedded Sidebar Module Styling */
.embedded-sidebar-module {
    width: 100%;
    margin: 60px 0 40px 0;
    clear: both;
    position: relative;
}

.sidebar.is-embedded {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden; /* Ensure background doesn't spill out */
}

/* New approach for variable blur background */
.sidebar.is-embedded .bg-layer-clear {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/student-life/rpl-beihai-group-huodong.webp');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.sidebar.is-embedded .bg-layer-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/student-life/rpl-beihai-group-huodong.webp');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 70%);
    mask-image: linear-gradient(to right, transparent 0%, black 70%);
    z-index: -1;
}

/* White overlay for readability */
.sidebar.is-embedded .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.85) 60%);
    z-index: 0;
}

.sidebar.is-embedded .sidebar-widget {
    background: transparent; /* Make transparent to show background */
    border: none;
    box-shadow: none;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1; /* Content above background */
}

.sidebar.is-embedded .widget-title {
    width: auto;
    text-align: left;
    border-bottom: none;
    font-size: 1.5em; /* Slightly larger style but compact layout */
    margin: 0;
    font-family: 'Georgia', serif;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    flex: 0 0 auto;
}

.sidebar.is-embedded .sidebar-image {
    display: none;
}

.sidebar.is-embedded .contact-info {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 1em;
    margin: 0;
    justify-content: flex-start;
}

.sidebar.is-embedded .social-media-container {
    background-image: url('/assets/images/store-pattern.webp');
    background-size: cover;
    background-repeat: repeat;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.is-embedded .social-media-icons {
    margin: 0 !important;
    justify-content: center;
    display: flex;
    gap: 10px;
}

.sidebar.is-embedded .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1em;
    background: white; /* Make icons stand out against pattern */
    color: #6cbe03; /* Brand color */
}

.sidebar.is-embedded .newsletter-section {
    flex: 0 0 280px;
    margin: 0;
    border-top: none;
    padding-top: 0;
}
.sidebar.is-embedded .newsletter-section p {
    font-size: 0.85em;
    margin-bottom: 10px;
}

.sidebar.is-embedded .newsletter-section form .form-control {
    font-size: 0.9em;
    padding: 8px 12px;
}

.sidebar.is-embedded .newsletter-section .btn {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* Red Panda Animation Styles */
.panda-mascot-container {
    position: absolute;
    top: -80px; /* Sit just above the module frame */
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 100px;
    z-index: 30; /* Above the module */
    pointer-events: none; /* Don't block clicks */
}

.panda-hiding,
.panda-standing {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.panda-hiding {
    opacity: 1;
    transform: translateY(0) scale(0.96);
}

.panda-standing {
    opacity: 0;
    transform: translateY(0) scale(0.96);
}

/* Hover Effects */
.embedded-sidebar-module:hover .panda-hiding {
    opacity: 0;
}
.embedded-sidebar-module:hover .panda-standing {
    opacity: 1;
    transform: translateY(0) scale(1.08);
    z-index: 35;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .embedded-sidebar-module {
        float: none;
        width: 100%;
        margin: 24px 0;
    }
    .sidebar.is-embedded .sidebar-widget {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .sidebar.is-embedded .sidebar-image {
        flex: 0 0 auto;
        max-width: 200px;
        margin-bottom: 12px;
    }
    .sidebar.is-embedded .newsletter-section {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 100px 0 40px 0;
    }
}

/* 文章页面专用样式 */
.article-container .article-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.article-container .article-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #6cbe03;
    padding-bottom: 20px;
}

.article-container .article-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-container .article-meta {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.article-container .article-meta i {
    margin-right: 5px;
    color: #6cbe03;
}

.article-container .article-meta span {
    margin-right: 20px;
}

.article-container .article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.article-container .article-body {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.article-container .article-body h2 {
    color: #6cbe03;
    font-size: 1.8em;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.article-container .article-body h3 {
    color: #333;
    font-size: 1.4em;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

.article-container .article-body p {
    margin-bottom: 20px;
}

.article-container .article-body ul, .article-container .article-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-container .article-body li {
    margin-bottom: 8px;
}
/* Calendar Styling */
#calendar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fc-header-toolbar {
    margin-bottom: 1.5em !important;
}

.fc-toolbar-title {
    font-size: 1.5em !important;
    font-weight: 700;
    color: #333;
}

.fc-button-primary {
    background-color: #6cbe03 !important;
    border-color: #6cbe03 !important;
    transition: all 0.3s ease !important;
    font-weight: 600;
}

.fc-button-primary:hover {
    background-color: #5aa802 !important;
    border-color: #5aa802 !important;
}

.fc-button-active {
    background-color: #038308 !important;
    border-color: #038308 !important;
}

.fc-daygrid-day-number {
    color: #333;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 1.1em;
}

.fc-col-header-cell-cushion {
    color: #333;
    text-decoration: none !important;
    font-weight: 700;
    padding: 10px 0 !important;
    font-size: 1.1em;
}

.fc-event {
    cursor: pointer;
    border: none !important;
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.95em;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fc-event:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.fc-daygrid-event {
    white-space: normal !important;
    align-items: flex-start !important;
    min-height: 40px; /* Ensure visibility */
}

.fc-event-title {
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50 !important; /* Dark text for visibility */
}

.fc-event-time {
    display: none; /* Hide time if it's all day */
}

/* Custom Event Colors based on categories */
/* Use light backgrounds with dark text for readability */

.fc-event.event-travel {
    background-color: #e3f2fd; /* Light Blue */
    border-left: 4px solid #2196f3 !important;
}
.fc-event.event-travel .fc-event-title {
    color: #0d47a1 !important;
}

.fc-event.event-culture {
    background-color: #fbe9e7; /* Light Orange/Red */
    border-left: 4px solid #ff5722 !important;
}
.fc-event.event-culture .fc-event-title {
    color: #bf360c !important;
}

.fc-event.event-food {
    background-color: #fff3e0; /* Light Orange */
    border-left: 4px solid #ff9800 !important;
}
.fc-event.event-food .fc-event-title {
    color: #e65100 !important;
}

.fc-event.event-activity {
    background-color: #e8f5e9; /* Light Green */
    border-left: 4px solid #6cbe03 !important;
}
.fc-event.event-activity .fc-event-title {
    color: #1b5e20 !important;
}

.fc-event.event-study {
    background-color: #f3e5f5; /* Light Purple */
    border-left: 4px solid #9c27b0 !important;
}
.fc-event.event-study .fc-event-title {
    color: #4a148c !important;
}

@media (max-width: 768px) {
    .fc-toolbar-title {
        font-size: 1.2em !important;
    }

    .fc-header-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc-daygrid-day-frame {
        min-height: 80px !important;
    }
}


.article-container .article-body blockquote {
    border-left: 4px solid #6cbe03;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.article-container .sidebar {
    position: sticky;
    top: 50px;
}

.article-container .sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6cbe03;
}

/* 联系信息和订阅区域 */
.contact-section {

    border-bottom: 1px solid #eee;
}

.newsletter-section {
    margin-top: 20px;
}

.newsletter-section p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95em;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #6cbe03;
    margin-right: 10px;
    width: 20px;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    color: #6cbe03;
}

/* 社交媒体图标 */
.social-media-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon.website {
    background: linear-gradient(135deg, #6cbe03, #038308);
}

.social-icon.tiktok {
    background: linear-gradient(135deg, #000000, #25f4ee);
}

.social-icon.tiktok svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon.instagram {
    background: linear-gradient(135deg, #e4405f, #f77737);
}

.social-icon.facebook {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
}

.social-icon.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-decoration: none;
    color: white;
}

/* 课程推广横幅 */

/* Related Articles Section */
.related-articles-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-articles-section h3 {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-left: 15px;
    font-weight: 700;
}

.related-articles-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: #6cbe03;
    border-radius: 2px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #6cbe03;
    text-decoration: none;
    color: inherit;
}

.related-article-image-container {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.related-article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-article-card:hover .related-article-image {
    transform: scale(1.05);
}

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

.related-article-card h4 {
    font-size: 1.15em;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-card.is-main-business::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #6cbe03;
}

.related-article-card .main-business-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(108, 190, 3, 0.95);
    color: white;
    font-size: 0.75em;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}
.course-promotion-banner {
    background: linear-gradient(135deg, #6cbe03 0%, #038308 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    display:none;
    box-shadow: 0 8px 25px rgba(108, 190, 3, 0.3);
}

/* .course-promotion-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
} */

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.promotion-header {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.promotion-header h3 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.discount-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #ff6b35;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.8em;
    animation: pulse 2s infinite;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    border: 2px solid #fff;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.promotion-description {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.5;
}

.price-info {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.1em;
}

.current-price {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffd700;
}

.price-period {
    opacity: 0.8;
    font-size: 0.9em;
}

.promotion-features {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.feature-item i {
    color: #ffd700;
    margin-right: 10px;
    font-size: 1.1em;
}

.promotion-btn-container {
    position: relative;
    display: inline-block;
}

.promotion-btn {
    position: relative;
    z-index: 2;
    background: #ffd700;
    color: #038308;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.promotion-btn:hover {
    background: #fff;
    color: #038308;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    text-decoration: none;
}

.promotion-btn i {
    margin-right: 8px;
}

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

.related-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.related-articles li:last-child {
    border-bottom: none;
}

.related-articles a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}

.related-articles a:hover {
    color: #6cbe03;
}

.breadcrumb-nav {
    background: #ffffff !important;
    padding: 10px 0 !important;
    top: 50px;
    margin-bottom: 0 !important;
    border-bottom: 2px solid #6cbe03 !important;
    position: fixed !important;
    z-index: 5 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    width: 100% !important;
    transition: transform 0.3s ease !important;
}

.breadcrumb-nav.hidden {
    transform: translateY(-100%) !important;
}

.breadcrumb-nav .breadcrumb {
    margin: 0 !important;
    background: none !important;
    padding: 0 !important;
    font-size: 1em !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.breadcrumb-nav .breadcrumb-item {
    display: flex !important;
    align-items: center !important;
    padding-left: 0 !important;
}

.breadcrumb-nav .breadcrumb-item a {
    color: #6cbe03 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    font-size: 1.1em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: #5a9d02 !important;
    text-decoration: underline !important;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: #666 !important;
    font-weight: 600 !important;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: ">" !important;
    color: #6cbe03 !important;
    font-weight: bold !important;
    margin: 0 8px !important;
    display: inline-block !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

@media (max-width: 768px) {
    .article-container .article-content {
        padding: 25px 20px;
    }

    .article-container .article-title {
        font-size: 2em;
    }

    .article-container .sidebar {
        margin-top: 30px;
    }

    .breadcrumb-nav {
        padding: 8px 0 !important;
        top: 50px !important;
    }

    .breadcrumb-nav .breadcrumb {
        font-size: 0.75em !important;
        flex-wrap: nowrap !important;
    }

    .breadcrumb-nav .breadcrumb-item a {
        font-size: 0.9em !important;
    }

    .breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 3px !important;
        font-size: 0.8em !important;
    }

    /* 移动端课程推广样式 */
    .course-promotion-banner {
        padding: 25px 20px;
    }

    .promotion-header h3 {
        font-size: 1.3em;
    }

    .current-price {
        font-size: 1.5em;
    }

    .promotion-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .discount-badge {
        top: -8px;
        right: -8px;
        padding: 4px 10px;
        font-size: 0.7em;
    }

    /* 移动端社交媒体图标 */
    .social-media-icons {
        gap: 8px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1em;
    }

    /* 移动端文章卡片高度调整 */
    .articles-section .row {
        display: block;
    }

    .articles-section .col-lg-4,
    .articles-section .col-md-6 {
        display: block;
        margin-bottom: 20px;
    }

    .article-card {
        height: auto;
    }

    /* 移动端Featured Posts高度调整 */
    .featured-posts .row {
        display: block;
    }

    .featured-posts .col-lg-4,
    .featured-posts .col-md-6 {
        display: block;
        margin-bottom: 20px;
    }

    .featured-post {
        height: auto;
    }

}

.select-blog-a{
    background-color: #fff;
}

.article-container .container table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

.article-container .container th,
.article-container .container td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.article-container .container th {
    background-color: #f7f7f7;
}
