/* 首页门户专用样式 */
.home-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 2rem;
}

.portal-hero {
    text-align: center;
    padding: 3rem 1.5rem 3.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #6366f1 100%);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(67, 56, 202, 0.35);
    position: relative;
    overflow: hidden;
}

.portal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.portal-hero .portal-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.portal-hero .portal-title i {
    margin-right: 0.5rem;
    opacity: 0.95;
}

.portal-hero .portal-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.portal-modules {
    margin-top: 0;
}

.portal-modules > [class*="col-"] {
    display: flex;
}

.portal-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 240px;
    padding: 2rem 1.75rem;
    border-radius: 16px;
    text-decoration: none !important;
    color: #0f172a !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.portal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-accent, #4f46e5), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.portal-card-work { --card-accent: #dc2626; }
.portal-card-business { --card-accent: #2563eb; }
.portal-card-knowledge { --card-accent: #16a34a; }

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-color: #c7d2fe;
    color: #0f172a !important;
}

.portal-card:hover::after {
    opacity: 1;
}

.portal-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.portal-card-work .portal-card-icon {
    background: #fef2f2;
    color: #dc2626;
}

.portal-card-business .portal-card-icon {
    background: #eff6ff;
    color: #2563eb;
}

.portal-card-knowledge .portal-card-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.portal-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #1e293b;
}

.portal-card p {
    flex: 1;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.portal-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #2563eb !important;
    font-weight: 600;
    font-size: 0.95rem;
}

.portal-card-work:hover .portal-card-link { color: #dc2626 !important; }
.portal-card-business:hover .portal-card-link { color: #2563eb !important; }
.portal-card-knowledge:hover .portal-card-link { color: #16a34a !important; }

@media (max-width: 768px) {
    .portal-hero {
        padding: 1.75rem 1rem 2rem;
    }
    .portal-hero .portal-title {
        font-size: 1.65rem;
    }
    .portal-card {
        min-height: auto;
    }
}
