/* ============================================================
   云隐杉光营地 - 样式表（原始布局 + 萤火虫/彩蛋增强）
   ============================================================ */

/* === 变量 === */
:root {
    --primary: #2d5016;
    --primary-light: #4a7c2e;
    --primary-dark: #1a3009;
    --secondary: #5a9c3a;
    --accent: #d4a017;
    --light: #f8faf5;
    --dark: #2c3e2c;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(45, 80, 22, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 80, 22, 0.12);
    --shadow-lg: 0 8px 40px rgba(45, 80, 22, 0.16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* === 全局重置 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--white);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === 图片标准化 === */
img { display: block; }
.about-image img,
.price-list-image img { width: 100%; height: auto; }

/* ============================================================
   萤火虫画布
   ============================================================ */
#fireflyCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.7;
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    position: relative;
}
/* Logo 微光呼吸动画 */
.logo::after {
    content: '';
    position: absolute;
    top: -4px; left: -10px; right: -10px; bottom: -4px;
    background: radial-gradient(ellipse at 30% 50%, rgba(212,160,23,0.18), transparent 70%);
    border-radius: 8px;
    pointer-events: none;
    animation: logoGlow 4s ease-in-out infinite;
}
.logo:hover::after {
    background: radial-gradient(ellipse at 30% 50%, rgba(212,160,23,0.35), transparent 70%);
    animation: none;
}
@keyframes logoGlow {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.6; }
}
.logo-icon { font-size: 1.4rem; }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; padding: 4px; z-index: 1001; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--dark); border-radius: 2px; transition: all var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.93rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-links a:hover { color: var(--primary); background: rgba(45,80,22,0.06); }

/* ============================================================
   Hero 轮播
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}
.hero-slider { height: 100%; }
.slide {
    display: none;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.slide.active { display: flex; align-items: center; justify-content: center; }
.slide-content {
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 700px;
    padding: 0 20px;
}
.slide-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    letter-spacing: 4px;
}
.slide-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 32px;
    opacity: 0.9;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all var(--transition);
}
.dot:hover { background: rgba(255,255,255,0.7); }
.dot.active { background: white; transform: scale(1.2); }

/* ============================================================
   按钮
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(45,80,22,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(45,80,22,0.4); }
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 13px 32px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-2px); }

/* ============================================================
   区块标题
   ============================================================ */
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 3px;
}
.section-subtitle {
    text-align: center;
    color: #6b7c65;
    margin-bottom: 48px;
    font-size: 1rem;
}

/* ============================================================
   关于营地
   ============================================================ */
.about { padding: 80px 0; background: var(--light); }
.about-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.about-text .lead { font-size: 1.1rem; margin-bottom: 28px; color: #4a5a48; line-height: 1.8; }
.about-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ============================================================
   套餐预订
   ============================================================ */
.packages { padding: 80px 0; }

.price-list-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}
.price-list-title { text-align: center; color: var(--primary-dark); font-size: 1.2rem; margin-bottom: 6px; }
.price-list-note { text-align: center; color: #888; font-size: 0.85rem; margin-bottom: 18px; }
.price-list-image { text-align: center; }
.price-list-image img { max-width: 100%; height: auto; border-radius: var(--radius-md); cursor: pointer; transition: transform 0.3s; }
.price-list-image img:hover { transform: scale(1.02); }

/* ---- 项目卡片 ---- */
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.package-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.package-image {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(45,80,22,0.06), rgba(45,80,22,0.02));
}
.package-img-placeholder {
    font-size: 2rem;
    line-height: 1;
}

.package-info {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-category {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--primary);
    background: rgba(45,80,22,0.07);
    padding: 2px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    align-self: flex-start;
}
.package-info h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.package-desc {
    color: #6b7c65;
    font-size: 0.85rem;
    line-height: 1.55;
    flex: 1;
}

.tag-seasonal {
    display: inline-block;
    font-size: 0.68rem;
    padding: 1px 7px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    white-space: nowrap;
}
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================================
   环境展示
   ============================================================ */
.gallery-env { padding: 80px 0; background: var(--light); }

.env-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    grid-template-areas:
        "hero  hero  side1"
        "main1 main2 tall"
        "wide  wide  tall";
}
.env-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 140px;
}
.env-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.env-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Grid area assignments */
.env-item.ga-hero  { grid-area: hero; }
.env-item.ga-side1 { grid-area: side1; }
.env-item.ga-main1 { grid-area: main1; }
.env-item.ga-main2 { grid-area: main2; }
.env-item.ga-tall  { grid-area: tall; }
.env-item.ga-wide  { grid-area: wide; }

