/* 全局样式重置 */
* {
    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: rgba(188, 121, 92, 0.3) !important;
    border-radius: 0 70px 70px 0; /* 圆角同步加大，匹配大logo */
    padding: 18px 30px !important; /* 增大内边距，确保胶囊比Logo大 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important; /* 阴影稍加重，更立体 */
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    z-index: 9999;
    transition: transform 0.4s ease, opacity 0.4s ease;
    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/首頁背景.jpg');
    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 0 30px 0;
    line-height: 1.4;
    letter-spacing: 2px;
    opacity: 0.95;
    animation: slideUp 1.8s ease-out forwards;
    transform: translateY(50px);
    opacity: 0;
    text-align: center;
}

.hero-cta-button {
    display: inline-block;
    padding: 10px 28px;
    background-color: transparent;
    border: 1.5px solid #ffffff;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.8px;
    box-shadow: none;
    animation: slideUp 2.1s ease-out forwards;
    transform: translateY(50px);
    opacity: 0;
}

.hero-cta-button:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #000000;
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
}

/* 向下箭头终极修复：位置+层级+显示 */
.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-color: #222d3f;
    color: #f8f8f8;
    text-align: center;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.footer.full-screen-section {
    width: 100vw;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.footer .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 350px));
    gap: 18px;
    width: min(100%, 960px);
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    justify-items: center;
    padding: 32px 18px;
    background: #1d2e48;
    border-radius: 16px;
    border: 1px solid #2f3f57;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.contact-panel {
    background: #2a3950;
    border: 1px solid #4d5e79;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    padding: 24px;
    width: 100%;
    max-width: 430px;
}

.disclaimer-card {
    grid-column: 1 / -1;
    margin-top: 0;
    width: 100%;
    max-width: 980px;
    padding: 18px;
    background: #25344f;
    border: 1px solid #3f5372;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    border-radius: 12px;
}

.footer .copyright {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    padding-bottom: 24px;
}

/* 玻璃風格標籤 */
.glass-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    margin: 10px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.12));
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.glass-tag:hover {
    transform: translateY(-3px) scale(1.01);
    opacity: 0.98;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.glass-tag .label {
    font-weight: 800;
    color: #222;
    font-size: 14px;
    letter-spacing: 0.06em;
}

.glass-tag span:last-child {
    color: #111;
    font-size: 15px;
    font-weight: 700;
}

/* Apple 风玻璃联系框 - 重新设计 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
    padding: 40px 30px;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(33, 45, 68, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeInUp 1s ease forwards;
}

.contact-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border-radius: 24px;
    padding: 32px 28px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideUpItem 0.8s ease forwards 0.1s;
    opacity: 0;
}

.contact-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(8, 15, 34, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
}

.contact-panel h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.contact-actions {
    margin-top: 22px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.28s ease;
    backdrop-filter: blur(16px);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.32);
    background: rgba(255, 255, 255, 0.26);
}

.contact-btn.whatsapp {
    border-color: #25d866;
    background: rgba(37, 216, 102, 0.2);
}

.contact-btn.phone {
    border-color: #b89a38;
    background: rgba(184, 154, 56, 0.2);
}

/* 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: 12px;
}

.glass-tag {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #2d3f5f;
    border: 1px solid #5f7faf;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px #4a6aa1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.glass-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    background: #334a6c;
}

.glass-tag .label {
    font-weight: 700;
    color: #c8b38e;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.glass-tag span:last-child {
    color: #f1e0b5;
    font-size: 14px;
    font-weight: 600;
}

.disclaimer-card {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px 28px;
    color: rgba(239, 242, 255, 0.85);
    font-size: 12px;
    line-height: 1.8;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: left;
    width: 100%;
    transition: all 0.4s ease;
    animation: slideUpItem 0.8s ease forwards 0.2s;
    opacity: 0;
}

.disclaimer-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.disclaimer-list {
    font-size: 12px !important;
    color: rgba(239, 242, 255, 0.9);
    margin: 6px 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.disclaimer-list::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: rgba(184, 154, 56, 0.7);
    border-radius: 50%;
    margin-right: 8px;
}

.footer .copyright {
    margin-top: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer balance adjustments */
@keyframes slideUpItem {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-main-title { font-size: 32px !important; line-height: 1.16 !important; }
    .hero-subtitle { font-size: 16px !important; line-height: 1.4 !important; }
    .hero-cta-button { font-size: 12px !important; padding: 8px 14px !important; }

    .footer.full-screen-section {
        min-height: 100vh !important;
        height: auto !important;
        padding-top: 30px !important;
        padding-bottom: 120px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, rgba(21, 30, 42, 0.95), rgba(17, 24, 36, 0.95));
    }

    .contact-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: calc(100% - 16px) !important;
        max-width: 100% !important;
        padding: 16px !important;
        margin: 0 auto !important;
        background: rgba(21, 30, 42, 0.28) !important;
        border-radius: 20px !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
        overflow: visible !important;
    }

    .contact-panel, .disclaimer-card {
        width: 100% !important;
        padding: 14px 14px !important;
        min-height: auto !important;
        border-radius: 14px !important;
    }

    .contact-panel h2 { font-size: 21px !important; }
    .contact-info p { font-size: 14px !important; }    
    .contact-actions { justify-content: center; gap: 10px; margin-top: 14px; }
    .contact-btn {
        min-width: 46%;
        padding: 9px 12px;
        font-size: 13px;
    }

    .disclaimer-card { font-size: 12px; padding: 12px 14px; max-height: 44vh; overflow-y: auto; }

    .scroll-container { height: 100vh; }
    .full-screen-section { min-height: auto !important; height: auto !important; padding-bottom: 20px !important; }
}

