/* ==========================================================================
   内页：房型、预订、内容页、相册、联系
   ========================================================================== */

/* ---------- 面包屑 ---------- */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--w-muted);
}

.crumbs a {
    color: var(--w-muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--w-green-deep);
}

/* ---------- 房型详情 ---------- */
.room-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(24px, 3.5vw, 48px);
    align-items: start;
}

.room-gallery-main {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #e7e0d2;
}

.room-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.thumb {
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--w-line);
    border-radius: 10px;
    background: #e7e0d2;
    cursor: pointer;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    margin: 22px 0;
    padding: 18px 20px;
    border: 1px solid var(--w-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .62);
}

.spec-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.spec-list dt {
    font-size: 13px;
    color: var(--w-muted);
}

.spec-list dd {
    margin: 0;
    font-size: 14px;
    color: var(--w-ink);
}

.room-text p {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--w-body);
}

.room-note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--w-muted);
}

/* ---------- 日历 + 预订面板 ---------- */
.booking-block {
    margin-top: clamp(40px, 5vw, 68px);
}

.booking-block-head {
    max-width: 640px;
    margin-bottom: 20px;
}

.booking-block-body {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr);
    gap: 20px;
    align-items: start;
}

.calendar {
    padding: 18px;
    border: 1px solid var(--w-line);
    border-radius: 18px;
    background: #fff;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cal-title {
    font-family: var(--w-serif);
    font-size: 17px;
    letter-spacing: .05em;
    color: var(--w-ink);
}

.cal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--w-line);
    border-radius: 50%;
    background: #fff;
    color: var(--w-green-deep);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.cal-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
}

.cal-week span {
    text-align: center;
    font-size: 11.5px;
    letter-spacing: .1em;
    color: var(--w-muted);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 58px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f7f4ec;
    font-family: inherit;
    cursor: pointer;
}

.cal-day .cal-num {
    font-size: 14px;
    color: var(--w-ink);
}

.cal-day .cal-price {
    font-size: 10.5px;
    color: var(--w-muted);
}

.cal-day.is-free:hover {
    background: #edf4ee;
    border-color: rgba(63, 106, 85, .35);
}

.cal-day.is-busy {
    background: #f1ede6;
    cursor: not-allowed;
}

.cal-day.is-busy .cal-num {
    color: #b9b2a6;
    text-decoration: line-through;
}

.cal-day.is-past {
    background: transparent;
    cursor: default;
}

.cal-day.is-past .cal-num {
    color: #cdc7bb;
}

.cal-day.is-empty {
    background: transparent;
    cursor: default;
}

.cal-day.is-start,
.cal-day.is-end {
    background: var(--w-green-deep);
}

.cal-day.is-start .cal-num,
.cal-day.is-end .cal-num,
.cal-day.is-start .cal-price,
.cal-day.is-end .cal-price {
    color: #fff;
}

.cal-day.is-in-range {
    background: rgba(63, 106, 85, .16);
}

.cal-legend {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--w-muted);
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
}

.dot-free { background: #cfe0d2; }
.dot-busy { background: #d9d2c6; }
.dot-pick { background: var(--w-green-deep); }

.booking-panel {
    position: sticky;
    top: 80px;
    padding: 20px;
    border: 1px solid var(--w-line);
    border-radius: 18px;
    background: #fff;
}

.booking-panel-label {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: .22em;
    color: var(--w-clay);
}

.booking-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--w-line);
    font-size: 14px;
    color: var(--w-muted);
}

.booking-line b {
    color: var(--w-ink);
    font-weight: 500;
}

.booking-line.booking-total {
    margin-top: 4px;
    border-bottom: none;
    font-size: 15px;
}

.booking-line.booking-total b {
    font-family: var(--w-serif);
    font-size: 24px;
    color: var(--w-green-deep);
}

.booking-hint {
    margin: 12px 0 16px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--w-muted);
}

.booking-panel .btn + .btn {
    margin-top: 10px;
}

/* ---------- 预订表单 ---------- */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: end;
}

.form-row .field {
    flex: 1 1 180px;
}

.form-row .field-small {
    flex: 0 0 120px;
}

.booking-form-main {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--w-line);
}

.form-title {
    margin: 0;
    font-family: var(--w-serif);
    font-size: 20px;
    letter-spacing: .05em;
    color: var(--w-ink);
}

.form-tip {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--w-muted);
}

.form-tip a {
    color: var(--w-green-deep);
}

.form-alt {
    margin-top: 20px;
    font-size: 14px;
    color: var(--w-muted);
}

.form-alt a {
    color: var(--w-green-deep);
}

.quote-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2f5242, #1f3a2e);
    color: #f4efe4;
}

.quote-label {
    margin: 0;
    font-family: var(--w-serif);
    font-size: 19px;
    color: #fdfaf2;
}

.quote-dates {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: rgba(244, 239, 228, .72);
}

.quote-total span {
    display: block;
    font-size: 11.5px;
    letter-spacing: .2em;
    color: rgba(244, 239, 228, .6);
}

.quote-total b {
    font-family: var(--w-serif);
    font-size: 30px;
    color: #f7e7cd;
}

/* ---------- 预订成功 ---------- */
.success-card {
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--w-line);
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e8f1e9;
    color: #2f6b46;
    font-size: 26px;
}

.success-list {
    display: grid;
    gap: 0;
    max-width: 520px;
    margin: 28px auto 0;
    text-align: left;
}

.success-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--w-line);
}

.success-list dt {
    font-size: 13px;
    color: var(--w-muted);
}

