/*
Theme Name: raisinguide
Author: Wxz
Version: 1.0
*/

/* 段落 */
.wp-block-quote {
    background-color: #f9f9f9;
    border-left: 4px solid #3a816e;
    padding-left: 20px;
    margin: 1.5em 0;
}

/* 段落首行缩进 & 行距优化 */
.wp-block-paragraph {
    line-height: 1.6;
    margin-bottom: 1.5em;
    text-indent: 2em; /* 首行缩进2字符 */
}

/* 高亮文本效果 */
.has-highlight-bg {
    background: #fff3cd;
    padding: 0 4px;
    border-radius: 4px;
}

/* 主标题装饰线 */
.wp-block-heading h1,
.wp-block-heading h2 {
    position: relative;
    padding-bottom: 12px;
}
.wp-block-heading h1::after,
.wp-block-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3182ce;
}

/* 美观的侧边标题栏效果 */
.wp-block-heading h3 {
    border-left: 4px solid #e53e3e;
    padding-left: 15px;
}

/* 圆润渐变按钮 */
.wp-block-button .wp-block-button__link {
    border-radius: 40px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s;
}
.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 完全扁平的纯色按钮（覆盖古腾堡默认样式） */
.is-style-plain-button .wp-block-button__link {
    border-radius: 0;
    background: #2c3e50;
    box-shadow: none;
}


.wp-block-quote p:last-child {
    margin-bottom: 0;
}
.wp-block-quote cite {
    display: block;
    margin-top: 10px;
    color: #4a5568;
    font-style: normal;
    font-size: 0.9em;
}

/* 自定义彩色项目符号 */
.wp-block-list ul > li::marker {
    color: #e53e3e;
}
.wp-block-list ol > li::marker {
    color: #3182ce;
    font-weight: bold;
}

/* 列表内边距优化 */
.wp-block-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 圆角阴影图片 */
.wp-block-image img {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.wp-block-image img:hover {
    transform: scale(1.01);
}

/* 图库网格间距调整 */
.wp-block-gallery .blocks-gallery-item {
    margin: 0 8px 16px 0;
}

/* 优雅的点状或渐变分隔线 */
.wp-block-separator {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, #ccc, #888, #ccc);
    max-width: 100px;
    margin: 2em auto;
}
.wp-block-separator.is-style-dots {
    background: none;
    height: auto;
    text-align: center;
}

/* 条纹表格 & 悬停效果 */
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}
.wp-block-table th,
.wp-block-table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
}
.wp-block-table tr:nth-child(even) {
    background-color: #f9fafb;
}
.wp-block-table tr:hover {
    background-color: #edf2f7;
}

/* 信息框、警告框、成功框样式（需搭配组块使用） */
.wp-block-group.has-alert-info {
    background: #e6f7ff;
    border-left: 5px solid #1890ff;
    padding: 20px;
    border-radius: 8px;
}
.wp-block-group.has-alert-warning {
    background: #fff7e6;
    border-left-color: #fa8c16;
}
.wp-block-group.has-alert-success {
    background: #f6ffed;
    border-left-color: #52c41a;
}

@media (max-width: 768px) {
    .wp-block-image img,
    .wp-block-table table {
        height: auto;
    }
    .wp-block-button .wp-block-button__link {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .wp-block-paragraph {
        text-indent: 1em;
    }
}

