@import url("front-theme.css?v=2026081920");

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    color: var(--tj-text);
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----- header ----- */
.home-header {
    background: var(--tj-red);
    color: #fff;
    height: 76px;
    flex-shrink: 0;
}

.home-header-inner {
    width: 1200px;
    max-width: calc(100% - 40px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.brand-qr {
    height: 52px;
    width: 52px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

.header-motto {
    height: 36px;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: 28px;
    filter: brightness(0) invert(1);
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-login,
.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    transition: opacity .2s ease, transform .2s ease;
}

.btn-login {
    background: #3f3f3f;
    color: #fff;
}

.btn-register {
    background: #fff;
    color: var(--tj-red);
}

.btn-login:hover,
.btn-register:hover {
    opacity: .88;
}

.home-header .zhuxiao,
.tj-header .zhuxiao {
    display: none;
}

.tj-header.is-logged-in .zhuxiao {
    display: flex;
}

.homeGN {
    display: none;
}

.dropdown-content-wap {
    display: none;
}

/* ----- hero ----- */
.hero {
    flex: 1;
    background: url("../img/background.jpg") center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0 56px;
    position: relative;
}

.hero-inner {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.news-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.news-card {
    min-height: 0;
    padding: 20px 20px 14px;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--tj-shadow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.news-card:hover,
.news-card.is-active {
    background: var(--tj-red);
    color: #fff;
    transform: translateY(-4px);
}

.news-day {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
}

.news-month {
    margin-top: 4px;
    font-size: 13px;
    color: var(--tj-muted);
}

.news-card.is-active .news-month,
.news-card:hover .news-month {
    color: rgba(255, 255, 255, .82);
}

.news-title {
    margin: 14px 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    min-height: calc(1.45em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-outline {
    font-size: 13px;
    line-height: 1.6;
    color: #7a7a7a;
    overflow: hidden;
    flex: 0 0 auto;
    white-space: normal;
    word-break: break-word;
}

.news-card.is-active .news-outline,
.news-card:hover .news-outline {
    color: rgba(255, 255, 255, .78);
}

.news-arrow {
    align-self: flex-end;
    margin-top: 10px;
    font-size: 18px;
    color: #c5c5c5;
    line-height: 1;
}

.news-card.is-active .news-arrow,
.news-card:hover .news-arrow {
    color: #fff;
}

.news-card.is-skel,
.news-card.is-skel:hover {
    min-height: 220px;
    background: #fff;
    color: inherit;
    transform: none;
    cursor: default;
    pointer-events: none;
    box-shadow: var(--tj-shadow);
}

.news-skel {
    display: block;
    border-radius: 4px;
    background: linear-gradient(90deg, #f4eeeb 25%, #faf7f6 50%, #f4eeeb 75%);
    background-size: 400% 100%;
    animation: news-skel-shimmer 1.2s ease infinite;
}

.news-skel-day {
    height: 36px;
    width: 46px;
}

.news-skel-month {
    height: 12px;
    width: 72px;
    margin-top: 8px;
}

.news-skel-title {
    height: 16px;
    width: 86%;
    margin: 22px 0 12px;
}

.news-skel-line {
    height: 12px;
    width: 100%;
    margin: 8px 0;
}

.news-skel-line.is-short {
    width: 62%;
}

@keyframes news-skel-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.service-bar {
    margin-top: 36px;
    background: rgba(255, 255, 255, .42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 10px;
    box-shadow: var(--tj-shadow);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 8px;
    position: relative;
    align-self: stretch;
    transition: background-color .2s ease;
}

.service-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: rgba(89, 32, 25, .12);
}

.service-item img {
    height: 112px;
    width: auto;
    max-width: 92%;
    display: block;
}

.service-item:hover {
    background: rgba(255, 255, 255, .28);
}

.service-item:hover img {
    transform: translateY(-2px);
    transition: transform .2s ease;
}

/* ----- footer ----- */
.home-footer {
    background: var(--tj-red);
    color: #fff;
    text-align: center;
    padding: 16px 16px 18px;
    flex-shrink: 0;
    font-size: 13px;
    line-height: 1.8;
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.footer-contact img {
    height: 14px;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
}

.home-footer a {
    color: #fff;
}

.home-footer a:hover {
    text-decoration: underline;
}

.homeNav {
    display: none;
}

@media screen and (max-width: 1100px) {
    .header-motto,
    .tj-header-motto {
        display: none;
    }

    .news-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 767px) {
    .page {
        position: relative;
    }

    .home-header,
    .page > .tj-header {
        display: none;
    }

    body .homeNav {
        position: absolute;
        top: 46px;
        left: 0;
        width: 200px;
        margin: 0;
        border-right: none;
        z-index: 1300;
        background: transparent;
        box-shadow: 2px 8px 16px rgba(0, 0, 0, .16);
    }

    body .homeNav .layui-nav-tree {
        width: 100%;
    }

    .homeGN {
        display: flex;
        align-items: center;
        height: 46px;
        background: var(--tj-red);
        color: #fff;
        flex-shrink: 0;
    }

    .navGN,
    .loginGN {
        width: auto;
        min-width: 48px;
        text-align: center;
        line-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .tj-mobile-menu-icon {
        display: inline-block;
        width: 18px;
        height: 2px;
        background: #fff;
        box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
        vertical-align: middle;
    }

    .navGN img {
        display: none;
    }

    .loginGN .tj-mobile-user-icon {
        font-size: 22px;
        line-height: 46px;
        color: #fff;
    }

    .tj-mobile-user-name {
        display: none;
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        color: #fff;
        line-height: 46px;
    }

    .homeTitle {
        flex: 1;
        text-align: center;
        font-size: 17px;
    }

    .dropdown-content-wap {
        display: none;
        position: fixed;
        top: 46px;
        right: 0;
        left: auto;
        min-width: 168px;
        padding: 6px 0;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
        z-index: 99999;
        overflow: hidden;
        border-radius: 0 0 0 8px;
    }

    .dropdown-content-wap.is-open {
        display: block !important;
    }

    .dropdown-content-wap a {
        display: block;
        padding: 10px 16px;
        color: #333;
    }

    .dropdown-content-wap a:hover {
        background: var(--tj-red);
        color: #fff;
    }

    .hero {
        padding: 18px 0 28px;
        justify-content: flex-start;
    }

    .hero-inner {
        width: auto;
        max-width: none;
        margin: 0 12px;
        display: flex;
        flex-direction: column;
    }

    .news-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        order: 2;
    }

    .news-card {
        min-height: 0;
        padding: 14px 12px 12px;
    }

    .news-skel-day {
        height: 28px;
        width: 38px;
    }

    .news-skel-title {
        margin: 14px 0 10px;
    }

    .news-day {
        font-size: 30px;
    }

    .news-title {
        font-size: 14px;
        margin: 10px 0 8px;
    }

    .service-bar {
        order: 1;
        margin-top: 0;
        margin-bottom: 16px;
        grid-template-columns: 1fr 1fr;
        min-height: 0;
    }

    .service-item {
        padding: 18px 6px;
    }

    .service-item:not(:last-child)::after {
        display: none;
    }

    .service-item:nth-child(odd) {
        border-right: 1px solid rgba(89, 32, 25, .12);
    }

    .service-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(89, 32, 25, .12);
    }

    .service-item img {
        height: 86px;
    }

    .home-footer {
        font-size: 12px;
        padding: 12px 10px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 4px;
    }
}