.success-list dd {
    margin: 0;
    font-size: 14px;
    color: var(--w-ink);
    text-align: right;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

/* ---------- 内容页 ---------- */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.prose {
    max-width: 720px;
    font-size: 15.5px;
    line-height: 2.05;
    color: var(--w-body);
}

.prose p {
    margin: 0 0 16px;
}

.prose h2,
.prose h3 {
    margin: 30px 0 12px;
    font-family: var(--w-serif);
    font-size: 21px;
    letter-spacing: .04em;
    color: var(--w-ink);
}

.prose ul,
.prose ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.prose li {
    margin-bottom: 8px;
}

.prose b {
    color: var(--w-green-deep);
}

.content-aside {
    position: sticky;
    top: 80px;
    padding: 20px;
    border: 1px solid var(--w-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .62);
}

.aside-title {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: .22em;
    color: var(--w-clay);
}

.aside-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aside-links a {
    font-size: 14px;
    color: var(--w-body);
    text-decoration: none;
}

.aside-links a:hover {
    color: var(--w-green-deep);
}

/* ---------- 相册 ---------- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tab {
    padding: 8px 16px;
    border: 1px solid var(--w-line);
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--w-muted);
    text-decoration: none;
    background: transparent;
}

.tab:hover {
    color: var(--w-green-deep);
}

.tab.is-active {
    background: var(--w-green-deep);
    border-color: var(--w-green-deep);
    color: #f7f2e7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--w-line);
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--w-muted);
}

.empty {
    padding: 60px 0;
    text-align: center;
    color: var(--w-muted);
}

/* ---------- 联系 ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(26px, 4vw, 56px);
    align-items: start;
}

.contact-info {
    padding: 24px;
    border: 1px solid var(--w-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .62);
}

.contact-rows {
    margin: 0 0 20px;
}

.contact-rows div {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--w-line);
}

.contact-rows dt {
    flex: 0 0 3.5em;
    font-size: 13px;
    letter-spacing: .1em;
    color: var(--w-muted);
}

.contact-rows dd {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--w-ink);
}

.contact-rows a {
    color: var(--w-green-deep);
}

.contact-form-wrap {
    padding: 24px;
    border: 1px solid var(--w-line);
    border-radius: 18px;
    background: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .room-detail,
    .booking-block-body,
    .content-layout,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .booking-panel,
    .content-aside {
        position: static;
    }

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

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

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cal-day {
        height: 50px;
    }

    .cal-day .cal-price {
        display: none;
    }

    .quote-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 预订页第一列（房型下拉）需要更宽，避免房型名被截断 */
.booking-form .field-wide {
    flex: 2 1 260px;
}

/* ---------- 文章 ---------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.article-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;
}

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

.article-cover {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #efe8da;
}

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

.article-card:hover .article-cover img {
    transform: scale(1.04);
}

.article-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: var(--w-serif);
    font-size: 20px;
    letter-spacing: .1em;
    color: var(--w-muted);
}

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

.article-meta {
    margin: 0;
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--w-clay);
}

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

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

.article-summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--w-muted);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-hero {
    display: block;
    width: 100%;
    margin-bottom: 26px;
    border-radius: 18px;
}

@media (max-width: 960px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .article-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 正文里的图片与视频（旧站迁移内容带图） */
.prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 14px 0;
    border-radius: 14px;
}

.prose video {
    display: block;
    width: 100%;
    margin: 14px 0;
    border-radius: 14px;
    background: #000;
}

.prose br + br {
    display: block;
    content: "";
    margin-top: 8px;
}

/* 表单里的重要提示（手机号/身份证必填） */
.form-tip--notice {
    margin: -4px 0 2px;
    padding: 10px 14px;
    border: 1px dashed rgba(180, 121, 90, .45);
    border-radius: 10px;
    background: #fdf7ee;
    color: #8a5a3c;
    font-size: 13px;
    line-height: 1.7;
}

.form-tip--notice strong {
    color: #a3452f;
}

/* ---------- 订单查询 ---------- */
.lookup-form {
    margin-bottom: 26px;
}

.lookup-form .field {
    flex: 1 1 260px;
}

.lookup-list {
    display: grid;
    gap: 16px;
}

.lookup-card {
    padding: 20px 22px;
    border: 1px solid var(--w-line);
    border-radius: 16px;
    background: #fff;
}

.lookup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.lookup-no {
    font-family: var(--w-serif);
    font-size: 16px;
    letter-spacing: .06em;
    color: var(--w-ink);
}

.lookup-status {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .08em;
    background: #f1ede6;
    color: var(--w-muted);
}

.lookup-status.is-0 {
    background: #fdf3e3;
    color: #8a5a2b;
}

.lookup-status.is-1 {
    background: #e9f2ea;
    color: #2f6b46;
}

.lookup-status.is-2 {
    background: #f2f0ec;
    color: #8b8578;
}

.lookup-status.is-3 {
    background: #e8eef3;
    color: #45607a;
}

.lookup-rows {
    margin: 0 0 14px;
}

.lookup-rows div {
    display: flex;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--w-line);
}

.lookup-rows div:last-child {
    border-bottom: none;
}

.lookup-rows dt {
    flex: 0 0 3.5em;
    font-size: 13px;
    color: var(--w-muted);
}

.lookup-rows dd {
    margin: 0;
    font-size: 14px;
    color: var(--w-ink);
}

.lookup-cancel {
    margin-top: 4px;
}

.lookup-hint {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--w-muted);
}
