/* Insights Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(31, 153, 104, 0.05) 0%, rgba(31, 153, 104, 0.02) 100%);
    /* padding: 120px 0 60px 0; */
    border-bottom: 1px solid #ecf0f1;
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 45 L5 45 Z' fill='none' stroke='rgba(31, 153, 104, 0.03)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

/* 添加装饰性三角形 */
.page-header::after {
    content: '';
    position: absolute;
    top: 50px;
    right: 50px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid rgba(31, 153, 104, 0.1);
    animation: triangleFloat 6s ease-in-out infinite;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--light-text);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: var(--text-color);
    font-weight: 500;
}

.page-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Main Content */
.insights-content {
    padding: 80px 0;
    background: #fff;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

/* Articles Section */
.articles-section {
    width: 100%;
}

/* Category Filter */
.category-filter {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.category-filter::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ecf0f1, transparent);
}

.category-select {
    padding: 12px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    background: #fff;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
}

.category-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 153, 104, 0.1);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    row-gap: 30px;
    margin-bottom: 50px;

    /* display: flex; */
    /* flex-wrap: wrap; */
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(31, 153, 104, 0.08);
    transition: var(--transition);
    border: 1px solid #f8f9fa;
    position: relative;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.article-card:focus:not(:focus-visible) {
    outline: none;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(31, 153, 104, 0.15);
    /* border-color: var(--primary-color); */
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

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

.article-content>h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-content>p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.read-more .layui-icon {
    font-size: 12px;
    transition: var(--transition);
}

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

/* Pagination */
.pagination-wrapper {
    border-top: 1px solid #ecf0f1;
    padding-top: 40px;
    position: relative;
}

.pagination-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pagination-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: 8px;
}

.pagination-link:hover {
    color: var(--primary-color);
    background: rgba(31, 153, 104, 0.05);
}

.pagination-link.prev {
    padding-left: 0;
}

