/* 通用样式 */
:root {
    --bg: #f5f7fb;
    --fg: #101828;
    --primary: #369966;
    --primary-light: #7fc99f;
    --secondary: #FF6600;
    --secondary-light: #ff9933;
    --muted: rgba(16, 24, 40, 0.65);
    --card: #ffffff;
    --border: rgba(16, 24, 40, 0.08);
    font-size: 16px;
}

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

body {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft Yahei", sans-serif;
    color: var(--fg);
    background: var(--bg);
    /*overflow-x: hidden;*/
}


main {
    max-width: 1440px;
    padding: 0 6vw 5rem;
    margin: auto;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hero-container {
    max-width: 1440px;
    margin: auto;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

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

img {
    max-width: 100%;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(54, 153, 102, 0.15) 0%, rgba(54, 153, 102, 0.05) 50%, #ffffff 100%);
    /* 确保 sticky 定位正常工作 */
    position: relative;
}
/*section {*/
/*    overflow: hidden;*/
/*}*/
.mb-4 {
    margin-bottom: 1.5rem;
}
.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(0,0,0,0.5);
}
.visible{
    overflow: visible;
}
/* --------------------------------------------------------------------------------------- */
/* Animation Keyframes */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-300px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(300px);
    }

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

/* Fade Out Classes */
.fade-out-left {
    animation: fadeOutLeft 1s ease-out forwards;
}

.fade-out-right {
    animation: fadeOutRight 1s ease-out forwards;
}

/* Animation Classes */
.is-visible {
    opacity: 1 !important;
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-play-state: paused;
}

.fade-in-left.is-visible {
    animation-play-state: running;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-play-state: paused;
}

.fade-in-right.is-visible {
    animation-play-state: running;
}

/* Section Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    transform: translateY(0);
}

/* Fade Out Animations */
@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-500px);
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(500px);
    }
}

/* --------------------------------------------------------------------------------------- */
/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn--primary {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 15px rgba(54, 153, 102, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
}

.btn--ghost {
    position: relative;
    /* border-color: var(--border); */
    color: var(--fg);
    background: transparent;
}

.btn--ghost::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    z-index: -1;
    opacity: 0;
    border-radius: 3px;
    transition: 0.5s ease;
}

.btn--ghost:hover {
    /* border-color: var(--primary); */
    color: var(--primary);
}

.btn--ghost:hover::after {
    width: 100%;
    opacity: 1;
}

.siderbar-toggle {
    display: none;
}

/* Banner区域 */
.page-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 350px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.page-banner__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.page-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.page-banner__content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.page-banner__content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin: 0 0 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner__content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------------------- */
/* 3D左右翻转特效类 */
.flip-container {
    perspective: 1000px;
    /* 提供3D透视效果 */
    width: 100%;
    height: 100%;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* 卡片翻转效果 */
.flip-container:hover .flip-card {
    transform: rotateY(180deg);
}

/* 卡片正面 */
.flip-card-front {
    position: relative;
    padding: 2rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

/* 卡片背面 */
.flip-card-back {
    position: absolute;
    padding: 2rem;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));

    & h3 {
        color: white;
    }
}

