/* ============================================
   藏宝图首页 - 全新设计样式
   ============================================ */

:root {
    /* 主色调 - 藏宝图主题（优化对比度） */
    --th-primary: #B8860B;        /* 深金色 DarkGoldenrod - 提高可见度 */
    --th-primary-dark: #8B6914;   /* 更深的金色 - 用于悬停/边框 */
    --th-primary-light: #DAA520;  /* 金黄色 Goldenrod - 用于高亮 */

    /* 辅助色 - 复古棕色（替换刺眼荧光色） */
    --th-secondary: #8B4513;      /* 马鞍棕 SaddleBrown - 复古藏宝箱感 */
    --th-secondary-dark: #654321; /* 深棕色 - 木质/皮革质感 */
    --th-secondary-light: #A0522D; /* 赭石棕 Sienna - 柔和辅助 */
    --th-accent: #CD853F;         /* 秘鲁棕 Peru - 保持温暖 */

    /* 行动色 - 森林绿（替换荧光黄） */
    --th-action: #2E8B57;         /* 海洋绿 SeaGreen - 冒险/探索感 */
    --th-action-dark: #228B22;    /* 森林绿 ForestGreen */
    --th-action-light: #3CB371;   /* 中海洋绿 MediumSeaGreen */

    /* 成就色 - 琥珀橙（保持温暖感） */
    --th-reward: #FF8C00;         /* 深橙色 DarkOrange */
    --th-reward-dark: #E67E00;    /* 更深橙色 */
    --th-reward-light: #FFB347;   /* 浅橙色 */

    /* 信息色 - 宝石蓝（提高对比度） */
    --th-info: #1E90FF;           /* 道奇蓝 DodgerBlue - 更鲜明 */
    --th-info-dark: #1C6EA4;      /* 深蓝色 */
    --th-info-light: #4FA9E1;     /* 浅蓝色 */

    /* 背景色（更自然的羊皮纸色） */
    --th-dark: #F5F5DC;           /* 米色 Beige - 柔和自然 */
    --th-dark-light: #FAEBD7;     /* 古董白 AntiqueWhite */
    --th-text: #2C1810;           /* 深咖啡色 - 提高对比度 */
    --th-text-muted: #5D4037;     /* 棕灰色 Brown800 - 更易读 */
    --th-card-bg: rgba(250, 235, 215, 0.95); /* 古董白卡片背景 */
    --th-border: rgba(212, 175, 55, 0.1);
    --th-radius: 12px;
    --th-shadow: 0 4px 20px rgba(139, 69, 19, 0.15);
}

/* ===== Scroll Reveal Base ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Micro-animations ===== */
.th-btn, .th-route-card, .th-treasure-card, .poi-item, .th-entrance-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.th-btn:active {
    transform: scale(0.95);
}

/* Shine Effect for Primary Buttons */
.th-btn-primary {
    position: relative;
    overflow: hidden;
}

.th-btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.th-btn-primary:hover::after {
    left: 120%;
}

/* Card Hover Effects */
.th-route-card:hover, .th-treasure-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
}

/* ===== 标签切换样式 ===== */
.th-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 1rem;
}

.th-section-info {
    text-align: left;
}

.th-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(139, 69, 19, 0.05);
    padding: 4px;
    border-radius: 50px;
}

