/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif !important;
}

html, body {
    overflow: hidden;
    line-height: 1.6;
    color: #333;
}

/* 全屏滚动容器 */
.scroll-container {
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* 全屏板块核心样式 - 预留底部空间给箭头 */
.full-screen-section {
    width: 100%;
    height: 100vh !important;
    min-height: 100vh !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    padding-bottom: 80px !important; /* 关键：给箭头留空间 */
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 通用标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title span {
    display: block;
    color: #b8860b;
    font-size: 14px;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: bold;
}

.section-title.light h2 {
    color: #fff;
}

/* ==========================
   🔥 导航栏改造：logo大幅放大+胶囊同步适配
========================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: auto !important;
    min-width: unset !important;
    max-width: unset !important;
    height: auto;
    background: rgb(188, 121, 92) !important;
    border-radius: 0 70px 70px 0; /* 圆角同步加大，匹配大logo */
    padding: 18px 30px !important; /* 增大内边距，确保胶囊比Logo大 */
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2) !important; /* 阴影稍加重，更立体 */
    z-index: 9999;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border: none;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block !important;
}
.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: unset !important;
}

/* Logo尺寸超大幅放大（核心调整）+ 完整显示不压缩 */
.logo-img {
    height: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}

/* 🔥 完全移除导航菜单样式 */
.nav-menu {
    display: none !important;
}

/* 首屏板块样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/首頁背景.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    z-index: 10;
}

.hero-main-title {
    font-size: 50px;
    font-weight: bold;
    margin: 0 0 15px 0;
    line-height: 1.2;
    letter-spacing: 2px;
    animation: slideUp 1.5s ease-out forwards;
    transform: translateY(50px);
    opacity: 0;
}

.hero-subtitle {
    font-size: 30px;
    font-weight: normal;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 2px;
    opacity: 0.95;
    animation: slideUp 1.8s ease-out forwards;
    transform: translateY(50px);
    opacity: 0;
}

/* 向下箭头终极修复：位置+层级+显示 */
.scroll-down {
    position: absolute !important;
    bottom: 70px !important; /* 电脑版保持原有位置 */
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999999 !important; /* 最高层级，不被任何元素遮挡 */
    text-decoration: none !important;
    cursor: pointer;
    animation: simpleFloat 1.8s ease-in-out infinite;
    pointer-events: auto !important;
    width: 50px;
    height: 50px;
}

/* Font Awesome图标强制显示修复 */
.scroll-down .icon {
    font-size: 40px !important;
    color: #b8860b !important;
    transition: all 0.3s ease;
    font-family: "Font Awesome 6 Free" !important; /* 强制指定字体 */
    font-weight: 900 !important; /* 必须加权重 */
}

.hero .scroll-down .icon {
    color: #ffffff !important;
}

.scroll-down:hover .icon {
    color: #d4a520 !important;
    transform: scale(1.1);
}

/* 箭头动画 */
@keyframes simpleFloat {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 内容区域通用样式 */
.content-box {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
    font-size: 17px;
    color: #555;
}

/* 深色板块 */
.dark-section {
    background: #1a1a1a;
    color: #fff;
}

.facilities-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.facility-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 200px;
    transition: all 0.3s ease;
}

.facility-card:hover {
    border-color: #b8860b;
    transform: translateY(-5px);
}

.facility-card .icon {
    width: 40px;
    height: 40px;
    fill: #b8860b;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 底部板块 */
.footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

/* Redesigned contact layout */
.contact-grid {
    display: flex;
    gap: 28px;
    align-items: stretch;
    justify-content: space-between;
    padding: 36px 0 24px;
}
.contact-panel {
    flex: 1 1 560px;
    background: linear-gradient(180deg, rgba(12,12,13,0.85), rgba(12,12,13,0.78));
    border-radius: 14px;
    padding: 30px 28px;
    box-shadow: 0 14px 40px rgba(3,6,10,0.6);
    border-left: 4px solid rgba(184,134,11,0.9);
}
.contact-panel h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 10px;
}
.contact-info p {
    color: #ddd;
    margin: 8px 0;
    font-size: 15px;
}
.contact-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.contact-actions {
    margin-top: 8px;
    display: none; /* 不在 footer 中显示按钮，按用户需求移除 */
}

