/**
 * Xun Child 子主题样式合集
 * 
 * @package    Xun Child
 * @subpackage Assets/CSS
 * @since      1.0.0
 */

/* ============================================================================
 * 第一部分：后台欢迎页面样式 (admin-welcome)
 * ============================================================================ */

.xun-child-welcome-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.xun-child-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.xun-child-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.xun-child-hero-content {
    position: relative;
    z-index: 1;
}

.xun-child-hero h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.xun-child-hero h1 i {
    font-size: 36px;
    opacity: 0.9;
}

.xun-child-hero p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.xun-child-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.xun-child-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.xun-child-version-badge i {
    font-size: 14px;
}

.xun-child-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.xun-child-author-badge i {
    font-size: 14px;
    opacity: 0.9;
}

.xun-child-author-badge a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.xun-child-author-badge a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.xun-child-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.xun-child-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.xun-child-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.xun-child-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.xun-child-feature-icon.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.xun-child-feature-icon.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.xun-child-feature-icon.orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
}

.xun-child-feature-icon.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.xun-child-feature-icon.pink {
    background: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%);
    color: #fff;
}

.xun-child-feature-icon.cyan {
    background: linear-gradient(135deg, #2af598 0%, #009efd 100%);
    color: #fff;
}

.xun-child-feature-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.xun-child-feature-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.xun-child-info-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
}

.xun-child-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.xun-child-info-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.xun-child-info-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.xun-child-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.xun-child-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.xun-child-quick-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.xun-child-quick-link i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .xun-child-hero {
        padding: 25px;
    }
    .xun-child-hero h1 {
        font-size: 24px;
    }
    .xun-child-hero h1 i {
        font-size: 28px;
    }
    .xun-child-features {
        grid-template-columns: 1fr;
    }
    .xun-child-info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============================================================================
 * 第二部分：商业版权声明样式 (commercial-notice)
 * ============================================================================ */

.xun-commercial-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, #e8f4fd 0%, #d6ecff 100%);
    border: 1px solid #b8daff;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
}

.xun-commercial-notice-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xun-commercial-notice-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xun-commercial-notice-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #1a73e8;
    font-weight: 500;
}

@media (max-width: 991px) {
    .xun-commercial-notice {
        padding: 12px 16px;
        gap: 10px;
    }
    .xun-commercial-notice-icon {
        width: 32px;
        height: 32px;
    }
    .xun-commercial-notice-text {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .xun-commercial-notice {
        padding: 12px 14px;
        gap: 10px;
        margin: 16px 0;
    }
    .xun-commercial-notice-icon {
        width: 28px;
        height: 28px;
    }
    .xun-commercial-notice-text {
        font-size: 12px;
        line-height: 1.5;
    }
}

.dark-mode .xun-commercial-notice,
[data-theme="dark"] .xun-commercial-notice {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a2f4a 100%);
    border-color: #2d5a8a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .xun-commercial-notice-text,
[data-theme="dark"] .xun-commercial-notice-text {
    color: #7cb3f4;
}

/* ============================================================================
 * 第三部分：下载页美化样式 (download-hero-beautify)
 * ============================================================================ */

.xun-software-hero.xun-hero-beautified {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.xun-hero-beautified .xun-hero-bg-fullwidth {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.xun-hero-beautified .xun-hero-bg-fullwidth::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(var(--hero-blur, 10px)) brightness(var(--hero-brightness, 0.5));
    transform: scale(1.1);
}

.xun-hero-beautified .xun-hero-bg-fullwidth::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}

.xun-hero-beautified .xun-software-hero-inner {
    position: relative;
    z-index: 2;
}

.xun-hero-beautified .xun-software-hero-bg {
    display: none;
}

.xun-hero-beautified .xun-software-hero-icon {
    display: none;
}

.xun-hero-reflection-wrapper {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    perspective: 1000px;
}

.xun-hero-reflection {
    position: relative;
    width: 400px;
    max-width: 35vw;
    transform: rotateY(var(--reflection-rotate, -15deg)) rotateX(5deg);
    transform-style: preserve-3d;
    animation: reflection-float 6s ease-in-out infinite;
}

.xun-hero-reflection-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: var(--reflection-opacity, 0.3);
}