.th-tab-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--th-text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.th-tab-btn.active {
    background: var(--th-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(203, 187, 134, 0.3);
}

/* ===== Hero Search ===== */
.th-hero-search {
    margin-top: 2.5rem;
    max-width: 500px;
}

.th-hero-search form {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.th-hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.th-hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.th-hero-search button {
    background: var(--th-primary);
    color: #fff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.th-hero-search button:hover {
    background: var(--th-primary-light);
    transform: scale(1.05);
}

.th-tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.th-tab-pane.active {
    display: block;
}

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

.activity-image-wrapper {
    background: #f0f0f0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.th-activity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.th-activity-placeholder {
    font-size: 3rem;
    opacity: 0.3;
}

.th-route-placeholder {
    font-size: 3rem;
    opacity: 0.3;
}

.status-ongoing { background: #4CAF50 !important; }
.status-planning { background: #FF9800 !important; }
.status-completed { background: #9E9E9E !important; }

@media (max-width: 768px) {
    .th-tabs-header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }
    .th-section-info {
        text-align: center;
    }
}

/* 重置 */
.treasure-home {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--th-dark);
    color: var(--th-text);
    line-height: 1.6;
    min-height: 100vh;
}

.treasure-home * {
    box-sizing: border-box;
}

.th-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.th-center {
    text-align: center;
    margin-top: 2rem;
}

/* ===== 主容器 ===== */
.th-main {
    padding-top: 0;
}

/* ===== 按钮通用 ===== */
.th-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--th-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.th-btn-primary {
    background: linear-gradient(135deg, var(--th-primary), var(--th-primary-dark));
    color: #fff;
    box-shadow:
        0 4px 20px rgba(184, 134, 11, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    border: 1px solid var(--th-primary-dark);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.th-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 30px rgba(184, 134, 11, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    color: #fff;
    background: linear-gradient(135deg, var(--th-primary-light), var(--th-primary));
}

.th-btn-secondary {
    background: rgba(139, 69, 19, 0.08);
    color: var(--th-secondary);
    border: 2px solid var(--th-secondary);
    font-weight: 600;
}

.th-btn-secondary:hover {
    background: var(--th-secondary);
    border-color: var(--th-secondary-dark);
    color: var(--th-dark-light);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* ===== Section 通用 ===== */
.th-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.th-section-tag {
    display: inline-block;
    background: rgba(232, 168, 56, 0.15);
    color: var(--th-primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.th-section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--th-text);
    margin: 0;
}

.th-section-desc {
    color: var(--th-text-muted);
    margin-top: 0.75rem;
}

/* ===== 色彩工具类 ===== */
.text-action { color: var(--th-action) !important; }
.text-reward { color: var(--th-reward) !important; }
.text-info-blue { color: var(--th-info) !important; }
.text-gold { color: var(--th-primary) !important; }

.bg-action { background-color: var(--th-action) !important; }
.bg-reward { background-color: var(--th-reward) !important; }
.bg-info-blue { background-color: var(--th-info) !important; }

/* 成就/奖励按钮 */
.th-btn-reward {
    background: linear-gradient(135deg, var(--th-reward), var(--th-reward-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
    border: 1px solid var(--th-reward-dark);
}

.th-btn-reward:hover {
    background: linear-gradient(135deg, var(--th-reward-light), var(--th-reward));
    transform: translateY(-2px);
}

/* 信息/辅助按钮 */
.th-btn-info {
    background: linear-gradient(135deg, var(--th-info), var(--th-info-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(74, 144, 217, 0.4);
    border: 1px solid var(--th-info-dark);
}

.th-btn-info:hover {
    background: linear-gradient(135deg, var(--th-info-light), var(--th-info));
    transform: translateY(-2px);
}

/* ===== Outline 按钮 ===== */
.th-btn-outline {
    background: transparent;
    border: 2px solid var(--th-primary);
    color: var(--th-primary);
}

.th-btn-outline:hover {
    background: var(--th-primary);
    color: #fff;
}

/* ===== Hero 统计栏 ===== */
.th-hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--th-border);
}

.th-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.th-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--th-primary-dark);
}

.th-stat-label {
    font-size: 0.85rem;
    color: var(--th-text-muted);
}

/* ===== 怎么玩 - 三步流程 ===== */
.th-howto {
    padding: 4rem 0;
    background: var(--th-dark-light);
}

.th-steps-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.th-step-card {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    background: var(--th-card-bg);
    border-radius: var(--th-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--th-shadow);
    border: 1px solid var(--th-border);
    position: relative;
}

.th-step-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--th-action);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.th-step-img-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #e0d5c5, #d4c9b9);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--th-text-muted);
    margin-bottom: 1rem;
    border: 2px dashed var(--th-border);
}

.th-step-img-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

.th-step-img-placeholder span {
    font-size: 0.8rem;
    opacity: 0.6;
}

.th-step-arrow {
    display: flex;
    align-items: center;
    color: var(--th-primary);
    font-size: 1.5rem;
}

.th-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.th-step-desc {
    font-size: 0.9rem;
    color: var(--th-text-muted);
    margin: 0;
}

/* ===== 地图全宽板块 ===== */
.th-map-section {
    padding: 3rem 0 0;
}

.th-map-fullwidth {
    display: block;
    text-decoration: none;
}

.th-map-large {
    width: 100%;
    height: 700px;
    min-height: 500px;
    position: relative;
}

/* 地图滚轮控制 - 提示层 */
.map-scroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    cursor: pointer;
    transition: opacity 0.3s;
}

.map-scroll-hint {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--th-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--th-primary);
}

.map-scroll-hint i {
    font-size: 2rem;
    color: var(--th-primary);
    display: block;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

.map-scroll-hint small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(62, 39, 35, 0.7);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Ctrl 提示 */
.map-ctrl-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(33, 150, 243, 0.95);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
}

.map-ctrl-hint i {
    margin-right: 0.5rem;
}

.th-map-info-bar {
    background: rgba(62, 39, 35, 0.95);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.th-map-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.th-map-stat-icon {
    font-size: 1.25rem;
}

.th-map-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--th-primary-light);
}

.th-map-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.th-ticker-inline {
    flex: 1;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.th-map-cta-text {
    color: var(--th-action-light);
    font-weight: 600;
}

.th-map-fullwidth:hover .th-map-info-bar {
    background: var(--th-action);
}

/* ===== 社会认同 - 用户故事 ===== */
.th-social-proof {
    padding: 4rem 0;
}

.th-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.th-story-card {
    background: var(--th-card-bg);
    border-radius: var(--th-radius);
    overflow: hidden;
    box-shadow: var(--th-shadow);
    border: 1px solid var(--th-border);
}

.th-story-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e0d5c5, #d4c9b9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--th-text-muted);
}

.th-story-img-placeholder i {
    font-size: 2.5rem;
    opacity: 0.4;
}

.th-story-content {
    padding: 1.25rem;
}

.th-story-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.th-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.th-story-author strong {
    display: block;
    font-size: 0.95rem;
}

.th-story-author span {
    font-size: 0.8rem;
    color: var(--th-text-muted);
}

.th-story-text {
    font-size: 0.95rem;
    color: var(--th-text);
    line-height: 1.6;
    margin: 0;
}

/* ===== 信任保障 ===== */
.th-trust {
    padding: 3rem 0;
    background: var(--th-dark-light);
}

.th-trust-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.th-trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.th-trust-icon {
    font-size: 2rem;
    color: var(--th-action);
}

.th-trust-text strong {
    display: block;
    font-size: 1rem;
    color: var(--th-text);
}

.th-trust-text span {
    font-size: 0.85rem;
    color: var(--th-text-muted);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .th-hero-stats {
        justify-content: space-around;
    }
    
    .th-step-arrow {
        display: none;
    }
    
    .th-steps-row {
        flex-direction: column;
        align-items: center;
    }
    
    .th-map-info-bar {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 1rem; /* 减少内边距 */
        gap: 0.75rem;
    }

    /* 隐藏实时滚动ticker,移动端不需要 */
    .th-live-ticker {
        display: none !important;
    }

    /* 优化地图统计信息显示 */
    .th-map-stat {
        justify-content: center;
        padding: 0.5rem 0;
    }

    /* 优化地图操作按钮 */
    .th-map-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }

    .th-map-actions .th-btn {
        flex: 1;
        max-width: 150px;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

    background: linear-gradient(135deg, var(--th-info-light), var(--th-info));
    transform: translateY(-2px);
}

/* ===== 转化优化 CSS ===== */

/* 1. 紧迫感 Badge */
.th-badge-urgent {
    background: rgba(255, 69, 0, 0.1) !important;
    border: 1px solid rgba(255, 69, 0, 0.3) !important;
    color: #FF4500 !important;
    animation: thPulse 2s infinite;
    display: inline-block;
    margin-bottom: 1.5rem;
}

@keyframes thPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 69, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0); }
}