/* Footer: 重新布局 contact-panel，移除按钮后使用简洁信息卡样式 */
.contact-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 0;
}
.contact-panel .contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-panel .contact-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.contact-panel .contact-row .text {
    color: #e8e8e8;
    font-size: 15px;
}

.disclaimer-card {
    flex: 0 1 420px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 12px;
    padding: 22px;
    color: #e6e6e6;
    font-size: 13px;
    line-height: 1.6;
    border-left: 3px solid rgba(255,255,255,0.03);
    text-align: left;
}

/* Footer balance adjustments */
.contact-grid {
    align-items: stretch;
}
.contact-panel {
    flex: 1 1 520px;
}
.disclaimer-card {
    flex: 0 1 360px;
}

.disclaimer-card p:first-child { font-weight: 700; color: #fff; margin-bottom: 10px; }

@media (max-width: 768px) {
    .contact-grid { flex-direction: column; gap: 18px; padding: 20px 0; }
    .contact-panel, .disclaimer-card { width: 100%; padding: 16px; }
    .contact-panel h2 { font-size: 20px; }
    .contact-actions { justify-content: center; }
}

.footer-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #b8860b;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info .whatsapp-link {
    color: #25D366;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info .whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

/* 免责声明样式 */
.disclaimer {
    margin-top: 25px;
    padding: 20px 0;
    text-align: left;
    color: #999;
    font-size: 12px;
    line-height: 1.6;
    border-top: 1px solid #333;
    max-width: 90%;
    margin: 25px auto 0;
}

.disclaimer p {
    margin: 0 0 8px 0;
}

.disclaimer p:first-child {
    font-weight: bold;
    color: #ccc;
    margin-bottom: 10px;
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
}

/* 项目概览板块 - 电脑版保持原有样式不变 */
.about-section {
    background-color: rgb(243, 238, 232);
}

/* 新增：交通便利全屏板塊背景与其他板块一致 */
.transport-full {
    background-color: rgb(243, 238, 232);
}

/* 交通便利：桌面以背景图（cover）展示，类似首页 hero；移动端显示完整图片且可点击放大 */
.transport-full {
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('images/交通便利.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* transport mobile-only content (title + stacked images) */
.transport-mobile-content { display: none; }


/* 桌面隐藏内部 img（使用背景图展示） */
@media (min-width: 769px) {
    .transport-full .geo-main-img-box {
        display: none !important;
    }
}

/* 移动端使用内嵌图片显示完整图片，保持可点击放大 */
@media (max-width: 768px) {
    .transport-full {
        background: rgb(243, 238, 232) !important;
        background-image: none !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    .transport-full .geo-main-img-box {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .transport-full .geo-main-img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }
    /* show transport mobile content */
    .transport-mobile-content { display: block !important; }
    .transport-grid .geo-main-img { width: 100% !important; height: auto !important; }
}

/* 教育板塊重構：標題在上，下面兩張並列圖片，背景色延續 243,238,232 */
#education .geo-layout {
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
}

.floorplan-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}
.floorplan-item {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floorplan-item .geo-main-img-box {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    overflow: hidden;
}
.floorplan-item .geo-main-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, opacity 0.4s ease;
}
.floorplan-item .geo-main-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.floorplan-item .geo-main-img-box {
    animation: fadeUp 0.6s ease both;
}

/* 教育標題與橫線置中（僅作用於 #education） */
#education .geo-text-wrapper {
    text-align: center !important;
}
#education .geo-main-title {
    white-space: normal !important;
    text-align: center !important;
}
#education .geo-title-line {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 手机端：楼层平面图改为上下展示 */
@media (max-width: 768px) {
    .floorplan-grid {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .floorplan-item .geo-main-img-box {
        max-width: 100% !important;
    }
}

.project-overview-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    width: 100%;
    margin-bottom: 20px; /* 预留图片下方空间 */
}

