/**
 * 通告相关页面样式
 * 配合 art.css 使用
 */

/* 通告列表页 */
.announcement-list-page {
    padding: 0;
    margin-top: 70px;
}

/* 页面横幅 */
.page-banner {
    background: linear-gradient(135deg, #b1ce48 0%, #9ab73a 100%);
    padding: 60px 40px;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* 搜索栏 */
.search-section {
    padding: 24px 40px;
    background: #fff;
    margin-bottom: 24px;
}

.search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

/* 内容布局 */
.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* 左侧筛选栏 */
.filter-sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
}

.filter-sidebar .filter-group {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.filter-sidebar .filter-group h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    padding: 10px 12px;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-item:hover {
    background: #f5f5f5;
    color: #333;
}

.filter-item.active {
    background: #b1ce48;
    color: #fff;
}

/* 预算筛选 */
.budget-filter {
    display: flex;
    align-items: center;
    gap: 4px;
}

.budget-filter input[type="number"] {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    height: 32px;
    box-sizing: border-box;
}

.budget-filter span {
    color: #999;
    font-size: 14px;
}

.budget-filter .btn {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    background: #b1ce48;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    height: 32px;
    line-height: 1;
    margin-left: 4px;
}

.budget-filter .btn:hover {
    background: #9ab73a;
}

/* 城市标签 */
.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.city-tag {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}

.city-tag:hover {
    background: #e8e8e8;
}

.city-tag.active {
    background: #b1ce48;
    color: #fff;
}

.city-tag .count {
    font-size: 11px;
    opacity: 0.7;
}

/* 右侧内容区 */
.announcement-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 100%;
    box-sizing: border-box;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
    min-height: 40px;
}

.total-count {
    font-size: 14px;
    color: #666;
}

.sort-options {
    display: flex;
    gap: 16px;
    align-items: center;
}

.sort-options a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
}

.sort-options a:hover,
.sort-options a.active {
    color: #b1ce48;
}

/* 通告网格 */
.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* 通告卡片 */
.announcement-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.announcement-card.is-top {
    border: 2px solid #b1ce48;
}

.top-badge {
    position: absolute;
    top: -2px;
    right: 20px;
    background: #b1ce48;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 0 0 8px 8px;
}