.xun-hero-reflection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.xun-hero-title-mask {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%) rotateY(var(--reflection-rotate, -15deg));
    z-index: 1;
    pointer-events: none;
    max-width: 50%;
    text-align: right;
    animation: title-mask-fade 1s ease-out 0.3s both;
}

.xun-hero-title-mask-text {
    font-size: var(--title-mask-size, 48px);
    font-weight: 900;
    color: var(--title-mask-color, rgba(255, 255, 255, 0.15));
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}

@keyframes reflection-float {
    0%, 100% {
        transform: rotateY(var(--reflection-rotate, -15deg)) rotateX(5deg) translateY(0);
    }
    50% {
        transform: rotateY(var(--reflection-rotate, -15deg)) rotateX(5deg) translateY(-10px);
    }
}

@keyframes title-mask-fade {
    from {
        opacity: 0;
        transform: translateY(-50%) rotateY(var(--reflection-rotate, -15deg)) translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) rotateY(var(--reflection-rotate, -15deg)) translateX(0);
    }
}

@media (max-width: 1024px) {
    .xun-hero-beautified {
        min-height: 450px;
    }
    .xun-hero-reflection-wrapper {
        right: -10%;
    }
    .xun-hero-reflection {
        width: 300px;
    }
    .xun-hero-title-mask {
        right: 3%;
    }
    .xun-hero-title-mask-text {
        font-size: calc(var(--title-mask-size, 48px) * 0.75);
    }
}

@media (max-width: 768px) {
    .xun-hero-beautified {
        min-height: 400px;
    }
    .xun-hero-reflection-wrapper {
        display: none;
    }
    .xun-hero-title-mask {
        position: absolute;
        top: auto;
        bottom: 10%;
        right: 50%;
        transform: translateX(50%);
        max-width: 90%;
        text-align: center;
    }
    .xun-hero-title-mask-text {
        font-size: calc(var(--title-mask-size, 48px) * 0.5);
        white-space: normal;
        -webkit-text-stroke: none;
    }
}

