:root {
    --primary: #4361ee;
    --primary-dark: #3f37c9;
    --accent: #4895ef;
    --success: #4cc9f0;
    --warning: #f59e0b;
    --danger: #ef476f;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border: #dee2e6;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px 0 0px;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.page-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.page-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 25px;
}

/* ===== 修改：将统计信息移动到筛选区域左侧 ===== */
.request-filters {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center; /* 垂直居中 */
}

.stats-container {
    display: flex;
  
    gap: 12px;
    padding-right: 25px;
    border-right: 1px solid var(--light-gray); /* 添加分隔线 */
    min-width: 80px; /* 固定宽度 */
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    min-width: 70px; /* 更紧凑的宽度 */
    border-left: 4px solid transparent;
}

/* 总任务数卡片 */
.stat-card.total {
    border-left-color: #4361ee;
    background: #f0f7ff;
}

.stat-card.total .stat-value {
    color: #4361ee;
}

/* 开放中卡片 */
.stat-card.open {
    border-left-color: #10b981;
    background: #ecfdf5;
}

.stat-card.open .stat-value {
    color: #10b981;
}

/* 已完成卡片 */
.stat-card.completed {
    border-left-color: #8b5cf6;
    background: #f5f3ff;
}

.stat-card.completed .stat-value {
    color: #8b5cf6;
}

.stat-value {
    font-size: 1.4rem; /* 减小字体大小 */
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.85rem; /* 减小字体大小 */
    font-weight: 500;
}

.filter-row {
    flex: 1; /* 占据剩余空间 */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--light);
    font-size: 1rem;
    transition: var(--transition);
}

.filter-group select:focus, .filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.request-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 4px solid var(--primary);
}

.request-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.status-badge.open {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.status-badge.full {
    background: #fffbeb;
    color: #f59e0b;
    border: 1px solid #fde68a;
}

.status-badge.completed {
    background: #f5f3ff;
    color: #8b5cf6;
    border: 1px solid #ddd6fe;
}

.request-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.coin-tag {
    background: linear-gradient(90deg, #fde68a, #fcd34d);
    color: #92400e;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    justify-content: center;
}

.request-artist {
    color: var(--gray);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    justify-content: space-between;
}

.artist-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.publish-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-body {
    padding: 0 20px 15px;
    flex-grow: 1;
}

.request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 100px;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.heat-value {
    color: var(--danger);
}

.request-notes {
    background: var(--light);
    border-radius: 10px;
    padding: 15px;
    font-size: 0.95rem;
    color: var(--gray);
    border-left: 3px solid var(--accent);
    margin-top: 15px;
}

.request-notes p {
    margin: 0;
}

.card-footer {
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--light-gray);
    background: #f9fafb;
}

.action-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.listen-btn {
    background: var(--primary);
    color: white;
}

.listen-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.vote-btn {
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--border);
}