/* ============================================================
   活动图片展示
   ============================================================ */
.gallery-activity { padding: 80px 0; }

.activity-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.act-tab {
    padding: 9px 20px;
    border: 2px solid rgba(45,80,22,0.15);
    background: white;
    color: var(--primary);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition);
}
.act-tab:hover { border-color: var(--primary); background: rgba(45,80,22,0.03); }
.act-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

.act-panel { display: none; }
.act-panel.active { display: block; }

.act-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.act-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease;
}
.act-item:hover { transform: scale(1.04); }
.act-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.act-dots { display: none; }

/* ---- 灯箱 ---- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 32px; }
.lightbox-next { right: 32px; }

/* ============================================================
   招商合作
   ============================================================ */
.business { padding: 80px 0; background: var(--light); }
.business-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 40px; }
.business-card {
    background: white;
    padding: 28px 22px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
}
.business-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.business-icon { font-size: 2.5rem; margin-bottom: 14px; }
.business-card h3 { margin-bottom: 10px; color: var(--primary-dark); font-size: 1.05rem; }
.business-card > p { color: #6b7c65; font-size: 0.88rem; margin-bottom: 14px; line-height: 1.5; }
.business-card ul { list-style: none; text-align: left; }
.business-card li { margin-bottom: 8px; color: #5a6a52; font-size: 0.88rem; }

.business-contact {
    text-align: center;
    background: linear-gradient(135deg, white, var(--light));
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.business-contact h3 { margin-bottom: 18px; color: var(--primary-dark); font-size: 1.2rem; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; margin-bottom: 24px; }
.contact-row span { font-size: 0.93rem; color: #4a5a48; }
.contact-row strong { color: var(--primary-dark); }

/* ============================================================
   联系我们
   ============================================================ */
.contact { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-card {
    background: var(--light);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    border-left: 3px solid var(--primary);
    transition: all var(--transition);
}
.info-card:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.info-icon { font-size: 1.3rem; margin-bottom: 4px; }
.info-card h3 { margin-bottom: 4px; color: var(--primary-dark); font-size: 0.95rem; }
.info-card p { color: #6b7c65; font-size: 0.88rem; line-height: 1.5; }

.contact-form { background: white; padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.contact-form h3 { margin-bottom: 16px; color: var(--primary-dark); font-size: 1.1rem; }
.form-group { margin-bottom: 16px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ece8;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: var(--font-main);
    color: var(--dark);
    outline: none;
    transition: border-color var(--transition);
    background: #fdfdfd;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
    background: linear-gradient(180deg, #1a3309, #0f2206);
    color: rgba(255,255,255,0.85);
    padding: 48px 0 20px;
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-section h3 { margin-bottom: 14px; font-size: 1rem; color: white; font-weight: 700; }
.footer-section p { font-size: 0.88rem; line-height: 1.7; opacity: 0.75; margin-bottom: 4px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; transition: color var(--transition); }
.footer-section a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 0.82rem; opacity: 0.5; }

/* ============================================================
   弹窗
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #bbb;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--dark); }
.modal-content h2 { margin-bottom: 20px; color: var(--primary-dark); font-weight: 700; text-align: center; }
.modal-content img { max-width: 100%; border-radius: var(--radius-md); }

/* ============================================================
   回到顶部
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(45,80,22,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(45,80,22,0.45); }

/* ============================================================
   彩蛋：彩虹模式
   ============================================================ */
.rainbow-mode .navbar {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
    background-size: 300% 300%;
    animation: rainbowShift 3s linear infinite;
}
@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.rainbow-mode .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    animation: rainbowBtn 2s linear infinite;
}
@keyframes rainbowBtn {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.firework-star {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    font-size: 1.4rem;
    animation: starBurst 1.2s ease-out forwards;
}
@keyframes starBurst {
    0% { transform: scale(0.3) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(2) rotate(360deg); opacity: 0; }
}

/* ============================================================
   彩蛋暗示系统
   ============================================================ */

/* Logo 点击提示气泡 */
.easter-egg-hint {
    position: fixed;
    background: rgba(45,80,22,0.94);
    color: #f0e6c8;
    font-size: 0.85rem;
    padding: 12px 20px;
    border-radius: 16px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.4s;
    white-space: pre-line;
    max-width: 260px;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
}
.easter-egg-hint.show {
    opacity: 1;
    transform: translateY(0);
}
.easter-egg-hint::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: rgba(45,80,22,0.94);
}

/* 键盘彩蛋暗示（角落图标） */
.keyboard-hint {
    position: fixed;
    bottom: 80px;
    right: 24px;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s, transform 0.5s;
}
.keyboard-hint.show {
    opacity: 0.7;
    transform: translateY(0);
}
.keyboard-hint.hide {
    opacity: 0;
    transform: translateY(-4px);
}

/* 页脚彩蛋密语 */
.footer-easter {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.08);
    margin-top: 6px;
    cursor: default;
    transition: color 1.5s ease;
    user-select: none;
}
.footer-easter:hover {
    color: rgba(255,255,255,0.35);
}

/* ============================================================
   1. 搭帐篷加载动画
   ============================================================ */
#loaderOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(160deg, #1a3309, #2d5016, #1a3309);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loaderOverlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-tent {
    text-align: center;
    color: white;
}
.tent-body {
    width: 80px;
    height: 60px;
    margin: 0 auto 24px;
    position: relative;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: rgba(255,255,255,0.15);
    animation: tentRise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: bottom;
}
@keyframes tentRise {
    0% { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(1); opacity: 1; }
}
.tent-flap {
    position: absolute;
    left: 20%;
    top: 40%;
    width: 60%;
    height: 50%;
    border-left: 1px solid rgba(255,255,255,0.4);
    border-right: 1px solid rgba(255,255,255,0.4);
    animation: flapOpen 0.5s 0.5s ease forwards;
    opacity: 0;
}
@keyframes flapOpen {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.tent-peg {
    position: absolute;
    bottom: -5px;
    width: 6px;
    height: 12px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    animation: pegDrive 0.3s 0.7s ease forwards;
    opacity: 0;
}
.peg-left { left: 8px; }
.peg-right { right: 8px; }
@keyframes pegDrive {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.loader-text {
    font-size: 0.95rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
    opacity: 0.8;
    animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.loader-bar {
    width: 180px;
    height: 3px;
    margin: 0 auto;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #f0c040);
    border-radius: 2px;
    width: 0%;
    animation: loaderFill 2s ease-in-out forwards;
}
@keyframes loaderFill {
    0% { width: 0%; }
    60% { width: 85%; }
    90% { width: 95%; }
    100% { width: 100%; }
}

/* ============================================================
   2. 飘落元素（树叶 / 花瓣）
   ============================================================ */
#floatingElements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}
.floater {
    position: absolute;
    top: -40px;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    animation: fallDown linear forwards;
}
@keyframes fallDown {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(105vh) translateX(80px) rotate(720deg);
    }
}

/* ============================================================
   3. 阅读进度路径（右侧营地小径）
   ============================================================ */
.reading-progress {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 998;
    padding: 12px 4px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px;
}
.reading-progress::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 12px;
    bottom: 12px;
    width: 1.5px;
    background: linear-gradient(rgba(45,80,22,0.2), rgba(45,80,22,0.1), rgba(45,80,22,0.2));
    transform: translateX(-50%);
    z-index: -1;
}
.rp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(45,80,22,0.25);
    cursor: pointer;
    transition: all 0.35s ease;
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}
.rp-dot:hover {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(212,160,23,0.5);
}
.rp-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(45,80,22,0.4);
}

/* ============================================================
   4. 3D卡片倾斜
   ============================================================ */
.package-card.tilt-enabled {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.package-card.tilt-active {
    box-shadow: 0 25px 50px rgba(45,80,22,0.2) !important;
    transform: none !important; /* 由 JS 动态设置 */
}

/* ============================================================
   5. 按钮波纹 & 光泽
   ============================================================ */
.btn-primary, .btn-outline, .filter-btn {
    position: relative;
    overflow: hidden;
}
/* 魔法光泽 */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        rgba(255,255,255,0.35),
        rgba(255,255,255,0.2),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn-primary:hover::after {
    left: 125%;
}
/* 点击波纹 */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: rippleOut 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes rippleOut {
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================================
   6. 滚动入场动画
   ============================================================ */
.section-title, .section-subtitle,
.about-content, .package-grid, .business-types, .contact-grid,
.package-card, .business-card, .info-card,
.price-list-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-title, .section-subtitle { transition-delay: 0s; }
.about-content { transition-delay: 0.1s; }
.package-grid { transition-delay: 0.15s; }
.business-types { transition-delay: 0.1s; }
.contact-grid { transition-delay: 0.1s; }
.entered {
    opacity: 1;
    transform: translateY(0);
}
/* 子元素错开入场 */
.package-card:nth-child(1).entered { transition-delay: 0.10s; }
.package-card:nth-child(2).entered { transition-delay: 0.16s; }
.package-card:nth-child(3).entered { transition-delay: 0.22s; }
.package-card:nth-child(4).entered { transition-delay: 0.28s; }
.package-card:nth-child(5).entered { transition-delay: 0.34s; }
.package-card:nth-child(6).entered { transition-delay: 0.40s; }
.package-card:nth-child(7).entered { transition-delay: 0.46s; }
.package-card:nth-child(8).entered { transition-delay: 0.52s; }
.package-card:nth-child(9).entered { transition-delay: 0.58s; }
.package-card:nth-child(10).entered { transition-delay: 0.64s; }
.business-card:nth-child(1).entered { transition-delay: 0.12s; }
.business-card:nth-child(2).entered { transition-delay: 0.22s; }
.business-card:nth-child(3).entered { transition-delay: 0.32s; }
.business-card:nth-child(4).entered { transition-delay: 0.42s; }

/* ============================================================
   7. 标题装饰线
   ============================================================ */
.section-title {
    position: relative;
    display: inline-block;
    padding: 0 48px;
}
.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 36px;
    height: 2px;
    transform: translateY(-50%);
    border-radius: 1px;
}
.section-title::before {
    left: 0;
    background: linear-gradient(90deg, transparent, var(--accent));
}
.section-title::after {
    right: 0;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* ============================================================
   8. Hero 标题字符浮动
   ============================================================ */
.hero-title-char {
    display: inline-block;
    animation: charFloat 3s ease-in-out infinite;
}
.hero-title-char:nth-child(1)  { animation-delay: 0.0s; }
.hero-title-char:nth-child(2)  { animation-delay: 0.15s; }
.hero-title-char:nth-child(3)  { animation-delay: 0.3s; }
.hero-title-char:nth-child(4)  { animation-delay: 0.45s; }
.hero-title-char:nth-child(5)  { animation-delay: 0.6s; }
.hero-title-char:nth-child(6)  { animation-delay: 0.75s; }
.hero-title-char:nth-child(7)  { animation-delay: 0.9s; }
.hero-title-char:nth-child(8)  { animation-delay: 1.05s; }
@keyframes charFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============================================================
   9. 营火回到顶部
   ============================================================ */
.back-to-top {
    overflow: visible;
    background: transparent;
    color: var(--primary-dark);
    font-size: 1.6rem;
    box-shadow: none;
    transition: all 0.3s ease;
}
.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: none;
    background: transparent;
}
.back-to-top .campfire-glow {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,140,0,0.4), transparent 70%);
    animation: fireGlow 0.8s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes fireGlow {
    0% { transform: translateX(-50%) scale(0.8); opacity: 0.5; }
    100% { transform: translateX(-50%) scale(1.3); opacity: 0.9; }
}

/* ============================================================
   移动端响应式
   ============================================================ */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; left: -100%;
        flex-direction: column;
        background: white;
        width: 78%;
        height: 100vh;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s;
        z-index: 999;
    }
    .nav-links.active { left: 0; }
    .nav-links a { padding: 14px 18px; font-size: 1.05rem; }

    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { width: 80%; justify-content: center; }

    .about { padding: 56px 0; }
    .about-content { grid-template-columns: 1.2fr 0.8fr; gap: 32px; }

    .packages { padding: 56px 0; }
    .package-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
    .price-list-section { padding: 18px; }

    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-row { flex-direction: column; gap: 10px; align-items: flex-start; }

    .business-types { grid-template-columns: 1fr; gap: 16px; }
    .business-contact { padding: 24px 18px; }

    .modal-content { width: 94%; padding: 24px 18px; }
    .back-to-top { bottom: 18px; right: 18px; width: 40px; height: 40px; }

    .reading-progress { display: none !important; }
    .section-title { padding: 0 12px; }
    .section-title::before, .section-title::after { width: 18px; }

    .env-grid {
        grid-template-columns: repeat(2, 1fr); gap: 8px;
        grid-template-areas:
            "hero hero"
            "side1 main1"
            "main2 tall"
            "wide wide";
    }
    .act-tab { padding: 7px 14px; font-size: 0.78rem; }

    /* 活动照片横向滑动轮播 */
    .act-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 0 24px;
        scroll-padding: 0 24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .act-grid::-webkit-scrollbar { display: none; }
    .act-item {
        flex: 0 0 80%;
        scroll-snap-align: center;
        aspect-ratio: 4 / 3;
    }
    .act-item:hover { transform: none; }
    .act-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 14px;
    }
    .act-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(45,80,22,0.2);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    .act-dot.active {
        background: var(--primary);
        width: 20px;
        border-radius: 4px;
    }
    .lightbox-prev, .lightbox-next { width: 36px; height: 36px; font-size: 1.5rem; }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }

    /* 移动端禁用重型动画，省电提速 */
    #fireflyCanvas { display: none !important; }
    #floatingElements { display: none !important; }
}