@media (max-width: 480px) {
    .xun-hero-beautified {
        min-height: 350px;
    }
    .xun-hero-title-mask-text {
        font-size: calc(var(--title-mask-size, 48px) * 0.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .xun-hero-reflection {
        animation: none;
    }
    .xun-hero-title-mask {
        animation: none;
    }
}

.dark-mode .xun-hero-beautified .xun-hero-bg-fullwidth::after,
[data-theme="dark"] .xun-hero-beautified .xun-hero-bg-fullwidth::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.dark-mode .xun-hero-reflection-img,
[data-theme="dark"] .xun-hero-reflection-img {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ============================================================================
 * 第四部分：头部会员按钮样式 (header-vip-btn)
 * ============================================================================ */

.xun-header-vip-btn-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.xun-header-vip-btn-img {
    display: block;
    width: auto;
    height: 32px;
    max-height: 40px;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.xun-header-vip-btn-wrapper:hover .xun-header-vip-btn-img {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.xun-vip-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 9999;
    pointer-events: none;
}

.xun-vip-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.xun-vip-dropdown-arrow {
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #1a1a2e 0%, #1a1a2e 50%, transparent 50%);
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.1);
}

.xun-vip-dropdown-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.xun-vip-dropdown-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xun-vip-dropdown-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #f5a623;
    text-align: center;
}

.xun-vip-dropdown-body {
    padding: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.xun-vip-dropdown-body::-webkit-scrollbar {
    width: 4px;
}

.xun-vip-dropdown-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.xun-vip-dropdown-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.xun-vip-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.xun-vip-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.xun-vip-dropdown-item:last-child {
    margin-bottom: 0;
}

.xun-vip-dropdown-item:hover {
    background: rgba(245, 166, 35, 0.1);
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateX(2px);
}

.xun-vip-dropdown-item.is-recommended {
    background: rgba(245, 166, 35, 0.08);
    border-color: rgba(245, 166, 35, 0.2);
}

.xun-vip-dropdown-item.is-recommended:hover {
    background: rgba(245, 166, 35, 0.15);
    border-color: rgba(245, 166, 35, 0.4);
}

.xun-vip-dropdown-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    flex-shrink: 0;
}

.xun-vip-dropdown-item-info {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.xun-vip-dropdown-item-price {
    font-size: 15px;
    font-weight: 600;
    color: #f5a623;
}

.xun-vip-dropdown-item-duration {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.xun-vip-dropdown-item-badge {
    position: absolute;
    top: -1px;
    right: 8px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f5a623 0%, #f12711 100%);
    border-radius: 0 0 4px 4px;
    line-height: 1;
}

.xun-vip-dropdown-empty {
    padding: 20px;
    text-align: center;
}

.xun-vip-dropdown-empty p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.xun-vip-dropdown-footer {
    padding: 10px 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.xun-vip-dropdown-more {
    display: inline-block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.xun-vip-dropdown-more:hover {
    color: #f5a623;
}

@media (max-width: 991px) {
    .xun-vip-dropdown {
        width: 240px;
    }
    .xun-vip-dropdown-item {
        padding: 8px 10px;
    }
    .xun-vip-dropdown-item-name {
        font-size: 12px;
    }
    .xun-vip-dropdown-item-price {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .xun-vip-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }
    .xun-vip-dropdown.is-active {
        transform: translateY(0);
    }
    .xun-vip-dropdown-arrow {
        display: none;
    }
    .xun-vip-dropdown-content {
        border-radius: 16px 16px 0 0;
    }
    .xun-vip-dropdown-header {
        padding: 16px 20px 12px;
    }
    .xun-vip-dropdown-title {
        font-size: 16px;
    }
    .xun-vip-dropdown-body {
        padding: 12px;
        max-height: 50vh;
    }
    .xun-vip-dropdown-item {
        padding: 12px 14px;
        margin-bottom: 8px;
    }
    .xun-vip-dropdown-item-name {
        font-size: 14px;
    }
    .xun-vip-dropdown-item-price {
        font-size: 16px;
    }
    .xun-vip-dropdown-item-duration {
        font-size: 12px;
    }
    .xun-vip-dropdown-footer {
        padding: 12px 20px 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
    }
    .xun-vip-dropdown-more {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xun-header-vip-btn-img,
    .xun-vip-dropdown,
    .xun-vip-dropdown-item,
    .xun-vip-dropdown-more {
        transition: none;
    }
    .xun-header-vip-btn-wrapper:hover .xun-header-vip-btn-img,
    .xun-vip-dropdown-item:hover {
        transform: none;
    }
}

/* ============================================================================
 * 第五部分：文章标题美化样式 (heading-beautify)
 * ============================================================================ */

:root {
    --heading-primary-color: #6366f1;
    --heading-secondary-color: #8b5cf6;
}

/* 方案一：渐变底边（style1） */
.xun-single-content.heading-style1 h1,
.xun-single-content.heading-style1 h2,
.xun-single-content.heading-style1 h3,
.xun-single-content.heading-style1 h4,
.xun-single-content.heading-style1 h5,
.xun-single-content.heading-style1 h6 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: none;
}

.xun-single-content.heading-style1 h1::after,
.xun-single-content.heading-style1 h2::after,
.xun-single-content.heading-style1 h3::after,
.xun-single-content.heading-style1 h4::after,
.xun-single-content.heading-style1 h5::after,
.xun-single-content.heading-style1 h6::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--heading-primary-color), var(--heading-secondary-color));
    transition: width 0.3s ease;
}

.xun-single-content.heading-style1 h1::after { width: 80px; }
.xun-single-content.heading-style1 h2::after { width: 60px; }
.xun-single-content.heading-style1 h3::after { width: 45px; }
.xun-single-content.heading-style1 h4::after { width: 35px; }
.xun-single-content.heading-style1 h5::after { width: 28px; }
.xun-single-content.heading-style1 h6::after { width: 22px; }

.xun-single-content.heading-style1 h1:hover::after { width: 120px; }
.xun-single-content.heading-style1 h2:hover::after { width: 100px; }
.xun-single-content.heading-style1 h3:hover::after { width: 80px; }
.xun-single-content.heading-style1 h4:hover::after { width: 60px; }
.xun-single-content.heading-style1 h5:hover::after { width: 45px; }
.xun-single-content.heading-style1 h6:hover::after { width: 35px; }

/* 方案二：左侧竖条（style2） */
.xun-single-content.heading-style2 h1,
.xun-single-content.heading-style2 h2,
.xun-single-content.heading-style2 h3,
.xun-single-content.heading-style2 h4,
.xun-single-content.heading-style2 h5,
.xun-single-content.heading-style2 h6 {
    position: relative;
    padding-left: 16px;
    margin-bottom: 18px;
    border-bottom: none;
}

.xun-single-content.heading-style2 h1::before,
.xun-single-content.heading-style2 h2::before,
.xun-single-content.heading-style2 h3::before,
.xun-single-content.heading-style2 h4::before,
.xun-single-content.heading-style2 h5::before,
.xun-single-content.heading-style2 h6::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--heading-primary-color), var(--heading-secondary-color));
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

.xun-single-content.heading-style2 h1::before { height: 28px; }
.xun-single-content.heading-style2 h2::before { height: 24px; }
.xun-single-content.heading-style2 h3::before { height: 20px; }
.xun-single-content.heading-style2 h4::before { height: 16px; }
.xun-single-content.heading-style2 h5::before { height: 14px; }
.xun-single-content.heading-style2 h6::before { height: 12px; }

.xun-single-content.heading-style2 h1:hover::before,
.xun-single-content.heading-style2 h2:hover::before,
.xun-single-content.heading-style2 h3:hover::before,
.xun-single-content.heading-style2 h4:hover::before,
.xun-single-content.heading-style2 h5:hover::before,
.xun-single-content.heading-style2 h6:hover::before {
    box-shadow: 0 0 8px var(--heading-primary-color);
}

/* 方案三：背景高亮（style3） */
.xun-single-content.heading-style3 h1,
.xun-single-content.heading-style3 h2,
.xun-single-content.heading-style3 h3,
.xun-single-content.heading-style3 h4,
.xun-single-content.heading-style3 h5,
.xun-single-content.heading-style3 h6 {
    position: relative;
    display: inline-block;
    padding: 6px 16px 6px 12px;
    margin-bottom: 18px;
    border-bottom: none;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(var(--heading-primary-rgb), 0.1), rgba(var(--heading-secondary-rgb), 0.05));
    border-left: 3px solid var(--heading-primary-color);
    transition: background 0.3s ease, transform 0.3s ease;
}

