
:root {
    --primary-color: #3b82f6;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f3f4f6;
    --dark-color: #1f2937;
    --logo-color: #4C4E4D;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #f4f5f8;
}

.widget-sticky {
    position: sticky;
    top: 75px;
    z-index: 10;
}

.sidebar-sticky {
    position: sticky;
    top: 75px;
    z-index: 10;
    align-self: flex-start;
}

.navbar {
    height: 65px;
    min-height: 65px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar .container {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand {
    height: 65px;
    display: flex;
    align-items: center;
}

.top-divider {
    min-height: 65px;
}

.navbar-collapse {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.navbar-nav {
    margin: 0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--logo-color) !important;
}

.go-login-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 10px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.02s ease;
}
.go-login-btn:hover{
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.go-login-btn:active{
    transform: translateY(0.5px);
}
.go-login-btn:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.go-login-btn .go-login-icon{
    width: 16px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    flex: 0 0 auto;
    font-size: 14px;
}
.go-login-btn .go-login-icon i{
    font-size: 14px;
}
.go-login-btn .go-login-text{
    font-size: 14px;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s;
    color: #111827 !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px; /* 下划线偏移量 距离文字的距离*/
}

.nav-item {
    margin-left: 5px;
    margin-right: 5px;
}

.card {
    border-radius: 8px !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:not(.border-0):hover {
    transform: translateY(-2px);
}

.slide-focus {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.slide-focus .swiper-container {
    width: 100%;
    height: 300px;
}

@media (max-width: 768px) {
    .slide-focus .swiper-container {
        height: 210px;
    }
}

.slide-focus .swiper-slide {
    height: 100%;
}

.hero-slide-link {
    display: block;
    height: 100%;
    color: #fff;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.hero-slide-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
}

.hero-slide-content {
    position: relative;
    padding: 24px 40px;
}

.hero-slide-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.hero-slide-desc {
    margin: 0;
    font-size: 16px;
    color: #e5e7eb;
}

.slide-focus .swiper-button-prev,
.slide-focus .swiper-button-next {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    margin-top: 0;
}

.slide-focus .swiper-button-prev::after,
.slide-focus .swiper-button-next::after {
    content: '';
    display: none;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: absolute;
    top: 50%;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .3);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: visible;
    color: #ffffff !important;
    pointer-events: none;
}

.slide-focus:hover .swiper-button-prev-custom,
.slide-focus:hover .swiper-button-next-custom {
    opacity: 1;
    pointer-events: auto;
}

.swiper-button-prev-custom {
    left: 16px;
    transform: translateY(-50%) translateX(-100px);
}

.slide-focus:hover .swiper-button-prev-custom {
    transform: translateY(-50%) translateX(0);
}

.swiper-button-next-custom {
    right: 16px;
    transform: translateY(-50%) translateX(100px);
}

.slide-focus:hover .swiper-button-next-custom {
    transform: translateY(-50%) translateX(0);
}

.slide-focus .swiper-pagination {
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-focus .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 !important;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-radius 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.slide-focus .swiper-pagination-bullet-active {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background: #3b82f6;
}

.featured-articles .card {
    border-radius: 12px;
    overflow: hidden;
}

.section-title-bar {
    width: 4px;
    height: 20px;
    background: #3b82f6;
    border-radius: 2px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.category-filter-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.category-filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.category-filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.wiki-filters {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.wiki-filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.wiki-filter-row:last-child {
    margin-bottom: 0;
}

.wiki-filter-label {
    flex: 0 0 90px;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
}

@media (max-width: 768px) {
    .wiki-filter-label {
        flex: 0 0 0;
    }
}

.wiki-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .wiki-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .wiki-filter-label {
        margin-bottom: 8px;
    }
}

.section-more {
    font-size: 13px;
}

.section-more:hover {
    color: var(--primary-color) !important;
}

.article-card-list {

}

.article-card-list .col-md-4 {
    margin-bottom: 1.5rem;
}

.article-card-link {
    display: block;
    height: 100%;
}

.article-card {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.article-card-header {
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.article-card-cover {
    width: 100%;
    height: 10rem;
    object-fit: cover;
}

.article-pin-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    white-space: nowrap;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.article-card-desc {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card-tags {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #3b82f6;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #6B7280;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6B7280; 
}

.article-meta-item i {
    font-size: 12px;
}

.article-content-header {
    padding: 20px;
}

.article-content-wrapper {
    padding: 20px;
}

.article-content {
    font-size: 16px;
    line-height: 1.85;
    color: #111827;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.article-content p {
    margin: 0 0 14px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-content table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    background: #fff;
}

.article-content th,
.article-content td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    vertical-align: top;
}

.article-content th {
    background: #f9fafb;
    font-weight: 600;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s;
}

.user-avatar:hover {
    border-color: var(--primary-color);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    padding: 8px 0;
}

.user-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.user-dropdown:hover .user-dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
}

.dropdown-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.pagination-link {
    display: inline-block;
    padding: 8px 16px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.pagination-link:hover {
    color: #3b82f6;
}

.pagination-active {
    background: #3b82f6;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    display: inline-block;
}

.pagination-active:hover {
    color: #fff;
}

.pagination-disabled {
    color: #9ca3af;
    cursor: not-allowed;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    display: inline-block;
}

.pagination-disabled:hover {
    color: #9ca3af;
}

.pagination-ellipsis {
    padding: 8px 8px;
    color: #4b5563;
    font-size: 14px;
    display: inline-block;
}

.author-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-status {
    position: absolute;
    bottom: 16px;
    right: 10px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
    display: block;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
}

.author-stats {
    margin-bottom: 0.75rem;
}

.author-stats .col-3 {
    padding-left: 4px;
    padding-right: 4px;
}

.author-stats .fw-bold {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.author-stats .small {
    font-size: 12px;
    color: #6b7280;
}

.stats-label-nowrap {
    white-space: nowrap;
}

.author-social {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
}

.social-link:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.coupon-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.coupon-card {
    position: relative;
    background: #ff6b35;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    overflow: visible;
}

.coupon-card::before{
    content: '';
    position: absolute;
    width: 12px;
    height: 6px;
    background: #ffffff;
    border-radius: 0 0 6px 6px;
    z-index: 1;
}
.coupon-card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 6px;
    background: #ffffff;
    border-radius: 6px 6px 0 0;
    z-index: 1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.coupon-card::before {
    top: 0;
    left: 40%;
    transform: translateX(-50%);
}

.coupon-card::after {
    bottom: 0;
    left: 40%;
    transform: translateX(-50%);
}

.coupon-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ffd700;
    color: #111827;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px 0 3px;
    z-index: 1;
}

.coupon-content {
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 8px;
    position: relative;
}

.coupon-left {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coupon-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.coupon-currency {
    font-size: 18px;
    font-weight: 500;
    margin-right: 2px;
}

.coupon-amount {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.coupon-right {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.coupon-name {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 4px;
    color: #fff;
}

.coupon-expire {
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    color: wheat;
}

.coupon-tip {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
    text-align: center;
}

.coupon-highlight {
    color: #ef4444;
    font-weight: 600;
    font-size: 18px;
}

.coupon-features {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    margin-top: 15px;
    text-align: center;
}

footer {
    font-size: 14px;
}

footer h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

footer p,
footer li,
footer a {
    font-size: 14px;
}

footer ul.list-unstyled li {
    margin-bottom: 6px;
}

.qrcode-wrapper {
    display: inline-block;
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.qrcode-img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.foot-logo {
    margin:0; 
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.category-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.category-more-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.category-tag:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
    color: #111827;
}

.category-tag-name {
    font-weight: 500;
}

.category-tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    background: #3b82f6;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
}

.tag-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.tag-item:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}

.toc-title{
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .navbar .container {
        flex-wrap: nowrap;
        align-items: center;
    }

    .navbar-right-area {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .navbar-collapse {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        z-index: 1029;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        overflow: hidden;
        display: none;
    }

    .navbar-collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0.25rem 0;
        margin: 0;
    }

    .navbar-collapse .nav-item {
        border-bottom: 1px solid #f3f4f6;
    }

    .navbar-collapse .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-collapse .nav-link {
        padding: 0.85rem 1.25rem;
        font-size: 15px;
        display: flex;
        align-items: center;
    }

    .navbar-collapse .nav-link.active {
        background-color: #eff6ff;
        text-decoration: none;
        color: var(--primary-color) !important;
    }

    .navbar-collapse .nav-link:hover {
        background-color: #f9fafb;
    }

    .navbar-collapse .nav-badge {
        position: relative !important;
        top: -1px !important;
        right: auto !important;
        margin-left: 6px;
        vertical-align: middle;
        display: inline-block;
    }

    /* 移动端专栏封面图：全宽横幅样式 */
    .wiki-info-card .img-cover-card {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 10px;
    }

    /* 移动端价格区按钮加大点击面积 */
    .wiki-btn {
        padding: 10px 20px;
        font-size: 15px;
        border-radius: 10px;
    }

    .wiki-price-current {
        font-size: 22px;
    }

    .navbar-toggler {
        border: none;
        background: transparent;
        padding: 4px 2px;
        margin-left: 12px;
        line-height: 1;
        transition: opacity 0.2s;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler:active {
        opacity: 0.6;
    }

    .navbar-toggler .navbar-toggler-icon {
        width: 20px;
        height: 20px;
        transition: transform 0.25s ease;
    }


    .article-list .card .row {
        flex-direction: column;
    }

    .article-list .card img {
        border-radius: 8px 8px 0 0;
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}


/* 标题样式 */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #292525;
  line-height: 150%;
  font-family: PingFang SC, Helvetica Neue, Helvetica, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
}

.article-content h2 {
  line-height: 1.5;
  font-weight: 700;
  font-synthesis: style;
  font-size: 24px;
  margin-top: 20px;
  margin-bottom: 26px;
  line-height: 140%;
  border-bottom: 1px solid rgb(241 245 249);
  padding-bottom: 15px;
}

.dark .article-content h2 {
  color: rgb(156 163 175 / 1);
  border-bottom: 1px solid rgb(31 41 55 / 1);
}

.article-content h3 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 600;
}

.dark .article-content h3 {
  color: rgb(156 163 175 / 1);
}

.article-content h4 {
  font-size: 18px;
  margin-top: 30px;
  margin-bottom: 16px;
  font-weight: 600;
}

.dark .article-content h4 {
  color: rgb(156 163 175 / 1);
}

.article-content h5 {
  font-size: 16px;
  margin-top: 30px;
  margin-bottom: 14px;
  font-weight: 600;
}

.dark .article-content h5 {
  color: rgb(156 163 175 / 1);
}

.article-content h6 {
  font-size: 16px;
  margin-top: 30px;
  margin-bottom: 14px;
  font-weight: 600;
}

.dark .article-content h6 {
  color: rgb(156 163 175 / 1);
}

/* 段落样式 */
.article-content p {
  letter-spacing: .3px;
  margin: 0 0 20px;
  line-height: 30px;
  color: #4c4e4d;
  font-weight: 400;
  word-break: normal;
  word-wrap: break-word;
  font-family: -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, Microsoft Yahei, Arial, sans-serif;
}

.dark .article-content p {
  color: #9e9e9e;
}

.article-meta{
    border-bottom: 1px solid #e5e7eb;
}

/* blockquote 引用样式（与后台编辑器保持一致） */
.article-content blockquote {
  border-left: 2.3px solid #3b82f6;
  border-inline-start-width: 0.3rem;
  border-inline-start-style: solid;
  border-color: #3b82f6;
  border-radius: 0.5rem;
  quotes: none;
  background: #FAFAFA;
  color: inherit;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 22px;
}

.dark .article-content blockquote {
  quotes: none;
  background-color: rgb(31 41 55 / 1);
  border-left: 2.3px solid #555;
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 0.25rem 0 0.25rem 1rem;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* 斜体样式 */
.article-content em {
  color: #c849ff;
}

/* 超链接样式 */
.article-content a {
  color: #2980b9;
}

.article-content a:hover {
  text-decoration: underline;
}

/* 列表样式 */
.article-content ul {
  padding-left: 2rem;
}

.dark .article-content ul {
  padding-left: 2rem;
  color: #9e9e9e;
}

.article-content > ul {
  margin-bottom: 20px;
}

.article-content ul li {
  list-style-type: disc;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 16px;
}

.article-content ul li p {
  margin-bottom: 0 !important;
}

.article-content ul ul li {
  list-style-type: square;
}

/* 有序列表样式 */
.article-content ol {
  list-style-type: decimal;
  padding-left: 2rem;
}

.dark .article-content ol {
  color: #9e9e9e;
}

/* 行内代码样式（非代码块） */
.article-content code:not(pre code) {
  padding: 2px 4px;
  margin: 0 2px;
  font-size: 95% !important;
  border-radius: 4px;
  color: rgb(41, 128, 185);
  background-color: rgba(27, 31, 35, 0.05);
  font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;
}

.dark .article-content code:not(pre code) {
  padding: 2px 4px;
  margin: 0 2px;
  font-size: .85em;
  border-radius: 5px;
  color: #abb2bf;
  background: #333;
  font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;
}

/* 图片样式 */
.article-content img {
  max-width: 80%;
  overflow: hidden;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.article-content img:hover,
.article-content img:focus {
  box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, .15);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.wiki-card-list {
    margin-bottom: 2rem;
}

.wiki-card {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wiki-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.wiki-card-header {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.wiki-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wiki-pin-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    white-space: nowrap;
}

.wiki-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    white-space: nowrap;
}

.wiki-status-badge.badge-warning {
    background: #f59e0b;
    color: #fff;
}

.wiki-status-badge.badge-info {
    background: #8b5cf6;
    color: #fff;
}

.wiki-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wiki-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-card-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wiki-price-current {
    font-size: 20px;
    font-weight: 600;
    color: #ef4444;
}

.wiki-price-original {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* 专栏封面图 */
.img-cover-card {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 专栏操作按钮 */
.wiki-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.18s, transform 0.1s;
}

.wiki-btn:active {
    transform: translateY(1px);
    opacity: 0.85;
}

.wiki-btn-buy {
    background: #3b82f6;
    color: #fff;
}

.wiki-btn-buy:hover {
    background: #2563eb;
    color: #fff;
}

.wiki-btn-vip {
    background: #f59e0b;
    color: #fff;
}

.wiki-btn-vip:hover {
    background: #d97706;
    color: #fff;
}

.wiki-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 推荐课程卡片 */
.text-18{
    font-size: 18px;
}
.recommend-card {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    /* box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12); */
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.25s ease;
}

.recommend-card:hover {
    border-color: #3b82f6;
}

.recommend-card-cover {
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.recommend-card:hover .recommend-card-cover {
    transform: scale(1.03);
}

.recommend-card-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(249, 115, 22, 0.9));
    mix-blend-mode: multiply;
}

.recommend-card-cover-inner {
    position: absolute;
    inset: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

.recommend-card-tag {
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    align-self: flex-start;
    margin-bottom: 8px;
}

.recommend-card-title-main {
    font-size: 20px;
    font-weight: 700;
}

.recommend-card-title-sub {
    font-size: 14px;
    margin-top: 4px;
    opacity: 0.9;
}

.recommend-badge {
    position: absolute;
    top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #ffffff;
}

.recommend-badge-top {
    left: 10px;
    background: #22c55e;
}

.recommend-badge-status {
    right: 10px;
    background: #f59e0b;
}

.recommend-card-body {
    padding: 14px 16px 16px;
}

.recommend-card-body-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.recommend-card-body-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

.recommend-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    --tw-border-opacity: 1;
    border-top: 1px solid rgb(243 244 246 / var(--tw-border-opacity));
    padding: 15px 0;
}

.recommend-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.recommend-card-price-current {
    font-size: 18px;
    font-weight: 600;
    color: #ef4444;
}

.recommend-card-price-original {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.recommend-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.recommend-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.recommend-tag-vip {
    background: #fef3c7;
    color: #92400e;
}

.recommend-tag-paid {
    background: #fee2e2;
    color: #b91c1c;
}

.recommend-tag-free{
    background: #DEF7EC;
    color: #046C4E;
}

/* ===== 移动端目录按钮 ===== */
.wiki-catalog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 17px;
    cursor: pointer;
    margin-right: 6px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.wiki-catalog-btn:hover { background: #f3f4f6; }
.wiki-catalog-btn:focus { outline: none; box-shadow: none; }

/* ===== 移动端目录抽屉 ===== */
.wiki-mobile-drawer {
    position: fixed;
    top: 0;
    left: -310px;
    width: 290px;
    height: 100vh;
    background: #fff;
    z-index: 2010;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.13);
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wiki-mobile-drawer.open {
    left: 0;
}

.wiki-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 65px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.wiki-drawer-title {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
}

.wiki-drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.wiki-drawer-close:hover { background: #f3f4f6; color: #111827; }
.wiki-drawer-close:focus { outline: none; box-shadow: none; }

.wiki-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px 24px;
}

.wiki-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 2009;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.wiki-drawer-overlay.open { display: block; }

body.drawer-open { overflow: hidden; }

.catalog-sidebar{
    max-height: calc(100vh);
    overflow-y: auto;
    padding: 0 10px 0 10px;
}

.wiki-left-sidebar {
    left: 0;
    top: 65px;
    bottom: 0;
    width: 320px;
    background: #ffffff;
    overflow-y: auto;
    z-index: 10;
    border-right: 1px solid #f2f5fa;
}

.catalog-children {
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.catalog-toggle-icon {
    font-size: 0.75rem;
    color: #9ca3af;
    padding-right: 8px;
}

.catalog-title{
    font-weight: 500;
}

.sidebar-home{
    font-weight: 500;
    padding: 0px 10px;
}

.wiki-home-link {
    display: block;
    padding: 8px 8px;
    border-radius: 6px;
    text-decoration: none;
}

.wiki-home-link.active {
    background: #f3f4f6;
    color: #111827;
}

.wiki-home-link.active i {
    color: #111827;
}

/****wiki页面布局****/

@media (max-width: 991px) {
    .sidebar-left,
    .sidebar-right,
    .sidebar-spacer {
        display: none !important;
    }
    .wiki-main-content {
        margin-right: 0;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .sidebar-left {
        width: 280px;
    }
    .sidebar-spacer {
        width: 280px;
        flex: 0 0 280px;
    }
    .sidebar-right {
        width: 320px;
    }
    .wiki-main-content {
        margin-right: 0px;
    }
}
@media (min-width: 1200px) {
    .sidebar-left {
        width: 320px;
    }
    .sidebar-spacer {
        width: 320px;
        flex: 0 0 320px;
    }
    .sidebar-right {
        width: 320px;
    }
    .wiki-main-content {
        margin-right: 0px;
    }
}

/* ============================================================
   个人中心（User Center）通用样式
   用于 /user/* 所有子页面共享的布局与组件
   ============================================================ */

/* ---- 整体两栏布局 ---- */
.uc-wrap {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.uc-left  { flex: 0 0 220px; }
.uc-right { flex: 1; min-width: 0; }

/* ---- 左侧栏 ---- */
.uc-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.uc-sidebar-header {
    padding: 28px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}
.uc-avatar {
    display: block;
    margin: 0 auto 10px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}
.uc-username {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}
.uc-vip-badge {
    display: inline-block;
    font-size: 11px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 3px 10px;
}
.uc-menu { padding: 8px 0; }
.uc-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.uc-menu-item:hover {
    background: #f9fafb;
    color: #1f2937;
    text-decoration: none;
}
.uc-menu-item.active {
    background: #fff7ed;
    color: #ea580c;
    font-weight: 600;
    border-right: 3px solid #ea580c;
}
.uc-menu-icon { width: 16px; text-align: center; color: inherit; }

/* ---- 右侧通用卡片 ---- */
.uc-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
}
.uc-section-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .uc-wrap  { flex-direction: column; }
    .uc-left  { flex: none; width: 100%; }
}

/* ---- 文章上一篇/下一篇导航 ---- */
.article-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 1.5rem;
}
.article-nav-item {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    min-width: 0;
    transition: border-color 0.2s, background 0.2s;
    background: #ffffff;
}
.article-nav-item:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}
.article-nav-next {
    text-align: right;
}
.article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}
.article-nav-label {
    font-size: 12px;
    color: #6b7280;
}
.article-nav-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-nav-item:hover .article-nav-title {
    color: #2563eb;
}
.article-nav-empty {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    padding: 4px 0;
}
@media (max-width: 575px) {
    .article-nav {
        flex-direction: column;
        gap: 10px;
    }
    .article-nav-next {
        text-align: left;
    }
}
