.main-content {
    min-height: calc(100vh - 100px);
    padding: 15px;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: #f8f8f8;
    border-top: 1px solid #e7e7e7;
    text-align: center;
    padding: 10px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {

    .main-content {
        padding: 10px;
    }

    .form-horizontal .control-label {
        text-align: left;
    }
}

/* 用户后台样式 */

.dashboard-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.dashboard-card h3 {
    margin-top: 0;
    color: #337ab7;
}

.upgrade-banner h3 {
    margin-top: 0;
}
/* 加载提示样式 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    text-align: center;
    padding-top: 20%;
}

.loading-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 旋转动画处理页面加载 */
.fa-spin {
    -webkit-animation: fa-spin 2s infinite linear;
    animation: fa-spin 2s infinite linear;
}

@-webkit-keyframes fa-spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); }
}

@keyframes fa-spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); }
}
/* 活动发布页面样式 */
.publish-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
}

.publish-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.publish-header h2 {
    color: #4285f4;
    margin-top: 0;
}

.form-group.required label:after {
    content: "*";
    color: #ea4335;
    margin-left: 3px;
}

.upload-area {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 15px;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #4285f4;
}

.upload-icon {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 10px;
}

.preview-image {
    max-width: 100%;
    max-height: 150px;
    margin-top: 10px;
    display: none;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}

.share-reward {
    background-color: #fff8e6;
    border-left: 4px solid #ffcc00;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.datetime-picker {
    display: flex;
    align-items: center;
}

.datetime-picker input {
    flex: 1;
}

.datetime-picker .separator {
    padding: 0 5px;
}

.activity-tag {
    display: inline-block;
    padding: 3px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #f0f7ff;
    color: #4285f4;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.activity-tag.selected {
    background-color: #4285f4;
    color: #fff;
}
/* 活动列表样式 */
.activity-list {
    margin-top: 15px;
}

.activity-item {
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.activity-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.activity-item .panel-heading {
    padding: 10px 15px;
}

.activity-item .panel-body {
    padding: 10px;
}

.activity-item .panel-footer {
    padding: 5px 15px;
    background-color: #f9f9f9;
}

/* 活动详情页样式 */
.activity-detail {
    padding-bottom: 20px;
}

.activity-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.activity-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

.cover-overlay h1 {
    margin: 0;
    font-size: 22px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.activity-time {
    margin: 5px 0 0;
    font-size: 14px;
}

.activity-status {
    padding: 10px 15px;
    text-align: right;
}

.activity-images {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.activity-images img {
    margin: 5px;
    cursor: pointer;
}

.countdown-panel {
    margin-top: 20px;
}

.btn-share {
    padding: 8px 20px;
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .activity-cover {
        height: 150px;
    }

    .cover-overlay h1 {
        font-size: 18px;
    }

    .activity-time {
        font-size: 12px;
    }
}
/* 统计页面样式 */
.stat-item {
    padding: 10px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #428bca;
}

.stat-label {
    font-size: 12px;
    color: #777;
}

/* 图表容器 */
#participationChart {
    width: 100%;
}

/* 表格样式 */
.table th {
    background-color: #f5f5f5;
    text-align: center;
}

.table td {
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stat-value {
        font-size: 18px;
    }

    .table-responsive {
        overflow-x: auto;
    }
}
/* 编辑页面特定样式 */
.activity-edit .form-group {
    margin-bottom: 20px;
}

.activity-edit .datetime-picker input {
    height: 34px;
}

.activity-edit .preview-image {
    max-height: 200px;
    margin-top: 10px;
}

.activity-edit .image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.activity-edit .image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-edit .image-preview-item .remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}

/* 状态标签样式 */
.label-status-0 {
    background-color: #999;
}

.label-status-1 {
    background-color: #5cb85c;
}

.label-status-2 {
    background-color: #d9534f;
}

.label-status-3 {
    background-color: #f0ad4e;
}
/* 资金样式 */
.funds-item {
    padding: 10px 0;
    text-align: center;
}

.funds-value {
    font-size: 18px;
    font-weight: bold;
    color: #428bca;
}

.funds-label {
    font-size: 12px;
    color: #777;
}

/* 资金流水样式 */
.list-group-item h5 {
    margin: 0;
    font-size: 14px;
}

.text-success {
    color: #5cb85c;
}

.text-danger {
    color: #d9534f;
}

.text-warning {
    color: #f0ad4e;
}

/* 提现表单样式 */
.withdraw-form .form-group {
    margin-bottom: 15px;
}

.withdraw-form .help-block {
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .funds-value {
        font-size: 16px;
    }

    .funds-label {
        font-size: 11px;
    }
}
/* 充值页面样式 */
.recharge-container {
    padding: 15px;
}

.recharge-container .btn-group-justified .btn {
    margin-bottom: 5px;
}

/* 邀请页面样式 */
.invite-container {
    padding: 15px;
}

.invite-container .qr-code {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .recharge-container {
        padding: 10px;
    }

    .invite-container {
        padding: 10px;
    }
}
/* 模板共用增强样式 */
.template-switcher {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid #4285f4;
}

/* 响应式图片 */
.template-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 画廊网格布局 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fitness-stats {
        flex-direction: column;
    }
}