.vote-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.vote-btn.voted {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.submission-section {
    padding: 15px 20px;
    border-top: 1px solid var(--light-gray);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.submission-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.submission-count {
    font-size: 0.9rem;
    color: var(--gray);
}

.submitters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.submitter-avatar {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.submitter-avatar.rejected {
    filter: grayscale(100%);
    opacity: 0.6;
}

.status-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 10px;
    text-align: center;
    padding: 2px;
}

.submission-action {
    margin-top: 15px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.submit-btn.apply-btn {
    background: linear-gradient(90deg, #3a56d4, #4361ee);
}

.submit-btn.submit-free-btn {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

.submission-status {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    font-weight: 500;
    background: #f8fafc;
}

.status-badge.best {
    background: #fffbeb;
    color: #f59e0b;
    border: 1px solid #fde68a;
}

.status-badge.selected {
    background: #f0f7ff;
    color: #3b82f6;
    border: 1px solid #dbeafe;
}

.status-badge.pending {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.submission-full {
    color: var(--danger);
    font-size: 0.9rem;
    padding: 10px;
    text-align: center;
    background: #fef2f2;
    border-radius: 8px;
    font-weight: 500;
}

/* 音频播放器 - 优化移动端显示 */
#audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 15px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#audio-player.active {
    transform: translateY(0);
}

/* 新增PC端搜索栏布局样式 */
@media (min-width: 768px) {
    .request-meta {
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .meta-item {
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .meta-label {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 0;
        font-size: 0.85rem;
    }
    
    .meta-value {
        font-size: 1.05rem;
    }
    
    /* 分类和类型左对齐 */
    .meta-item:nth-child(1),
    .meta-item:nth-child(2) {
        justify-content: flex-start;
    }
    
    /* 热度右对齐 */
    .meta-item:nth-child(3) {
        justify-content: flex-end;
    }
    
    /* 修改：筛选区域布局优化 */
    .request-filters {
        flex-direction: row;
        gap: 20px;
    }
    
    .filter-row {
        display: flex;
        flex: 1;
        gap: 20px;
    }
    
    .filter-group {
        flex: 1;
        min-width: 200px;
    }
    
    .filter-group.search-group {
        flex: 2; /* 搜索框占比更大 */
        min-width: 300px;
    }
    
    /* 优化标签显示 */
    .filter-group label {
        display: block;
        margin-bottom: 8px;
    }
}

/* 桌面端横向布局 */
@media (min-width: 768px) {
    #audio-player {
        flex-direction: row;
        padding: 15px 30px;
    }
    
    .player-info {
        flex: 1;
        min-width: 0;
        text-align: left;
        margin-right: 20px;
    }
    
    .player-controls {
        flex: 2;
        max-width: 500px;
        width: 100%;
    }
}

/* 移动端纵向布局优化 */
@media (max-width: 767px) {
    #audio-player {
        padding: 12px 15px;
    }
    
    .player-info {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .player-title {
        font-size: 1rem;
    }
    
    .player-artist {
        font-size: 0.8rem;
    }
    
    .player-controls {
        width: 100%;
        gap: 10px;
    }
    
    .player-controls audio {
        width: 100%;
    }
    
    .close-player {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .request-filters {
        flex-direction: column;
    }
    
    .stats-container {
        flex-direction: row; /* 移动端恢复水平排列 */
        flex-wrap: wrap;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--light-gray);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        flex: 1;
        min-width: 100px;
    }
    
    .filter-group {
        min-width: 100%;
         margin-top: 10px;
    }
    
    .filter-group:first-child, .filter-group:nth-child(2) {
        display: flex;
        width: 100%;
        gap: 10px;
    }
    
    .filter-group:first-child select, .filter-group:nth-child(2) select {
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .filter-group:first-child label, .filter-group:nth-child(2) label {
        display: none;
    }
    
    .filter-group:nth-child(3) {
        margin-top: 10px;
    }
    
    .page-title {
        font-size: 1.8rem;
        color: var(--dark);
        margin-bottom: 10px;
        font-weight: 400;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
    }
    
    .page-subtitle {
        color: var(--gray);
        font-size: 0.8rem;
        max-width: 350px;
        margin: 0 auto 25px;
    }
    
    .stats-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .stats-container::-webkit-scrollbar {
        display: none;
    }
    
    .stat-card {
        min-width: 90px;
        padding: 2px;
        border-radius: 10px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }

    /* 移动端元数据项水平排列 */
    .request-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .meta-item {
        flex: 1;
        min-width: 30%;
    }

    .card-footer {
        flex-direction: row; /* 恢复为横向排列 */
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-btn {
        flex: 1;
        min-width: calc(50% - 5px); /* 两个按钮各占50%宽度 */
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* 超小屏幕下恢复纵向排列 */
@media (max-width: 350px) {
    .action-btn {
        min-width: 100%; /* 超小屏幕下恢复为纵向排列 */
    }
}

/* 模态框样式 - 优化移动端显示 */
.gmc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    overflow-y: auto;
    padding: 20px 10px; /* 增加移动端边距 */
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.gmc-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    animation: modalScaleIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    max-height: calc(100vh - 40px); /* 限制最大高度 */
    overflow-y: auto; /* 启用滚动 */
}

@keyframes modalScaleIn {
    to {
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #777;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    position: absolute; /* 绝对定位 */
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9); /* 添加背景 */
    z-index: 1; /* 确保在内容上方 */
}

.close-modal:hover {
    color: #ff4757;
    background: #f8f9fa;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn-modal {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(90deg, #4361ee, #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.submit-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* 附件上传 */
.attachment-upload-area, .audio-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8fafc;
    display: flex;
    align-items: center;
    text-align: left;
    flex-direction: column; /* 改为垂直布局 */
    text-align: center; /* 文本居中 */
}

/* 上传区域图标区域样式 */
.upload-icon-area {
    width: 100%; /* 占满宽度 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    margin-bottom: 10px; /* 增加底部间距 */
}

.upload-icon-area i {
    font-size: 24px;
}

/* 文字区域样式 */
.upload-text-area {
    padding-left: 0; /* 移除左侧边距 */
}

.upload-title {
    font-size: 14px;
    margin-bottom: 5px;
    color: #4b5563;
}

.upload-desc {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0;
}

/* 悬停效果优化 */
.attachment-upload-area:hover, .audio-upload-area:hover {
    border-color: #4361ee;
    background: #f0f7ff;
}

.attachment-upload-area p {
    border-color: #4361ee;
    background: #f0f7ff;
    margin-left: 15px;
    font-size: 14px;
}

.attachment-upload-area p.description {
    border: 1px solid #4361ee;
    background: #f0f7ff;
    width: 200px;
    margin: 5px 0 5px 15px;
    font-size: 14px;
    color: red;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

/* 自定义图标字体 */
@font-face {
    font-family: 'iconfont';
    src: url('<?php echo GMC_PLUGIN_URL; ?>fonts/iconfont.woff2') format('woff2'),
         url('<?php echo GMC_PLUGIN_URL; ?>fonts/iconfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-controls audio {
    flex: 1;
    height: 40px;
}

/* 标题行和分类在同一行 */
.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

/* 分类显示在标题行右侧 */
.category-display {
    background: #f0f7ff;
    color: #4361ee;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.request-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 在筛选时添加 */
.filtering .request-card {
    transform: scale(0.95);
    opacity: 0.5;
}
.request-card:nth-child(1) { animation-delay: 0.1s; }
.request-card:nth-child(2) { animation-delay: 0.2s; }
.request-card:nth-child(3) { animation-delay: 0.3s; }
.request-card:nth-child(4) { animation-delay: 0.4s; }
.request-card:nth-child(5) { animation-delay: 0.5s; }
.request-card:nth-child(6) { animation-delay: 0.6s; }
.request-card:nth-child(7) { animation-delay: 0.7s; }
.request-card:nth-child(8) { animation-delay: 0.8s; }

/* 投稿/报名按钮美化 */
.submit-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn i {
    margin-right: 5px;
}

.submit-btn.apply-btn {
    background: #3a56d4;
}

.submit-btn.submit-free-btn {
    background: #10b981;
}

.submission-status {
    text-align: center;
    padding: 8px;
    margin-top: 10px;
    border-radius: 8px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .request-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .request-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .request-meta {
        grid-template-columns: 1fr;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-btn {
        width: 100%;
    }
    
    /* 移动端模态框优化 */
    .gmc-modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 95%;
        border-radius: 16px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
        transform: none;
        animation: none;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .modal-header,
    .modal-body {
        padding: 15px 20px;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .form-textarea {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .request-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .card-footer {
        flex-direction: row;
        gap: 10px;
    }
    
    .action-btn {
        min-width: calc(50% - 5px);
    }
}

/* 超小屏幕下恢复纵向排列 */
@media (max-width: 350px) {
    .action-btn {
        min-width: 100%;
    }
}

/* 修正关闭图标 */
.icon-chahao:before {
    content: "\e668";
    font-family: 'iconfont' !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* 最佳投稿者信息样式 */
.best-submission-notice {
    display: flex;
    margin: 20px 0;
    position: relative;
    background: #fffaf0;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ffecb3;
}

.bracket-left, .bracket-right {
    position: absolute;
    width: 20px;
    height: 100%;
    top: 0;
    background: linear-gradient(to bottom, transparent 0%, #ffd700 30%, #ffd700 70%, transparent 100%);
}

.bracket-left {
    left: 0;
    border-radius: 8px 0 0 8px;
    border-right: 2px solid #ffb300;
}

.bracket-right {
    right: 0;
    border-radius: 0 8px 8px 0;
    border-left: 2px solid #ffb300;
}

.notice-content {
    padding: 0 25px;
    flex: 1;
    text-align: center;
    z-index: 1;
}

.best-author {
    font-weight: 700;
    color: #e65100;
}

.best-score {
    font-weight: 700;
    color: #d84315;
    font-size: 1.2em;
}

.view-work {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #ffb300;
    color: #5d4037;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ff8f00;
}

.view-work:hover {
    background: #ffa000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* 优化后的付费中标样式 */
.paid-submission-notice {
    background: linear-gradient(135deg, #fff9e6 0%, #fff0cc 100%);
    border-radius: 8px;
    padding: 15px;
    margin: 5px 0;
    position: relative;
    border: 1px solid #ffd966;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.15);
}

.paid-content {
    padding-right: 90px; /* 给徽章留空间 */
}

.paid-author {
    font-weight: 700;
    color: #d35400;
}

.paid-score {
    font-weight: 700;
    color: #e67e22;
    font-size: 1.1em;
}

.paid-coins {
    font-weight: 700;
    color: #f39c12;
    font-size: 1.1em;
}

.paid-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #8b4513;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    transform: rotate(5deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e67e22;
    z-index: 2; /* 确保在内容上方 */
}

.view-paid-work {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 15px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #d35400;
    font-size: 14px;
}

.view-paid-work:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 126, 34, 0.25);
}

/* ========== 新增加载相关样式 ========== */
.load-more-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

#load-more-btn {
    background: linear-gradient(135deg, #4361ee, #4895ef);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.35);
}

#load-more-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#no-more-requests {
    color: #6c757d;
    font-size: 1rem;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 30px 0;
    display: none;
}

#loading-indicator {
    display: none;
    text-align: center;
    padding: 30px 0;
    color: #4361ee;
    font-size: 1.2rem;
}

#loading-indicator i {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.6; transform: scale(1); }
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #4895ef);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* 新增表单状态提示样式 */
.form-changed-notice {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.5s ease;
}

.form-changed-notice i {
    font-size: 1.2rem;
}

/* 确认对话框样式 */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-dialog.active {
    opacity: 1;
    visibility: visible;
}

.confirm-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.confirm-dialog.active .confirm-content {
    transform: translateY(0);
}

.confirm-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirm-message {
    margin-bottom: 20px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.confirm-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.confirm-btn.cancel {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.confirm-btn.cancel:hover {
    background: #e9ecef;
}

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

.confirm-btn.confirm:hover {
    background: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 关闭按钮悬停效果增强 */
.close-modal:hover {
    background: #fff1f1;
    box-shadow: 0 0 0 4px rgba(255, 100, 100, 0.2);
}