.xun-single-content.heading-style3 h1:hover,
.xun-single-content.heading-style3 h2:hover,
.xun-single-content.heading-style3 h3:hover,
.xun-single-content.heading-style3 h4:hover,
.xun-single-content.heading-style3 h5:hover,
.xun-single-content.heading-style3 h6:hover {
    background: linear-gradient(135deg, rgba(var(--heading-primary-rgb), 0.15), rgba(var(--heading-secondary-rgb), 0.08));
    transform: translateX(4px);
}

.xun-single-content.heading-style3 h1 { border-left-width: 5px; }
.xun-single-content.heading-style3 h2 { border-left-width: 4px; }
.xun-single-content.heading-style3 h3 { border-left-width: 4px; }
.xun-single-content.heading-style3 h4 { border-left-width: 3px; }
.xun-single-content.heading-style3 h5 { border-left-width: 3px; }
.xun-single-content.heading-style3 h6 { border-left-width: 2px; }

/* 标题美化暗色模式适配 */
[data-theme="dark"] .xun-single-content.heading-style1 h1::after,
[data-theme="dark"] .xun-single-content.heading-style1 h2::after,
[data-theme="dark"] .xun-single-content.heading-style1 h3::after,
[data-theme="dark"] .xun-single-content.heading-style1 h4::after,
[data-theme="dark"] .xun-single-content.heading-style1 h5::after,
[data-theme="dark"] .xun-single-content.heading-style1 h6::after {
    opacity: 0.9;
}