.th-urgent-text {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* 2. Hero 布局与行动区 */
.th-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    /* 去掉背景遮罩，只用文字阴影 */
}

.th-hero-right {
    display: flex;
    justify-content: center; /* Center the card in the right column */
    align-items: center;
}

.th-hero-action-card {
    background: rgba(216, 212, 212, 0.75); /* 米色背景，半透明 */
    backdrop-filter: blur(15px); /* Strong frost */
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow:
        0 15px 50px rgba(197, 0, 0, 1),
        0 0 0 1px rgba(184, 134, 11, 0.3); /* 金色边框光晕 */
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 2px solid rgba(184, 134, 11, 0.4);
}

.th-hero-action {
    margin-bottom: 1rem;
}

.th-btn-large {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.4);
    width: 100%; /* Full width button */
}

.th-hero-secondary {
    margin-bottom: 2rem;
}

.th-link-subtle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* 新手指南 - 集成版 */
.th-hero-guide {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    text-align: left;
}

.th-guide-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--th-text);
    margin-bottom: 1rem;
}

.th-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.th-guide-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.th-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--th-primary);
    color: #1A1A1A;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.th-step-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.th-step-icon {
    color: var(--th-primary-light);
    font-size: 1rem;
}

.th-step-text {
    color: var(--th-text);
    font-size: 0.9rem;
}