.overview-text {
    flex: 0 0 40%;
    min-width: 300px;
}

.overview-title {
    font-size: 30px;
    letter-spacing: 2px;
    color: #333;
    margin-bottom: 12px;
    text-align: left;
    font-weight: bold;
}

.title-line {
    width: 80px;
    height: 4px;
    background-color: rgb(77, 36, 15);
    margin-bottom: 30px;
}

.overview-table {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px 10px;
    font-size: 16px;
    color: #555;
}

.table-label {
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
    font-size: 16px;
    text-align: left;
}

.table-value {
    font-size: 16px;
    letter-spacing: 1px;
    color: black;
    text-align: left;
    white-space: nowrap;
}

/* 确保标签也在一行显示，除非手动换行 (<br>) */
.overview-table .table-label {
    white-space: nowrap;
}

.overview-image {
    flex: 0 0 55%;
    min-width: 300px;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    max-height: 420px; /* 桌面放大主图，统一更方便观看的尺寸 */
}

/* 地理交通/教育配套板块 */
#location.location-section,
#education.location-section {
    background-color: rgb(243, 238, 232);
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#location .geo-layout,
#education .geo-layout {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
    align-items: center !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#location .geo-text-wrapper,
#education .geo-text-wrapper {
    flex: 4 !important;
    min-width: unset !important;
    padding: 20px 0;
}

/* 交通板块：交换比例（图/文互换后，图区缩小为4，文区放大为6） */
#location .geo-text-wrapper {
    flex: 6 !important;
}

#location .geo-image-wrapper {
    flex: 4 !important;
}

/* 核心修复：教育板块标题强制一行+缩小字体 */
#location .geo-main-title,
#education .geo-main-title {
    font-size: 40px;
    letter-spacing: 2px;
    color: #333;
    margin-bottom: 12px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap; /* 强制一行 */
    overflow: hidden; /* 隐藏溢出 */
    text-overflow: ellipsis; /* 超出显示省略号（可选） */
}

#location .geo-title-line,
#education .geo-title-line {
    width: 80px;
    height: 4px;
    background-color: rgb(77, 36, 15);
    margin-bottom: 30px;
}

#location .geo-desc,
#education .geo-desc {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin: 0;
    letter-spacing: 1px;
}

#location .geo-image-wrapper,
#education .geo-image-wrapper {
    flex: 6 !important;
    min-width: unset !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 会所板块专属样式 */
#clubhouse.location-section {
    background-color: rgb(243, 238, 232);
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#clubhouse .geo-layout {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 50px !important;
    align-items: center !important;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

#clubhouse .geo-text-wrapper {
    flex: 5 !important;
    min-width: unset !important;
    padding: 30px 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

#clubhouse .geo-main-title {
    font-size: 40px;
    letter-spacing: 3px;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    font-weight: bold;
    line-height: 1.3;
}

#clubhouse .geo-title-line {
    width: 100px;
    height: 4px;
    background-color: rgb(77, 36, 15);
    margin-bottom: 35px;
}

#clubhouse .geo-desc {
    font-size: 16px !important;
    color: #333;
    line-height: 2.0 !important;
    margin: 0;
    letter-spacing: 1.2px;
    text-align: justify;
    word-break: break-word;
}

#clubhouse .geo-image-wrapper {
    flex: 7 !important;
    min-width: unset !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 通用图片/缩略图样式 */