.announcement-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.announcement-card .category-tag {
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.announcement-card .budget {
    color: #ff6b6b;
    font-weight: 500;
    font-size: 14px;
}

.announcement-card .title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.announcement-card .title a {
    color: inherit;
    text-decoration: none;
}

.announcement-card .title a:hover {
    color: #b1ce48;
}

.announcement-card .meta-info {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.announcement-card .meta-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.announcement-card .meta-info i {
    font-size: 16px;
}

.announcement-card .description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.announcement-card .publisher {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.announcement-card .publisher img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.announcement-card .publisher-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.announcement-card .publisher-info span:first-child {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    line-height: 1.2;
}

.announcement-card .publisher-info .company-badge {
    font-size: 10px;
    color: #b1ce48;
    background: rgba(177, 206, 72, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.announcement-card .status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.announcement-card .status .expired {
    color: #999;
}

.announcement-card .status .deadline {
    color: #b1ce48;
}

.announcement-card .status .applications {
    color: #666;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination a.active {
    background: #b1ce48;
    color: #fff;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    margin-top: 20px;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ==================== 通告详情页样式 ==================== */

/* 详情页容器 */
.announcement-detail-page {
    padding: 24px 0 60px;
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #b1ce48;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 详情布局 */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* 主内容区 */
.detail-main {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 通告头部 */
.announcement-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.announcement-header .category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #e8f5e9;
    color: #4caf50;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.announcement-header .title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-info i {
    font-size: 18px;
    color: #999;
}

/* 预算区域 */
.budget-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 32px;
}

.budget-item {
    text-align: center;
}

.budget-item .label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.budget-item .value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.budget-item .value.price {
    color: #ff6b6b;
}

.budget-item .value .expired-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #ffebee;
    color: #f44336;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.budget-item .value .remaining {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

/* 内容区域 */
.description-section,
.requirements-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #b1ce48;
}

.description-content,
.requirements-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.description-content p,
.requirements-content p {
    margin-bottom: 12px;
}

/* 标签 */
.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tag {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.tag:hover {
    background: #e0e0e0;
}

/* 操作按钮区 */
.action-section {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: #b1ce48;
    color: #fff;
}

.btn-primary:hover {
    background: #9ab73a;
}

.btn-outline {
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-outline:hover {
    background: #f5f5f5;
}

.btn-outline.active {
    background: #ffebee;
    color: #f44336;
    border-color: #f44336;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.btn-success {
    background: #e8f5e9;
    color: #4caf50;
}

/* 相似项目 */
.similar-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #f0f0f0;
}

.similar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.similar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.similar-item:hover {
    background: #f0f0f0;
}

.similar-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.similar-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.similar-meta .price {
    color: #ff6b6b;
    font-weight: 500;
}

.similar-meta .location {
    color: #999;
}

/* 侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 发布者卡片 */
.publisher-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.publisher-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.publisher-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.publisher-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.company-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #2196f3;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    margin-left: 8px;
}

.company-name {
    font-size: 13px;
    color: #999;
}

.btn-small {
    padding: 10px 20px;
    font-size: 13px;
    width: 100%;
}

/* 其他通告 */
.other-announcements {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.other-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.other-item {
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.other-item:hover {
    background: #f0f0f0;
}

.other-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.other-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.other-meta .price {
    color: #ff6b6b;
    font-weight: 500;
}

.other-meta .date {
    color: #999;
}

/* 分享区域 */
.share-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: #f8f9fa;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #f0f0f0;
}

.share-btn i {
    font-size: 24px;
    color: #b1ce48;
}

/* 弹窗 */
.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

/* 弹窗显示状态 */
.modal.show {
    display: flex !important;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 16px;
    border-bottom: none;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.close-btn {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.modal-body {
    padding: 0 28px 24px;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 28px 28px;
    border-top: none;
}

.modal-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
}

/* 报名弹窗艺卡选择 */
.card-scroll-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 4px;
}

.card-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}

.card-scroll::-webkit-scrollbar {
    height: 6px;
}

.card-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.card-scroll::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.card-slide {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
}

.card-slide input[type="radio"] {
    display: none;
}

.card-slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.card-slide input[type="radio"]:checked + .card-slide-content {
    border-color: #b1ce48;
    box-shadow: 0 4px 12px rgba(177, 206, 72, 0.2);
}

.card-slide-content img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.card-slide-title {
    font-size: 13px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 联系信息卡片 */
.contact-info-section {
    margin-top: 8px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
}

.contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.contact-icon i {
    font-size: 28px;
    color: #b1ce48;
}

.contact-icon span {
    font-size: 12px;
    color: #666;
}

.contact-details {
    flex: 1;
}

.contact-details p {
    margin: 0;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.edit-contact-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-contact-btn:hover {
    background: #f5f5f5;
    border-color: #b1ce48;
}

.edit-contact-btn i {
    font-size: 18px;
    color: #666;
}

/* 提示信息 */
.form-tips {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #5d4037;
    margin: 0;
}

.form-tips strong {
    color: #e65100;
}

.form-tips a {
    color: #b1ce48;
    text-decoration: none;
    font-weight: 500;
}

.form-tips a:hover {
    text-decoration: underline;
}

/* 角色选择 */
.role-select-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.role-identity-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.role-identity-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
}

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

.role-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.role-option:hover {
    border-color: #b1ce48;
}

.role-option input[type="radio"] {
    display: none;
}

.role-option input[type="radio"]:checked + .role-option-name,
.role-option:has(input:checked) {
    background: #b1ce48;
    border-color: #b1ce48;
    color: white;
}

.role-option:has(input:checked) .role-option-count {
    color: rgba(255,255,255,0.8);
}

.role-option-name {
    font-size: 14px;
    font-weight: 500;
}

.role-option-count {
    font-size: 12px;
    color: #999;
}

/* 角色展示区域 */
.roles-section {
    margin-bottom: 32px;
}

.roles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.role-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.role-group-header {
    margin-bottom: 16px;
}

.role-identity {
    display: inline-block;
    padding: 6px 14px;
    background: #b1ce48;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.role-item {
    background: white;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.role-item:last-child {
    margin-bottom: 0;
}

.role-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.role-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.role-count {
    font-size: 12px;
    color: #b1ce48;
    background: rgba(177, 206, 72, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.role-subcategory {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.role-requirements {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.role-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.role-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.role-images img:hover {
    transform: scale(1.05);
}

/* 无艺卡提示 */
.no-cards-hint {
    text-align: center;
    padding: 32px 20px;
    color: #666;
    font-size: 14px;
}

.no-cards-hint a {
    color: #b1ce48;
    text-decoration: none;
    font-weight: 500;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group .required {
    color: #f44336;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b1ce48;
}

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

.price-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input .currency {
    font-size: 16px;
    color: #666;
}

.price-input input {
    flex: 1;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* 响应式 */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        order: -1;
    }
    
    /* 瀑布流布局 */
    .announcement-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .announcement-grid .announcement-card {
        width: calc(50% - 6px);
        break-inside: avoid;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .budget-section {
        grid-template-columns: 1fr;
    }

    .action-section {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* 隐藏分页 */
    .pagination {
        display: none;
    }

    /* 加载更多按钮 */
    .load-more {
        display: block;
        width: 100%;
        padding: 14px;
        margin: 20px 0 40px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        color: #666;
        font-size: 14px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
    }

    .load-more:hover {
        background: #f5f5f5;
        color: #b1ce48;
        border-color: #b1ce48;
    }
}

/* ==================== 多角色报名样式 ==================== */

/* 步骤指示器 */
.apply-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.apply-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s;
}

.apply-steps .step.active {
    opacity: 1;
}

.apply-steps .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.apply-steps .step.active .step-num {
    background: linear-gradient(135deg, #b1ce48 0%, #9ab73a 100%);
    color: white;
}

.apply-steps .step-text {
    font-size: 14px;
    color: #666;
}

.apply-steps .step-arrow {
    color: #ccc;
    font-size: 18px;
}

/* 艺卡网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.card-item {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: white;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-item.active {
    border-color: #b1ce48;
    box-shadow: 0 0 0 3px rgba(177, 206, 72, 0.3);
    transform: scale(1.02);
}

.card-item.inactive {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.card-item.inactive .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    border-radius: 12px 12px 0 0;
}

.card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

/* 角色标签容器 */
.selected-roles-container {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    pointer-events: none;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: rgba(177, 206, 72, 0.95);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    pointer-events: auto;
    animation: tagPop 0.3s ease;
}

@keyframes tagPop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.role-tag-name {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-tag i {
    font-size: 12px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.role-tag i:hover {
    opacity: 1;
}

/* 选中标记 */
.card-check {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #b1ce48;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.card-item.selected .card-check {
    opacity: 1;
    transform: scale(1);
}

.card-check i {
    font-size: 16px;
}

/* 艺卡信息 */
.card-info {
    padding: 10px;
    text-align: center;
}

.card-title {
    display: block;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-roles-count {
    font-size: 11px;
    color: #999;
}

.card-item.has-roles .card-roles-count {
    color: #b1ce48;
    font-weight: 500;
}

/* 角色选择区 */
.roles-section {
    margin-top: 24px;
}

.roles-section .hint {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

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

.role-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.role-option:hover {
    background: #e8e8e8;
}

.role-option.selected {
    background: rgba(177, 206, 72, 0.1);
    border-color: #b1ce48;
    color: #333;
}

.role-option-name {
    font-size: 13px;
}

.role-option-count {
    font-size: 11px;
    color: #999;
}

.role-option.selected .role-option-count {
    color: #b1ce48;
}

.role-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.role-option.selected .role-check {
    background: #b1ce48;
}

.role-check i {
    font-size: 12px;
    color: white;
    transition: transform 0.3s;
}

.role-option.selected .role-check i {
    transform: rotate(45deg);
}

/* 预览区 */
.selection-preview {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
}

.preview-card {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-arrow {
    color: #ccc;
}

.preview-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.preview-role {
    padding: 4px 10px;
    background: rgba(177, 206, 72, 0.1);
    color: #b1ce48;
    border-radius: 12px;
    font-size: 12px;
}

/* 弹窗样式优化 */
.multi-role-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.multi-role-modal .modal-body {
    padding: 20px;
}

/* 响应式 */
@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .apply-steps {
        gap: 8px;
        padding: 12px 8px;
    }
    
    .apply-steps .step-text {
        display: none;
    }
    
    .role-options {
        gap: 8px;
    }
    
    .role-option {
        padding: 6px 10px;
    }
    
    .preview-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .preview-arrow {
        display: none;
    }
}