.th-guide-more {
    display: inline-block;
    color: var(--th-primary);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.th-guide-more:hover {
    color: var(--th-primary-dark);
    transform: translateX(4px);
}

.th-link-subtle:hover {
    color: #fff;
    border-color: #fff;
}

.th-search-subtle {
    opacity: 0.95;
}

.th-hero-search-form {
    background: rgba(255, 255, 255, 0.9); /* Keep input readable */
    border: none;
}

/* 动画类 */
.th-animate-up {
    animation: thFadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start invisible */
}

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

/* 3. 地图引导 (优化版) */
.th-map-wrapper {
    position: relative;
    border-radius: var(--th-radius);
    overflow: hidden;
    box-shadow: var(--th-shadow);
}

.th-map-actions {
    display: flex;
    gap: 0.5rem;
}

.th-btn-xs {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* 4. 模块 CTA */
.th-btn-text-action {
    display: inline-block;
    margin-top: 1rem;
    color: var(--th-action);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.th-btn-text-action:hover {
    text-decoration: underline;
}

/* 5. 视觉优化 - 删除重复定义，使用下方的最新样式 */

/* 6. 响应式适配 */
@media (max-width: 900px) {
    .th-hero {
        min-height: auto;
        padding: 4rem 1rem 2rem;
    }

    .th-hero-container {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2rem;
        text-align: center;
    }

    .th-hero-left {
        align-items: center; /* Center align text on mobile */
        padding: 1.5rem;
    }

    .th-hero-right {
        width: 100%;
    }

    .th-hero-action-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    .th-hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .th-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .th-hero-subtitle br {
        display: none;
    }

    .th-hero-search {
        margin-top: 1.5rem;
        max-width: 100%;
    }

    .th-hero-search form {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        border-radius: 12px;
    }

    .th-hero-search input {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.25);
        font-size: 0.95rem;
    }

    .th-hero-search button {
        width: 100%;
        padding: 0.9rem 1.5rem;
        border-radius: 8px;
        justify-content: center;
        font-size: 0.95rem;
    }

    .th-guide-steps {
        gap: 0.75rem;
    }

    .th-guide-step {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .th-step-num {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .th-step-content {
        gap: 0.5rem;
        text-align: left;
    }

    .th-step-icon {
        font-size: 0.9rem;
    }

    .th-step-text {
        font-size: 0.85rem;
    }

    .th-guide-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .th-hero {
        padding: 3rem 0.75rem 1.5rem;
    }

    .th-hero-left {
        padding: 1rem;
    }

    .th-hero-title {
        font-size: 1.5rem;
    }

    .th-hero-subtitle {
        font-size: 0.9rem;
    }

    .th-hero-action-card {
        padding: 1.25rem;
    }

    .th-btn-large {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}


.th-btn-mini-action {
    display: inline-block;
    background: rgba(46, 139, 87, 0.1);
    color: var(--th-action);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.th-treasure-cta {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--th-primary-dark);
    font-weight: 600;
}

/* 5. 简化版 B2B */
.th-cooperation-simple {
    padding: 2rem 0;
    background: #fff;
    border-top: 1px solid var(--th-border);
}

.th-coop-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(244, 232, 208, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px dashed var(--th-border);
}

.th-coop-text h3 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    color: var(--th-text);
}

.th-coop-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--th-text-muted);
}

.th-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .th-coop-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ===== 第一屏：Hero ===== */
.th-hero {
    min-height: 650px; /* Reduced from 100vh to reduce whitespace */
    padding: 6rem 1.5rem 3rem; /* Reduced top padding */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.th-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #F4E8D0 0%, #EDD9B4 100%);
}

.th-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 69, 19, 0.02) 2px, rgba(139, 69, 19, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 69, 19, 0.02) 2px, rgba(139, 69, 19, 0.02) 4px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='5'/%3E%3CfeColorMatrix values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.15;
}

.th-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.th-hero-content {
    animation: thFadeInUp 0.8s ease-out;
}

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

.th-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232, 168, 56, 0.15);
    border: 1px solid rgba(232, 168, 56, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--th-primary);
    margin-bottom: 1.5rem;
}

.th-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--th-secondary);
    border-radius: 50%;
    animation: thPulse 2s infinite;
}

