/* ==========================================================================
   首页：照片首屏 + 查价卡 + 房型 + 相册 + 联系
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(780px, 88vh);
    padding: 96px 24px 30px;
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 29, 23, .16) 0%, rgba(18, 29, 23, .44) 50%, rgba(18, 29, 23, .8) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

.hero-eyebrow {
    margin: 0 0 12px;
    color: #e9d9c2;
    font-size: 12px;
    letter-spacing: .38em;
}

.hero-title {
    margin: 0;
    font-family: var(--w-serif);
    font-size: clamp(40px, 6.6vw, 74px);
    line-height: 1.05;
    letter-spacing: .12em;
    color: #fdfaf2;
    font-weight: 600;
}

.hero-sub {
    margin: 18px 0 0;
    font-family: var(--w-serif);
    font-size: clamp(17px, 2vw, 22px);
    letter-spacing: .05em;
    color: #f4ecdd;
}

.hero-desc {
    margin: 14px 0 0;
    max-width: 36em;
    font-size: 15px;
    line-height: 1.95;
    color: rgba(253, 250, 242, .82);
}

.search-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr .7fr auto;
    gap: 12px;
    align-items: end;
    width: 100%;
    max-width: 1160px;
    margin: 30px auto 0;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 26px 50px -34px rgba(12, 24, 18, .8);
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.search-field label {
    font-size: 11.5px;
    letter-spacing: .16em;
    color: var(--w-muted);
}

.search-field input,
.search-field select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--w-line);
    border-radius: 10px;
    background: #fff;
    color: var(--w-ink);
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.search-submit {
    height: 44px;
    padding: 0 22px;
}

/* ---------- 区块 ---------- */
.section {
    max-width: 1160px;
    margin: 0 auto;
    padding: clamp(48px, 6.5vw, 92px) 24px 0;
}

.section-head {
    max-width: 660px;
    margin-bottom: clamp(24px, 3.4vw, 40px);
}

/* ---------- 房型卡片 ---------- */
.room-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.room-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--w-line);
    border-radius: 18px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.room-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 46px -30px rgba(31, 45, 39, .5);
}

.room-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e7e0d2;
}

.room-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.room-card:hover .room-media img {
    transform: scale(1.04);
}

.room-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 20px;
}

.room-name {
    margin: 0;
    font-family: var(--w-serif);
    font-size: 19px;
    letter-spacing: .03em;
}

.room-name a {
    color: var(--w-ink);
    text-decoration: none;
}

.room-meta {
    margin: 0;
    font-size: 13px;
    color: var(--w-muted);
}

.room-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--w-body);
}

.room-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
}

.room-price {
    font-size: 13px;
    color: var(--w-muted);
}

.room-price b {
    font-family: var(--w-serif);
    font-size: 20px;
    color: var(--w-green-deep);
}

/* ---------- 关于 ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.about-body p {
    margin: 0 0 16px;
    font-size: 15.5px;
    line-height: 2;
    color: var(--w-body);
}

.about-body .section-title {
    margin-bottom: 20px;
}

.about-sign {
    margin-top: 24px;
    font-family: var(--w-serif);
    font-size: 15px;
    letter-spacing: .12em;
    color: var(--w-green-deep);
}

.about-facts {
    display: grid;
    gap: 14px;
}

.fact {
    padding: 20px 22px;
    border: 1px solid var(--w-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .62);
}

.fact-no {
    font-size: 11px;
    letter-spacing: .26em;
    color: var(--w-clay);
}

.fact-title {
    margin: 8px 0 6px;
    font-family: var(--w-serif);
    font-size: 18px;
    letter-spacing: .06em;
    color: var(--w-ink);
}

.fact-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: var(--w-muted);
}

/* ---------- 相册条 ---------- */
.photo-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.photo-strip-item {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 14px;
    background: #e7e0d2;
}

.photo-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.photo-strip-item:hover img {
    transform: scale(1.06);
}

/* ---------- 联系卡 ---------- */
.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(26px, 4vw, 52px);
    align-items: center;
    padding: clamp(28px, 4vw, 52px);
    border-radius: 24px;
    background: linear-gradient(140deg, #33573f 0%, #1f3a2e 100%);
    color: #f2ecdd;
    box-shadow: 0 30px 60px -36px rgba(31, 58, 46, .9);
}

.contact-card .eyebrow {
    color: #d7b28f;
}

.contact-card .section-title {
    color: #fdfaf2;
}

.contact-copy {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.95;
    color: rgba(242, 236, 221, .8);
}

.contact-copy a {
    color: #f0d9b8;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(242, 236, 221, .14);
}

.contact-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.contact-label {
    flex-shrink: 0;
    width: 4.5em;
    font-size: 12px;
    letter-spacing: .22em;
    color: rgba(242, 236, 221, .55);
}

.contact-value {
    font-size: 15px;
    letter-spacing: .04em;
    color: rgba(242, 236, 221, .9);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .search-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-submit {
        grid-column: 1 / -1;
    }

    .room-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid,
    .contact-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .photo-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: 72px 20px 26px;
    }

    .room-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .photo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .room-card,
    .room-media img,
    .photo-strip-item img,
    .btn {
        transition: none;
    }

    .room-card:hover,
    .btn-solid:hover {
        transform: none;
    }
}

/* ---------- 手机端首屏 ---------- */
@media (max-width: 900px) {
    .hero-inner,
    .search-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .search-card {
        margin-top: 22px;
    }

    .hero {
        min-height: 72vh;
    }
}

/* ---------- 手机端：用左右外边距代替 100% + padding，避免撑出屏幕 ---------- */
@media (max-width: 900px) {
    .hero-inner {
        width: auto;
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 0;
        padding-right: 0;
    }

    .search-card {
        width: auto;
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
        padding: 14px;
        grid-template-columns: minmax(0, 1fr);
    }

    .search-field,
    .search-field select,
    .search-field input,
    .search-submit {
        width: 100%;
        min-width: 0;
    }
}
