@charset "utf-8";

/* ==========================================================================
   首页专属层：快捷服务、服务矩阵、照片墙、悬浮工具和首页区块背景
   ========================================================================== */

.quick-services {
    position: relative;
    z-index: 10;
    padding: 45px 0 35px;
    background: var(--bg-cream);
    border-bottom: 1px solid rgba(0, 121, 124, .1);
    font-family: var(--font-heading);
}

.qs-wrap {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: stretch;
}

.qs-item {
    position: relative;
    display: flex;
    min-height: 116px;
    padding: 0 15px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: var(--text-dark);
    text-align: center;
}

.qs-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    width: 1px;
    height: 70%;
    background: var(--luojia-light);
    opacity: .5;
}

.qs-icon {
    display: flex;
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    color: var(--luojia-green);
    transition: color .4s ease, transform .4s ease;
}

.qs-icon svg {
    width: 36px;
    height: 36px;
}

.qs-title {
    display: block;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color .4s ease;
}

.qs-item:hover .qs-icon {
    color: var(--luojia-gold);
    transform: translateY(-5px) scale(1.05);
}

.qs-item:hover .qs-title {
    color: var(--luojia-green);
}

.notice-ticker-section {
    padding: 34px 0 48px;
}

.notice-ticker {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 112px;
    padding: 0 34px 0 28px;
    align-items: center;
    overflow: visible;
    background: linear-gradient(145deg, #ffffff 0%, #fffdf8 54%, #faf3e8 100%);
    border: 1px solid rgba(0, 121, 124, .16);
    border-bottom-color: rgba(0, 121, 124, .22);
    border-left: 5px solid var(--luojia-gold);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(0, 121, 124, .11), 0 6px 14px rgba(21, 43, 38, .06), 0 1px 0 rgba(255, 255, 255, .95) inset;
}

.notice-ticker::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, 0) 46%);
}

.notice-ticker::after {
    content: "";
    position: absolute;
    left: 36px;
    right: 30px;
    bottom: -10px;
    height: 16px;
    border-radius: 50%;
    background: rgba(20, 52, 45, .08);
    filter: blur(14px);
    pointer-events: none;
    z-index: -1;
}

.notice-ticker > * {
    position: relative;
    z-index: 1;
}

.notice-ticker-heading {
    position: relative;
    display: flex;
    flex: 0 0 176px;
    margin-right: 24px;
    padding: 18px 24px 18px 18px;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(0, 121, 124, .16);
}

.notice-ticker-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 4px;
    background: var(--luojia-gold);
}

.notice-ticker-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--luojia-gold);
    font-family: var(--font-san);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.notice-ticker-heading h2 {
    margin: 0;
    color: var(--luojia-green);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
}

.notice-ticker-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.notice-ticker-track {
    display: flex;
    width: max-content;
    animation: noticeTicker 30s linear infinite;
}

.notice-ticker-viewport:hover .notice-ticker-track,
.notice-ticker-viewport:focus-within .notice-ticker-track {
    animation-play-state: paused;
}

.notice-ticker-group {
    display: flex;
    flex: 0 0 auto;
    gap: 34px;
    padding-right: 34px;
    align-items: center;
}

.notice-ticker-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-family: var(--font-san);
    font-size: 16px;
    line-height: 1.5;
    white-space: nowrap;
    transition: color .25s ease;
}

.notice-ticker-item::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--luojia-gold);
}

a.notice-ticker-item:hover {
    color: var(--luojia-green);
}

.notice-ticker-date {
    display: inline-flex;
    height: 24px;
    padding: 0 10px;
    align-items: center;
    color: var(--text-muted);
    background: rgba(0, 121, 124, .07);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    line-height: 24px;
}

.notice-ticker-text {
    display: block;
    color: inherit;
    font-size: 16px;
    font-weight: 500;
}

.notice-ticker-status .notice-ticker-date {
    color: var(--luojia-green);
    background: rgba(239, 212, 141, .28);
    font-weight: 700;
}

.notice-ticker-status .notice-ticker-text {
    color: var(--luojia-green);
    font-weight: 600;
}

.notice-ticker-more {
    flex: 0 0 auto;
    margin: auto 0 auto 22px;
    white-space: nowrap;
}

@keyframes noticeTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .notice-ticker-track {
        animation: none;
        transform: none;
    }
}

.home-dj {
    background: var(--bg-cream);
}

.home-photo {
    background: var(--bg-cream);
}

.announcement-section {
    background: var(--bg-cream);
}

/* 服务矩阵 */
.service-matrix {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 40px 0 50px;
    font-family: var(--font-san);
}

.sm-col {
    position: relative;
    padding: 0 10px;
}

.sm-col:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 5%;
    width: 1px;
    height: 90%;
    background: rgba(0, 0, 0, .06);
}

.sm-header {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 18px;
    text-align: center;
}

.sm-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 1px;
    background: rgba(0, 121, 124, .2);
    transform: translateX(-50%);
}

