﻿body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f6f3;
    color: #222;
}

.portal-banner-bg {
    background: url('banner-bg.png') center top no-repeat, linear-gradient(135deg, #ff3c3c 0%, #ff6161 100%);
    background-size: cover;
    min-height: 134px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.portal-banner-content {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.90);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(255,60,60,0.10);
    width: 100%;
    max-width: 1400px;
}

.portal-flag {
    width: 180px;
    margin-right: 40px;
}

.portal-title h1 {
    font-size: 2.3rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
    color: #d32f2f;
    font-family: 'Arial', Tahoma, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif, sans-serif;
    text-shadow: 1px 1px 0 #fff, 0 2px 8px #ff616144;
}

.portal-title h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 10px 0 0 0;
    letter-spacing: 1px;
    color: #ff3c3c;
}

.portal-navbar {
    background: linear-gradient(90deg, #b71c1c 0%, #d32f2f 100%);
    box-shadow: 0 2px 8px rgba(183,28,28,0.08);
}

.portal-navbar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 70px;
}

.portal-search-input {
    width: 260px;
    padding: 9px 18px;
    border: 1px solid #d32f2f;
    border-radius: 24px;
    font-size: 14px;
    margin-right: 18px;
    outline: none;
    background: #fff;
    color: #b71c1c;
    transition: border 0.2s;
}

    .portal-search-input:focus {
        border-color: #b71c1c;
    }

.portal-login-btn {
    background: linear-gradient(90deg, #f00 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 9px 32px;
    margin:3px 0px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 8px #b71c1c22;
    transition: background 0.2s;
}

    .portal-login-btn:hover {
        background: #880808;
    }

.portal-main {
    background: #fff;
    padding: 0px;
    min-height: 400px;
}

.portal-apps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 48px;
    row-gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.portal-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 160px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #b71c1c11;
    border: 2px solid #d32f2f22;
    padding: 10px;
    background: aliceblue;
}

.portal-app-icon {
    width: 128px;
    height: 80px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .portal-app-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.portal-app-title {
    font-size: 14px;
    color: #d32f2f;
    font-weight: 500;
    line-height: 1.4;
}

.portal-app:hover {
    box-shadow: 0 8px 32px #b71c1c33;
    transform: translateY(-4px) scale(1.04);
    border-color: #b71c1c;
    background: #fff7f7;
}

.portal-footer {
    background: linear-gradient(90deg, #b71c1c 0%, #d32f2f 100%);
    color: #fff;
    margin-top: 48px;
}

.portal-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    color: #222;
    border-radius: 0 0 18px 18px;
    padding: 13px 45px;
    box-shadow: 0 -2px 8px #b71c1c11;
}

.portal-footer-left {
    flex: 1 1 320px;
    min-width: 220px;
}

.portal-footer-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #d32f2f;
}

.portal-footer-hotline {
    font-size: 14px;
    margin-bottom: 8px;
    color: #222;
}

.portal-footer-right {
    flex: 1 1 320px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.portal-footer-select {
    width: 220px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d32f2f;
    font-size: 14px;
    margin-bottom: 8px;
    color: #d32f2f;
    background: #fff;
}

.portal-footer-guide-link {
    color: #d32f2f;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
}

    .portal-footer-guide-link:hover {
        text-decoration: underline;
        color: #b71c1c;
    }

@media (max-width: 1200px) {
    .portal-apps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
        padding: 0 12px;
    }

    .portal-banner-content, .portal-footer-inner {
        padding: 16px;
    }
}
.portal-title-img {
    height: 90px;
    margin-right: 20px;
}
@media (max-width: 800px) {
    .portal-apps {
        grid-template-columns: 1fr;
        gap: 24px 0;
    }
    .portal-title-img {
        height: 40px;
    }
    .portal-navbar-content {
        padding: 10px;
    }
    .portal-login-btn {
        padding: 9px 14px;
    }
    .portal-footer-left {
        flex: 1 1 0px;
    }
    .portal-footer-right {
        flex: 1 1 0px;
    }
    .portal-banner-bg {
        min-height: 77px;
        padding: 0 12px;
    }
    .portal-flag {
        width: 80px;
    }
    .portal-main {
        padding: 16px 0 0 0;
    }

    .portal-footer-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .portal-footer-right {
        align-items: flex-start;
        margin-top: 16px;
    }
}
