/**
 * 招标公告详情页专用样式（由 zbgg_detail.html 内联迁移，front-topic-dev）
 */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 50px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0px 2px 14px 0px rgba(4, 44, 101, 0.1);
    margin-top: 20px;
    margin-bottom: 0;
}

.detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #333333;
    line-height: 38px;
    text-align: center;
    margin-bottom: 16px;
    word-wrap: break-word;
    white-space: normal;
}

.detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: #f7f7f7;
    height: 32px;
    margin-bottom: 40px;
}

.detail-meta-item {
    font-size: 14px;
    color: #666666;
    line-height: 21px;
}

.process-tab {
    display: flex;
    margin-bottom: 16px;
    position: relative;
}

.process-item {
    height: 40px;
    width: 224px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: auto 40px;
    background-position: left top;
    flex: 0 0 224px;
}

.process-item:not(:first-child) {
    margin-left: -5px;
}

.process-item span {
    font-size: 16px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

.process-item .step-number {
    position: absolute;
    right: 10px;
    bottom: -8px;
    font-size: 30px;
    opacity: 0.2;
    font-weight: bold;
    z-index: 1;
    font-family: D-DIN, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
}

.process-item.completed span,
.process-item.current span {
    color: #ffffff;
}

.process-item.pending span {
    color: #666666;
}

.process-item.completed .step-number,
.process-item.current .step-number {
    color: #ffffff;
}

.process-item.pending .step-number {
    color: #666666;
}

.process-item.completed,
.process-item.current {
    cursor: pointer;
}

.process-item.pending {
    cursor: not-allowed;
    pointer-events: none;
}

.process-item.selected span {
    font-weight: 700;
    font-size: 18px;
}

.secondary-tab {
    display: flex;
    margin-bottom: 40px;
    gap: 10px;
}

.secondary-tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-tab-item.active {
    background: #3982f5;
    color: white;
}

.secondary-tab-item:not(.active) {
    background: #eef3fc;
    color: #333333;
}

.secondary-tab-item:not(.active):hover {
    background: #e7edf9;
}

.detail-content-container {
    margin-bottom: 40px;
    min-height: 400px;
}

.detail-content {
    display: none;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.detail-content.active {
    display: flex;
    opacity: 1;
}

.detail-text {
    font-size: 16px;
    color: #333333;
    line-height: 32px;
    text-align: justify;
    text-indent: 2em;
}

.attachments {
    margin-top: 24px;
    margin-bottom: 24px;
}

.attachments-title {
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
}

.attachment-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #f7f7f7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attachment-item:hover,
.attachment-item:active {
    border: 1px solid #1f6de8;
    background: #ffffff;
}

.attachment-icon {
    width: 36px;
    height: 36px;
}

.attachment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attachment-name {
    font-size: 14px;
    color: #333333;
    display: flex;
    align-items: center;
}

.attachment-size {
    font-size: 12px;
    color: #b1b6cc;
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-icon {
    width: 14px;
    height: 15px;
}

@media (max-width: 1200px) {
    .detail-container {
        margin: 20px 20px 24px;
        padding: 24px 30px 24px;
    }

    .process-item span {
        font-size: 16px;
    }

    .secondary-tab-item {
        font-size: 16px;
    }
}


/* 只在 IE / IE 兼容模式生效 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #infocontent {
        margin-top: 100px !important;
    }
}