/* 申报解读详情页样式 */

/* 页面主体 */
.detail-main {
    background: #fff;
    padding: 0 0 48px;
    min-height: calc(100vh - 400px);
    margin-top:70px;
}

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

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

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

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb span {
    color: #999;
}

.breadcrumb-current {
    color: #333;
}

/* 固定顶部区域 */
.article-header-sticky {
    position: sticky;
    top: 70px;
    background: #fff;
    z-index: 100;
    border-bottom: 1px solid #e8e8e8;
}

.article-header-sticky .article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
}

.article-header-left {
    flex: 1;
    min-width: 0;
}

.article-header-sticky .article-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-header-sticky .article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-header-sticky .article-actions {
    padding: 0;
    flex-shrink: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
}

.meta-item svg {
    color: #bbb;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* 申报状态标签 */
.meta-item.status-open {
    color: #1890ff;
    background: #e6f7ff;
    padding: 2px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.meta-item.status-open svg {
    color: #1890ff;
}

.meta-item.status-closed {
    color: #999;
    background: #f5f5f5;
    padding: 2px 12px;
    border-radius: 4px;
}

.meta-item.status-review {
    color: #fa8c16;
    background: #fff7e6;
    padding: 2px 12px;
    border-radius: 4px;
}

/* 操作按钮 */
.article-actions {
    flex-shrink: 0;
}

.btn-apply-main {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #2c5282;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-apply-main:hover {
    background: #1e3a5f;
}

/* 分割线 */
.divider-line {
    display: none;
}

/* 文章内容 */
.article-content {
    padding: 24px 0;
}

.content-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.title-bar {
    width: 4px;
    height: 18px;
    background: #2c5282;
    border-radius: 2px;
}

.content-section-title span:last-child {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.content-body {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.content-body p {
    margin: 0 0 16px;
}

.content-body ul,
.content-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.content-body li {
    margin-bottom: 8px;
}

.content-body strong {
    color: #1a1a1a;
}

.content-lead {
    background: #f8fafc;
    padding: 16px;
    border-radius: 4px;
    border-left: 3px solid #2c5282;
    margin-bottom: 24px !important;
}

.content-lead strong {
    color: #2c5282;
}

/* 附件下载区 */
.attachment-section {
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

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

.attachment-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.attachment-list {
    background: #fafbfc;
    border-radius: 8px;
    padding: 16px 20px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.attachment-item:last-child {
    border-bottom: none;
}

/* 相关政策区 */
.related-policy-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.related-policy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.related-policy-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

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

.related-policy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fafbfc;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.related-policy-item:hover {
    background: #f0f5ff;
    color: #2563eb;
}

.related-policy-item svg {
    flex-shrink: 0;
}

.related-policy-name {
    flex: 1;
    font-size: 15px;
}

.related-policy-item .arrow-right {
    color: #999;
}

.related-policy-item:hover .arrow-right {
    color: #2563eb;
}

.attachment-label {
    font-size: 14px;
    color: #666;
    margin-right: 8px;
    flex-shrink: 0;
}

.attachment-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #1890ff;
    text-decoration: none;
    margin-left: 16px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.attachment-download:hover {
    color: #40a9ff;
}

.attachment-download svg {
    width: 16px;
    height: 16px;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-header-sticky {
        top: 60px;
    }
    
    .article-header-sticky .article-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }
    
    .article-header-sticky .article-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .article-header-sticky .article-meta {
        gap: 10px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .article-header-sticky .article-actions {
        width: 100%;
        margin-top: 12px;
    }
    
    .btn-apply-main {
        width: 100%;
    }
    
    .content-body {
        font-size: 14px;
    }
    
    .content-body h2 {
        font-size: 16px;
    }
    
    .attachment-item {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 12px 0;
    }

    .attachment-label {
        font-size: 13px;
        color: #666;
        margin-right: 0;
    }

    .attachment-name {
        flex: 1;
        font-size: 14px;
        word-break: break-all;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        color: #333;
        line-height: 1.4;
        margin-left: 0;
    }

    .attachment-download {
        margin-left: auto;
        padding: 6px 14px;
        font-size: 13px;
        color: #1890ff;
        background: transparent;
        border: 1px solid #1890ff;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }

    .attachment-download:hover {
        background: #1890ff;
        color: #fff;
    }

    .attachment-download svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 576px) {
    .attachment-item {
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .attachment-item:last-child {
        border-bottom: none;
    }

    .attachment-label {
        font-size: 12px;
        color: #999;
    }

    .attachment-name {
        flex: 0 0 100%;
        font-size: 13px;
        margin-top: 4px;
        color: #333;
    }

    .attachment-download {
        margin-left: 0;
        margin-top: 4px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 案例详情页样式 */
.case-meta-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.case-type-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.case-date-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f5ff;
    color: #1890ff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

/* 案例效果数据 */
.case-effect-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 12px;
}

.effect-card {
    text-align: center;
    padding: 20px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.effect-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.effect-value {
    font-size: 32px;
    font-weight: 700;
    color: #1890ff;
    margin-bottom: 4px;
}

.effect-label {
    font-size: 13px;
    color: #666;
}

/* 相关案例 */
.related-cases-section {
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.related-cases-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.related-cases-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

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

.related-case-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fafbfc;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.related-case-item:hover {
    background: #f0f5ff;
    color: #2563eb;
}

.related-case-info {
    flex: 1;
}

.related-case-type {
    display: inline-block;
    padding: 2px 8px;
    background: #e6f7ff;
    color: #1890ff;
    font-size: 11px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.related-case-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.related-case-item .arrow-right {
    color: #999;
    flex-shrink: 0;
}

.related-case-item:hover .arrow-right {
    color: #2563eb;
}

@media (max-width: 768px) {
    .case-effect-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .effect-value {
        font-size: 24px;
    }
}

/* 弹窗样式 */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

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

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

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel {
    padding: 10px 20px;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-submit {
    padding: 10px 24px;
    background: #2c5282;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #1e3a5f;
}

/* 文件上传 */
.file-upload-wrapper {
    position: relative;
}

.file-upload-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8fafc;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    border-color: #2c5282;
    color: #2c5282;
    background: rgba(44, 82, 130, 0.05);
}

.file-upload-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}