[data-theme="dark"] .xun-single-content.heading-style2 h1::before,
[data-theme="dark"] .xun-single-content.heading-style2 h2::before,
[data-theme="dark"] .xun-single-content.heading-style2 h3::before,
[data-theme="dark"] .xun-single-content.heading-style2 h4::before,
[data-theme="dark"] .xun-single-content.heading-style2 h5::before,
[data-theme="dark"] .xun-single-content.heading-style2 h6::before {
    opacity: 0.9;
}

[data-theme="dark"] .xun-single-content.heading-style3 h1,
[data-theme="dark"] .xun-single-content.heading-style3 h2,
[data-theme="dark"] .xun-single-content.heading-style3 h3,
[data-theme="dark"] .xun-single-content.heading-style3 h4,
[data-theme="dark"] .xun-single-content.heading-style3 h5,
[data-theme="dark"] .xun-single-content.heading-style3 h6 {
    background: linear-gradient(135deg, rgba(var(--heading-primary-rgb), 0.15), rgba(var(--heading-secondary-rgb), 0.08));
}

[data-theme="dark"] .xun-single-content.heading-style3 h1:hover,
[data-theme="dark"] .xun-single-content.heading-style3 h2:hover,
[data-theme="dark"] .xun-single-content.heading-style3 h3:hover,
[data-theme="dark"] .xun-single-content.heading-style3 h4:hover,
[data-theme="dark"] .xun-single-content.heading-style3 h5:hover,
[data-theme="dark"] .xun-single-content.heading-style3 h6:hover {
    background: linear-gradient(135deg, rgba(var(--heading-primary-rgb), 0.2), rgba(var(--heading-secondary-rgb), 0.12));
}

/* 标题美化响应式适配 */
@media (max-width: 768px) {
    .xun-single-content.heading-style1 h1::after { width: 60px; }
    .xun-single-content.heading-style1 h2::after { width: 50px; }
    .xun-single-content.heading-style1 h3::after { width: 40px; }
    
    .xun-single-content.heading-style2 h1,
    .xun-single-content.heading-style2 h2,
    .xun-single-content.heading-style2 h3,
    .xun-single-content.heading-style2 h4,
    .xun-single-content.heading-style2 h5,
    .xun-single-content.heading-style2 h6 {
        padding-left: 12px;
    }
    
    .xun-single-content.heading-style3 h1,
    .xun-single-content.heading-style3 h2,
    .xun-single-content.heading-style3 h3,
    .xun-single-content.heading-style3 h4,
    .xun-single-content.heading-style3 h5,
    .xun-single-content.heading-style3 h6 {
        padding: 5px 12px 5px 10px;
    }
    
    .xun-single-content.heading-style3 h1:hover,
    .xun-single-content.heading-style3 h2:hover,
    .xun-single-content.heading-style3 h3:hover,
    .xun-single-content.heading-style3 h4:hover,
    .xun-single-content.heading-style3 h5:hover,
    .xun-single-content.heading-style3 h6:hover {
        transform: none;
    }
}

/* ============================================================================
 * 第六部分：Logo扫光效果样式 (logo-shine)
 * ============================================================================ */

.xun-logo-shine {
    position: relative;
    overflow: hidden;
}