/* ============================================================
   小屏手机专项优化 (≤480px, 覆盖 iPhone SE ~ iPhone 14)
   ============================================================ */
@media (max-width: 480px) {
    /* --- 全局容器 --- */
    .container { padding: 0 16px; }

    /* --- 导航 --- */
    .navbar { padding: 12px 16px; }
    .logo-text { font-size: 1rem; }
    .nav-links { width: 88%; padding: 70px 24px 24px; }
    .nav-links a { padding: 12px 14px; font-size: 0.98rem; }

    /* --- Hero --- */
    .hero { height: 100svh; min-height: 560px; }
    .slide-content h1 { font-size: 2rem; line-height: 1.2; }
    .slide-content p { font-size: 0.95rem; }
    .hero-actions { gap: 10px; }
    .btn-primary, .btn-outline { width: 90%; font-size: 0.95rem; padding: 12px 20px; }
    .slider-dots { bottom: 16px; }

    /* --- 区块间距 --- */
    .about { padding: 44px 0; }
    .packages { padding: 44px 0; }
    .environment { padding: 44px 0; }
    .activities { padding: 44px 0; }
    .price-list { padding: 44px 0; }
    .business { padding: 44px 0; }
    .contact { padding: 44px 0; }
    .section-title { font-size: 1.5rem; }

    /* --- 关于营地: 强制单列 --- */
    .about-content { grid-template-columns: 1fr; gap: 24px; }
    .about-text .lead { font-size: 1rem; }
    .about-image img { border-radius: var(--radius-md); }

    /* --- 套餐卡片: 2列紧凑 --- */
    .package-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .package-card { padding: 14px 12px; }
    .package-card h3 { font-size: 0.88rem; }
    .package-card .price { font-size: 1.1rem; }
    .package-card p { font-size: 0.78rem; line-height: 1.5; }
    .price-list-section { padding: 14px; }
    .price-table th, .price-table td { font-size: 0.78rem; padding: 7px 8px; }

    /* --- 环境画廊: 2列简化 --- */
    .env-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        grid-template-areas:
            "hero hero"
            "side1 main1"
            "main2 tall"
            "wide wide";
    }
    .env-item img { border-radius: 6px; }

    /* --- 活动画廊 --- */
    .act-tabs { gap: 6px; }
    .act-tab { padding: 6px 11px; font-size: 0.75rem; }
    .act-grid { gap: 8px; padding: 0 16px; scroll-padding: 0 16px; }
    .act-item { flex: 0 0 82%; }
    .act-dots { margin-top: 10px; }

    /* --- 灯箱: 触摸目标放大 --- */
    .lightbox-close { width: 48px; height: 48px; font-size: 1.6rem; top: 10px; right: 10px; }
    .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 1.6rem; }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }

    /* --- 招商合作 --- */
    .business-card { padding: 18px 14px; }
    .business-card h3 { font-size: 1rem; }

    /* --- 联系区块 --- */
    .contact-grid { gap: 20px; }
    .info-card { padding: 16px 14px; }

    /* --- 表单: 防止iOS自动缩放 --- */
    .modal-content input,
    .modal-content select,
    .modal-content textarea { font-size: 16px !important; }

    /* --- 底部 --- */
    footer { padding: 28px 16px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .back-to-top { bottom: 14px; right: 14px; width: 38px; height: 38px; font-size: 1rem; }

    /* --- 卡片按钮: active 触摸反馈 --- */
    .package-card:active { transform: scale(0.97); }
    .business-card:active { transform: scale(0.97); }
    .btn-primary:active { transform: scale(0.96); }
}

/* ============================================================
   减少动画偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    #fireflyCanvas { display: none !important; }
    #floatingElements { display: none !important; }
    #readingProgress { display: none !important; }
    .hero-title-char { animation: none !important; }
    .section-title, .section-subtitle,
    .about-content, .package-grid, .business-types, .contact-grid,
    .package-card, .business-card, .info-card,
    .price-list-section { opacity: 1 !important; transform: none !important; }
}