.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: #BFA28C;
    overflow: hidden;
    position: relative;
}

/* 关键词标签样式 - 黄色文本+金色阴影+动画 */
.keyword-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.55);
    border-radius: 20px;
    font-size: 14px;
    color: #FFD700 !important; /* 黄色文字 */
    font-weight: 600 !important;
    transition: all 0.35s ease;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.keyword-tag:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 222, 92, 0.9);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 26px rgba(255, 215, 0, 0.88), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    color: #fffacd !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

@keyframes imageShow {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.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; /* 桌面放大主图，统一更方便观看的尺寸 */
    animation: imageShow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.main-image.refresh-animation {
    animation: none;
}

.main-image.refresh-animation.animate {
    animation: imageShow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 地理交通/教育配套板块 */
#location.location-section,
#education.location-section {
    background-color: #BFA28C;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

#location .geo-layout,
#education .geo-layout {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    align-items: center !important;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

#location .geo-text-wrapper,
#education .geo-text-wrapper {
    flex: unset !important;
    min-width: unset !important;
    padding: 0;
    width: 100%;
    text-align: center;
}

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

#location .geo-image-wrapper {
    flex: unset !important;
    width: 100%;
}

/* 核心修复：教育板块标题强制一行+缩小字体 */
#location .geo-main-title,
#education .geo-main-title {
    font-size: 28px;
    letter-spacing: 1.5px;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
    font-weight: bold;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
}

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

#location .geo-desc,
#education .geo-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    margin: 0 0 15px 0;
    letter-spacing: 0.3px;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

#location .geo-image-wrapper,
#education .geo-image-wrapper {
    flex: unset !important;
    min-width: unset !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 900px;
}

/* 会所板块专属样式 */
#clubhouse.location-section {
    background-color: #BFA28C;
    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%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.geo-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    cursor: pointer;
    animation: imageShow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.geo-main-img.refresh-animation {
    animation: none;
}

