:root {
    --primary: #0f766e;
    --primary-soft: #ccfbf1;
    --accent: #f97316;
    --bg: #f5f5f5;
    --text-main: #222;
    --text-sub: #666;
    --card-radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Roboto", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 顶部主视觉 */
.hero {
    background: linear-gradient(135deg, #0f766e, #22c55e);
    color: #fff;
    padding: 40px 16px 28px;
}
.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
}

/* 顶部：徽标 + 语言切换 */
.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid rgba(240, 253, 250, 0.35);
    white-space: nowrap;
}

.lang-switch {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-switch a {
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.8;
}

.lang-switch a:hover {
    opacity: 1;
    text-decoration: underline;
}

.lang-switch .active {
    font-weight: 600;
    color: #ffffff;
    opacity: 1;
    text-decoration: none;
}

.lang-sep {
    color: #9ca3af;
    opacity: 0.9;
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0 10px;
    line-height: 1.4;
}

.hero-sub {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 14px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-primary {
    background: #f97316;
    color: #fff;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    filter: brightness(1.05);
}

.hero-small-text {
    font-size: 12px;
    opacity: 0.9;
}

/* 布局 */
.page {
    max-width: 1080px;
    margin: 18px auto 40px;
    padding: 0 16px;
}

.layout {
    display: grid;
    grid-template-columns: 2.1fr 1.1fr;
    gap: 18px;
    align-items: flex-start;
}

@media (max-width: 860px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 18px 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.card h2 {
    font-size: 18px;
    margin: 0 0 10px;
}

.card h3 {
    font-size: 16px;
    margin: 12px 0 6px;
}

/* 文本与高亮块 */
.text-secondary {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.7;
}

.highlight-green,
.highlight-yellow,
.highlight-red {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 8px;
}

.highlight-green {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.highlight-yellow {
    background: #fffbeb;
    border: 1px solid #facc15;
}

.highlight-red {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* 金额 & 时间高亮 */
.highlight-money {
    color: #dc2626;
    font-weight: 800;
}

.highlight-time {
    color: #2563eb;
    font-weight: 700;
}

/* 列表、标签 */
.list-dot {
    padding-left: 18px;
    margin: 6px 0;
    font-size: 14px;
}
.list-dot li {
    margin-bottom: 4px;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #e5f6ff;
    color: #0369a1;
}

/* 位置与周边 */
.location-grid {
    display: grid;
    gap: 10px;
}
.location-item {
    font-size: 14px;
    color: var(--text-sub);
}
.location-item strong {
    color: var(--text-main);
}

/* 图集缩略图 + 大图预览 */
.villa-gallery {
    margin-top: 10px;
}
.villa-gallery h2 {
    font-size: 18px;
    margin-bottom: 6px;
}
.gallery-subtitle {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.gallery-thumb {
    position: relative;
    padding-top: 70%; /* 约 4:3 比例缩略图 */
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    background: #000;
}
.gallery-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
.gallery-thumb:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

.gallery-tip {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 96vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -32px;
    right: 0;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}
@media (max-width: 600px) {
    .lightbox-close {
        top: -30px;
        right: 4px;
    }
}

/* 侧栏 */
.side-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.side-small {
    font-size: 12px;
    color: var(--text-sub);
}

.side-list {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 8px;
    padding-left: 16px;
}

.contact-row {
    margin-top: 10px;
    font-size: 13px;
}
.contact-row div {
    margin-bottom: 4px;
}

.contact-highlight {
    background: var(--primary-soft);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    margin-top: 10px;
}

/* 联系方式高亮样式 */
.contact-id {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.contact-wechat {
    background: #07c160;
    color: #ffffff;
}
.contact-line {
    background: #00c300;
    color: #ffffff;
}
@media (max-width: 600px) {
    .contact-id {
        font-size: 14px;
    }
}

/* 联系方式二维码缩略图 */
.qr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.qr-item {
    font-size: 12px;
    color: var(--text-sub);
}
.qr-label {
    margin-bottom: 4px;
}
.qr-thumb {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}
.qr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 复制微信弹窗 */
.copy-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.copy-mask.active {
    display: flex;
}

.copy-box {
    width: 280px;
    background: #fff;
    border-radius: 14px;
    text-align: center;
    padding: 20px 18px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.copy-box h3 {
    font-size: 18px;
    margin: 0 0 8px;
}
.copy-box p {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}
.copy-id {
    background: #07c160;
    color: #fff;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-block;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.copy-box button {
    background: #f97316;
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
}

/* 页脚 */
footer {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    padding: 18px 0 26px;
}
