/* ============================================================
   MODULE.CSS v3.0 - 组件样式
   ============================================================ */

.author-profile {
    background: radial-gradient(circle at 18% 0%, #3b1d6e 0%, #221541 38%, #0f0f1a 100%);
    color: #f5f0ff;
}

.author-profile h1 {
    color: #f6c453;
}

.author-profile img.rounded-circle {
    border: 4px solid #f6c453;
    box-shadow: 0 22px 50px rgba(15, 15, 26, 0.45), 0 0 0 6px rgba(246, 196, 83, 0.16), inset 0 0 0 1px rgba(255, 253, 247, 0.45);
}

.author-profile .badge.bg-light {
    background: linear-gradient(135deg, #f3e8ff 0%, #fff7dc 100%) !important;
    color: #3b1d6e !important;
    border-radius: 999px;
    transition: all 0.38s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.author-profile .badge.bg-light:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%) !important;
    color: #fffdf7 !important;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

.author-box {
    border-inline-start: 4px solid #f6c453;
    background: linear-gradient(135deg, #fffdf7 0%, #f7f0ff 58%, #fff6dd 100%);
    border-radius: 20px;
    color: #2a1b4d;
    transition: all 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.author-box:hover {
    box-shadow: 0 18px 40px rgba(76, 29, 149, 0.18), 0 4px 14px rgba(246, 196, 83, 0.16);
}

.author-box img {
    transition: transform 0.38s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.author-box:hover img {
    transform: scale(1.05);
}

.author-posts-list .card {
    background: linear-gradient(150deg, #fffdf7 0%, #f7efff 55%, #fff8e6 100%);
    color: #2a1b4d;
    border-radius: 22px;
    box-shadow: 0 6px 20px rgba(76, 29, 149, 0.08);
    transition: all 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
    overflow: hidden;
}

.author-posts-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(15, 15, 26, 0.16), 0 8px 22px rgba(124, 58, 237, 0.18);
}

.author-posts-list .card-img-top {
    transition: transform 0.58s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.author-posts-list .card:hover .card-img-top {
    transform: scale(1.05);
}

.main-authors-section {
    background: radial-gradient(circle at 50% 0%, #3b1d6e 0%, #1a1230 38%, #0f0f1a 100%);
    color: #f5f0ff;
}

.author-card {
    background: linear-gradient(145deg, #fffdf7 0%, #f8f1ff 55%, #fff7dc 100%);
    color: #2a1b4d;
    border: 1px solid rgba(246, 196, 83, 0.35);
    border-radius: 22px;
    transition: all 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 64px rgba(15, 15, 26, 0.28), 0 10px 26px rgba(246, 196, 83, 0.18);
}

.author-card img.rounded-circle {
    border: 3px solid #efe2ff;
    transition: border-color 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.author-card:hover img.rounded-circle {
    border-color: #7c3aed;
}

.faq-section {
    background: linear-gradient(180deg, #fbf7ff 0%, #f2e9ff 48%, #fffdf7 100%);
    color: #2a1b4d;
}

.faq-section h2 {
    font-size: 1.75rem;
    color: #3b1d6e;
}

.faq-list .faq-item {
    border: 1px solid rgba(124, 58, 237, 0.12);
    background: linear-gradient(135deg, #fffdf7 0%, #fbf7ff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(76, 29, 149, 0.05);
    transition: all 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
    cursor: pointer;
}

.faq-list .faq-item:hover {
    box-shadow: 0 16px 34px rgba(76, 29, 149, 0.16), 0 4px 14px rgba(246, 196, 83, 0.14) !important;
    transform: translateY(-2px);
}

.faq-list .faq-item[open] {
    border-color: rgba(124, 58, 237, 0.32);
    background: linear-gradient(90deg, #f3e8ff 0%, #fff8e6 55%, #fffdf7 100%);
}

.faq-list .faq-item summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1.6;
    padding-inline-end: 2rem;
    position: relative;
    user-select: none;
    color: #2a1b4d;
}

.faq-list .faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-list .faq-item summary::marker {
    content: '';
}

.faq-list .faq-item summary::after {
    content: '+';
    position: absolute;
    inset-inline-end: 0.25rem;
    inset-block-start: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #7c3aed;
    text-shadow: 0 2px 10px rgba(246, 196, 83, 0.22);
    transition: transform 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
    line-height: 1;
}

.faq-list .faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: #7c3aed;
}

.faq-list .faq-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    animation: faqFadeIn 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-widgets .card {
    background: linear-gradient(160deg, #fffdf7 0%, #f6efff 100%);
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(76, 29, 149, 0.06);
    transition: all 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.sidebar-widgets .card:hover {
    box-shadow: 0 20px 46px rgba(76, 29, 149, 0.16), 0 4px 14px rgba(246, 196, 83, 0.12);
}

.sidebar-widgets h5 {
    color: #3b1d6e;
}

.sidebar-widgets .badge {
    transition: all 0.38s cubic-bezier(0.22, 0.8, 0.22, 1);
    cursor: pointer;
}

.sidebar-widgets .badge:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%) !important;
    color: #fffdf7 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.24);
}

.sidebar-widgets ul li:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.sidebar-widgets ul li a:hover .small {
    color: #7c3aed !important;
}

.pagination .page-link {
    background: linear-gradient(180deg, #fffdf7 0%, #f4ecff 100%);
    color: #6d28d9;
    border-color: #d8c8ff;
    border-radius: 12px;
    transition: all 0.38s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #fff7dc 100%);
    color: #4c1d95;
    border-color: #7c3aed;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.14);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    border-color: #6d28d9;
    color: #fffdf7;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.26);
}

.pagination .page-item.disabled .page-link {
    color: #a89bc4;
    background: linear-gradient(180deg, #faf7ff 0%, #f1eaff 100%);
    border-color: #e2d8f8;
}

.search-box-section {
    background: radial-gradient(circle at 50% 0%, #2a1b4d 0%, #141024 42%, #0f0f1a 100%);
    color: #f5f0ff;
}

.search-box-section .input-group-lg .form-control {
    border-radius: 999px 0 0 999px;
    padding-inline-start: 1.5rem;
    background: linear-gradient(135deg, #fffdf7 0%, #f6efff 100%);
    border-color: #d8c8ff;
    color: #2a1b4d;
    box-shadow: inset 0 1px 0 rgba(255, 253, 247, 0.75), 0 8px 20px rgba(15, 15, 26, 0.18);
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 999px 999px 0;
    background: linear-gradient(135deg, #f6c453 0%, #d97706 100%);
    border-color: #f6c453;
    color: #0f0f1a;
    box-shadow: 0 12px 28px rgba(246, 196, 83, 0.22);
}

.search-box-section .badge {
    background: linear-gradient(135deg, rgba(246, 196, 83, 0.18) 0%, rgba(124, 58, 237, 0.24) 100%);
    color: #f5f0ff;
    border: 1px solid rgba(246, 196, 83, 0.35);
    transition: all 0.38s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.search-box-section .badge:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%) !important;
    color: #fffdf7 !important;
    border-color: #7c3aed !important;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.24);
}

.search-results-section {
    background: linear-gradient(180deg, #fffdf7 0%, #f8f2ff 100%);
}

.search-result {
    border-radius: 16px;
    transition: all 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow: 0 18px 38px rgba(76, 29, 149, 0.14), 0 4px 12px rgba(246, 196, 83, 0.12);
}

.search-result h2 a:hover {
    color: #7c3aed !important;
}

.search-result mark {
    background: linear-gradient(135deg, #f7d774 0%, #f6c453 100%);
    color: #2a1b4d;
    padding-inline: 2px;
    border-radius: 6px;
    font-weight: 600;
}

.error-page h1 {
    background: linear-gradient(135deg, #f6c453 0%, #a78bfa 45%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 0 6px 32px rgba(124, 58, 237, 0.28), 0 0 22px rgba(246, 196, 83, 0.18);
}

.recommended-links .badge {
    background: linear-gradient(135deg, #fffdf7 0%, #f3e8ff 100%);
    color: #3b1d6e;
    border-radius: 999px;
    transition: all 0.38s cubic-bezier(0.22, 0.8, 0.22, 1);
    border: 1px solid #d8c8ff;
}

.recommended-links .badge:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%) !important;
    color: #fffdf7 !important;
    border-color: #7c3aed !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.24), 0 2px 8px rgba(246, 196, 83, 0.12);
}

.recommended-links .badge:hover .text-warning {
    color: #f6c453 !important;
}

.legal-article-section,
main:has(> .container > article.bg-white) {
    background: linear-gradient(180deg, #fbf7ff 0%, #f2e9ff 52%, #fffdf7 100%);
}

article :is(h2.h4) {
    color: #4c1d95;
    border-bottom: 2px solid #d8c8ff;
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
}

article .alert-info {
    background: linear-gradient(135deg, #f3e8ff 0%, #fff7dc 100%);
    border-color: #c4b5fd;
    color: #4c1d95;
}

article .list-group-item {
    background: linear-gradient(90deg, rgba(255, 253, 247, 0) 0%, rgba(246, 196, 83, 0.08) 100%);
    transition: all 0.38s cubic-bezier(0.22, 0.8, 0.22, 1);
}

article .list-group-item:hover {
    background: linear-gradient(90deg, #f3e8ff 0%, #fff7dc 100%);
    padding-inline-start: var(--space-sm);
}

.posts-grid {
}

.posts-grid .card {
    background: linear-gradient(150deg, #fffdf7 0%, #f8f1ff 55%, #fff8e6 100%);
    color: #2a1b4d;
    border-radius: 22px;
    box-shadow: 0 6px 20px rgba(76, 29, 149, 0.07);
    transition: all 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
    border: 1px solid rgba(124, 58, 237, 0.14);
    overflow: hidden;
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 58px rgba(15, 15, 26, 0.16), 0 10px 24px rgba(124, 58, 237, 0.18);
    border-color: #7c3aed;
}

.posts-grid .card-img-top {
    transition: transform 0.58s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.posts-grid .card:hover .card-img-top {
    transform: scale(1.05);
}

.posts-grid .card-title a {
    transition: color 0.38s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.posts-grid .card-title a:hover {
    color: #7c3aed !important;
}

.related-posts h3 {
    color: #4c1d95;
    border-bottom: 3px solid #f6c453;
    padding-bottom: var(--space-xs);
    display: inline-block;
}

.related-card {
    background: linear-gradient(145deg, #fffdf7 0%, #f6efff 100%);
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(76, 29, 149, 0.06);
    transition: all 0.48s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(76, 29, 149, 0.16), 0 4px 14px rgba(246, 196, 83, 0.12);
}

.related-card img {
    transition: transform 0.58s cubic-bezier(0.22, 0.8, 0.22, 1);
}

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

.social-share .btn {
    min-width: 40px;
    border-radius: 14px;
    transition: all 0.38s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.18), 0 2px 8px rgba(246, 196, 83, 0.12);
}

.social-share [data-copy-url].copied {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #fffdf7;

    border-color: #10b981;
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.22);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #f3e8ff 0%, #fff7dc 100%);
    color: #4c1d95;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.22);
}

.modal-content {
    border: none;
    border-radius: 28px;
    box-shadow: 0 36px 90px rgba(15, 15, 26, 0.34), 0 12px 30px rgba(124, 58, 237, 0.18), 0 0 0 1px rgba(246, 196, 83, 0.16);
}

.tooltip-inner {
    background: linear-gradient(135deg, #2a1b4d 0%, #0f0f1a 100%);
    color: #f5f0ff;
    border-radius: 12px;
    font-size: 0.85rem;
    box-shadow: 0 12px 28px rgba(15, 15, 26, 0.32), 0 0 0 1px rgba(246, 196, 83, 0.18);
}

@media (max-width: 767.98px) {
    .faq-section h2 {
        font-size: 1.4rem;
    }

    .faq-list .faq-item summary {
        font-size: 0.95rem;
        padding-inline-end: 1.5rem;
    }

    .faq-list .faq-answer {
        font-size: 0.88rem;
    }

    .author-profile h1 {
        font-size: 1.5rem;
    }

    .author-profile .col-md-3 img {
        width: 120px !important;
        height: 120px !important;
    }

    .error-page h1 {
        font-size: 5rem !important;
    }

    .search-box-section .input-group-lg .form-control,
    .search-box-section .input-group-lg .btn {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .related-posts .row > [class*="col-"] {
        margin-bottom: var(--space-sm);
    }

    .pagination .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
    }
}