/* ========== 面包屑隐藏 ========== */
.post-breadcrumb-hidden {
    display: none !important;
}

/* ========== 标题栏 ========== */
.post-header-bar {
    background: var(--gt-font-6, #f8fafc);
    border-radius: 12px;
    padding: 12px;
    margin: 0 0 20px;
    border: 1px solid rgb(205 189 0);
    text-align: center;
}
.post-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gt-font-88, #1e293b);
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: 1.5px;
    word-break: break-word;
}
.post-meta-bar {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--gt-font-3, #64748b);
    font-size: 0.9rem;
}
.post-meta-bar .meta-sep {
    color: var(--gt-font-16, #cbd5e1);
}
.post-meta-bar .meta-item i {
    /* margin-right: 4px; */
    /* vertical-align: -2px; */
}

/* ========== IDC配置信息表格（与首页normal-table保持一致） ========== */
.idc-info-card {
    background: var(--gt-font-6, #f8fafc);
    border-radius: 12px;
    padding: 12px;
    margin: 0 0 20px;
    border: 1px solid var(--gt-font-16, #eef2f6);
    overflow-x: auto;
}
.idc-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
    background: #1a1a1a;
    border: 1px solid #444;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}
.idc-info-table th {
    background: #272525;
    color: #fff;
    padding: 10px 4px;
    font-weight: bold;
    border: 1px solid #444;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
}
.idc-info-table td {
    padding: 8px 4px;
    border: 1px solid #c8c0a0;
    text-align: center;
    background: #e8e0c8;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}
.idc-info-table tr:hover td {
    background: #ddd5b8;
}
/* 12列宽度（详情页去掉"详情"列，商品介绍占主导） */
.idc-info-table th:nth-child(1),
.idc-info-table td:nth-child(1) { width: 11%; }   /* 服务商名称 */
.idc-info-table th:nth-child(2),
.idc-info-table td:nth-child(2) { width: 5%; }    /* 地区 */
.idc-info-table th:nth-child(3),
.idc-info-table td:nth-child(3) { width: 5%; }    /* 线路 */
.idc-info-table th:nth-child(4),
.idc-info-table td:nth-child(4) { width: 4%; }    /* 内存 */
.idc-info-table th:nth-child(5),
.idc-info-table td:nth-child(5) { width: 4%; }    /* CPU */
.idc-info-table th:nth-child(6),
.idc-info-table td:nth-child(6) { width: 5%; }    /* 硬盘 */
.idc-info-table th:nth-child(7),
.idc-info-table td:nth-child(7) { width: 5%; }    /* 流量 */
.idc-info-table th:nth-child(8),
.idc-info-table td:nth-child(8) { width: 5%; }    /* 带宽 */
.idc-info-table th:nth-child(9),
.idc-info-table td:nth-child(9) { width: 5%; }    /* 防御 */
.idc-info-table th:nth-child(10),
.idc-info-table td:nth-child(10) { width: 7%; }   /* 价格 */
.idc-info-table th:nth-child(11),
.idc-info-table td:nth-child(11) { width: 22%; }  /* 商品介绍（加宽） */
.idc-info-table th:nth-child(12),
.idc-info-table td:nth-child(12) { width: 5%; }   /* 购买 */
.idc-info-table td.idc-name-cell {
    text-align: center !important;
    padding-left: 0;
}
.idc-info-table td.idc-name-cell a {
    color: #222;
    text-decoration: none;
}
.idc-info-table td.idc-desc-cell {
    text-align: center;
    padding-left: 6px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.idc-info-table td.idc-desc-cell .desc-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}
.idc-info-table td.price-col {
    font-weight: 700;
    color: #b45309;
}

/* 标题栏整体flex居中 */
.post-main-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
}

/* IDC广告标签（标题栏专用，与标题大小匹配） */
.post-main-title .post-ad-tag {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 0.6em;
    margin: 0;
    vertical-align: middle;
    font-weight: 600;
    line-height: 1;
}
.post-ad-tag.tag-promo-flash {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
.post-ad-tag.tag-promo-new {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
}
.post-ad-tag.tag-ending {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}
.post-ad-tag.tag-normal {
    background: #67727f;
    color: #fff;
}

/* 认证徽章（标题栏专用，与标题大小匹配） */
.post-main-title .cert-badge {
    display: inline-block;
    padding: 8px 10px;
    color: #fff;
    font-size: 0.55em;
    font-weight: 700;
    border-radius: 5px;
    margin: 0;
    vertical-align: middle;
    line-height: 1;
}
.cert-badge.cert-type-1 {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.cert-badge.cert-type-2 {
    background: linear-gradient(135deg, #10b981, #059669);
}
.cert-badge.cert-type-3 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.cert-badge.cert-type-4 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
/* 购买按钮（与首页一致） */
a.buy-btn {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}
a.buy-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(245,158,11,0.4);
}
.no-buy {
    color: #666;
}
.detail-text {
    color: #444;
    font-size: 12px;
}
/* 详情链接（与首页一致） */
a.detail-link {
    color: #444;
    text-decoration: none;
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
    font-size: 12px;
}
a.detail-link:hover {
    text-decoration: underline;
}

/* 覆盖 mirai.css 中的 flex 布局，避免内容区出现多余空隙 */
#main-content .gt-article-main {
    display: block !important;
}

/* ========== 广告内容栏 ========== */
.article-content-container {
    background: var(--gt-font-6, #f8fafc);
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 20px;
    border: 1px solid var(--gt-font-16, #eef2f6);
    overflow: hidden;
}
.content-section-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gt-font-88, #1e293b);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gt-font-16, #eef2f6);
    letter-spacing: 2px;
}
.article-content {
    color: var(--gt-font-color, #334155);
    line-height: 1.8;
}
.article-content.is-resource {
    font-size: 1.05rem;
    line-height: 1.9;
}
.article-content.is-resource p {
    margin-bottom: 1.2em;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .post-main-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    .post-meta-bar {
        flex-direction: column;
        gap: 6px;
    }
    .post-meta-bar .meta-sep {
        display: none;
    }
    .idc-info-card {
        padding: 8px;
    }
    /* 手机端隐藏：地区(2)、线路(3)、内存(4)、CPU(5)、硬盘(6)、流量(7)、带宽(8)、防御(9) */
    .idc-info-table th:nth-child(2),
    .idc-info-table th:nth-child(3),
    .idc-info-table th:nth-child(4),
    .idc-info-table th:nth-child(5),
    .idc-info-table th:nth-child(6),
    .idc-info-table th:nth-child(7),
    .idc-info-table th:nth-child(8),
    .idc-info-table th:nth-child(9),
    .idc-info-table td:nth-child(2),
    .idc-info-table td:nth-child(3),
    .idc-info-table td:nth-child(4),
    .idc-info-table td:nth-child(5),
    .idc-info-table td:nth-child(6),
    .idc-info-table td:nth-child(7),
    .idc-info-table td:nth-child(8),
    .idc-info-table td:nth-child(9) {
        display: none;
    }
    /* 手机端显示：名称(1)、价格(10)、商品介绍(11)、购买(12) */
    .idc-info-table th:nth-child(1),
    .idc-info-table td:nth-child(1) { width: 35% !important; }
    .idc-info-table th:nth-child(10),
    .idc-info-table td:nth-child(10) { width: 15% !important; }
    .idc-info-table th:nth-child(11),
    .idc-info-table td:nth-child(11) { width: 30% !important; }
    .idc-info-table th:nth-child(12),
    .idc-info-table td:nth-child(12) { width: 20% !important; }
    .idc-info-table th,
    .idc-info-table td {
        padding: 6px 3px;
        font-size: 12px;
    }
    .article-content-container {
        padding: 16px;
    }
}