.xun-logo-shine::before {
    content: "";
    position: absolute;
    left: -665px;
    top: -460px;
    width: var(--logo-shine-width, 200px);
    height: var(--logo-shine-height, 15px);
    background-color: var(--logo-shine-color, rgba(255, 255, 255, 0.5));
    transform: rotate(calc(-1 * var(--logo-shine-angle, 45deg)));
    animation: xunLogoShine var(--logo-shine-duration, 6s) ease-in var(--logo-shine-delay, 0s) infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes xunLogoShine {
    0% {
        left: -665px;
        top: -460px;
    }
    40% {
        left: -100px;
        top: 0;
    }
    60% {
        left: 120px;
        top: 100px;
    }
    80% {
        left: -100px;
        top: 0;
    }
    100% {
        left: -665px;
        top: -460px;
    }
}

@media (max-width: 991px) {
    .xun-logo-shine::before {
        width: calc(var(--logo-shine-width, 200px) * 0.8);
        height: calc(var(--logo-shine-height, 15px) * 0.8);
    }
}

@media (max-width: 767px) {
    .xun-logo-shine::before {
        width: calc(var(--logo-shine-width, 200px) * 0.6);
        height: calc(var(--logo-shine-height, 15px) * 0.6);
    }
}

[data-theme="dark"] .xun-logo-shine::before,
.dark-mode .xun-logo-shine::before {
    background-color: var(--logo-shine-color-dark, var(--logo-shine-color, rgba(255, 255, 255, 0.6)));
}

@media (prefers-reduced-motion: reduce) {
    .xun-logo-shine::before {
        animation: none;
    }
}

/* ============================================================================
 * 第七部分：文章评分系统样式 (rating-system)
 * ============================================================================ */

.xunchild-rating-wrapper {
    margin-top: 12px;
}

/* download页面：评分与按钮同行显示 */
.xun-download-hero-actions .xunchild-rating-wrapper {
    margin-top: 0;
    margin-left: auto;
}

.xun-download-hero-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.xun-download-hero-btns .xunchild-rating-wrapper {
    margin-top: 0;
    margin-left: auto;
}

.xunchild-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--xun-bg-secondary, rgba(0,0,0,0.05));
    border-radius: 8px;
    font-size: 14px;
}

.xunchild-rating-stars {
    display: flex;
    gap: 2px;
}

.xunchild-rating-star {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s, transform 0.2s;
}

.xunchild-rating-star svg {
    display: block;
    fill: currentColor;
}

.xunchild-rating-star.filled {
    color: #fbbf24;
}

.xunchild-rating-star.half {
    color: #fbbf24;
    opacity: 0.6;
}

.xunchild-rating-star:hover {
    transform: scale(1.2);
}

.xunchild-rating[data-rated="0"] .xunchild-rating-star:hover,
.xunchild-rating[data-rated="0"] .xunchild-rating-star:hover ~ .xunchild-rating-star {
    color: #ddd;
}

.xunchild-rating[data-rated="0"] .xunchild-rating-star:hover ~ .xunchild-rating-star ~ .xunchild-rating-star ~ .xunchild-rating-star ~ .xunchild-rating-star,
.xunchild-rating[data-rated="0"]:hover .xunchild-rating-star {
    color: #ddd;
}

.xunchild-rating[data-rated="0"]:hover .xunchild-rating-star:hover,
.xunchild-rating[data-rated="0"]:hover .xunchild-rating-star:has(~ .xunchild-rating-star:hover) {
    color: #fbbf24;
}

.xunchild-rating[data-rated="1"] .xunchild-rating-star {
    cursor: default;
}

.xunchild-rating-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.xunchild-rating-score {
    font-weight: 600;
    color: #fbbf24;
}