/* 简化版翻转效果（单元素） */
.flip-single {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-single:hover {
    transform: rotateY(180deg);
}

/* 单元素翻转后的内容样式 */
.flip-single:hover>* {
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------------------- */
/* 侧边栏 */
.sidebar-container {
    position: sticky;
    top: 140px;
    /* background: linear-gradient(135deg, rgba(34, 116, 248, 0.1), rgba(27, 209, 255, 0.1)); */
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    align-self: start;
    z-index: 10;
}

/* 侧边栏自定义滚动条样式 */
.sidebar-container::-webkit-scrollbar {
    width: 8px;
}

/* 隐藏滚动条的上下按钮（三角标） */
.sidebar-container::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-container::-webkit-scrollbar-track {
    background: rgba(54, 153, 102, 0.05);
    border-radius: 24px;
    margin: 0;
}

.sidebar-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 24px;
    transition: background 0.3s ease;
}

.sidebar-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.sidebar-contact{
    text-align: center;
}
/* 面包屑导航 */
.breadcrumb {
    max-width: 1440px !important;
    margin: 1rem auto 2rem auto !important;
}

.breadcrumb__container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumb__container a,
.breadcrumb-item a{
    color: var(--muted) !important;
    transition: color 0.2s ease !important;
}

.breadcrumb__container a:hover,
.breadcrumb-item a:hover{
    color: var(--primary) !important;
}

.breadcrumb__separator {
    color: rgba(16, 24, 40, 0.5);
}

.breadcrumb__current,
.breadcrumb-item.active a{
    color: var(--fg);
    font-weight: 500;
}

/* 下划线样式 */
.underline {
    position: relative;
}

.underline::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.underline:hover::before,
.underline.custom-header-active::before {
    width: 100%;
}

/* Firefox 滚动条样式 */
.sidebar-container {
    scrollbar-width: thin;
    scrollbar-color: #7fc99fa5 transparent;
}

.sidebar__section {
    margin-bottom: 2rem;
}

.sidebar__section:last-child {
    margin-bottom: 0;
}

.sidebar__title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
}

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

.sidebar__item {
    margin-bottom: 0.5rem;
}

.sidebar__item:last-child {
    margin-bottom: 0;
}

.sidebar__item a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--muted);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar__item a:hover {
    background: rgba(54, 153, 102, 0.08);
    color: var(--primary);
}

.sidebar__item.active a {
    background: rgba(54, 153, 102, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.sidebar__filter {
    margin-bottom: 1.5rem;
}

.sidebar__filter:last-child {
    margin-bottom: 0;
}

.sidebar__filter h4 {
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
    color: var(--fg);
    font-weight: 600;
}

.filter__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter__options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.filter__options label:hover {
    background: rgba(54, 153, 102, 0.05);
}

.filter__options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* 分页 */
.pagination_container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination__btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--fg);
    font: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination__btn:hover:not(:disabled) {
    background: rgba(54, 153, 102, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination__pages {
    display: flex;
    gap: 0.5rem;
}

.pagination__page {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--card);
    color: var(--fg);
    font: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination__page:hover {
    background: rgba(54, 153, 102, 0.08);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.pagination__page.active {
    background: linear-gradient(135deg, var(--primary));
    border-color: transparent;
    color: #fff;
}

.form-padding {
    padding: 2.5rem;
}

/* 内链样式 */
a.wpil_keyword_link {
    color: #ff9b00;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

a.wpil_keyword_link:hover {
    color: #60b486;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

/* 移动端适配 */
@media (max-width: 1024px) {

    main,
    .hero-container {
        padding: 0 4vw 3rem;
    }

    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 4vw 2rem;
        overflow: hidden;
    }

    .hero-container {
        padding: 0;
        overflow-x: hidden;
    }

    .btn {
        padding: 0.65rem 1.15rem;
        font-size: 0.9rem;
    }

    body {
        /*overflow-x: hidden;*/
        width: 100%;
    }

    .page {
        /*overflow-x: hidden;*/
        width: 100%;
    }

    .siderbar-toggle {
        position: fixed;
        top: 50%;
        left: 30px;
        transform: translate(-40%, -50%);
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        color: #ffffff;
        border: none;
        border-radius: 999px;
        box-shadow: 0 10px 30px rgba(54, 153, 102, 0.25);
        z-index: 2200;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1.1rem;
        line-height: 1;
    }

    .siderbar-toggle:hover {
        background: var(--primary-light);
        transform: translate(-40%, -50%) scale(1.05);
    }

    .siderbar-toggle:active {
        transform: translate(-40%, -50%) scale(0.98);
    }

    .siderbar-toggle.active {
        background: #ffffff;
        color: var(--primary);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    }

    .sidebar-container {
        position: fixed;
        top: 0px;
        left: 0px;
        background: var(--primary-light);
        padding: 1.5rem;
        height: 100vh;
        width: 100%;
        max-height: 100vh;
        z-index: 2000;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar-container.active {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 4vw 1.5rem;
        overflow: hidden;
    }

    .hero-container {
        padding: 0;
        overflow-x: hidden;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}