.sm-header::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    z-index: 2;
    width: 8px;
    height: 8px;
    background: var(--bg-cream);
    border-right: 1px solid rgba(0, 121, 124, .2);
    border-bottom: 1px solid rgba(0, 121, 124, .2);
    transform: translateX(-50%) rotate(45deg);
}

.sm-header h3 {
    margin: 0 0 6px;
    color: var(--luojia-green);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.sm-header p {
    margin: 0;
    color: #999999;
    font-family: "Times New Roman", serif;
    font-size: 12px;
    text-transform: capitalize;
}

.sm-item {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
    flex-direction: column;
    color: #444444;
    text-align: center;
}

.sm-icon-wrap {
    position: relative;
    display: flex;
    width: 75px;
    height: 75px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px dashed rgba(0, 121, 124, .35);
    border-radius: 50%;
    transition: border-color .4s ease, box-shadow .4s ease;
}

.sm-icon-svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.sm-item span:last-child {
    font-size: 15px;
    font-weight: 500;
    transition: color .4s ease;
}

.sm-item:hover .sm-icon-wrap {
    border-color: var(--luojia-green);
    box-shadow: 0 6px 20px rgba(0, 121, 124, .15);
}

.sm-item:hover .sm-icon-svg {
    transform: scale(1.15) translateY(-2px);
}

.sm-item:hover span:last-child {
    color: var(--luojia-green);
}

/* 照片墙 */
.photo-wall-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
    margin-top: 40px;
}

.photo-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #ffffff;
    background: #163735;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25, .46, .45, .94);
}

.photo-item:hover img,
.photo-item:focus-visible img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity .4s ease;
}

.photo-item:hover .photo-overlay,
.photo-item:focus-visible .photo-overlay {
    opacity: 1;
}

.photo-txt {
    display: block;
    color: #ffffff;
    text-align: left;
    transform: translateY(20px);
    transition: transform .4s ease;
}

.photo-item:hover .photo-txt,
.photo-item:focus-visible .photo-txt {
    transform: translateY(0);
}

.photo-title {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.photo-desc {
    display: block;
    font-family: var(--font-san);
    font-size: 14px;
    opacity: .84;
}

.photo-large {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-dialog {
    width: min(92vw, 980px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    background: #111111;
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .45);
}

.photo-dialog::backdrop {
    background: rgba(0, 0, 0, .72);
}

.photo-dialog img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: #111111;
}

.photo-dialog-caption {
    padding: 20px 24px 24px;
    background: #ffffff;
    color: var(--text-dark);
}

.photo-dialog-caption h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--luojia-green);
}

.photo-dialog-caption p {
    margin-top: 6px;
    color: var(--text-gray);
}

.photo-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: rgba(0, 0, 0, .52);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    cursor: pointer;
}

.news-img-swiper .swiper-pagination {
    display: none !important;
}

[data-placeholder="true"] {
    cursor: pointer;
}

@media (max-width: 1199px) {
    .qs-wrap {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 26px;
    }

    .qs-item:nth-child(3n)::after,
    .qs-item:nth-child(6)::after {
        display: none;
    }

    .service-matrix {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 0;
    }

    .sm-col:nth-child(3n)::after,
    .sm-col:last-child::after {
        display: none;
    }
}

@media (max-width: 991px) {
    .photo-wall-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .photo-large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 767px) {
    .quick-services {
        padding: 32px 0;
    }

    .qs-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
    }

    .qs-item {
        min-height: 104px;
    }

    .qs-item::after {
        display: none;
    }

    .qs-item:nth-child(odd)::after {
        display: block;
    }

    .notice-ticker-section {
        padding: 26px 0 40px;
    }

    .notice-ticker {
        min-height: 0;
        padding: 18px;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .notice-ticker::after {
        left: 22px;
        right: 22px;
        bottom: -10px;
        height: 16px;
        filter: blur(11px);
    }

    .notice-ticker-heading {
        display: block;
        flex: none;
        margin-right: 0;
        padding-right: 86px;
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(0, 121, 124, .16);
    }

    .notice-ticker-kicker {
        margin: 2px 0 0;
    }

    .notice-ticker-heading h2 {
        font-size: 22px;
    }

    .notice-ticker-track {
        animation-duration: 24s;
    }

    .notice-ticker-group {
        gap: 24px;
        padding-right: 24px;
    }

    .notice-ticker-item {
        gap: 9px;
        font-size: 15px;
    }

    .notice-ticker-more {
        position: absolute;
        top: 24px;
        right: 18px;
        margin: 0;
    }

    .service-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
        margin-bottom: 20px;
    }

    .sm-col {
        padding: 0 8px;
    }

    .sm-col::after {
        display: none;
    }

    .sm-header {
        margin-bottom: 28px;
    }

    .sm-icon-wrap {
        width: 66px;
        height: 66px;
    }

    .photo-wall-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
    }

    .photo-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .photo-overlay {
        opacity: 1;
        padding: 20px;
    }

    .photo-txt {
        transform: none;
    }

}

@media (max-width: 479px) {
    .qs-title,
    .sm-item span:last-child {
        font-size: 14px;
    }

    .service-matrix {
        grid-template-columns: 1fr;
    }
}
