/**
 * 属余情侣主题 - 古腾堡块前端样式
 */

/* 亮点块 */
.shuyu-highlight {
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin: 20px 0;
}

.shuyu-highlight p {
    margin: 0;
}

.shuyu-highlight-yellow {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #fbbf24;
}

.shuyu-highlight-blue {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.shuyu-highlight-green {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.shuyu-highlight-red {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.shuyu-highlight-purple {
    background-color: #e9d5ff;
    color: #6b21a8;
    border-left: 4px solid #a855f7;
}

/* 提醒框块 */
.shuyu-alert {
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid;
}

.shuyu-alert-title {
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shuyu-alert-title::before {
    font-size: 18px;
}

.shuyu-alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

.shuyu-alert-info .shuyu-alert-title::before {
    content: 'ℹ️';
}

.shuyu-alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.shuyu-alert-success .shuyu-alert-title::before {
    content: '✓';
}

.shuyu-alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.shuyu-alert-warning .shuyu-alert-title::before {
    content: '⚠';
}

.shuyu-alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.shuyu-alert-error .shuyu-alert-title::before {
    content: '✕';
}

/* 折叠内容块 */
.shuyu-collapse {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.shuyu-collapse-header {
    padding: 12px 16px;
    background-color: #f9fafb;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s;
}

.shuyu-collapse-header:hover {
    background-color: #f3f4f6;
}

.shuyu-collapse-icon {
    transition: transform 0.3s;
    font-size: 12px;
}

.shuyu-collapse.open .shuyu-collapse-icon {
    transform: rotate(180deg);
}

.shuyu-collapse-content {
    padding: 16px;
    display: none;
}

.shuyu-collapse.open .shuyu-collapse-content {
    display: block;
}

/* 引言块 */
.shuyu-quote {
    margin: 20px 0;
    padding: 20px 24px;
    border-left: 4px solid #d4384a;
    background-color: #fdfbf9;
    font-style: italic;
    color: #555;
}

.shuyu-quote p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.shuyu-quote-author {
    margin-top: 12px;
    font-size: 14px;
    color: #888;
    text-align: right;
    font-style: normal;
}

/* 隐藏内容块 */
.shuyu-hidden-content {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #d4384a;
    border-radius: 8px;
    background-color: #fff5f5;
    position: relative;
}

.shuyu-hidden-content-inner {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.shuyu-hidden-content.unlocked .shuyu-hidden-content-inner {
    filter: none;
    user-select: auto;
    pointer-events: auto;
}

.shuyu-hidden-content::before {
    content: '🔒 评论后可查看隐藏内容';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #d4384a;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 1;
}

.shuyu-hidden-content.shuyu-hidden-login::before {
    content: '🔒 登录后可查看隐藏内容';
}

.shuyu-hidden-content[data-message]::before {
    content: '🔒 ' attr(data-message);
}

.shuyu-hidden-content.unlocked::before {
    display: none;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .shuyu-quote p {
        font-size: 16px;
    }
    
    .shuyu-hidden-content::before {
        font-size: 14px;
        padding: 10px 20px;
    }
}