.geo-main-img-box {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.geo-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.geo-thumb-box {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 5px;
}

.geo-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.geo-thumb.active {
    opacity: 1;
    border-color: #C82C2C;
    transform: scale(1.05);
}

.geo-thumb:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

/* 图片预览弹窗 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.viewer-main-img {
    max-width: 90%;
    max-height: 75vh;
    object-fit: contain;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-nav i {
    font-size: 30px;
    color: #fff;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.viewer-nav:hover i {
    color: #b8860b;
}

.viewer-prev {
    left: 20px;
}

.viewer-next {
    right: 20px;
}

.viewer-thumbnails {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    overflow-x: auto;
    padding: 10px 0;
}

.viewer-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.viewer-thumb.active {
    opacity: 1;
    border-color: #b8860b;
    transform: translateY(-5px);
}

.viewer-thumb:hover {
    opacity: 0.9;
}

/* 滚动动画 */
.animate-container {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s cubic-bezier(.16,.84,.24,1), transform 0.9s cubic-bezier(.16,.84,.24,1);
}

.animate-container.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s cubic-bezier(.16,.84,.24,1), transform 0.8s cubic-bezier(.16,.84,.24,1);
}

.animate-container.animated .animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entrance for items (up to 6 children) */
.animate-container.animated .animate-item:nth-child(1) { transition-delay: 0.04s; }
.animate-container.animated .animate-item:nth-child(2) { transition-delay: 0.08s; }
.animate-container.animated .animate-item:nth-child(3) { transition-delay: 0.12s; }
.animate-container.animated .animate-item:nth-child(4) { transition-delay: 0.16s; }
.animate-container.animated .animate-item:nth-child(5) { transition-delay: 0.20s; }
.animate-container.animated .animate-item:nth-child(6) { transition-delay: 0.24s; }
.animate-container.animated .animate-item:nth-child(7) { transition-delay: 0.28s; }
.animate-container.animated .animate-item:nth-child(8) { transition-delay: 0.32s; }
.animate-container.animated .animate-item:nth-child(9) { transition-delay: 0.36s; }
.animate-container.animated .animate-item:nth-child(10) { transition-delay: 0.40s; }
.animate-container.animated .animate-item:nth-child(11) { transition-delay: 0.44s; }
.animate-container.animated .animate-item:nth-child(12) { transition-delay: 0.48s; }

