html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body>div.content {
    min-height: calc(100vh - 50px);
}

body>.footer {
    text-align: center;
    border-top: solid thin ghostwhite;
    padding-top: 10px;
}

footer>span {
    padding: 20px 50px;
}

.navbar {
    border: none;
    box-shadow: none;
}

/* 自定义导航栏容器宽度和边距 */
.navbar > .container {
    max-width: 1400px;      /* 适中宽度，避免元素过于分散 */
    padding-right: 25px;    /* 适中边距 */
    padding-left: 25px;     /* 适中边距 */
}

/* 优化导航栏表单间距 */
.navbar-form {
    margin-right: 2px;     /* 增加与右侧的间距 */
}

.navbar-form .btn {
    margin-left: 2px;       /* 按钮间距 */
}

/* 响应式：在不同屏幕尺寸下调整 */
@media (min-width: 1200px) {
    .navbar > .container {
        width: 1300px;      /* 大屏幕使用适中宽度 */
    }
}

@media (max-width: 768px) {
    .navbar > .container {
        padding-right: 15px;
        padding-left: 15px;
    }
    
    .navbar-form {
        margin-right: 0;
    }
}

.navbar-nav>li>a.avatar {
    padding-top: 10px;
    padding-bottom: 5px;
}

.navbar-header a.logo {
    padding-top: 10px;
    padding-bottom: 5px;
}

a:hover {
    text-decoration: none;
}

#notifications>li {
    border-bottom: solid 1px #eee;
}

#notifications>li:last-child {
    border-bottom: none;
}

#notifications li.has_new {
    background-color: aliceblue;
}

#notifications>li>span {
    display: block;
    padding: 5px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    margin: 5px;
}
#notifications>li>span:hover {
    background: #eee;
}

#notifications {
    min-width: 240px;
}

.glyphicon-bell {
    vertical-align: text-top;
}

/* 修复导航栏右侧元素换行问题 */
.navbar-right {
    display: flex !important;
    flex-wrap: nowrap !important;
}

.navbar-right > li {
    flex-shrink: 0 !important;
}

/* 余额显示颜色 */
.balance-display {
    color: #28a745;
}

/* 确保下拉菜单文字不换行 */
.navbar-right .dropdown-toggle {
    white-space: nowrap;
}

/* 响应式：在移动端允许换行 */
@media (max-width: 991px) {
    .navbar-right {
        flex-wrap: wrap !important;
    }
}

  
  .amount-option {
    display: inline-block;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    color: #5cb85c; /* 选中颜色 */
}

.amount-option.selected {
    border-color: #5cb85c;
    background-color: #f9f9f9;
}

.modal-content {
    padding: 20px;
}

.btn-confirm {
    background-color: #5cb85c;
    color: white;
}

.btn-confirm:hover {
    background-color: #4cae4c;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 5px 0;
    cursor: pointer;
    margin-right: 10px;
}

.payment-option.selected {
    border-color: #5cb85c;
    background-color: #f9f9f9;
}

.payment-icon {
    margin-right: 10px;
}

.other-amount {
    margin-top: 10px;
    display: inline-block;
    width: 100px; /* 设置宽度 */
    height: 45px; /* 设置高度与金额选项一致 */
    line-height: 45px; /* 垂直居中 */
    padding: 0 10px; /* 内边距 */
    border: 1px solid #ddd; /* 边框 */
    border-radius: 5px; /* 圆角 */
}

.amount-container {
    display: flex;
    align-items: center;
}

.justify-content-between {
    display: flex;
}

/* 新增赠送金额样式 */
.bonus-amount {
    font-size: 1.2em; /* 增大字体 */
    color: #28a745; /* 绿色 */
    font-weight: bold; /* 加粗 */
    margin-top: 10px; /* 上边距 */
    padding: 10px; /* 内边距 */
    border: 1px solid #28a745; /* 边框颜色 */
    border-radius: 5px; /* 圆角 */
    background-color: #e9f7ef; /* 背景颜色 */
    display: inline-block; /* 使其与其他元素对齐 */
}

/* ==================== 我的上传模块样式 ==================== */

/* 下拉菜单样式 */
#upload-manager .dropdown-menu {
    min-width: 400px;
    max-width: 90vw;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 菜单头部 */
#upload-manager .upload-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

#upload-manager .upload-menu-header span {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

#upload-manager .upload-menu-header .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

#upload-manager .upload-menu-header .close-btn:hover {
    color: #333;
}

/* 任务列表区域 */
#upload-manager .upload-menu-body {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

#upload-manager .upload-task-list {
    padding: 0;
}

/* 空状态 */
#upload-manager .upload-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

#upload-manager .upload-empty-state .glyphicon-cloud-upload {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

#upload-manager .upload-empty-state p {
    margin: 5px 0;
    font-size: 14px;
}

#upload-manager .upload-empty-state p:last-child {
    font-size: 12px;
    color: #bbb;
    margin-top: 5px;
}

/* 菜单底部 */
#upload-manager .upload-menu-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
}

#upload-manager .upload-menu-footer > div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

#upload-manager .upload-menu-footer .btn {
    flex: 1;
    padding: 6px 12px;
    font-size: 12px;
}

/* 徽章样式 */
#upload-manager .upload-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    border: 2px solid white;
    z-index: 1;
}

/* 触发按钮样式 */
#upload-manager > a {
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

#upload-manager > a:hover {
    background-color: #f5f5f5;
    color: #333;
}

#upload-manager > a .glyphicon-cloud-upload {
    font-size: 18px;
    margin-right: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    #upload-manager .dropdown-menu {
        width: 90vw;
        max-width: 90vw;
    }
    
    #upload-manager > a {
        padding: 10px 12px;
    }
    
    #upload-manager > a span:not(.glyphicon):not(.caret):not(.upload-badge) {
        display: none; /* 移动端隐藏文字，只显示图标 */
    }
}

/* ==================== 任务卡片样式 ==================== */

.upload-task-card {
    transition: background-color 0.2s ease;
    cursor: default;
}

.upload-task-card:hover {
    background-color: #f8f9fa;
}

.upload-task-card:last-child > div {
    border-bottom: none;
}

/* 任务卡片按钮样式 */
.upload-task-card .btn {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
}

.upload-task-card .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.upload-task-card .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.upload-task-card .btn-default {
    background-color: #fff;
    border-color: #ccc;
}

.upload-task-card .btn-default:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
}

.upload-task-card .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.upload-task-card .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}