html, body {
    padding: 0;
    margin: 0;
}

div {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.login-container {
    width: 100%;
    height: 485px;
    background-image: url("../images/Group1171275334.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container .login-btn {
    margin-top: 20px;
}

.login-container .login-btn:hover {
    background: #ffffff;
    color: #e8b004;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #D00001;
}

.login-btn {
    padding: 15px 30px;
    font-size: 2.1rem;
    background: #D00001;
    color: #fff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #e8b004;
    color: #ffffff;
}

.title {
    text-align: center;
    font-size: 1.75rem;
    margin: 40px 0;
    font-weight: bold;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px calc((100% - 990px) / 2);
    justify-content: center;
}

.card {
    width: 330px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px 15px;
    text-align: center;
    position: relative;
}

.card:hover {
    background-color: #FFEFEF;
    box-shadow: 0 6px 8px 2px rgba(149, 97, 97, 0.2);
}

.card:last-child {
    margin-right: auto;
}

.card img {
    width: 290px;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.card .doc-desc {
    max-height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-all;
    -webkit-line-clamp: 2;
}

.card .tag {
    font-size: 1.2rem;
    padding: 4px 16px;
    border-radius: 4px;
    position: absolute;
    top: 36px;
    right: 27px;
}

.card .tag.unread {
    color: #fff;
    background-color: #FE5B5B;
}

.card .tag.read {
    color: #a1a1a1;
    background-color: #dadada;
}

.view-btn {
    font-size: 20px;
    margin: 15px 0;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #FE5B5B;
    color: #FE5B5B;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.view-btn:hover {
    background: #FE5B5B;
    color: #fff;
}

footer {
    width: 100%;
    height: 485px;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    color: #666;
    background-image: url("../images/51.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

footer .content {
    width: 1200px;
    height: 100%;
    font-size: 1rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
    gap: 10px 20px;
    box-sizing: border-box;
}

footer .content a {
    color: #666;
    text-decoration: none;
}

footer .content a:hover {
    color: #666;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    width: 420px;
    background: white;
    padding: 40px 30px 60px;
    margin: 20vh auto 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.modal-content .tit {
    font-size: 18px;
    font-weight: 500;
    color: #f00;
    padding: 6px 18px;
    margin-right: auto;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.modal-content .tit::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #f00;
    position: absolute;
    bottom: 0;
    left: 0;
}

.modal-content label {
    width: 100%;
    font-size: 16px;
    color: #262626;
}

.modal-content .password-box {
    width: 100%;
    position: relative;
}

.modal-content .password-box i {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.modal-content .password-box i.icon-eye {
    background-image: url("../images/pwdh.png");
}

.modal-content .password-box i.icon-eye-open {
    background-image: url("../images/pwds.png");
}

.modal-content input {
    width: 100%;
    height: 40px;
    font-size: 16px;
    box-sizing: border-box;
    margin: 0 0 10px 0;
    border: 2px solid #f0f0f0;
    border-radius: 6px;
    outline: none;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    padding: 0 10px;
}

.modal-content input[type="text"]:hover,
.modal-content input[type="text"]:focus,
.modal-content input[type="text"]:focus-visible,
.modal-content input[type="password"]:hover,
.modal-content input[type="password"]:focus,
.modal-content input[type="password"]:focus-visible {
    border: 2px solid #f00;
    border-radius: 6px;
    outline: none;
}

.modal-content input[type="password"]::-ms-reveal {
    display: none;
}

.modal-content .btn-getCode {
    font-size: 1rem;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    background-color: #D00001;
    position: absolute;
    top: 3px;
    right: 3px;
    cursor: pointer;
}

.modal-content .password-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 15px 0 5px;
}

.modal-content .password-header .forgot-password {
    font-size: 16px;
    color: #262626;
    text-decoration: none;
    white-space: nowrap;
}

.modal-content .footer-options {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-content .footer-options label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.modal-content .footer-options label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0 5px 0 0;
    padding: 0;
    position: relative;
}

.modal-content .footer-options label input[type="checkbox"]::before {
    content: "";
    width: 14px;
    height: 14px;
    background-color: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 4px;
    position: absolute;
    top: -1px;
    left: -2px;
    z-index: 1;
}

.modal-content .footer-options label input[type="checkbox"]:checked {
    background-color: #f00;
    border-color: #f00;
}

.modal-content .footer-options label input[type="checkbox"]:checked::before {
    content: "";
    width: 14px;
    height: 14px;
    background-color: #f00;
    border-color: #f00;
    border-radius: 4px;
    position: absolute;
    top: -1px;
    left: -2px;
    z-index: 1;
}

.modal-content .footer-options label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    /* 对勾位置 */
    left: 4px;
    top: 0px;
    /* 对勾样式 */
    width: 4px;
    height: 10px;
    border: solid white;
    /* 对勾颜色 */
    border-width: 0 3px 3px 0;
    /* 旋转形成对勾 */
    transform: rotate(40deg);
    z-index: 2;
}

.modal-content .footer-options a {
    font-size: 16px;
    color: #f00;
    text-decoration: none;
    white-space: nowrap;
}

.modal-content .login-submit-btn {
    width: 100%;
    height: 40px;
    background-color: #f00;
    font-size: 16px;
    color: #fff;
    border-radius: 6px;
    outline: none;
    border: none;
    box-shadow: none;
    inset-inline: none;
    margin-top: 20px;
    margin-bottom: 10px;
    cursor: pointer;
}

.modal-content .btn-close {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 0px;
    right: 0px;
    cursor: pointer;
}

.modal-content .btn-close::after {
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    clip-path: polygon(20% 15%, 15% 20%, 45% 50%, 15% 80%, 20% 85%, 50% 55%, 80% 85%, 85% 80%, 55% 50%, 85% 20%, 80% 15%, 50% 45%);
    background-color: #333;
}

/* 移动端适配样式 */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 10px;
    }

    .login-container {
        height: auto;
        min-height: 10rem;
    }

    .login-btn {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .title {
        margin: 20px 0;
    }

    .grid-container {
        gap: 1rem 0.5rem;
        padding: 0 10px;
    }

    .card {
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
    }

    footer {
        height: auto;
        padding: 20px 0;
    }

    footer .content {
        width: 100%;
        padding: 0 10px;
    }

    .modal-content {
        width: 90%;
        max-width: 420px;
        margin: 20vh auto 0;
        padding: 30px 20px 50px;
    }

    .modal-content .login-submit-btn {
        height: 45px;
        font-size: 18px;
    }
}

/* 平板设备适配 */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 90%;
    }

    .grid-container {
        justify-content: space-between;
        gap: 1rem 0.5rem;
        padding: 0 10px;
    }

    .card {
        width: 48%;
    }

    .card img {
        width: 96%;
        height: auto;
        object-fit: cover;
    }

    .card .view-btn {
        font-size: 1.2rem;
        padding: 0.1rem 0.3rem;
        margin: 0.8rem auto;
    }

    .card .doc-desc {
        margin: 0.5rem 0;
    }

    .login-container {
        height: auto;
        min-height: 20rem;
    }

    footer {
        height: 14rem;
    }

    footer .content {
        width: 100%;
    }
}