@keyframes thPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.th-hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.th-highlight {
    /* 纯白色文字，适度阴影 */
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.th-highlight-secondary {
    color: #ebf9c6ff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.th-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.th-hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.th-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.th-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--th-text);
    border: 1px solid rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

/* 次要高亮色 (用于副标题) */


.th-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 焦点状态 (无障碍) */
.th-btn:focus,
.th-search-input:focus,
.th-hero-visual:focus {
    outline: 3px solid var(--th-info);
    outline-offset: 2px;
}

/* 可点击地图链接样式 */
a.th-hero-visual {
    display: block;
    text-decoration: none;
    transition: transform 0.3s;
}

a.th-hero-visual:hover {
    transform: scale(1.02);
}

.th-hero-visual {
    animation: thFadeInUp 0.8s ease-out 0.2s both;
    width: 100%;
    position: relative;
}

/* 地图交互提示 */
.th-map-preview::before {
    content: '👆 点击探索地图';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(46, 139, 87, 0.95);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.th-map-preview:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.th-map-preview {
    cursor: pointer;
}

.th-map-preview {
    width: 100%;
    height: 600px;
    background: var(--th-card-bg);
    border: 3px solid var(--th-primary-dark);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 10px 40px rgba(139, 69, 19, 0.25),
        inset 0 3px 10px rgba(212, 175, 55, 0.2);
}

#map8 {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 17px;
    z-index: 1;
}

.th-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 69, 19, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 69, 19, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.th-map-markers {
    position: absolute;
    inset: 0;
}

.th-map-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--th-primary);
    border-radius: 50%;
    animation: thMarkerPulse 2s ease-in-out infinite;
}

.th-map-marker::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--th-primary);
    border-radius: 50%;
    animation: thMarkerRing 2s ease-out infinite;
}

.th-map-marker:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.th-map-marker:nth-child(2) { top: 40%; left: 55%; animation-delay: 0.5s; }
.th-map-marker:nth-child(3) { top: 60%; left: 25%; animation-delay: 1s; }
.th-map-marker:nth-child(4) { top: 35%; left: 70%; animation-delay: 1.5s; }
.th-map-marker:nth-child(5) { top: 70%; left: 60%; animation-delay: 0.8s; }

@keyframes thMarkerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes thMarkerRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

/* O2O Features CSS */

/* Hero Search */
.th-hero-search-container {
    margin-bottom: 2rem;
    max-width: 500px;
}

.th-hero-search-form {
    position: relative;
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
}

.th-hero-search-form:focus-within {
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    border-color: var(--th-primary);
}

.th-search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--th-primary);
    font-size: 1.1rem;
}

.th-search-input {
    flex: 1;
    border: none;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    font-size: 1rem;
    color: #333;
    outline: none;
    background: transparent;
}

