/*
 * =============================================
 * Panda Tours 页面重新设计 - 移动端优先
 * 版本: 2026 v2.0
 * 特点: 响应式 + SEO优化 + FAQ模块 + 现代卡片设计
 * =============================================
 */

/* ========== 1. CSS变量定义 - 与 Homepage 保持一致 ========== */
:root {
    /* 颜色系统 - 匹配 Homepage (#0f172a, #64748b) */
    --primary-color: #129ad6;
    --secondary-color: #e47e65;
    --text-dark: #0f172a;            /* Homepage 主文字色 */
    --text-light: #64748b;            /* Homepage 次要文字色 (替代 #666) */
    --bg-light: #f8fafc;             /* 更浅的背景色 (替代 #f5f9fa) */
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15), 0 6px 12px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* 字体系统 - 与 Homepage 完全一致 */
    --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;

    /* 间距系统 - 使用 4px 基准网格 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

/* ========== 2. 基础重置与全局样式 - 与 Homepage 完全一致 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base); /* 16px - 匹配 Homepage */
    scroll-behavior: smooth; /* 平滑滚动 */
}

body.panda-tours-page {
    font-family: var(--font-family-base); /* Inter 字体 - 匹配 Homepage */
    font-size: var(--font-size-base);
    line-height: 1.6; /* Homepage 标准行高 */
    color: var(--text-dark); /* #0f172a - 匹配 Homepage */
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* 字体渲染优化 (Mac/Webkit) */
    -moz-osx-font-smoothing: grayscale; /* 字体渲染优化 (Firefox) */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========== 3. Hero Banner 区域 (全屏沉浸式) ========== */
.panda-hero-banner {
    position: relative;
    width: 100%;
    height: 70vh; /* 移动端70%视口高度 */
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (min-width: 1024px) {
    .panda-hero-banner {
        height: 85vh; /* 桌面端85% */
        min-height: 600px;
    }
}

.panda-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.panda-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.panda-hero-content {
    max-width: 900px;
    color: var(--white);
    z-index: 10;
}

.panda-hero-content h1 {
    font-size: clamp(32px, 5vw, 52px); /* Homepage风格：移动端32px → 桌面端52px */
    font-weight: 700;
    letter-spacing: -0.02em; /* 字母间距优化 */
    margin-bottom: var(--space-lg);
    line-height: 1.15; /* 标题行高稍紧凑 */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.panda-hero-content p {
    font-size: clamp(17px, 2vw, 20px); /* Homepage正文大小：17-20px */
    margin-bottom: var(--space-xl);
    line-height: 1.7; /* 行高1.7更易读 */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    color:#ffffff !important;
}

.panda-cta-button {
    display: inline-block;
    padding: 14px 36px; /* Hero按钮调整 */
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px; /* HomepageHero按钮字号 */
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.panda-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #d66d54;
}

/* ========== 4. 统计数据条 (Social Proof) ========== */
.panda-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 20;
    margin-top: -60px; /* 重叠在hero上 */
    border-radius: var(--border-radius);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .panda-stats-bar {
        grid-template-columns: repeat(4, 1fr);
        padding: 50px 40px;
    }
}

.panda-stat-item {
    text-align: center;
    padding: 20px 10px;
}

.panda-stat-number {
    font-size: clamp(28px, 5vw, 44px); /* Homepage大数字风格 */
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.panda-stat-label {
    font-size: 13px; /* Homepage小标签字号 */
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px; /* 字母间距 */
    font-weight: 500; /* 中等字重 */
}

/* ========== 5. 内容区域通用样式 ========== */
.panda-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .panda-section {
        padding: 80px 40px;
    }
}

.panda-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.panda-section-title h2 {
    font-size: clamp(26px, 4vw, 38px); /* Homepage H2风格：26-38px */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
    letter-spacing: -0.01em; /* 字母间距优化 */
}

.panda-section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 12px auto 0;
    border-radius: 2px;
}

.panda-section-title p {
    font-size: 17px; /* Homepage副标题字号 */
    color: var(--text-light);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== 6. 为什么选择我们 (Why Choose Us) ========== */
.panda-why-us {
    background: var(--bg-light);
}

.panda-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.panda-feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.panda-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.panda-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.panda-feature-icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.panda-feature-icon.icon-panda-bases {
    background: linear-gradient(135deg, #129ad6, #0e7bb5);
}

.panda-feature-icon.icon-volunteering {
    background: linear-gradient(135deg, #e47e65, #d66d54);
}

.panda-feature-icon.icon-small-group {
    background: linear-gradient(135deg, #10b981, #059669);
}

.panda-feature-icon.icon-local-guides {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.panda-feature-icon.icon-sustainable {
    background: linear-gradient(135deg, #10b981, #065f46);
}

.panda-feature-icon.icon-planning {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.panda-feature-card h3 {
    font-size: 20px; /* Homepage H3风格 */
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.panda-feature-card p {
    font-size: 15px; /* Homepage正文 */
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== 7. 旅游线路展示区 (Tour Cards) - 核心改进 ========== */
.panda-tours-showcase {
    background: var(--white);
}

.panda-tours-grid {
    display: grid;
    grid-template-columns: 1fr; /* 移动端单列 */
    gap: 35px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .panda-tours-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板双列 */
    }
}

@media (min-width: 1200px) {
    .panda-tours-grid {
        grid-template-columns: repeat(3, 1fr); /* 桌面三列 */
    }
}

/* 单个线路卡片 - 现代化设计 */
.panda-tour-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.panda-tour-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* 卡片图片区域 */
.panda-tour-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.panda-tour-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例填充 */
    transition: transform 0.5s ease;
}

.panda-tour-card:hover .panda-tour-image-wrapper img {
    transform: scale(1.08); /* hover时轻微放大 */
}

/* 标签徽章 */
.panda-tour-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 12px; /* Homepage徽章字号 */
    font-weight: 600;
    z-index: 5;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.02em; /* 字母间距 */
}

/* 时长标签 */
.panda-tour-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    color: var(--white);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px; /* Homepage时长标签字号 */
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 5;
}

/* 卡片内容区域 */
.panda-tour-content {
    padding: 24px;
}

.panda-tour-content h3 {
    font-size: 19px; /* Homepage卡片标题风格 */
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.35;
    letter-spacing: -0.01em;
    /* 限制标题两行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panda-tour-description {
    font-size: 14.5px; /* Homepage卡片描述文字 */
    color: var(--text-light);
    line-height: 1.65; /* 行高优化 */
    margin-bottom: 16px;
    /* 限制描述三行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 行程亮点标签 */
.panda-tour-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.panda-highlight-tag {
    background: #e0f2fe; /* 更浅的蓝色背景 */
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 13px; /* Homepage标签字号 */
    font-weight: 500; /* 中等字重 */
    letter-spacing: 0.01em;
}

/* 价格和CTA行 */
.panda-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.panda-tour-price {
    display: flex;
    flex-direction: column;
}

.panda-price-label {
    font-size: 12px; /* Homepage小标签 */
    color: var(--text-light);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em; /* 字母间距 */
    font-weight: 500;
}

.panda-price-value {
    font-size: 24px; /* Homepage价格字号 */
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
}

.panda-price-value span {
    font-size: 15px;
    font-weight: 400;
}

.panda-tour-button {
    padding: 11px 24px; /* 按钮内边距调整 */
    background: linear-gradient(135deg, var(--primary-color), #0950a7);
    color: var(--white)!important;
    border: none;
    border-radius: 24px; /* 圆角稍小 */
    font-size: 14.5px; /* Homepage按钮文字 */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.panda-tour-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #0d8ed6, #074a87);
    color:#ffffff!important;
}

/* ========== 8. FAQ模块 (SEO优化关键) ========== */
.panda-faq-section {
    background: var(--bg-light);
}

.panda-faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.panda-faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.panda-faq-item:hover {
    box-shadow: var(--shadow-md);
}

.panda-faq-question {
    width: 100%;
    padding: 18px 24px; /* 内边距调整 */
    background: transparent;
    border: none;
    text-align: left;
    font-size: 16px; /* Homepage问题字号 */
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    position: relative;
    letter-spacing: -0.01em;
}

.panda-faq-question::after {
    content: '+';
    font-size: 22px; /* 加号稍小 */
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.panda-faq-item.active .panda-faq-question::after {
    transform: rotate(45deg);
}

.panda-faq-question:hover {
    background: #f8f9fa;
    padding-left: 30px;
}

.panda-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 25px;
    background: var(--white);
}

.panda-faq-item.active .panda-faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

@media (max-width: 768px) {
    .panda-faq-item.active .panda-faq-answer {
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #e0e0e0;
    }

    .panda-faq-item.active .panda-faq-answer::-webkit-scrollbar {
        width: 4px;
    }

    .panda-faq-item.active .panda-faq-answer::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 2px;
    }

    .panda-faq-item.active .panda-faq-answer::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
}

.panda-faq-answer p {
    font-size: 15px; /* HomepageFAQ回答字号 */
    color: var(--text-light);
    line-height: 1.7; /* 行高优化 */
    padding-top: 10px;
}

/* ========== 9. CTA行动召唤区域 ========== */
.panda-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.panda-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.panda-cta-content h2 {
    font-size: clamp(26px, 4vw, 38px); /* HomepageCTA标题风格 */
    font-weight: 700;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.panda-cta-content p {
    font-size: 17px;
    color: #ffffff !important;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.panda-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .panda-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.panda-btn-primary {
    padding: 15px 40px; /* CTA主按钮 */
    background: var(--white);
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-size: 16px; /* HomepageCTA按钮字号 */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.01em;
}

.panda-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.panda-btn-secondary {
    padding: 15px 40px; /* CTA次按钮 */
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50px;
    font-size: 16px; /* HomepageCTA按钮字号 */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.panda-btn-secondary:hover {
    background: var(--white);
    color: #667eea;
}

/* ========== 10. 结构化数据标记 (Schema.org for SEO) ========== */
/* 这些类用于搜索引擎理解内容结构 */

/* 隐藏但可被搜索引擎读取的内容 */
.panda-schema-data {
    display: none;
}

/* ========== 11. 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panda-animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ========== 12. 打印样式 (可选) ========== */
@media print {
    .panda-hero-banner,
    .panda-cta-section,
    .panda-faq-question::after {
        display: none;
    }

    .panda-tour-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