/* 更丰富的入场动画：轻微放大并上移，视觉更高端 */
@keyframes sectionEnter {
    from { opacity: 0; transform: translateY(18px) scale(0.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-container.animated { animation: sectionEnter 0.9s cubic-bezier(.16,.84,.24,1) both; }

/* 为图片等交互元素添加柔和悬停动画 */
.geo-main-img:hover, .main-image:hover {
    transform: translateY(-4px) scale(1.01);
    transition: transform 0.45s cubic-bezier(.16,.84,.24,1), box-shadow 0.35s ease;
}

/* 项目概览图片交互 */
#overviewMainImage {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#overviewMainImage:hover {
    transform: scale(1.02);
}

.geo-main-img, .main-image {
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.scroll-down, .icon, .animate-container, .animate-item {
    will-change: transform, opacity;
    transform: translateZ(0);
}

img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 桌面版：讓首屏背景圖往下顯示一點，避開右上角字樣遮擋 */
@media (min-width: 769px) {
    .hero {
        background-position: center 60%;
    }
}

/* ==========================
   移动端终极修复（核心）
========================== */
@media (max-width: 768px) {
    .navbar {
        top: 15px;
        padding: 12px 20px !important; /* 移动端内边距同步加大 */
        border-radius: 0 60px 60px 0;
        width: auto !important;
        display: inline-block !important;
    }
    .logo-img {
        height: 50px !important; /* 移动端从40px→50px，放大25%，足够醒目 */
    }

    .hero-text-container {
        padding: 0 4px !important;
        max-width: 100% !important;
    }

    .nav-container {
        justify-content: flex-start; /* 手机端也保持左上角 */
        padding: 0;
    }

    .hero-main-title {
        /* 强制单行时需要更小字号确保不横向溢出裁切 */
        font-size: 18px;
        letter-spacing: -0.2px;
        line-height: 1.2;
        white-space: nowrap;
        word-break: keep-all;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 18px;
        letter-spacing: 0.15px;
        line-height: 1.35;
        white-space: nowrap;
        word-break: keep-all;
    }

    /* 🔥 箭头：彻底避开底部按钮 */
    .scroll-down {
        bottom: 160px !important;
        width: 40px !important;
        height: 40px !important;
        z-index: 999999 !important;
    }

    .scroll-down .icon {
        font-size: 30px !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
    }

    /* 🔥 🔥 项目板块手机版：1:1复刻交通/教育板块完美布局 */
    .about-section {
        padding: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .project-overview-container {
        flex-direction: column !important;
        gap: 8px !important; /* 再次缩小文本与图片间距，优化手机显示 */
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 1200px !important;
    }

    .overview-text, .overview-image {
        flex: 1 !important;
        min-width: unset !important;
        width: 100% !important;
    }

    /* 防止顶部主标题被固定导航遮挡，增加首屏顶部内边距 */
    .hero {
        padding-top: 80px !important;
        box-sizing: border-box !important;
    }

    /* 专门针对 about（項目資料）板块在移动端避免被固定导航或 full-screen 高度遮挡 */
    .about-section.full-screen-section {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 14px !important;
        padding-bottom: 120px !important; /* 留出底部固定按鈕空間，避免縮略圖被遮擋 */
        justify-content: flex-start !important;
        overflow: visible !important;
    }

    /* Reduce main image height in about to keep thumbnails visible on smaller phones */
    .about-section .main-image { max-height: 32vh !important; }
    .geo-thumb-box { padding-bottom: 90px !important; }
    .project-overview-container { padding-bottom: 8px !important; }

    /* Footer 在移动端不应强制 100vh，避免内容被遮挡 */
    .footer.full-screen-section {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 18px !important;
        padding-bottom: 110px !important; /* 留出底部浮动触达区 */
        justify-content: flex-start !important;
        overflow: visible !important;
    }

    /* 确保概览容器顶部与文本不被遮挡 */
    .about-section .project-overview-container {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    /* 标题样式和交通/教育完全一致 */
    .overview-title {
        font-size: 20px !important;
        letter-spacing: 1px !important;
        white-space: nowrap !important;
    }

    .title-line {
        width: 60px !important;
    }

    .overview-table {
        grid-template-columns: 95px 1fr !important; /* 精准调整标签列宽度，放下完整文字 */
        gap: 10px 10px !important; /* 优化间距，更美观 */
        width: 100% !important;
        /* 移除统一字号，单独给label/value设置 */
    }

    .table-label {
        white-space: nowrap !important; /* 标签不换行 */
        overflow: visible !important; /* 完整显示，不截断 */
        text-overflow: unset !important;
        padding-right: 5px !important; /* 标签右侧留白，和数值分开 */
        font-size: 11px !important; /* 标签单独设为11px */
    }

    .table-value {
        white-space: nowrap !important; /* 数值不换行 */
        overflow: visible !important; /* 完整显示，不截断 */
        text-overflow: unset !important;
        font-size: 11px !important; /* 数值单独设为11px */
    }

    /* 强制表格容器宽度100%，对齐更规整 */
    .overview-text {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important; /* 左右留白，不贴边 */
    }

    /* 🔥 图片容器+图片：和交通/教育一模一样 */
    .overview-image {
        width: 100% !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .main-image {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        object-fit: cover !important;
        max-height: 40vh !important; /* 限制高度，避免把縮略圖推到固定按鈕下面 */
    }

    /* 地理/教育/会所板块手机版（✅ 修复2：增加底部内边距，缩略图不遮挡按钮） */
    #location .geo-layout,
    #education .geo-layout,
    #clubhouse .geo-layout {
        flex-direction: column !important;
        gap: 20px !important;
        padding-bottom: 40px !important; /* 关键：底部留白，避开按钮 */
    }

    #location .geo-text-wrapper,
    #education .geo-text-wrapper,
    #clubhouse .geo-text-wrapper {
        flex: 1 !important;
        padding: 0 !important;
    }

    #location .geo-main-title,
    #education .geo-main-title {
        font-size: 20px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        letter-spacing: 1px !important;
    }

    #clubhouse .geo-main-title {
        font-size: 22px !important;
        letter-spacing: 2px;
        white-space: nowrap !important;
    }

    #clubhouse .geo-desc {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    .geo-thumb-box {
        margin-top: 10px !important; /* 缩略图上移，不贴底 */
    }

    .geo-thumb {
        width: 60px;
        height: 60px;
    }

    /* 项目概览（about）缩略图：与交通板块缩略图在移动端显示一致 */
    #about .overview-thumb-box {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        justify-content: flex-start !important;
        align-items: center !important;
        overflow-x: auto !important;
        padding-bottom: 5px !important;
    }

    #about .overview-thumb {
        width: 70px !important;
        height: 70px !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        opacity: 0.7 !important;
        transition: all 0.3s ease !important;
        border: 2px solid transparent !important;
        flex-shrink: 0 !important;
    }

    #about .overview-thumb.active {
        opacity: 1 !important;
        border-color: #C82C2C !important;
        transform: scale(1.05) !important;
    }

    #about .overview-thumb:hover {
        opacity: 0.9 !important;
        transform: scale(1.1) !important;
    }

    .geo-title-line {
        width: 60px;
    }

    /* Make transport mobile title line visible */
    .transport-mobile-content .geo-title-line {
        width: 60px !important;
        height: 4px !important;
        background-color: rgb(77, 36, 15) !important;
        margin: 12px auto 18px auto !important;
        display: block !important;
    }

    /* 弹窗移动端适配 */
    .viewer-nav i {
        font-size: 24px !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
    }

    .viewer-close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }

    .viewer-thumb {
        width: 60px;
        height: 60px;
    }

    .viewer-main-img {
        max-width: 95%;
        max-height: 65vh;
    }

    /* 免责声明 */
    .disclaimer {
        font-size: 11px;
        padding: 15px 0;
    }

    /* 限制免责声明卡高度并允许内部滚动，避免遮挡最后一条文案 */
    .disclaimer-card {
        max-height: calc(36vh);
        overflow-y: auto;
        padding: 12px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    }
    .disclaimer-card p {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 8px;
    }
    /* 减小 footer 内部上下间距，确保可见区域 */
    .contact-grid {
        gap: 12px !important;
        padding: 12px 10px !important;
    }
    .contact-panel {
        padding: 12px !important;
    }

    /* 修复Font Awesome图标显示 */
    .fa-solid, .fa-brands {
        display: inline-block !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
    }

    .fa-brands {
        font-family: "Font Awesome 6 Brands" !important;
    }
}

/* Desktop: disclaimer lines should stay single-line and use smaller font */
@media (min-width: 769px) {
    .disclaimer-card p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    .disclaimer-card {
        padding: 18px;
    }
}

/* 图标修复 */
.contact-info i {
    font-size: 18px !important;
    color: #b8860b !important;
    width: 25px !important;
    display: inline-block !important;
    margin-right: 8px !important;
    text-align: center !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

@media (max-width: 768px) {
    .contact-info i {
        font-size: 16px !important;
        width: 22px !important;
    }
}

/* Mobile override: ensure #location shows text above image (text on top, image below) */
@media (max-width: 768px) {
    #location .geo-layout { flex-direction: column !important; }
    #location .geo-text-wrapper { order: -1 !important; }
    #location .geo-image-wrapper { order: 0 !important; }
}