/* css/components.css */

/* --- 富文本内容样式 --- */
.rich-text-content h2 {
    font-size: 22px;
    color: #000;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rich-text-content .bb_paragraph {
    line-height: 1.7;
    margin-bottom: 1.2em;
    color: #333;
    font-size: 15px;
}

.rich-text-content video,
.rich-text-content img,
.rich-text-content .bb_img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em auto;
}

.rich-text-content .bb_img_icons {
    display: none;
}

/* --- 搜索框样式 --- */
.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    padding: 6px 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #007bff;
}

.search-button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 6px 10px;
    cursor: pointer;
}

/* --- 返回顶部按钮样式 --- */
#back-to-top-btn {
    display: none; 
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #555;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
    
    /* 修改：设置固定的宽高以确保为圆形 */
    width: 55px;
    height: 55px;
    padding: 0; /* 移除内边距，因为尺寸由宽高决定 */

    /* 修改：使用 Flexbox 使箭头完美居中 */
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top-btn:hover {
    background-color: #007bff;
    transform: translateY(-2px);
}