.th-search-btn {
    background: var(--th-primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.th-search-btn:hover {
    background: var(--th-primary-dark);
}

/* Live Ticker */
.th-live-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 0 1rem;
    max-width: none;
}

.th-ticker-content {
    display: inline-block;
    animation: thTickerScroll 30s linear infinite;
    white-space: nowrap;
}

.th-ticker-item {
    display: inline-block;
    margin-right: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.th-ticker-item i {
    color: var(--th-primary-light);
    margin-right: 0.25rem;
}

.th-ticker-item strong {
    color: var(--th-primary-light);
}

.th-ticker-item em {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
}

.th-ticker-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

@keyframes thTickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* O2O Steps */
.o2o-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Changed from center to allow better stacking */
    gap: 1rem;
}

.th-step-visual {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.th-step-icon-main {
    font-size: 3.5rem;
    color: var(--th-primary);
    z-index: 1;
}

.th-step-icon-sub {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 1.8rem;
    color: var(--th-secondary);
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Trust Section */
.th-trust-section {
    border-top: 1px solid rgba(139, 69, 19, 0.1);
    padding-top: 2rem;
}

.th-trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.th-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.th-trust-icon {
    color: #2E8B57; /* Emerald Green */
    font-size: 1.25rem;
}

.th-trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.th-trust-text strong {
    font-size: 0.9rem;
    color: #2E8B57;
}

.th-trust-text span {
    font-size: 0.75rem;
    color: var(--th-text-muted);
}

.th-step-arrow {
    align-self: center;
    font-size: 1.5rem;
    color: var(--th-primary-light);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .o2o-steps {
        flex-direction: column;
        align-items: center;
    }
    .th-step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

.th-map-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(139, 69, 19, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--th-dark-light);
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
}

.th-map-label strong {
    color: var(--th-primary-light);
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ===== 第二屏：四大入口 ===== */
.th-features {
    padding: 4rem 1.5rem;
    background: var(--th-dark-light);
}

.th-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.th-feature-card {
    background: var(--th-card-bg);
    border: 2px solid var(--th-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 4px 15px rgba(139, 69, 19, 0.1),
        inset 0 1px 3px rgba(212, 175, 55, 0.1);
}

.th-feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--th-primary);
    box-shadow:
        0 8px 30px rgba(212, 175, 55, 0.3),
        inset 0 1px 3px rgba(212, 175, 55, 0.2);
    color: var(--th-text);
    background: var(--th-dark-light);
}

.th-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.th-icon-map { background: linear-gradient(135deg, var(--th-primary), var(--th-primary-dark)); }
.th-icon-route { background: linear-gradient(135deg, var(--th-secondary), var(--th-secondary-dark)); }
.th-icon-publish { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.th-icon-challenge { background: linear-gradient(135deg, var(--th-accent), #E64A2E); }

.th-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.th-feature-desc {
    font-size: 0.85rem;
    color: var(--th-text-muted);
    margin: 0;
}

/* ===== 第三屏：三步玩法 ===== */
.th-howto {
    padding: 5rem 1.5rem;
    background: var(--th-dark);
}

.th-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.th-step-card {
    background: var(--th-card-bg);
    border: 1px solid var(--th-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.th-step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--th-primary);
    color: var(--th-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.th-step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.th-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.th-step-desc {
    font-size: 0.9rem;
    color: var(--th-text-muted);
    margin: 0;
}

/* ===== 第四屏：热门路线 ===== */
.th-routes {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, var(--th-dark-light) 0%, var(--th-dark) 100%);
}

.th-routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.th-route-card {
    background: var(--th-card-bg);
    border: 1px solid var(--th-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.th-route-card:hover {
    transform: translateY(-5px);
    border-color: var(--th-primary);
    color: var(--th-text);
}

.th-route-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(232, 168, 56, 0.2), rgba(45, 139, 90, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.th-route-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--th-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.th-route-content {
    padding: 1.25rem;
}

.th-route-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.th-route-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--th-text-muted);
}

/* ===== 第五屏：最新宝藏 ===== */
.th-treasures {
    padding: 5rem 1.5rem;
    background: var(--th-dark);
}

.th-treasures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.th-treasure-card {
    background: var(--th-card-bg);
    border: 1px solid var(--th-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.th-treasure-card:hover {
    transform: translateY(-5px);
    border-color: var(--th-primary);
    color: var(--th-text);
}

.th-treasure-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(232, 168, 56, 0.15), rgba(139, 92, 246, 0.1));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.th-treasure-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.th-treasure-icon {
    font-size: 3rem;
}

.th-treasure-difficulty {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.th-treasure-hot {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--th-accent);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.th-treasure-content {
    padding: 1rem;
}

.th-treasure-name {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.th-treasure-location {
    font-size: 0.85rem;
    color: var(--th-text-muted);
}

/* ===== 第六屏：社区动态 ===== */
.th-community {
    padding: 5rem 1.5rem;
    background: var(--th-dark-light);
}

.th-stats-banner {
    background: linear-gradient(135deg, var(--th-primary), var(--th-primary-dark));
    color: var(--th-dark);
    padding: 1rem 1.5rem;
    border-radius: var(--th-radius);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 600;
}

.th-stats-banner span {
    font-size: 1.5rem;
    font-weight: 700;
}

.th-community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.th-community-card {
    background: var(--th-card-bg);
    border: 1px solid var(--th-border);
    border-radius: 20px;
    padding: 1.5rem;
}

.th-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0;
}

.th-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.th-activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.th-activity-item:last-child {
    border-bottom: none;
}

.th-activity-avatar img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.th-activity-info {
    flex: 1;
    min-width: 0;
}

.th-activity-text {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.th-activity-text strong {
    color: var(--th-primary);
}

.th-activity-text a {
    color: var(--th-secondary);
    text-decoration: none;
}

.th-activity-text a:hover {
    text-decoration: underline;
}

.th-activity-time {
    font-size: 0.75rem;
    color: var(--th-text-muted);
}

.th-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.th-rank-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--th-radius);
    transition: all 0.3s;
}

.th-rank-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.06);
}

.th-rank-position {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.th-rank-gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1a1a2e; }
.th-rank-silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #1a1a2e; }
.th-rank-bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: white; }
.th-rank-normal { background: rgba(255, 255, 255, 0.1); }

.th-rank-item img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.th-rank-user {
    flex: 1;
    font-weight: 500;
}

.th-rank-score {
    color: var(--th-primary);
    font-weight: 600;
}

.th-more-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--th-primary);
    text-decoration: none;
    font-weight: 600;
}

.th-more-link:hover {
    text-decoration: underline;
    color: var(--th-primary-light);
}

/* ===== 第七屏：商业合作 ===== */
.th-cooperation {
    padding: 5rem 1.5rem;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(232, 168, 56, 0.1) 0%, transparent 50%),
        var(--th-dark);
}

.th-coop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.th-coop-card {
    background: var(--th-card-bg);
    border: 1px solid var(--th-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.th-coop-card:hover {
    border-color: var(--th-primary);
    transform: translateY(-5px);
}

.th-coop-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--th-primary), var(--th-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.th-coop-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.th-coop-desc {
    font-size: 0.9rem;
    color: var(--th-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ===== 第八屏：小程序入口 ===== */
.th-app-section {
    padding: 5rem 1.5rem;
    background: var(--th-dark-light);
    text-align: center;
}

.th-app-content {
    max-width: 600px;
    margin: 0 auto;
}

.th-qr-code {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
    overflow: hidden;
}

.th-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.th-app-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.th-app-desc {
    color: var(--th-text-muted);
    margin: 0 0 2rem 0;
}

.th-app-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== 更多功能入口 ===== */
.th-more-features {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, var(--th-dark) 0%, var(--th-dark-light) 100%);
}

.th-entrance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.th-entrance-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(244, 232, 208, 0.3);
    border: 1px solid rgba(184, 134, 11, 0.2);
    color: var(--th-text);
    text-decoration: none;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
}

.th-entrance-card:hover {
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--th-primary);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.2);
}

.th-entrance-card i {
    font-size: 2.5rem;
    color: var(--th-primary);
    transition: all 0.3s;
}

.th-entrance-card:hover i {
    color: var(--th-primary-dark);
    transform: scale(1.1);
}

.th-entrance-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--th-text);
    margin: 0;
}

.th-entrance-card p {
    font-size: 0.875rem;
    color: var(--th-text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .th-entrance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .th-entrance-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 浮动按钮 ===== */
.th-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--th-primary), var(--th-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(232, 168, 56, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
    text-decoration: none;
}

.th-fab:hover {
    transform: scale(1.1);
}

/* ===== 响应式设计 ===== */
@media (max-width: 900px) {
    .th-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .th-hero-features {
        align-items: center;
    }

    .th-hero-buttons {
        justify-content: center;
    }

    .th-hero-visual {
        max-width: 100%;
        margin: 0 auto;
    }

    .th-map-preview {
        height: 500px;
    }

    .th-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .th-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .th-routes-grid {
        grid-template-columns: 1fr;
    }

    .th-community-grid {
        grid-template-columns: 1fr;
    }

    .th-coop-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .th-hero {
        min-height: auto;
        padding: 5rem 1rem 3rem;
    }

    .th-hero-title {
        font-size: 1.75rem;
    }

    .th-hero-subtitle {
        font-size: 1rem;
    }

    .th-hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .th-btn {
        width: 100%;
        justify-content: center;
    }

    .th-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .th-feature-card {
        padding: 1.25rem 1rem;
    }

    /* 手机端地图显示优化 - 增加地图高度 */
    .th-map-preview {
        height: 500px !important; /* 从400px增加到500px */
        margin: 0;
    }

    #map8 {
        height: 100% !important;
    }

    .th-map-large {
        height: 500px !important; /* 从400px增加到500px */
        min-height: 500px !important;
    }

    /* 限制标题大小避免过大 */
    .th-hero-title-v2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        line-height: 1.3 !important;
    }

    .th-hero-subtitle-v2 {
        font-size: clamp(0.9rem, 3vw, 1.1rem) !important;
    }

    /* 移动端直接隐藏地图遮罩层 - 触摸设备不需要滚轮提示 */
    .map-scroll-overlay {
        display: none !important; /* 完全隐藏 */
    }

    .map-scroll-toggle-btn {
        display: none !important; /* 隐藏启用按钮 */
    }

    .map-scroll-hint {
        display: none !important; /* 隐藏提示文字 */
    }

    /* 地图信息栏小屏幕优化 */
    .th-map-info-bar {
        flex-direction: column !important;
        text-align: center;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .th-map-stat {
        justify-content: center;
        padding: 0.5rem 0;
    }

    .th-live-ticker {
        display: none !important; /* 隐藏实时滚动 */
    }

    .map-scroll-hint i {
        font-size: 1.5rem;
    }

    .map-scroll-hint small {
        font-size: 0.75rem;
    }

    /* 移动端操作按钮优化 */
    .poi-item button {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    /* 移动端POI卡片优化 - 最近藏点和最新发布 */
    .latest-dynamics-section {
        padding: 1rem 0.5rem;
        gap: 1rem;
        margin-top: 1rem;
    }

    .dynamics-column {
        padding: 0.75rem;
        border-width: 1px;
    }

    .poi-list {
        gap: 0.5rem;
    }

    .poi-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .poi-image {
        width: 50px;
        height: 50px;
    }

    .poi-title {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .poi-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    .poi-meta i {
        font-size: 0.65rem;
    }

    /* 确保地图操作按钮在小屏幕上显示 */
    .th-map-actions {
        display: flex !important;
        width: 100%;
        gap: 0.5rem;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .th-map-actions .th-btn {
        flex: 1;
        max-width: 150px;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .th-map-label {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .th-map-label strong {
        font-size: 1.25rem;
    }
    
    .th-feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .th-feature-title {
        font-size: 0.95rem;
    }
    
    .th-feature-desc {
        font-size: 0.75rem;
    }
    
    .th-treasures-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .th-treasures-grid {
        grid-template-columns: 1fr;
    }
    
    .th-entrance-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .th-entrance-btn {
        width: 100%;
        height: 80px;
    }
    
    .th-fab {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
}

/* 隐藏原有主题样式影响 */
.treasure-home #content,
.treasure-home .container,
.treasure-home .row {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* ===== 新访客欢迎横幅 (Welcome Banner) ===== */
.welcome-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 232, 208, 0.9));
    backdrop-filter: blur(10px);
    border: 2px solid var(--th-primary);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    animation: slideDown 0.6s ease-out;
    overflow: hidden;
}

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

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--th-primary);
}

.close-banner {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--th-text-muted);
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    z-index: 10;
}

.close-banner:hover {
    color: var(--th-primary);
    transform: rotate(90deg);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.banner-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--th-text);
    margin: 0 0 0.5rem 0;
    font-family: 'Noto Serif SC', serif;
}

.banner-text p {
    font-size: 1rem;
    color: var(--th-text-muted);
    margin: 0;
}

.banner-actions {
    display: flex;
    gap: 1rem;
}

.banner-actions a {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-register {
    background: var(--th-primary);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(203, 187, 134, 0.4);
}

.btn-register:hover {
    background: var(--th-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 187, 134, 0.5);
}

.btn-demo {
    background: rgba(139, 69, 19, 0.05);
    color: var(--th-text) !important;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.btn-demo:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: translateY(-2px);
}

.banner-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 69, 19, 0.1);
    font-size: 0.85rem;
    color: var(--th-primary);
    font-weight: 600;
}

.banner-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 992px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .banner-actions {
        justify-content: center;
    }
    .banner-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ===== 附近藏点列表 (地图下方) ===== */
.latest-dynamics-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 3rem 0;
    background: rgba(255, 248, 231, 0.3);
    border-radius: 12px;
    margin-top: 2rem;
}

