/* portal ui2 dedupe */
/* 资采通专业版全局样式 - 政务蓝风格 */
:root {
    --gov-blue: #1a56a8;
    --gov-blue-dark: #14438a;
    --gov-blue-deep: #0d3a6e;
    --gov-blue-light: #eef4ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-gray: #f3f6fb;
    --bg-soft: linear-gradient(180deg, #eef3fa 0%, #f5f7fa 40%, #f5f7fa 100%);
    --status-ongoing: #16a34a;
    --status-waiting: #d97706;
    --status-ended: #94a3b8;
    --status-danger: #dc2626;
    --shadow-soft: 0 8px 24px rgba(15, 45, 90, 0.06);
}

body {
    background: var(--bg-soft);
    background-color: var(--bg-gray);
    font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: var(--text-main);
}

.zct-container { width: 95%; max-width: 1600px; margin: 0 auto; }

/* 顶部导航 */
.zct-header {
    background-color: rgba(255,255,255,.96);
    height: 84px;
    line-height: normal;
    border-bottom: 2px solid var(--gov-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: saturate(1.2) blur(8px);
    transition: box-shadow .25s ease;
    box-sizing: border-box;
}
.zct-header.is-scrolled { box-shadow: 0 8px 24px rgba(15, 45, 90, 0.12); }
.header-flex {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(240px, 1.05fr);
    align-items: center;
    column-gap: 16px;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}
.header-logo {
    display: flex; align-items: center; text-decoration: none; justify-self: start;
    height: 100%; min-width: 0;
}
.header-logo i { font-size: 32px; color: var(--gov-blue); margin-right: 10px; }
.header-logo span { font-size: 24px; font-weight: 800; color: var(--gov-blue); letter-spacing: 1px; }
.header-logo img { width: auto; height: 64px; max-width: 320px; max-height: 68px; object-fit: contain; display: block; }

.header-nav { display: flex; list-style: none; margin-left: 30px; }
.header-nav li { margin: 0 8px; }
.header-nav li a { color: var(--text-main); font-size: 15px; font-weight: 500; text-decoration: none; transition: all 0.3s; padding: 0 3px; }
.header-nav li a:hover, .header-nav li.active a { color: var(--gov-blue); font-weight: 700; border-bottom: 3px solid var(--gov-blue); height: 67px; display: inline-block; }

.header-user {
    display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
    justify-content: flex-end; justify-self: end;
    min-width: 0; max-width: 100%;
    height: 100%;
    line-height: normal;
    /* 与主导航拉开，避免「供应商中心」和下方账号区粘成一团 */
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border-color, #e2e8f0);
}
.header-user-name {
    font-size: 14px; color: var(--text-muted, #64748b);
    max-width: min(160px, 18vw);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.3;
}
.header-cta-group {
    display: inline-flex; align-items: center; gap: 10px;
    margin-left: 0; flex-shrink: 0;
    max-width: none; overflow: visible; white-space: nowrap;
    line-height: normal;
}
.header-account-chip {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 10px 0 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    min-width: 0; max-width: min(200px, 26vw);
    box-sizing: border-box;
}
.header-account-avatar {
    width: 24px; height: 24px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--gov-blue, #1a56a8); color: #fff;
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1;
}
.header-account-name {
    font-size: 13px; font-weight: 600;
    color: var(--text-main, #1e293b);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.3; min-width: 0;
}
.header-nav-center {
    display: flex; align-items: stretch; justify-content: center;
    gap: 0; white-space: nowrap; justify-self: center; height: 100%;
}
.header-link {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 600; color: var(--text-main); text-decoration: none;
    padding: 0 14px; height: calc(100% + 2px); margin-bottom: -2px; line-height: 1.2;
    border-bottom: 3px solid transparent; box-sizing: border-box;
    transition: color .2s, border-color .2s, background .2s;
}
.header-link:hover { color: var(--gov-blue); background: transparent; }
.header-link.active {
    color: var(--gov-blue);
    border-bottom-color: var(--gov-blue);
    background: transparent; /* 仅底边指示，避免右侧像多了一块按钮 */
}

.btn-login-nav,
.header-cta-login {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--gov-blue); color: #fff !important;
    padding: 0 18px; height: 36px; line-height: 36px; border-radius: 6px;
    font-weight: 600; font-size: 14px; text-decoration: none; border: none;
    transition: background .2s, transform .2s;
}
.btn-login-nav:hover,
.header-cta-login:hover { background-color: var(--gov-blue-dark); transform: translateY(-1px); }

.btn-reg-nav,
.header-cta-register {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #cbd5e1; color: var(--text-main, #1e293b) !important;
    background: #fff; padding: 0 14px; height: 36px; line-height: 36px;
    border-radius: 999px; font-weight: 600; font-size: 13px; text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.btn-reg-nav:hover,
.header-cta-register:hover {
    background: #f8fafc; border-color: var(--gov-blue); color: var(--gov-blue) !important;
    transform: none;
}
/* register hover handled above */

.header-auth-center svg { display: block; width: 13px; height: 13px; }
.header-auth-center { line-height: 1; }

/* 页脚 */
.zct-footer { background-color: #1e293b; color: #94a3b8; padding: 22px 0 18px; margin-top: 40px; font-size: 13px; }
.footer-slim { text-align: center; }
.footer-slim-main {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 6px 10px; line-height: 1.6;
}
.footer-brand { color: #e2e8f0; font-weight: 600; }
.footer-sep, .footer-dot { opacity: 0.35; user-select: none; }
.footer-slim a { color: inherit; text-decoration: none; }
.footer-slim a:hover { color: #fff; }
.footer-copy { text-align: center; margin-top: 8px; font-size: 12px; opacity: 0.75; }
.footer-friends {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 6px 10px; margin-top: 10px; font-size: 12px; color: #94a3b8; opacity: 0.9;
}
.footer-friends-label { font-weight: 600; color: #cbd5e1; margin-right: 2px; }
.footer-friends a { color: inherit; text-decoration: none; }
.footer-friends a:hover { color: #fff; }
.footer-friends .footer-sep { opacity: 0.35; user-select: none; }

/* legacy 3-col footer (unused) */
.footer-grid { display: none; }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-info p { margin-bottom: 10px; }
.footer-info a { color: inherit; text-decoration: none; }
.footer-info a:hover { color: #fff; }

/* 状态标签 */
.zct-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag-ongoing { background-color: #f0f9eb; color: var(--status-ongoing); border: 1px solid #e1f3d8; }
.tag-waiting { background-color: #fdf6ec; color: var(--status-waiting); border: 1px solid #faecd8; }
.tag-ended { background-color: #f4f4f5; color: var(--status-ended); border: 1px solid #e9e9eb; }
.tag-danger { background-color: #fef0f0; color: var(--status-danger); border: 1px solid #fde2e2; }

.zct-btn-primary { background-color: var(--gov-blue) !important; color: #fff !important; }
.zct-btn-primary:hover { background-color: var(--gov-blue-dark) !important; opacity: 0.9; }

.zct-card { background: #fff; border-radius: 4px; border: 1px solid var(--border-color); box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05); }
.zct-card-header { padding: 18px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.zct-card-title { font-size: 18px; font-weight: 700; color: var(--gov-blue); display: flex; align-items: center; }
.zct-card-title::before { content: ""; width: 4px; height: 18px; background: var(--gov-blue); margin-right: 10px; border-radius: 2px; }
.zct-card-body { padding: 20px; }

.zct-table { width: 100%; border-collapse: collapse; }
.zct-table th { background-color: var(--bg-gray); color: var(--text-main); font-weight: 700; padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
.zct-table td { padding: 15px; border-bottom: 1px solid #f2f6fc; font-size: 14px; }
.zct-table tr:hover td { background-color: var(--gov-blue-light); }

.text-nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1366px) {
    .zct-container { width: 96%; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
    .header-nav li { margin: 0 4px; }
    .header-nav li a { font-size: 14px; }
    .zct-header { padding: 0 8px; }
    .header-link { padding: 0 12px; font-size: 14px; }
}

@media (max-width: 768px) {
    .zct-container { width: 98%; }
    .header-nav { display: none; }
    .header-nav-center {
        grid-column: 1 / -1; order: 3; width: 100%;
        justify-content: center; flex-wrap: wrap; gap: 0;
        border-top: 1px solid #eef2f7;
    }
    .header-flex {
        grid-template-columns: 1fr auto;
        row-gap: 0; height: auto; min-height: 56px;
    }
    .zct-header { height: auto; line-height: normal; }
    .header-logo { height: 64px; }
    .header-user { height: 64px; }
    .header-logo img { height: 40px; max-height: 44px; max-width: 200px; }
    .header-link {
        padding: 0 10px; font-size: 13px; line-height: 42px; height: 42px;
        border-bottom-width: 2px;
    }
    .header-cta-group { margin-left: 0; }
    .btn-login-nav, .btn-reg-nav, .header-cta-login, .header-cta-register { padding: 0 12px; font-size: 13px; }
    .zct-table th, .zct-table td { padding: 10px 8px; font-size: 13px; }
}

@media (min-width: 2560px) {
    .zct-container { max-width: 1920px; }
}
@media (min-width: 3840px) {
    .zct-container { max-width: 2400px; }
}

/* zct-header-phone — 精简为图标+号码，减少顶栏拥挤 */
.header-phone {
    display: inline-flex; align-items: center; gap: 5px;
    height: 36px; padding: 0 12px 0 0; margin: 0;
    text-decoration: none; white-space: nowrap;
    border-right: 1px solid #e2e8f0; padding-right: 12px; margin-right: 2px;
    color: var(--text-muted, #64748b);
    transition: color .2s;
}
.header-phone:hover { color: var(--gov-blue, #1a56a8); }
.header-phone-ico {
    width: 15px; height: 15px; flex-shrink: 0;
    color: var(--gov-blue, #1a56a8);
}
.header-phone-label {
    display: none; /* 号码已自明，去掉「平台电话」四字 */
}
.header-phone-num {
    font-size: 13px; font-weight: 600; color: var(--text-main, #1e293b);
    font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.header-phone:hover .header-phone-num { color: var(--gov-blue, #1a56a8); }
@media (max-width: 768px) {
    .header-phone { display: none; }
}
