/**
 * 趣崽二次开发 - 赞助页面样式
 * 适配白色背景和B2主题原生样式
 */

/* 页面容器 */
#quzai-sponsor-page {
    min-height: 500px;
}

/* 赞助说明区域 - 全新设计 */
.quzai-sponsor-intro {
    margin-bottom: 30px;
    padding: 40px 35px;
    background: var(--b2-main-bg-color, #fff);
    color: var(--b2-main-color, #333);
    border: 1px solid var(--b2-border-color, #e0e0e0);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    line-height: 1.8;
}

.quzai-sponsor-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--b2-border-color, #f0f0f0);
}

.quzai-sponsor-main-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--b2-theme-color, #0073aa);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.quzai-sponsor-subtitle {
    font-size: 16px;
    color: var(--b2-sub-color, #666);
    margin: 0;
    font-style: italic;
}

.quzai-sponsor-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* 工坊故事区域 */
.quzai-sponsor-story {
    background: rgba(0, 115, 170, 0.02);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--b2-theme-color, #0073aa);
}

.quzai-sponsor-story p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--b2-main-color, #333);
}

.quzai-sponsor-story p:last-of-type {
    margin-bottom: 25px;
}

.quzai-highlight-text {
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.1), rgba(0, 115, 170, 0.05));
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed var(--b2-theme-color, #0073aa);
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    color: var(--b2-theme-color, #0073aa);
    margin: 25px 0 !important;
}

.quzai-signature {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--b2-border-color, #e0e0e0);
}

.quzai-signature p {
    margin: 5px 0 !important;
    font-style: italic;
    color: var(--b2-sub-color, #666);
}

.quzai-signature p:last-child {
    color: var(--b2-theme-color, #0073aa);
    font-weight: bold;
}

/* 资金用途区域 */
.quzai-sponsor-usage {
    background: var(--b2-main-bg-color, #fff);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--b2-border-color, #e0e0e0);
}

.quzai-sponsor-usage h3 {
    text-align: center;
    font-size: 22px;
    color: var(--b2-main-color, #333);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--b2-theme-color, #0073aa);
    position: relative;
}

.quzai-sponsor-usage h3::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--b2-theme-color, #0073aa);
}

.quzai-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.quzai-usage-item {
    background: rgba(0, 115, 170, 0.03);
    padding: 25px 20px;
    border-radius: 10px;
    border: 1px solid var(--b2-border-color, #f0f0f0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quzai-usage-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--b2-theme-color, #0073aa), rgba(0, 115, 170, 0.5));
}

.quzai-usage-item:hover {
    background: rgba(0, 115, 170, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.15);
}

.quzai-usage-item h4 {
    font-size: 18px;
    margin: 0 0 12px 0;
    color: var(--b2-theme-color, #0073aa);
    font-weight: 600;
}

.quzai-usage-item p {
    font-size: 14px;
    margin: 0;
    color: var(--b2-main-color, #333);
    line-height: 1.6;
}

/* 原生赞助组件的卡片样式增强 */
.quzai-native-ds-wrapper {
    padding: 25px;
    margin-bottom: 30px;
}

.quzai-native-ds-wrapper .content-ds {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* 趣崽二次开发 - 赞助评论样式 */
.quzai-donation-comment {
    border-left: 4px solid #f25d8e !important;
    background: linear-gradient(135deg, rgba(242, 93, 142, 0.05), rgba(242, 93, 142, 0.1)) !important;
    position: relative;
    animation: quzaiDonationGlow 2s ease-in-out infinite alternate;
    order: -999;
    margin-bottom: 25px;
    border: 2px solid #f25d8e;
}

.quzai-donation-comment::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #f25d8e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 趣崽二次开发 - 赞助用户名金色扫光效果 */
.quzai-donation-user-link {
    display: inline-block;
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF8C00, #FFD700, #FFA500);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: quzaiGoldSweep 3s ease-in-out infinite;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.quzai-donation-user-link:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation-duration: 1s;
}

.quzai-donation-user-link:focus,
.quzai-donation-user-link:active {
    outline: none;
    transform: scale(1.02);
}

/* 金色扫光动画 */
@keyframes quzaiGoldSweep {
    0% {
        background-position: -300% 0;
    }
    50% {
        background-position: 100% 0;
    }
    100% {
        background-position: 300% 0;
    }
}

/* 赞助留言样式 */
.quzai-donation-message {
    font-style: italic;
    color: var(--b2-sub-color, #666);
    font-weight: 500;
    margin-left: 5px;
    padding: 2px 6px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    border-left: 3px solid #FFD700;
}

/* 金额显示样式增强 */
.comment-ds-box .ds-cmoney {
    color: #f25d8e;
    font-weight: bold;
    font-size: 16px;
    margin: 0 3px;
}

/* 赞助评论的特殊动画效果 */
@keyframes quzaiDonationGlow {
    0% {
        box-shadow: 0 2px 8px rgba(242, 93, 142, 0.1);
    }
    100% {
        box-shadow: 0 4px 16px rgba(242, 93, 142, 0.2);
    }
}

/* 赞助评论内容样式 */
.quzai-donation-comment .comment-content {
    color: var(--b2-main-color, #333) !important;
    font-weight: 500;
}

.quzai-donation-notice {
    padding: 12px 15px;
    background: rgba(242, 93, 142, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(242, 93, 142, 0.2);
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.quzai-donation-notice::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #f25d8e;
}

.quzai-donation-notice i {
    margin-right: 8px;
    font-size: 16px;
}

/* 评论区直接样式（无卡片包裹时的优化） */
.commentlist {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.commentlist .comment {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--b2-main-bg-color, #fff);
    border: 1px solid var(--b2-border-color, #e0e0e0);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.commentlist .comment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quzai-sponsor-intro {
        padding: 30px 20px;
    }
    
    .quzai-sponsor-main-title {
        font-size: 24px;
    }
    
    .quzai-usage-grid {
        grid-template-columns: 1fr;
    }
    
    .quzai-sponsor-story {
        padding: 20px;
    }
    
    .quzai-sponsor-usage {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .quzai-sponsor-main-title {
        font-size: 20px;
    }
    
    .quzai-sponsor-story p {
        font-size: 14px;
    }
    
    .quzai-usage-item {
        padding: 20px 15px;
    }
}