.geo-main-img.refresh-animation.animate {
    animation: imageShow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.geo-thumb-box {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: center !important;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 5px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.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;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

img, .geo-main-img, .main-image, .viewer-main-img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

    .hero-main-title {
        font-size: 36px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 11px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        max-width: 100%;
        letter-spacing: 0.5px;
    }
}

/* ==========================
   移动端终极修复（核心）
========================== */
@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: 14px;
        letter-spacing: 0.2px;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        width: 100%;
        display: block;
        margin-bottom: 6px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 9px;
        letter-spacing: 0.2px;
        line-height: 1.4;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-width: 100%;
        margin: 0 auto 20px auto;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 手机版：首页预约按钮 */
    .hero-cta-button {
        font-size: 13px !important;
        padding: 10px 24px !important;
    }

    /* 🔥 箭头：彻底避开底部按钮 */
    .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（項目資料）板块在移动端的正确布局 */
    .about-section.full-screen-section {
        height: auto !important;
        min-height: 100vh !important;
        padding-top: 40px !important;
        padding-bottom: 100px !important; /* 留出底部固定按鈕空間 */
        justify-content: center !important;
        align-items: center !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; }

    /* 手機端关键词标签样式 - 淡色文字+金色阴影 */
    .keyword-tag {
        font-size: 13px !important; /* 手机端稍小，符合阅读习惯 */
        padding: 7px 14px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 215, 0, 0.45) !important;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
        color: rgba(230, 210, 160, 0.95) !important;
        font-weight: 600 !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    /* 手机版：首页预约按钮 */
    .hero-cta-button {
        font-size: 12px !important;
        padding: 9px 22px !important;
    }
    /**  Footer 手機版重新設計 */
    .footer.full-screen-section {
        height: auto !important;
        min-height: auto !important;
        padding-top: 24px !important;
        padding-bottom: 130px !important; /* 留出底部浮动按钮空间 */
        justify-content: flex-start !important;
        overflow: visible !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 16px 14px !important;
        border-radius: 20px !important;
        max-width: 100% !important;
    }

    .contact-panel {
        padding: 16px 18px !important;
        border-radius: 18px !important;
        width: 100% !important;
    }

    .contact-panel h2 {
        font-size: 20px !important;
        margin-bottom: 14px !important;
    }

    .glass-tag {
        padding: 12px 14px !important;
        border-radius: 14px !important;
        font-size: 13px !important;
    }

    .glass-tag .label {
        font-size: 10px !important;
    }

    .glass-tag span:last-child {
        font-size: 14px !important;
    }

    .disclaimer-card {
        grid-column: 1 !important;
        padding: 14px 16px !important;
        border-radius: 16px !important;
        max-height: 40vh !important;
        overflow-y: auto !important;
    }

    .disclaimer-list {
        font-size: 11px !important;
        margin: 4px 0 !important;
        line-height: 1.5 !important;
    }

    .disclaimer-list::before {
        width: 3px !important;
        height: 3px !important;
        margin-right: 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; }
}

/* --- 强制居中覆盖：联络我们板块（桌面 + 手机） --- */
.footer {
    background: linear-gradient(180deg, #0f172e 0%, #0b152c 95%);
    color: #f5f8ff;
    text-align: center;
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 24px 16px !important;
}

.footer.full-screen-section {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.footer .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: min(92vw, 520px) !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    align-items: center !important;
    justify-items: center !important;
    justify-content: center !important;
    padding: 26px 20px !important;
    background: rgba(24, 39, 64, 0.94) !important;
    border: 1px solid rgba(166, 178, 218, 0.3) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44) !important;
    text-align: center !important;
}

.contact-panel,
.disclaimer-card {
    width: 100% !important;
    max-width: 100% !important;
}

.contact-panel {
    background: #192e55 !important;
    border: 1px solid rgba(139, 172, 236, 0.28) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
    border-radius: 16px !important;
    padding: 20px 18px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.contact-panel:hover {
    transform: translateY(-2px) !important;
}

.contact-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

.glass-tag {
    width: 100% !important;
    justify-content: space-between !important;
    background: rgba(40, 66, 99, 0.78) !important;
    border: 1px solid rgba(120, 155, 205, 0.4) !important;
    border-radius: 12px !important;
    color: #f0f2ff !important;
}

.glass-tag .label {
    color: #d6ca9e !important;
}

.glass-tag span:last-child {
    color: #f8f7ed !important;
    font-weight: 700 !important;
}

.disclaimer-card {
    background: rgba(14, 24, 45, 0.96) !important;
    border: 1px solid rgba(138, 160, 208, 0.34) !important;
    border-radius: 14px !important;
    padding: 16px 16px !important;
    color: #d3dbef !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

.footer .copyright {
    margin-top: 20px !important;
    color: #aeb7ce !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .footer {
        height: auto !important;
        min-height: 100vh !important;
        padding: 14px 12px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .footer.full-screen-section {
        min-height: 100vh !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .contact-grid {
        width: min(95vw, 410px) !important;
        padding: 14px 14px !important;
        gap: 14px !important;
        max-height: 68vh !important;
    }

    .contact-panel,
    .disclaimer-card {
        padding: 12px 12px !important;
        width: 100% !important;
    }

    .contact-panel h2 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    .glass-tag .label {
        font-size: 14px !important;
    }

    .glass-tag span:last-child {
        font-size: 17px !important;
    }

    .disclaimer-card {
        font-size: 15px !important;
        line-height: 1.6 !important;
        max-height: 26vh !important;
        overflow-y: auto !important;
    }

    .disclaimer-list {
        font-size: 15px !important;
    }

    .footer .copyright {
        font-size: 14px !important;
        margin-top: 16px !important;
    }

    .full-screen-section {
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 30px !important;
    }
}


