/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif, "微软雅黑";
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.ql-toolbar svg {
    width: 18px;
    height: 18px;
    border-radius: 0px;
    background-color: transparent;
    box-shadow: none;
}

svg[version="1.1"] {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    width: 800px;
}

@media (max-width: 1080px) {
    svg {
        width: 700px;
    }
}

@media (max-width: 768px) {
    svg {
        width: 600px;
    }
}

@media (max-width: 480px) {
    svg {
        width: 400px;
    }
}

def {
    background-color: #ffffff;
    /*padding: 20px;*/

}

.left-right-content {
    padding: 20px;
    background-color: #f4f4f4;
    display: flex;
    grid-template-columns: 1fr auto;
    justify-content: center;
}

/* 居中内容区域样式 */
.center-content {
    max-width: 900px;
    /*padding: 20px;*/
    text-align: center;
    background-color: #f4f4f4;
}

/* 居中内容区域样式 */
.center-contents {
    /* max-width: 900px; */
    /*padding: 20px;*/
    /* text-align: center; */
    background-color: #ffffff;
    border-radius: 10px;
}

/* 容器样式 */
.action-container {
    text-align: center;
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.action-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 横排布局 */
.action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* 按钮样式 */
.action-button {
    padding: 10px 25px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.approve-button {
    background-color: #4caf50;
    color: white;
}

.approve-button:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reject-button {
    background-color: #f44336;
    color: white;
}

.reject-button:hover {
    background-color: #d32f2f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 全局容器设置 */
.custom-container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sort-icons {
    display: inline-block;
    font-size: 12px;
    margin-left: 5px;
}
.sort-up, .sort-down {
    display: block;
    line-height: 10px;
}
.black {
    color: grey;
}
.gray {
    color: lightgray;
}
.sortable-header {
    text-decoration: none; /* 去掉下划线 */
    color: inherit; /* 继承父元素颜色 */
    cursor: pointer; /* 保持可点击 */
}
.sortable-header:hover {
    text-decoration: none; /* 悬停时也不显示下划线 */
}

/* 导航栏样式 */
.navbar {
    background-color: #005ea6;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.need-space {
    margin-left: auto; /* 让导航链接靠右 */
}
.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .navbar ul li a {
        font-size: 15px;
    }
}


@media (max-width: 480px) {
    .navbar ul li a {
        font-size: 14px;
    }
}

.navbar ul li a:hover {
    color: #ddd;
}

/* Logo 图片与标题 */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-img {
    width: 40px; /* 图片大小 */
    height: 55px;
    margin-right: 10px;
}

.logo-link span {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* 登录按钮样式 */
.login-btn {
    margin-left: 20px;
}

@media (max-width: 768px) {
    .login-btn {
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    .login-btn {
        margin-left: 10px;
    }
}

.submit-btn {
    display: flex;
    margin: auto;
    padding: 10px 20px;
    justify-content: center;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.custom-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    font-family: "微软雅黑";
}

.custom-btn:hover {
    background-color: #0056b3;
}

/* 基本样式 */
.search-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    position: relative;
}

/* 搜索框样式 */
.search-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}

/* 下拉菜单样式 */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    z-index: 10;
}

/* 每个下拉选项的样式 */
.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

.search-button {
    height: 45px;
    width: 59px;
    padding: 0px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

@media (max-width: 768px) {
    .search-button {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .search-button {
        font-size: 14px;
    }
}

.search-button:hover {
    background-color: #0056b3;
}

/* 主体内容 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    margin: 15px;
    width: calc(33.333% - 30px);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 1080px) {
    .card-container {
        padding: 10px;
    }
    .card {
        margin: 20px;
        width: calc(50.00% - 20px);
    }
}

@media (max-width: 768px) {
    .card-container {
        padding: 5px;
    }
    .card {
        margin: 20px;
        width: calc(100.00% - 10px);
    }
}

@media (max-width: 480px) {
    .card-container {
        padding: 0px;
    }

    .card {
        width: calc(100.00% - 10px);
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card .title {
    font-size: 20px;
    color: #005ea6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 显示的行数 */
    overflow: hidden;         /* 隐藏超出部分 */
    text-overflow: ellipsis;  /* 超出内容显示省略号 */
    line-height: 1.2em;
    height: calc(1.2em * 2);
    overflow-wrap: anywhere;
    width: 100%;
    white-space: pre-wrap;
}

.card p {
    width: calc(100% - 30px);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 显示的行数 */
    font-size: 14px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
    line-height: 1em;
    height: calc(1em * 3);
}

.card a {
    text-decoration: none;
    color: #005ea6;
    font-weight: bold;
    display: inline-block;
    margin-top: auto
}

.card a:hover {
    text-decoration: underline;
}

.card .card-link {
    margin-top: 20px;
    font-size: 15px;
}

/* 页脚样式 */
.footer {
    background-color: #002b55;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer a {
    color: #ddd;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content .card {
        width: calc(50% - 30px);
    }
}

@media (max-width: 480px) {
    .main-content .card {
        width: 100%;
    }

    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .login-btn {
        margin-top: 10px;
        font-size: 14px;
    }
}

.upload_title {
    width: 100%;
    padding-bottom: 20px;
    margin: 0 auto;
}

/* 上传容器样式 */
.upload-container {
    margin: 30px auto;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 800px;
}

.register_title {
    width: 100%;
    padding-bottom: 20px;
    margin: 0 auto;
}

/* 上传容器样式 */
.register-container {
    margin: 30px auto;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 400px;
}

.login_title {
    padding-bottom: 20px;
}

/* 上传容器样式 */
.login-container {
    margin: 30px auto;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 400px;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 15px;
}

label:not([class = "honor-label"]) {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* 数字输入框样式 */
label[class = "honor-label"] {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.honor-input {
    width: 70px;
    padding: 8px;
    text-align: center;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.honor-input:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

input[type="text"],
input[type="password"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* 包括内边距和边框 */
}

.form-group-textarea-container {
    position: relative;
    margin-bottom: 15px;
}

textarea {
    font-family: Arial, sans-serif;
    resize: none;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

textarea:focus {
    border: 1px solid #007BFF;
}

.char-count {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: black;
}

.char-count.red {
    color: red;
}

.messages {
    margin: 0px auto 0px;
    justify-content: center;
    text-align: center;
}

.message-btn {
    display: flex;
    margin: 20px auto;
    padding: 10px 20px;
    justify-content: center;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.message-btn:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse; /* 合并边框 */
}
th, td {
    border: 1px solid #ddd; /* 边框样式 */
    padding: 8px; /* 内边距 */
    text-align: left; /* 左对齐 */
}
th {
    background-color: #f0f0f0; /* 表头背景色 */
}
tr:hover {
    background-color: #f9f9f9; /* 鼠标悬停效果 */
}


.flashes {
    color: red;
}

.honor-display {
    display: flex;
    align-items: center;
}

.honor-icon {
    width: 36px;
    height: 36px;
    margin-right: 4px;
    background-image: url("/static/coin2.png"); /* 替换为实际的图片路径 */
    background-size: cover;
}

/* 完整图标 */
.honor-icon.full {
    /* 不需要额外样式，直接显示完整图标 */
}

/* 部分图标，使用 clip-path 控制显示部分 */
.honor-icon.partial {
    background-color: transparent;
}

.editor-container {
    width: 80%; /* 设置编辑器宽度为 80% */
    max-width: 1200px; /* 设置最大宽度 */
    margin: 50px auto; /* 水平居中并设置顶部间距 */
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f6;
}

#editor {
    height: 300px;
    width: 97.5%;
    margin: 0px auto 10px;
    border: 1px solid #ccc;
}
.ql-editor img {
    resize: both;
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
}
.toolbar {
    width: 97.5%;
    margin: 0px auto 5px;
}

#toolbar-container .ql-font span[data-label="Sans Serif"]::before {font-family: "Sans Serif", sans-serif;}
#toolbar-container .ql-font span[data-label='Helvetica']::before {font-family: "Helvetica Neue", sans-serif;}
#toolbar-container .ql-font span[data-label="SimHei"]::before {font-family: "SimHei", sans-serif;}
#toolbar-container .ql-font span[data-label="Microsoft YaHei"]::before {font-family: "Microsoft YaHei", sans-serif;}
#toolbar-container .ql-font span[data-label="SimSun"]::before {font-family: "SimSun", serif;}
#toolbar-container .ql-font span[data-label="KaiTi"]::before {font-family: "KaiTi", serif;}
#toolbar-container .ql-font span[data-label="FangSong"]::before {font-family: "FangSong", serif;}
#toolbar-container .ql-font span[data-label="Arial"]::before {font-family: "Arial", sans-serif;}
#toolbar-container .ql-font span[data-label="Times New Roman"]::before {font-family: "Times New Roman", serif;}

.ql-font-sans-serif {font-family: "Sans Serif", sans-serif;}
.ql-font-helvetica {font-family: "Helvetica Neue", sans-serif;}
.ql-font-simhei {font-family: "SimHei", sans-serif;}
.ql-font-microsoft-yahei {font-family: "Microsoft YaHei", sans-serif;}
.ql-font-simsun {font-family: "SimSun", serif;}
.ql-font-kaiti {font-family: "KaiTi", serif;}
.ql-font-fangsong {font-family: "FangSong", serif;}
.ql-font-arial {font-family: "Arial", sans-serif;}
.ql-font-times-new-roman {font-family: "Times New Roman", serif;}

.ql-font {
    min-width: 150px; /* 设置最小宽度，防止过小 */
}

.ql-formula {
    font-size: 18px; /* 设置公式字体大小 */
    color: #333; /* 设置公式字体颜色 */
}

.unclickable {
    pointer-events: none;
}

.password-container {
    position: relative;
}

input[type="password"], input[type="text"] {
    width: 100%;
    padding: 10px 40px 10px 10px; /* 留出右侧空间放图标 */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
}

.eye-icon {
    position: absolute;
    right: 10px; /* 与输入框右侧对齐 */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #888;
    user-select: none;
}

.eye-icon:hover {
    color: #000;
}

/*========= Flash Messages ==========*/

.message-container {
    width: 600px;
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 9999;
}

#flash-messages {
    margin-bottom: 0px;
}

.flash-message {
    padding: 10px;
    margin: 10px auto;
    border-radius: 4px;
    font-size: 14px;
    position: center;
    animation: fadeIn 1s ease-in-out;
}

/* Success with icon */
.flash-message.success {
    background-color: rgba(212, 237, 218, 0.8); /* 原色 #d4edda */
    color: #155724;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
}

.flash-message.success::before {
    content: "✓";
    margin-right: 10px;
    font-weight: bold;
}

/* Info with icon */
.flash-message.info {
    background-color: rgba(204, 229, 255, 0.8); /* 原色 #cce5ff */
    color: #004085;
    border: 1px solid #b8daff;
    display: flex;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.flash-message.info::before {
    content: "ℹ️";
    margin-right: 10px;
}

/* Warning message */
.flash-message.warning {
    background-color: rgba(255, 243, 205, 0.8); /* 原色 #fff3cd */
    color: #856404;
    border: 1px solid #ffeeba;
    display: flex;
    align-items: center;
}

.flash-message.warning::before {
    content: "⚠️";
    margin-right: 10px;
    font-weight: bold;
}

/* Danger with icon */
.flash-message.danger {
    background-color: rgba(248, 215, 218, 0.8); /* 原色 #f8d7da */
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: flex;
    align-items: center;
}

.flash-message.danger::before {
    content: "✖";
    margin-right: 10px;
    font-weight: bold;
}

/* Error with icon */
.flash-message.error {
    background-color: rgba(248, 215, 218, 0.8); /* 原色 #f8d7da */
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: flex;
    align-items: center;
}

.flash-message.error::before {
    content: "✖";
    margin-right: 10px;
    font-weight: bold;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*========== Create Article ==========*/

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard_container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 10px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

/* 所有以 col- 开头的元素，增加左右内边距 */
[class*="col-"] {
    padding-right: 5px;
    padding-left: 5px;
}

/* 默认所有列占满一整行 */
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* 中等屏幕：宽度 ≥768px */
@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* 大屏幕：宽度 ≥992px */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

/* 下边距 */
.mb-4 {
    margin-bottom: 1.5rem; /* 约24px */
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Overlay for dimming background when modal is open */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;  /* Ensure it's above content */
}

/* Tag button styling */
.tags-container {
    display: flex;
    flex-wrap: wrap;
}

/* 标签列表样式 */
.tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.tag-item button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.tag-item button:hover {
    background-color: #c82333;
}

/* 新标签输入框样式 */
.new-tag-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-tag-container input {
    width: 80%;
}

.tag-btn {
    padding: 5px 15px;
    margin: 5px;
    border-radius: 20px;
    background-color: lightgray;
    cursor: pointer;
    transition: background-color 0.3s ease, filter 0.3s ease;
    border-width: 1.5px;
}

.tag-btn:hover {
    filter: brightness(1.15);
}

.tag-btn.selected {
    filter: brightness(0.8);
    border-width: 3.0px;
}

/* 新建标签输入框样式 */
#new-tag-container {
    display: none;
}

/* 标题样式 */
h1, h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333333;
}

.no_margin_bottom {
    margin-bottom: 0px;
}

/* 间距设置 */
.mb-3 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* 表单标签样式 */
.form-label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

/* 输入框和文本区域样式 */
.form-control {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}

/* Quill 编辑器 */
.editor-new {
    height: 200px;
    width: 50%;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #007bff;
    color: white;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* 按钮状态 */
.btn:hover {
    background-color: #0056b3;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

/* Flex 布局 */
.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* 隐藏元素 */
#new-tag-container {
    display: none;
}

/* 小字体和文本样式 */
.form-control:focus {
    border-color: #80bdff;
    outline: none;
}

.btn:focus {
    outline: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

/* 标签容器 */
#tag-container {
    margin-top: 10px;
}

/* 隐藏的提交标签字段 */
input[type="hidden"] {
    display: none;
}

/* 容器样式 */
.article-container {
    max-width: 800px;
    margin: 0 auto 10px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.article-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333333;
}

/* 元数据样式 */
.article-meta {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 10px;
}

.article-meta strong {
    color: #333333;
}

/* 标签样式 */
.article-tags-title {
    font-size: 20px;
    margin-top: 30px;
    color: #333333;
}

.article-tags-list {
    list-style-type: none;
    padding-left: 0;
}

.article-tag-item {
    font-size: 16px;
    margin-bottom: 10px;
    color: #007bff;
}

.article-tag-item:before {
    content: '•';
    margin-right: 8px;
    color: #007bff;
}

/* 文章内容 */
.article-content-title {
    font-size: 20px;
    margin-top: 30px;
    color: #333333;
}

.article-content {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    word-wrap: break-word;
}

.article-rear-container {
    max-width: 800px;
    margin: 0 auto 10px;
    text-align: center;
    padding: 20px 0px 0px 0px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn-create-article {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-create-article:hover {
    background-color: #0056b3;
    color: white;
}

/* 按钮的间距 */
.mt-3 {
    margin-top: 0px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-container {
        padding: 15px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-meta {
        font-size: 14px;
    }

    .article-tags-title, .article-content-title {
        font-size: 18px;
    }

    .article-tag-item {
        font-size: 14px;
    }

    .article-content {
        font-size: 14px;
    }

    .btn-create-article {
        font-size: 14px;
    }
}

/* 容器样式 */
.manage-tags-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.manage-tags-title {
    font-size: 28px;
    color: #333333;
    margin-bottom: 20px;
}

/* 标签列表样式 */
.tag-list {
    margin-bottom: 30px;
}

/* 每个标签项样式 */
.tag-item {
    display: flex;
    /*align-items: center;*/
    justify-content: space-between; /* 让内容分布到两端，名字居左，其他内容居右 */
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tag-name {
    font-size: 18px;
    margin-left: 5px;
    margin-right: 15px;
    color: #007bff;
}

/* 文章数量标签样式 (badge) */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    margin-left: auto;
    white-space: nowrap;
    /*vertical-align: baseline;*/
    border-radius: 0.375rem;
}

.badge-secondary {
    background-color: #6c757d;
}

/* 查看相关文章按钮样式 */
.view-articles-btn {
    font-size: 14px;
    margin-left: 15px;
    padding: 5px 10px;
    background-color: #17a2b8;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-articles-btn:hover {
    background-color: #138496;
}

/* 删除标签按钮样式 */
.delete-tag-btn {
    font-size: 14px;
    padding: 5px 10px;
    margin-left: 15px;
    background-color: #dc3545;
    color: white;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-tag-btn:hover {
    background-color: #c82333;
}

/* 新标签输入框和按钮样式 */
.new-tag-container {
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.new-tag-input {
    flex-grow: 1;
    font-size: 16px;
    padding: 10px;
    margin-right: 15px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.add-tag-btn {
    font-size: 16px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-tag-btn:hover {
    background-color: #0056b3;
}

/* 弹窗提示样式 */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 16px;
    display: none;
}

.alert-info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .manage-tags-container {
        padding: 15px;
    }

    .manage-tags-title {
        font-size: 22px;
    }

    .tag-name {
        font-size: 16px;
    }

    .article-count {
        font-size: 12px;
    }

    .view-articles-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    .delete-tag-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    .new-tag-input {
        font-size: 14px;
    }

    .add-tag-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* 列表组 */
.list-group {
    padding-left: 0;
    list-style-type: none;
}

/* 每个列表项 */
.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* 列表项中文本链接 */
.list-group-item a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.list-group-item a:hover {
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    padding: 0.375rem 0.75rem;
    border-radius: 5px;
    font-size: 0.875rem;
    cursor: pointer;
}

/* 警告按钮 */
.btn-warning {
    background-color: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* 返回按钮 */
.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* 文章卡片的基本样式 */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ddd; /* 添加边框 */
    border-radius: 8px; /* 圆角边框 */
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-card:hover {
    transform: translateY(-5px); /* 鼠标悬停时卡片上浮 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 增加阴影 */
}

/* 文章标题的样式 */
.article-card-title a {
    font-size: 20px;
    color: #005ea6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 显示的行数 */
    overflow: hidden;         /* 隐藏超出部分 */
    text-overflow: ellipsis;  /* 超出内容显示省略号 */
    line-height: 1.2em;
    height: calc(1.2em * 2);
    overflow-wrap: anywhere;
    width: 100%;
    white-space: pre-wrap;

    text-decoration: none;
    font-weight: bold;
}

.article-card-title a:hover {
    text-decoration: underline;
    /* color: #007bff; 悬停时改变颜色 */
}

/* 标签容器样式 */
.article-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    font-weight: bold;
}

.article-tags-container {
    min-height: 60px;
}

.article-badge {
    margin-right: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    padding: 2px 12px 2px 12px;
    border-radius: 20px;
    display: inline-block;
    transition: filter 0.3s ease;
    /* transition: background-color 0.3s ease; */
}

.article-badge:hover {
    filter: brightness(0.9);
}

/* 标签的颜色 */
.article-tag-biology {
    background-color: #007bff; /* 蓝色 */
    color: white;
}

.article-tag-chemistry {
    background-color: #28a745; /* 绿色 */
    color: white;
}

.article-tag-physics {
    background-color: #ff7f50;
    color: white;
}

.article-tag-math {
    background-color: #87cefa;
    color: white;
}

.article-tag-technology {
    background-color: #6f42c1; /* 紫色 */
    color: white;
}

.article-tag-coding {
    background-color: #00dddd;
    color: white;
}

.article-tag-AP {
    background-color: #dd0000;
    color: white;
}

.article-tag-essay {
    background-color: #ffe700;
    font-weight: 600;
    color: rgb(0, 0, 0);
}

.article-tag-poster {
    background-color: #e7ff00;
    font-weight: 600;
    color: rgb(0, 0, 0);
}

.article-tag-bounty {
    background: linear-gradient(45deg, #6a0dad, #ff4500); /* 紫到橙红渐变 */
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.article-tag-admin {
    background-color: #666666;
    color: white;
    font-weight: bold;
}

 /* 管理员专用标签按钮 */
 .admin-tag {
    padding: 4px 8px;
    margin: 4px;
    border: 1px solid #aaa;
    border-radius: 6px;
    background-color: #8e44ad;  /* 深紫色 */
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  .admin-tag.selected {
    background-color: #5e3370; /* 更深 */
  }
  

.bounty-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.article-tag-others {
    background-color: #17a2b8; /* 蓝绿色 */
    color: white;
}

/* "No Tag" 的样式 */
.article-tag-none {
    background-color: #f8f9fa; /* 浅灰色背景 */
    color: #6c757d; /* 灰色文字 */
}

/* 卡片间隔 */
.article-card-body {
    min-height: 200px;
    padding: 15px;
}

/* 响应式设计：确保大屏显示三列，中屏显示两列，小屏显示一列 */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* about us 页面整体布局 */
.about-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

/* 主要标题样式 */
.about-container h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}


/* about us 页面整体布局 */
.about-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

/* 标题样式 */
.about-container h2 {
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;

}

/* 介绍文字样式 */
.about-intro, .about-team-text, .about-join {
    font-size: 1.1em;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* 目标与特色部分 */
.about-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
    text-align: left;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.about-list li::before {
    content: "✔";  /* 使用勾选符号 */
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.centered-section {
    width: 80%;         /* 调整容器宽度，可根据需求修改 */
    margin: 0 auto;     /* 容器水平居中 */
    text-align: left;   /* 内部文字和列表左对齐 */
}

.centered-section h2 {
    text-align: center; /* 标题居中 */
}

/* 团队合照 */
.team-photo {
    margin: 20px auto;
    text-align: center;
}

.team-photo img {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 团队成员展示 */
.team-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.team-member {
    width: 250px;
    margin: 0px 15px 15px 15px;
    text-align: center;
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    margin-bottom: 10px;
}

.team-member h3 {
    font-size: 1.2em;
    color: #444;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.9em;
    color: #777;
}

/* 响应式适配 */
@media (max-width: 600px) {
    .about-container {
        width: 90%;
        padding: 20px;
    }
    .team-photo img {
        width: 90%;
    }
    .team-member {
        width: 100%;
    }
}

.floating-tutorial {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease-out;
}

.floating-tutorial:hover {
    background-color: #0056b3;
    transform: translateY(-5px); /* 鼠标悬停时上移 5px */
}

.article-btn {
    display: inline-block;
    padding: 10px 16px;  /* 统一内边距 */
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none; /* 去掉下划线 */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, text-decoration 0.3s ease;
    min-width: 90px;  /* 确保按钮大小一致 */
    height: 40px;  /* 统一高度 */
    line-height: 20px; /* 让文本垂直居中 */
    border: none; /* 统一去掉边框 */
    font-weight: bold;
}

/* 让 <a> 标签表现得像 <button> */
.article-btn.read {
    background-color: #005ea6;
    color: white;
}

/* 让 <button> 标签表现得像 <a> */
.article-btn.delete {
    background-color: #dc3545;
    color: white;
}

/* 悬停时的效果 */
.article-btn:hover {
    text-decoration: underline;
}

/* 让删除按钮的 hover 也有颜色变化 */
.article-btn.delete:hover {
    background-color: #c82333;
}

.article-card-footer {
    padding: 20px 0px 0px;
}

/* 调整文章标题与下方内容的间距 */
.article-card-title {
    margin-bottom: 5px; /* 适当减少空隙 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 显示的行数 */
    overflow: hidden;         /* 隐藏超出部分 */
}

.article-description {
    padding: 10px 0px 0px 0px; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(10px + 3.6em);
    line-height: 1.2em;
}

/* 调整标签显示，标签字体变小 */
.article-badge {
    font-size: 12px; /* 字体缩小 */
    padding: 2px 8px; /* 内边距略微减少 */
}

/* 如果之前已定义 .article-btn 样式，确保按钮大小一致（可参考之前的代码） */
.article-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, text-decoration 0.3s ease;
    min-width: 120px;
    height: 40px;
    line-height: 20px;
    border: none;
    font-weight: bold;
}

.article-btn.read {
    background-color: #005ea6;
}

.article-btn.delete {
    background-color: #dc3545;
}

.article-btn:hover {
    text-decoration: underline;
}

.article-btn.delete:hover {
    background-color: #c82333;
}

a.no_style {
    color: inherit;         /* 继承父元素颜色 */
    text-decoration: none;  /* 无下划线 */
    transition: color 0.3s ease;
}

a.white_text {
    color: white;
}

a.only_text_dec {
    color: inherit;
    text-decoration: none;
}

a.only_text_dec:hover {
    text-decoration: underline;
    text-decoration-color: black; /* 设置下划线颜色 */
}

/* 搜索区域整体居中 */
.search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    width: 900px;
    padding: 0px 15px;
    background: #ffffff; /* 浅灰色背景 */
}

/* 输入框样式 */
.search-input {
    flex-grow: 1;
    height: 40px;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 16px;
    border-radius: 4px;
}

/* 搜索按钮样式 */
.search-button {
    height: 40px;
    width: 80px;
    padding: 0 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #0056b3;
}

/* 选择框区域样式 */
.filter-options {
    width: 900px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    border-radius: 6px;
    margin-top: 10px;
    padding: 0px 300px;
}

.filter-options label {
    font-size: 16px;
    cursor: pointer;
}

.filter-options input {
    margin-right: 5px;
}

.transparent_bg {
    background-color: transparent;
    box-shadow: none;
}

.max_lim_900 {
    max-width: 940px;
}

/* ----------------- Hero Section ----------------- */
.hero {
    position: relative;
    background: url('/static/bg1.jpeg') no-repeat center center/cover;
    height: 500px;
    color: white;
    margin: 0;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons .hero-btn {
    padding: 12px 30px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin: 0 10px;
}

.hero-btn.primary {
    background-color: #007bff;
    color: white;
}

.hero-btn.primary:hover {
    background-color: #0056b3;
}

.hero-btn.secondary {
    background-color: #28a745;
    color: white;
}

.hero-btn.secondary:hover {
    background-color: #218838;
}

/* ----------------- Features Section ----------------- */
.features {
    background: #f2f2f2;
    padding: 40px 0px 10px 0px;
}

.features .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    flex: 1 1 220px;
    text-align: center;
    padding: 20px;
    margin: 10px;
}

.feature-item i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    color: #555;
}

/* ----------------- Latest Resources Section ----------------- */
.latest-resources {
    padding: 40px 0px 40px 0px;
}

.latest-resources .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.latest-resources h2 {
    text-align: center;
    margin-bottom: 30px;
}

.latest-resource-btn {
    padding: 12px 30px;
    font-size: 18px;
    color: white;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.latest-resource-btn:hover {
    background-color: #0056b3;
}

.resources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.resource-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    text-align: left;
    text-align: left;
    width: calc(33.333% - 20px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card h4 {
    text-align: left;
    margin-bottom: 10px;
    font-size: 18px;
}

.resource-card .resource-meta {
    font-size: 14px;
    color: #777;
}

/* ----------------- Community Updates Section ----------------- */
.community-updates {
    background: #f8f9fa;
    padding: 20px 0px 20px 0px;
}

.community-updates .container {
    max-width: 800px;
    margin: 0 auto;
}

.community-updates h2 {
    text-align: center;
    margin-bottom: 20px;
}

.updates-list {
    list-style: none;
    padding: 0;
}

.updates-list li {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.updates-list h4 {
    margin-bottom: 5px;
}

/* ----------------- CTA Section ----------------- */
.cta {
    background: #005ea6;
    padding: 40px 0px;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-btn {
    padding: 12px 30px;
    font-size: 18px;
    color: white;
    background-color: #28a745;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #218838;
}

/* ----------------- 响应式调整 ----------------- */
@media (max-width: 992px) {
    .resource-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .resource-card {
        width: 100%;
    }
    .features .container {
        flex-direction: column;
        align-items: center;
    }
}

.bottom-text {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.bottom-text a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.bottom-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.bounty-button {
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #b6151a, #e8303a); /* 深红色到橙红色 */
    padding: 6px 14px;
    border-radius: 8px;
    animation: pulse 1s infinite;
    transition: all 0.3s ease;
    cursor: pointer;

}

.bounty-button:hover {
    transform: scale(1.08);
    background: linear-gradient(45deg, #d41d1d, #fd3a36); /* 更亮的渐变 */
    color: #fff;
    text-decoration: none;
}

/* 呼吸动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(179, 18, 23, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(229, 45, 39, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(179, 18, 23, 0);
    }
}

.r_month-button {
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #b6151a, #e8303a); /* 深红色到橙红色 */
    padding: 6px 14px;
    border-radius: 8px;
    animation: pulse 1s infinite;
    transition: all 0.3s ease;
    cursor: pointer;

}

.r_month-button:hover {
    transform: scale(1.08);
    background: linear-gradient(45deg, #d41d1d, #fd3a36); /* 更亮的渐变 */
    color: #fff;
    text-decoration: none;
}

/* 呼吸动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(179, 18, 23, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(229, 45, 39, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(179, 18, 23, 0);
    }
}

.bounty-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bounty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.bounty-card-body {
    flex: 1;
    padding: 20px;
}

.bounty-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
}

.bounty-desc {
    font-size: 0.95rem;
    color: #555;
    height: 3em;          /* 约两行 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.bounty-reward {
    font-size: 1rem;
    color: #007bff;
    margin-top: 10px;
}

.bounty-tags .badge {
    margin-right: 5px;
    margin-bottom: 5px;
}

.bounty-card-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    text-align: right;
}

.bounty-card-footer .btn {
    margin-left: 5px;
}

.bounty-item {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 16px;
    background-color: #fff;
    display: flex;
    gap: 20px;
  }
  
  .bounty-image-container {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
  }
  
  .bounty-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .bounty-title {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .bounty-description {
    font-size: 1rem;
    color: #555;
    margin-top: auto;
  }
  
  .bounty-reward-display {
    font-size: 1.25rem;
    font-weight: bold;
    color: #28a745;
  }
  
  .honor-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 4px;
  }
  
  .bounty-item {
    background-color: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.2s ease;
  }
  
  .bounty-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }
  
  .bounty-image-container {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
  }
  
  .bounty-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .bounty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
  }
  
  .bounty-description {
    font-size: 1rem;
    color: #555;
    text-align: left;
    line-height: 1.4;
  }
  
  .bounty-reward-display {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff8c00;
  }
  
  .reward-amount {
    font-size: 1.6rem;
    vertical-align: middle;
    margin-right: 0.4rem;
  }
  
  .honor-icon {
    width: 36px;
    height: 36px;
    vertical-align: middle;
  }
  
  .custom-submit-btn {
    background-color: #009e66;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }
  
  .custom-submit-btn:hover {
    background-color: #007c51;
    text-decoration: none;
    color: white;
  }
  /* 通用卡片样式 */
.bounty-item {
    background-color: #fff;
    border: 1px solid #ddd;
    transition: box-shadow 0.2s ease;
    padding: 1.5rem;
  }
  
  .bounty-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }
  
  /* 左侧图片样式 */
  .bounty-image-container {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
  }
  
  .bounty-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
  }
  
  /* 中间内容 */
  .bounty-middle {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* 垂直靠上 */
    align-items: flex-start;      /* 水平靠左 */
    padding-right: 2rem;
  }
  
  .bounty-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
    margin-top: -0.6rem;
    
  }
  
  .bounty-description {
    font-size: 1rem;
    color: #555;
    text-align: left;
    margin: 0;            /* 去掉任何默认外边距 */
    padding: 0;           /* 可选 */
    line-height: 1.5;
  }
  
  /* 标签容器样式 */
.article-tags_no_top_margin {
    display: flex;
    flex-wrap: wrap;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

  /* 标签行样式 */
  .bounty-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .bounty-tag {
    background-color: #ff8c00;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  /* 奖励显示区域 */
  .bounty-reward-display {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ff8c00;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    margin-right: 0.5rem;
  }
  
  .reward-amount {
    font-size: 2.5rem;
    vertical-align: middle;
    margin-right: 0rem;
  }
  
  .honor-icon {
    width: 36px;
    height: 36px;
    vertical-align: middle;
  }
  
  /* 右侧按钮 */
  .custom-submit-btn {
    background-color: #009e66;
    color: white;
    border: none;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    text-align: center;
  }
  
  .custom-submit-btn:hover {
    background-color: #007c51;
  }
  
  .bounty-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    min-width: 140px;
    margin-left: -30px;
}
  
  /* 管理员编辑/删除按钮 */
  .bounty-right .btn-warning,
  .bounty-right .btn-danger {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  /* 边距和阴影 */
  .bounty-item {
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }
  
  .bounty-right {
    width: 220px;
  }

  @media (max-width: 768px) {
    .bounty-item {
      flex-direction: column;
      align-items: center;
      padding: 1rem;
    }
  
    .bounty-image-container {
      width: 100%;
      margin-bottom: 1rem;
    }
  
    .bounty-middle {
      padding-right: 0;
    }
  
    .bounty-right {
      width: 100%;
      text-align: center;
    }
  
    .custom-submit-btn {
      width: 100%;
      padding: 1rem;
    }
  
    .bounty-tags {
      justify-content: center;
    }
  }
  
  
  .admin-button-group {
    display: flex;
    align-items: center;
    gap: 12px; /* 按钮之间的间距 */
  }
  
  .admin-btn {
    padding: 6px 14px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    transition: background-color 0.2s ease;
  }

    /* 编辑按钮样式 */
    .edit-btn {
        background-color: #e6a300;  /* 更深、更饱和的黄色 */
        color: white;
    }
    
    .edit-btn:hover {
        background-color: #cc8c00;  /* hover 更深一点 */
    }
    
    /* 删除按钮样式 */
    .delete-btn {
        background-color: #dc3545;
    }
    .delete-btn:hover {
        background-color: #c82333;
    }
    
    /* 让 form 不换行 */
    .inline-form {
        display: inline;
        margin: 0;
        padding: 0;
    }
    
    /* ------ 热门悬赏 Section ------ */
.hot-bounties {
    padding: 10px 0;
    background-color: #f2f2f2;
  }
  
  .hot-bounties .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
  }
  
  .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #777;
  }
  
  .hot-bounties-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* 每个热门悬赏卡片 */
  .hot-bounty-card {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
  }
  
  .hot-bounty-card:hover {
    transform: translateY(-5px);
  }
  
  /* 左侧图片区域 */
  .hot-bounty-image-container {
    flex-shrink: 0;
    width: 240px; /* 固定宽度 */
    aspect-ratio: 4/3;  /* 固定比例 */
    overflow: hidden;
  }
  
  .hot-bounty-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* 中间内容区域 */
  .hot-bounty-content {
    flex-grow: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
  }
  
  .hot-bounty-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .hot-bounty-tag {
    background-color: #ff8c00;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
  }
  
  .hot-bounty-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 8px;
    color: #333;
  }
  
  .hot-bounty-description {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
  }
  
  /* 右侧区域 */
  .hot-bounty-extra {
    width: 400px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    border-left: 1px solid #eee;
  }
  
  .hot-bounty-reward {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff8c00;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .reward-amount {
    font-size: 2rem;
    margin-right: 8px;
  }
  
  .honor-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
   /* 奖励显示区域 */
   .bounty-reward-display {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ff8c00;
    margin-top: 0rem;
    margin-bottom: 1.5rem;
    margin-right: 0.5rem;
  }
  
  .reward-amount {
    font-size: 2.5rem;
    vertical-align: middle;
    margin-right: 0rem;
  }
  
  .honor-icon {
    width: 36px;
    height: 36px;
    vertical-align: middle;
  }
  
  /* 自定义“接受挑战”按钮 */
  .hot-bounty-btn {
    background-color: #009e66;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    text-align: center;
  }
  
  .hot-bounty-btn:hover {
    background-color: #007c51;
    transform: scale(1.03);
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .hot-bounty-card {
      flex-direction: column;
    }
    .hot-bounty-image-container {
      width: 100%;
      aspect-ratio: 4/3;
    }
    .hot-bounty-extra {
      width: 100%;
      border-left: none;
      margin-top: 12px;
      align-items: center;
    }
  }

  .hot-bounty-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* 垂直内容从上开始 */
    align-items: flex-start;      /* 水平内容左对齐 */
    padding: 10px 24px;           /* 内边距可根据需要调整 */
  }
  
  .hot-bounty-title {
    margin: 0 0 8px 0;            /* 下边距 8px，顶部没有外边距 */
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
  }
  
  .article-tags_no_top_margin {
    margin-top: 0;              /* 去掉顶部空隙 */
    margin-bottom: 4px;         /* 设置下边距 */
  }
  
  .hot-bounty-description {
    margin: 0;                  /* 清除所有默认外边距 */
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    text-align: left;
  }
  
  .tutorial-images {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 每行3张图片 */
    gap: 10px; /* 图片之间的间隙 */
    margin: 30px 0;
  }
  
  .tutorial-image-item {
    /* 不需要圆角和阴影，简单边框 */
    border: none;
    background-color: transparent;
    /* 保持图片整体无额外修饰 */
  }
  
  .tutorial-image-item img {
    width: 100%;
    height: auto;
    /* 强制保持4:3比例：这里使用 aspect-ratio 属性（如浏览器支持） */
    /* aspect-ratio: 4 / 3; */
    object-fit: cover;
  }
  
  .img-caption {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #333;
  }
  
/* ---- R-Month Hero ---- */
.rmonth-hero {
    background: url('/static/rmonth_banner.jpg') center/cover no-repeat;
    position: relative;
    height: 400px;
    margin: 0;
    padding: 0;
  }
  
  .rmonth-hero .hero-overlay {
    position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;  /* 拉满父容器 */
  background: rgba(0,0,0,0.4);
  }
  
  .rmonth-hero .hero-content {
    color: #fff;
  text-align: center;
  max-width: 800px;
  padding: 50px 20px 0px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;
  }
  
  .rmonth-hero .hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
  }
  
  .rmonth-hero .hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
  }
  
  .rmonth-hero .hero-buttons .hero-btn {
    margin: 0 10px;
  }

  .left-align-title h4 {
    text-align: left;
}

.no_padding_above {
    padding-top: 0px;
}