/* --- 1. 变量定义 --- */
:root {
    --off-white:   #fef7eb;
    --yellow:      #faa812;
    --purple:      #7f257b;
    --blue:        #33afb5;
    --orange:      #f77811;
    --brown:       #6a1500;
    --pink:        #ef1787;
    --green:       #166b25;
    --pink-card:   #f9a8a8;
    --white:       #ffffff;
    --black:       #000000;
    --text-dark:   #1a0a00;
    --text-muted:  rgba(0,0,0,0.5);
    --page-bg:     #ffffff;

    --font-title-fredoka: 'Fredoka', sans-serif;
    --font-title-dangrek: 'Dangrek', sans-serif;
    --font-body: 'Cera Pro', 'Kantumruy Pro', sans-serif;
    
    --r-sm: 9px;  --r-md: 12px;  --r-lg: 20px;  --r-xl: 28px;

    --shadow-card: 0px 4px 8px 0px rgba(0,0,0,0.30);
    --shadow-hdr:  1px 1px 10px 0px var(--brown);

    --gap-xs:  clamp(4px,  1vw, 8px);
    --gap-sm:  clamp(8px,  2vw, 14px);
    --gap-md:  clamp(14px, 3vw, 24px);
    --gap-lg:  clamp(20px, 4vw, 40px);

    --text-xs:   clamp(0.55rem, 1.2vw, 0.7rem);
    --text-sm:   clamp(0.7rem,  1.5vw, 0.9rem);
    --text-base: clamp(0.85rem, 1.8vw, 1rem);
    --text-lg:   clamp(1rem,    2.2vw, 1.25rem);
    --text-xl:   clamp(1.2rem,  3vw,   1.8rem);
    --text-2xl:  clamp(1.6rem,  4vw,   2.6rem);

    --header-content-w: 480px;
}


header {
    background-color: var(--off-white);
    border-bottom-left-radius: 25px; 
    border-bottom-right-radius: 25px;
    padding: 10px 0 12px 0; 
    box-shadow: 0 4px 12px rgba(106, 21, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 25px;
}

.header-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.logo img {
    height: 65px; 
    width: auto;
}

/* 搜索栏交互样式 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar {
    position: absolute;
    right: 40px;
    display: flex;
    background: white;
    border: 2px solid var(--brand-yellow);
    border-radius: 20px;
    padding: 5px 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-bar.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.search-bar input {
    border: none; outline: none; width: 120px;
}

.search-bar button {
    background: var(--brand-yellow);
    border: none; color: white; border-radius: 10px;
    padding: 2px 8px; cursor: pointer; font-weight: bold;
}

.search-icon img {
    width: 22px; cursor: pointer;
}

/* --- 4. 导航图标 --- */
.nav-scroll {
    display: flex;
    /* 核心：恢复之前的等距分布 */
    justify-content: space-between; 
    width: 85%; /* 或者用你之前的 75%，根据你想要的疏密程度调整 */
    max-width: 1200px; /* 限制最大宽度，防止大屏幕图标分得太开 */
    margin: 0 auto;
}
.nav-scroll a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}
.nav-scroll img {
    height: 24px; /* 恢复你的图标大小 */
    width: auto;
}

.nav-scroll a:hover { transform: scale(1.2); }

/* --- 统一导航指示原点样式 --- */
.nav-scroll a.active::after {
    content: '';
    position: absolute;
    /* 核心修改：统一距离图标底部的距离 */
    bottom: -12px; /* 增加负值可以让点往下移，建议根据视觉效果在 -10px 到 -15px 之间微调 */
    left: 50%;
    transform: translateX(-50%);
    
    /* 保持原点形状 */
    width: 6px; 
    height: 6px;
    background-color: var(--brand-yellow);
    border-radius: 50%;
    
    /* 动画保持不变 */
    animation: dotFade 0.3s ease forwards;
}

/* 确保 a 标签有足够的点击区域，并防止点被切掉 */
.nav-scroll a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5px; /* 给下方点留出固定呼吸空间 */
    transition: transform 0.2s ease;
}