.xunchild-rating-count {
    color: var(--xun-text-tertiary, #999);
    font-size: 12px;
}

.xunchild-rating-tip {
    font-size: 12px;
    color: var(--xun-text-tertiary, #999);
}

.xunchild-rating[data-rated="1"] .xunchild-rating-tip {
    display: none;
}

/* 评分系统暗色模式适配 */
.dark-mode .xunchild-rating,
[data-theme="dark"] .xunchild-rating {
    background: var(--xun-bg-secondary, rgba(255,255,255,0.05));
}

.dark-mode .xunchild-rating-score,
[data-theme="dark"] .xunchild-rating-score {
    color: #fbbf24;
}

.dark-mode .xunchild-rating-count,
[data-theme="dark"] .xunchild-rating-count {
    color: rgba(255,255,255,0.5);
}

.dark-mode .xunchild-rating-tip,
[data-theme="dark"] .xunchild-rating-tip {
    color: rgba(255,255,255,0.5);
}

/* ============================================================================
 * 第八部分：评分系统Toast提示样式 (rating-toast)
 * ============================================================================ */

.xunchild-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    text-align: center;
}

.xunchild-toast.is-show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.xunchild-toast.success {
    background: rgba(34, 197, 94, 0.95);
}

.xunchild-toast.error {
    background: rgba(239, 68, 68, 0.95);
}

.xunchild-toast .xunchild-toast-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.xunchild-toast .xunchild-toast-message {
    line-height: 1.5;
}

/* 暗色模式Toast适配 */
.dark-mode .xunchild-toast,
[data-theme="dark"] .xunchild-toast {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================================
 * 第九部分：底部页脚动物墙样式 (footer-animal-wall)
 * ============================================================================ */

.xun-footer-animal-wall {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* 墙体背景 - 使用伪元素创建砖墙效果 */
.xun-footer-animal-wall::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #d4c4b0 0%, #c9b89a 50%, #b8a88e 100%);
    z-index: 1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 砖块纹理效果 */
.xun-footer-animal-wall::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(0, 0, 0, 0.08) 19px,
            rgba(0, 0, 0, 0.08) 21px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(0, 0, 0, 0.06) 49px,
            rgba(0, 0, 0, 0.06) 51px
        );
    z-index: 2;
}

.xun-footer-animal-wall-img {
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    max-width: 100%;
    position: relative;
    z-index: 3;
}

/* PC端适配 */
@media (min-width: 1200px) {
    .xun-footer-animal-wall {
        height: 150px;
    }
    .xun-footer-animal-wall::before,
    .xun-footer-animal-wall::after {
        height: 60px;
    }
    .xun-footer-animal-wall-img {
        height: 150px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .xun-footer-animal-wall {
        height: 120px;
    }
    .xun-footer-animal-wall::before,
    .xun-footer-animal-wall::after {
        height: 50px;
    }
    .xun-footer-animal-wall-img {
        height: 120px;
    }
}

/* 移动端适配 */
@media (max-width: 767px) {
    .xun-footer-animal-wall {
        height: 100px;
    }
    .xun-footer-animal-wall::before,
    .xun-footer-animal-wall::after {
        height: 40px;
    }
    .xun-footer-animal-wall-img {
        height: 100px;
    }
}

/* 小屏移动端适配 */
@media (max-width: 480px) {
    .xun-footer-animal-wall {
        height: 80px;
    }
    .xun-footer-animal-wall::before,
    .xun-footer-animal-wall::after {
        height: 35px;
    }
    .xun-footer-animal-wall-img {
        height: 80px;
    }
}

/* 深色模式适配 */
.dark-mode .xun-footer-animal-wall::before,
[data-theme="dark"] .xun-footer-animal-wall::before {
    background: linear-gradient(180deg, #5a5248 0%, #4a4238 50%, #3a3228 100%);
}

.dark-mode .xun-footer-animal-wall::after,
[data-theme="dark"] .xun-footer-animal-wall::after {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.05) 19px,
            rgba(255, 255, 255, 0.05) 21px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(255, 255, 255, 0.03) 49px,
            rgba(255, 255, 255, 0.03) 51px
        );
}

.dark-mode .xun-footer-animal-wall-img,
[data-theme="dark"] .xun-footer-animal-wall-img {
    opacity: 1;
}