.pagination-link.next {
    padding-right: 0;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.pagination-number:hover {
    color: var(--primary-color);
    background: rgba(31, 153, 104, 0.05);
    border-color: var(--primary-color);
}

.pagination-number.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ecf0f1;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.no-results-content p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #ecf0f1;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-spinner p {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(31, 153, 104, 0.08);
    border: 1px solid #f8f9fa;
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 25px 0;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Category Buttons */
.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-btn {
    padding: 0px 20px;
    height: 40px;
    display: flex;
    align-items: center;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    background: #fff;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.category-btn:hover {
    border-color: var(--primary-color);
    background: rgba(31, 153, 104, 0.05);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Latest Articles */
.latest-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.latest-article {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.latest-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-article:hover>a>h4 {
    color: var(--primary-color);
}

.latest-article-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.latest-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-article-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.latest-article-content p {
    font-size: 12px;
    color: var(--light-text);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1f9968 0%, #408157 100%);
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/pic/video-3.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
}

.cta-content {
    position: relative;
    z-index: 9;
}

.cta-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button .layui-icon {
    font-size: 12px;
}

.cta-button.primary {
    background: #ffffff;
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.cta-button.secondary:hover {
    background: #ffffff;
    color: #1f9968;
    transform: translateY(-2px);
}

/* Animations */
@keyframes triangleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.2;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        position: static;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {

    .page-title {
        font-size: 36px;
    }

    .insights-content {
        padding: 60px 0;
    }

    .content-wrapper {
        gap: 30px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .article-card {
        margin-bottom: 0;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-numbers {
        order: -1;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .page-header {
        padding: 0;
        height: 200px;
    }

    .page-title {
        font-size: 28px;
    }

    .insights-content {
        padding: 40px 0;
    }

    .content-wrapper {
        gap: 0px;
    }

    .articles-grid {
        gap: 20px;
        margin-bottom: 30px;
    }

    .article-content {
        padding: 20px;
    }

    .article-content>h3 {
        font-size: 16px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .category-widget-wrapper {
        display: none;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 14px;
    }

    .category-filter {
        justify-content: center;
    }

    .category-select {
        min-width: 180px;
        font-size: 13px;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .pagination-numbers {
        order: -1;
        justify-content: center;
    }

    .no-results-message {
        padding: 40px 20px;
    }

    .no-results-content h3 {
        font-size: 20px;
    }

    .no-results-content p {
        font-size: 14px;
    }

    .sidebar {
        order: 1;
    }
}

/* 移动端下拉筛选框样式 */
.mobile-category-wrapper {
    display: none;
    margin-bottom: 30px;
    position: relative;
    z-index: 1001;
}

.mobile-category-dropdown {
    position: relative;
    width: 100%;
    z-index: 1001;
}

.mobile-category-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid rgba(31, 153, 104, 0.2);
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-category-trigger:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(31, 153, 104, 0.1);
}

.mobile-category-trigger.active {
    border-color: var(--primary-color);
    background: rgba(31, 153, 104, 0.02);
}

.mobile-category-trigger .selected-text {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-category-trigger .dropdown-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 13px;
}

.mobile-category-trigger.active .dropdown-icon {
    transform: rotate(180deg);
}

.mobile-category-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid rgba(31, 153, 104, 0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 0;
    overflow: hidden;
    display: none;
}

.mobile-category-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 300px;
    display: block;
}

.mobile-category-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 15px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(31, 153, 104, 0.1);
}

.mobile-category-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.mobile-category-dropdown .dropdown-item:hover {
    background: rgba(31, 153, 104, 0.05);
    color: var(--primary-color);
}

.mobile-category-dropdown .dropdown-item.active {
    background: rgba(31, 153, 104, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}



/* 移动端显示 */
@media (max-width: 768px) {
    .mobile-category-wrapper {
        display: block;
        margin-bottom: 20px;
    }

    /* 隐藏桌面端的筛选按钮 */
    .category-buttons {
        display: none;
    }

    /* 移动端下拉菜单优化 */
    .mobile-category-dropdown .dropdown-menu {
        max-height: 250px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 移动端滚动条样式 */
    .mobile-category-dropdown .dropdown-menu::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-category-dropdown .dropdown-menu::-webkit-scrollbar-track {
        background: rgba(31, 153, 104, 0.1);
        border-radius: 2px;
    }

    .mobile-category-dropdown .dropdown-menu::-webkit-scrollbar-thumb {
        background: rgba(31, 153, 104, 0.3);
        border-radius: 2px;
    }

    .mobile-category-dropdown .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(31, 153, 104, 0.5);
    }


    .cta-section{
        padding: 50px 0;
     }
     .cta-content h3{
        font-size: 22px;
        margin-bottom: 10px;
     }
     .cta-content p{
        font-size: 14px;
        margin-bottom: 15px;
     }
     .cta-button{
        padding: 5px 20px;
        font-size: 14px;
     }
     .cta-button .layui-icon{
        font-size: 9px;
     }
     .cta-buttons{
        gap: 15px;
     }
}

/* 移动端触摸优化 */
@media (max-width: 768px) {

    .mobile-category-trigger,
    .mobile-category-dropdown .dropdown-item {
        min-height: 40px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .mobile-category-trigger:active,
    .mobile-category-trigger.touch-active {
        transform: scale(0.98);
        background: rgba(31, 153, 104, 0.05);
    }

    .mobile-category-dropdown .dropdown-item:active,
    .mobile-category-dropdown .dropdown-item.touch-active {
        background: rgba(31, 153, 104, 0.15);
    }
}

/* 下拉动画增强 */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-category-dropdown.active .dropdown-menu {
    animation: dropdownSlideIn 0.3s ease-out;
}

/* 选中状态指示器 */
/* .mobile-category-dropdown .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.mobile-category-dropdown .dropdown-item.active::before {
    transform: scaleX(1);
} */