.dynamics-column {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--th-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.column-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--th-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--th-primary);
    font-family: 'Noto Serif SC', serif;
}

/* 藏点列表 (POI List) */
.poi-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.poi-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.75rem;
    background: rgba(244, 232, 208, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.poi-item:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--th-primary);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.poi-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.poi-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poi-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--th-primary-dark), var(--th-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.poi-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.poi-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--th-text);
    margin: 0;
    line-height: 1.4;
}

.poi-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(62, 39, 35, 0.6);
}

.poi-category,
.poi-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.poi-category i,
.poi-views i {
    font-size: 0.75rem;
}

.view-all-link {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(139, 69, 19, 0.1);
}

/* 实时动态列表 */
.dynamics-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dynamics-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    font-size: 0.9rem;
    line-height: 1.6;
}

.dynamics-list li:last-child {
    border-bottom: none;
}

.dynamics-list li img {
    border-radius: 50%;
    flex-shrink: 0;
}

.dynamics-list li strong {
    color: var(--th-primary);
    font-weight: 600;
}

.dynamics-list li a {
    color: var(--th-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.dynamics-list li a:hover {
    color: var(--th-primary);
    text-decoration: underline;
}

.dynamics-list .time {
    color: rgba(62, 39, 35, 0.5);
    font-size: 0.75rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* 排行榜 */
.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(244, 232, 208, 0.3);
    border-radius: 8px;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateX(4px);
}

.leaderboard-item .rank {
    font-size: 1.25rem;
    font-weight: 700;
    width: 32px;
    text-align: center;
    color: var(--th-primary);
}

.leaderboard-item img {
    border-radius: 50%;
    flex-shrink: 0;
}

.leaderboard-item .username {
    flex: 1;
    font-weight: 600;
    color: var(--th-text);
}

.leaderboard-item .score {
    font-size: 0.875rem;
    color: rgba(62, 39, 35, 0.7);
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .latest-dynamics-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .dynamics-column {
        padding: 1.25rem;
    }

    .column-title {
        font-size: 1.1rem;
    }

    .dynamics-list li {
        font-size: 0.85rem;
    }
}
