/* ==========================================================================
   客户系统入口页样式（独立文件，不影响官网既有页面）
   配色沿用 style.css 的品牌变量：--signal-blue / --midnight-blue
   ========================================================================== */

.portal-page {
    background: var(--canvas-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.portal-page .navbar { background: #fff; }

/* ---------- 顶部标题区 ---------- */
.portal-hero {
    background: var(--hero-gradient);
    padding: 72px 0 96px;
    text-align: center;
    color: #fff;
}

.portal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}

.portal-hero-badge i { color: var(--emerald-green); }

.portal-hero h1 {
    font-size: 40px;
    line-height: 1.3;
    margin: 0 0 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.portal-hero p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- 平台卡片区 ---------- */
.portal-section {
    flex: 1;
    padding: 0 0 80px;
    margin-top: -52px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.portal-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--feature-shadow);
    border: 1px solid rgba(20, 20, 30, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover), var(--blue-glow);
}

.portal-card.is-last { border-color: rgba(20, 90, 255, 0.45); }

/* 卡片头部渐变条，按主题区分 */
.portal-card-top {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 26px;
    color: #fff;
}

.portal-card-top.theme-indigo { background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%); }
.portal-card-top.theme-cyan    { background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%); }
.portal-card-top.theme-emerald { background: linear-gradient(135deg, #047857 0%, #059669 100%); }
.portal-card-top.theme-amber   { background: linear-gradient(135deg, #b45309 0%, #d97706 100%); }

.portal-card-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    backdrop-filter: blur(4px);
}

.portal-card-head { min-width: 0; }

.portal-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.portal-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.22);
}

.portal-badge.is-last { background: #fff; color: var(--signal-blue); }

.portal-card-head h2 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.portal-subtitle {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}

/* 卡片主体 */
.portal-card-body {
    padding: 22px 26px 8px;
    flex: 1;
}

.portal-desc {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--slate-gray);
}

.portal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.portal-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--sky-wash);
    color: var(--action-blue);
}

.portal-contract {
    margin: 0;
    font-size: 12px;
    color: var(--deep-fog);
}

.portal-contract i { margin-right: 5px; }

/* 卡片底部按钮 */
.portal-card-foot {
    padding: 16px 26px 24px;
}

.portal-enter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: 3px;
    color: #fff;
    background: var(--blue-gradient);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, gap 0.2s ease;
}

.portal-enter:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.34);
    gap: 12px;
}

/* 甲方/乙方信息行 */
.portal-party {
    margin: 0 0 4px;
    font-size: 12.5px;
    color: var(--slate-gray);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}
.portal-party b {
    color: var(--deep-fog);
    font-weight: 600;
    margin-right: 4px;
}

/* 卡片底部：进入系统（主）+ 交付文档（次），纵向居中堆叠 */
.portal-card-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.portal-doc {
    flex: 0 0 auto;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    color: var(--action-blue);
    background: var(--sky-wash);
    border: 1px solid #d4e3fb;
    transition: background 0.2s ease, gap 0.2s ease;
}
.portal-doc:hover { background: #e3edfb; gap: 12px; }

/* 空状态 */
.portal-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--steel-gray);
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--feature-shadow);
}

.portal-empty i { font-size: 40px; color: var(--deep-fog); margin-bottom: 14px; }

/* ---------- 页脚 ---------- */
.portal-footer {
    background: var(--graphite-gray);
    color: rgba(255, 255, 255, 0.62);
    padding: 30px 0;
    font-size: 13px;
}

.portal-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.portal-footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.portal-footer-links a:hover { color: #fff; }

.portal-footer .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.portal-copy { text-align: center; margin: 0 0 8px; }

.portal-tip {
    text-align: center;
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
}

.portal-tip i { margin-right: 5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .portal-hero { padding: 48px 0 76px; }
    .portal-hero h1 { font-size: 28px; }
    .portal-grid { grid-template-columns: 1fr; gap: 20px; }
    .portal-card-top { padding: 22px 20px; gap: 14px; }
    .portal-card-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 22px; }
    .portal-card-body { padding: 18px 20px 6px; }
    .portal-card-foot { padding: 14px 20px 20px; }
}