@keyframes dotFade {
    from { opacity: 0; transform: translate(-50%, 5px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}


/* 给中间内容一个最小高度，把 Footer 顶下去 */
.content-wrapper {
    min-height: 60vh; /* 占据屏幕 60% 的高度 */
    padding: 50px 10%;
    background-color: #fcfcfc; /* 主体背景色 */
}

 /* ============================================================ HERO */
.hero { position: relative; width: 100%; overflow: hidden; aspect-ratio: 3 / 2; }
.hero-img-wrap { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; background: #000; }
@media (min-width: 640px) {
    .hero { aspect-ratio: unset; height: clamp(340px, 50vw, 620px); }
    .hero-img { object-fit: cover; object-position: center 30%; background: transparent; }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.00) 40%, rgba(0,0,0,0.50) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: clamp(12px, 3vw, 32px); gap: clamp(6px, 1.5vw, 12px); text-align: center; }
.hero-title { font-family: var(--ff-title); font-weight: 700; font-size: var(--text-2xl); color: #ffffff; -webkit-text-stroke: clamp(1.5px, 0.3vw, 3px) var(--brown); paint-order: stroke fill; line-height: 1.2; letter-spacing: 0.01em; }
.btn-location { background: var(--off-white); border: none; border-radius: 100px; padding: clamp(5px, 1vw, 10px) clamp(20px, 4vw, 40px); font-family: var(--ff-title); font-size: var(--text-sm); font-weight: 500; color: var(--text-dark); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transition: transform 0.2s, box-shadow 0.2s; }
.btn-location:hover { transform: scale(1.06); box-shadow: 0 5px 16px rgba(0,0,0,0.22); }

/* Hero dots — BIGGER ↑↑ */
.hero-dots { display: flex; align-items: center; justify-content: center; }
.hero-dots-img {
    height: clamp(150px, 22vw, 280px);
    width: auto;
    display: block;
    mix-blend-mode: screen;
}

/* ============================================================ CONTENT ZONE */
.content-zone { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 40px); }

/* ============================================================ CARDS */
.cards-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-sm); padding: var(--gap-md) 0 0; position: relative; }
.cards-divider { position: absolute; left: 50%; top: var(--gap-md); bottom: 0; width: 1px; background: rgba(106,21,0,0.12); transform: translateX(-50%); pointer-events: none; }
.card { display: flex; flex-direction: column; gap: var(--gap-xs); }
.card-label { font-family: var(--ff-title); font-weight: 600; font-size: var(--text-sm); text-align: center; color: var(--black); }
.card-body { background: var(--pink-card); border: 1px solid var(--off-white); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; flex: 1; padding: 6px; }
.card-img-box { height: clamp(90px, 15vw, 200px); overflow: hidden; border-radius: 8px; flex-shrink: 0; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-text { background: transparent; padding: clamp(6px, 1.5vw, 10px) clamp(6px, 1.5vw, 10px) clamp(4px, 1vw, 8px); flex: 1; }
.card-place { font-family: var(--ff-title); font-weight: 500; font-size: var(--text-xs); color: var(--black); margin-bottom: 4px; }
.card-hr { border: none; border-top: 1px solid rgba(0,0,0,0.15); margin-bottom: 5px; }
.card-desc { font-family: var(--ff-body-en); font-weight: 400; font-size: var(--text-xs); color: var(--black); line-height: 1.5; }

/* Decorative shapes — SMALLER ↓↓ */
.deco-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 18px);
    padding: var(--gap-md) 0 var(--gap-sm);
}
.deco-shape {
    width:  clamp(16px, 2.8vw, 30px);
    height: clamp(16px, 2.8vw, 30px);
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* ============================================================ POSTER BANNER */
.poster-section { padding: 0 0 var(--gap-sm); }
.poster-card { background: var(--off-white); border: 1px solid var(--brown); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
.poster-full-img { width: 100%; height: auto; display: block; }

/* ============================================================ WAVE DIVIDER */
.wave-divider-section { width: 100%; margin: var(--gap-sm) 0 0; overflow: visible; }
.wave-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ============================================================ CONCEPT */
.concept-section { padding-bottom: var(--gap-lg); }
.concept-head { display: flex; align-items: center; margin-bottom: var(--gap-sm); padding-top: var(--gap-xs); }
.concept-title { font-family: var(--ff-title); font-weight: 700; font-size: var(--text-lg); color: var(--black); }
.concept-gallery-card { background: var(--off-white); border: 1px solid var(--brown); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: 6px; margin-bottom: var(--gap-sm); overflow: hidden; }
.gallery-single { border-radius: var(--r-sm); overflow: hidden; width: 100%; }
.gallery-single img { width: 100%; height: auto; display: block; }
.concept-desc { font-family: var(--ff-body-en); font-weight: 400; font-size: var(--text-sm); color: var(--text-muted); text-align: center; line-height: 1.6; padding: 0 clamp(4px, 3vw, 60px); }

/* ============================================================ SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease-out, transform 0.65s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.18s; }

/* ============================================================ BREAKPOINTS */
@media (max-width: 379px) {
    .hero-title      { font-size: 1.4rem; }
    .footer-cols     { grid-template-columns: 1fr 1fr; }
    .fcol:last-child { grid-column: span 2; }
}
@media (max-width: 639px) { .content-zone { padding: 0 12px; } }
@media (min-width: 640px) {
    .content-zone  { padding: 0 clamp(20px, 4vw, 48px); }
    .cards-section { gap: var(--gap-md); }
    .card-img-box  { height: clamp(130px, 18vw, 200px); }
    .concept-title { font-size: 1.2rem; }
    .footer-cols   { gap: clamp(10px, 2vw, 24px); }
}
@media (min-width: 1024px) {
    .content-zone  { padding: 0 48px; }
    .cards-section { max-width: 900px; margin-left: auto; margin-right: auto; }
    .card-img-box  { height: 220px; }
    .card-label    { font-size: 1rem; }
    .card-place    { font-size: 0.8rem; }
    .card-desc     { font-size: 0.8rem; }
    .concept-desc  { font-size: 0.9rem; max-width: 680px; margin: 0 auto; }
    .footer-title  { font-size: 1.4rem; }
    .fcol p        { font-size: 0.78rem; }
    .fcol-small    { font-size: 0.68rem !important; }
}
@media (min-width: 1280px) {
    .content-zone  { padding: 0 60px; }
    .cards-section { max-width: 1100px; gap: 32px; }
    .card-img-box  { height: 260px; }
    .concept-gallery-card, .poster-card { max-width: 1100px; margin-left: auto; margin-right: auto; }
    .footer-body   { min-height: 200px; }
    .footer-title  { font-size: 1.6rem; }
}
@media (min-width: 1600px) {
    .hero-title   { font-size: 3.4rem; }
    .btn-location { font-size: 1.1rem; padding: 12px 50px; }
}





/* --- 1. 强制页面布局 --- */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* 保证页面至少占满屏幕 */
    display: flex;
    flex-direction: column;
   
}

/* --- 2. 给中间留出空位（关键！） --- */
/* 如果你 HTML 里没有 main 标签，请加一个，或者用这个选择器占位 */
header + * {
    flex: 1; /* 自动撑开中间，把 footer 压到最下面 */
}

/* --- 3. Footer 样式：精简高度 --- */
.footer-main {
    background-color:  var(--off-white)!important;
    /* 核心修改：大大减小上下内边距 (40px 是现在的，15px 是底部的) */
    padding: 30px 5% 15px !important; 
    border-top-left-radius: 60px !important;
    border-top-right-radius: 60px !important;
    width: 100% !important;
    margin-top: 0 !important;
    box-sizing: border-box;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center; /* 改为居中对齐，让内容看起来更整齐 */
}

/* 缩放 Logo 图标，防止撑高 */
.footer-photo-box img {
    width: 100px !important; 
    height: auto;
}


.footer-nav {
            display: flex;
            gap: 60px;
            flex-grow: 1;
            padding-left: 40px;
        }

        .nav-col {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }



.nav-col a {
    text-decoration: none;
    color: #6a1500;
    font-weight: 700;
    font-size: 1rem;
}

/* 右侧联系方式 */
.footer-contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-contact h2 {
    /* 显式调用变量，并加上 !important 确保加载 */
    font-family: var(--font-title-fredoka) !important; 
    font-size: 1.8rem !important; 
    margin-bottom: 5px !important;
    /* 确保字体权重也是对的 */
    font-weight: 600; 
}

/* Contact Us 小标题 (如果有 h3) */
.footer-contact h3 {
    font-family: var(--font-title-fredoka) !important;
    font-size: 1.2rem !important;
    color: #6a1500;
}

/* Body Text - 强制使用 Cera Pro */
.footer-contact p {
    font-family: var(--font-body) !important; /* 这里会调用 Cera Pro */
    font-size: 0.85rem !important;
    max-width: 280px;
    line-height: 1.5;
    color: #6a1500;
}

/* 社交图标锁定 */
.social-row-icons {
    display: flex !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

.social-row-icons img {
    width: 28px !important;
    height: 28px !important;
}

/* 4. 版权行：极致紧凑 */
.copyright {
    text-align: center !important;
    margin-top: 20px !important; /* 缩减与上方的距离 */
    padding-top: 10px !important;
    border-top: 1px solid rgba(106, 21, 0, 0.1) !important;
    font-size: 0.75rem !important;
    color: #6a1500 !important;
}

.footer-contact h2, 
.footer-contact h3, 
.footer-contact p,
.footer-brand-contact h2,
.footer-brand-contact h3,
.footer-brand-contact p {
    color: #6a1500; 
}

/* --- 响应式手机端修改 --- */
@media (max-width: 768px) {
    
    /* 1. Header 居中 */
    .header-row-1 {
        flex-direction: column; /* 纵向排列 */
        gap: 15px;
        position: relative;
    }

    .logo {
        margin: 0 auto; /* Logo 居中 */
    }

    .search-container {
        justify-content: center; /* 搜索图标居中 */
        width: 100%;
    }

    /* 搜索栏弹出后在中间 */
    .search-bar {
        position: absolute;
        top: 60px; /* 根据你的 header 高度调整 */
        right: 50%;
        transform: translateX(50%); /* 完美的水平居中 */
        width: 80%; /* 手机端宽度占 80% */
        z-index: 10;
    }
    
    .search-bar.show {
        transform: translateX(50%); /* 保持居中显示 */
    }

    /* 2. 导航栏调整 */
    .nav-scroll {
        max-width: 95%; /* 增加手机端导航宽度 */
    }

    /* 3. Footer 居中 */
    .footer-grid {
        flex-direction: column; /* 竖向排列 */
        gap: 30px;
        text-align: center; /* 全体文字居中 */
    }

    .footer-nav {
        padding-left: 0;
        justify-content: center;
        gap: 40px;
    }

    .footer-contact {
        align-items: center; /* 内部 flex 元素居中 */
        text-align: center;
    }

    .footer-contact p {
        margin: 0 auto 15px; /* 段落居中 */
    }

    .social-row-icons {
        justify-content: center; /* 社交图标居中 */
        margin-top: 15px;
    }

    .footer-photo-box {
        margin-bottom: 10px;
    }
}
/* 让 Row 2 成为定位参考 */
@media (max-width: 768px) {
    /* 确保 Row 2 在手机端依然是定位参考 */
    .header-row-2 {
        position: relative;
        padding: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* 针对手机端重新定义 Search Bar 的位置 */
    .search-bar {
        position: absolute;
        /* 强制水平居中 */
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        
        /* 关键：在手机端宽度要够大 */
        width: 92% !important; 
        max-width: none !important; /* 取消电脑端的最大宽度限制 */
        
        padding: 8px 15px !important;
        z-index: 999; /* 确保它盖在图标最上方 */
    }

    /* 确保搜索栏里的输入框和按钮在小屏幕不挤压 */
    .search-bar input {
        font-size: 14px; /* 减小字体防止撑开高度 */
        width: 100%;
    }

    .search-bar button {
        padding: 4px 12px;
        font-size: 12px;
    }

    /* 保持图标行在底下的间距，防止搜索框关掉后布局跳动 */
    .nav-scroll {
        width: 95%; /* 手机端图标可以分布得更满一点 */
        justify-content: space-around; /* 图标均匀分布，防止挤在一起 */
    }
}