/* 
 * index-css.css
 * 武汉国旅旅游网站主样式表
 * 提取自 index123.asp
 * 版本: 1.0
 * 最后更新: 2026-01-25
 */

/* ================= CSS重置与基础样式 ================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

html {
    scroll-behavior: smooth; /* 平滑滚动 */
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif; 
    background: #f8fafc;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    padding-top: 100px; /* 为固定导航栏留出空间 */
}

a { 
    text-decoration: none; 
    color: inherit;
    transition: color 0.3s;
}

/* ================= 颜色变量定义 (统一深蓝色系) ================= */
:root {
    /* 主色调 - 深蓝色系 */
    --primary-color: #0c2461;
    --primary-light: #1e3799;
    --secondary-color: #ff6b6b; /* 强调色 - 红色系 */
    --accent-color: #00b894; /* 点缀色 - 绿色系 */
    
    /* 背景色 */
    --background-light: #f8fafc;
    --background-white: #ffffff;
    
    /* 文字颜色 */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #94a3b8;
    
    /* 边框颜色 */
    --border-color: #e2e8f0;
    
    /* 阴影效果 */
    --shadow-light: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-dark: 0 10px 40px rgba(0,0,0,0.1);
    
    /* 过渡动画时间 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ================= 暗色模式支持 ================= */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #1e3799;
        --primary-light: #0c2461;
        --background-light: #1a1a1a;
        --background-white: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --text-light: #888888;
        --border-color: #404040;
        --shadow-light: 0 4px 20px rgba(0,0,0,0.2);
        --shadow-medium: 0 8px 30px rgba(0,0,0,0.25);
        --shadow-dark: 0 10px 40px rgba(0,0,0,0.3);
    }
    
    body {
        background: var(--background-light);
        color: var(--text-primary);
    }
    
    .top-header {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    }
    
    .fixed-nav {
        background-color: var(--background-white);
    }
    
    .quick-links,
    .category-section,
    .product-item,
    .search-box,
    .category-tab {
        background: var(--background-white);
        color: var(--text-primary);
    }
    
    .search-box input[type="text"] {
        background: var(--background-light);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
    
    .product-footer,
    .note-footer {
        border-color: var(--border-color);
    }
    
    .category-tab {
        background: var(--background-light);
        border-color: var(--border-color);
        color: var(--text-secondary);
    }
    
    .category-tab.active {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
        color: white;
    }
    
    .bottom-nav {
        background: var(--background-white);
    }
}

/* ================= 顶部固定导航栏样式 ================= */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    justify-content: flex-end; /* 菜单按钮在右侧 */
    align-items: center;
    padding: 8px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 50px;
}

.menu-container {
    position: relative;
}

.menu-btn {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.menu-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background-white);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    min-width: 140px;
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

/* ================= 轮播图样式 ================= */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 160px;
    margin: 15px 0;
    box-shadow: var(--shadow-medium);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.carousel-slide.active img {
    transform: scale(1.05); /* 激活时轻微放大效果 */
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.indicator {
    width: 25px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
    width: 35px;
}

/* 轮播导航按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    opacity: 1; /* 始终显示 */
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background: rgba(12, 36, 97, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* ================= 容器布局 ================= */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 10px; 
}

/* 底部增加留白 */
.container::after {
    content: '';
    display: block;
    height: 100px;
}

/* ================= 快速链接样式 ================= */
.quick-links { 
    background-color: var(--background-white); 
    padding: 20px 15px;
    margin: 15px 0;
    border-radius: 16px; 
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.quick-links h3 { 
    margin: 0 0 15px;
    color: var(--primary-color); 
    font-size: 1.1rem; 
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-links h3:before {
    content: '⚡';
    font-size: 1rem;
}

.quick-links .links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .quick-links .links-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.quick-links a { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary); 
    text-decoration: none; 
    font-size: 0.85rem; 
    padding: 15px 8px;
    background: linear-gradient(135deg, var(--background-light) 0%, #f0f7ff 100%);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
    font-weight: 500;
    text-align: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.quick-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(12, 36, 97, 0.25);
    border-color: var(--primary-color);
}

.quick-links a:hover .link-icon {
    transform: scale(1.2) translateY(-2px);
    filter: brightness(1.2);
}

.quick-links a:hover .link-subtitle {
    opacity: 0.9;
}

.link-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    display: block;
    line-height: 1;
}

.link-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 3px;
}

.link-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.8;
    transition: opacity 0.3s;
    max-width: 90%;
    line-height: 1.2;
}

/* ================= 固定导航条样式 ================= */
.fixed-nav {
    position: fixed;
    top: 50px; /* 在顶部固定栏下面 */
    left: 0;
    right: 0;
    background-color: var(--background-white); 
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-wrapper::-webkit-scrollbar {
    display: none;
}

.nav { 
    display: flex; 
    justify-content: flex-start; 
    flex-wrap: nowrap;
    gap: 6px;
    min-width: max-content;
}

.nav a { 
    color: var(--text-primary); 
    text-decoration: none; 
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    min-width: 65px;
}

.nav a:hover,
.nav a:active { 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); 
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 36, 97, 0.2);
    border-color: var(--primary-color);
}

/* 激活状态样式 */
.nav a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-weight: 600;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(12, 36, 97, 0.2);
}

/* ================= 搜索框样式 ================= */
.search-box { 
    background: linear-gradient(135deg, var(--background-light), #e9f5ff); 
    padding: 20px 15px;
    margin: 15px 0;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    margin-top: 90px; /* 给固定导航栏留出空间 */
}

.search-box h3 { 
    margin: 0 0 15px;
    color: var(--primary-color); 
    font-size: 1.1rem;
    font-weight: 600;
}

.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 8px;
}

.search-box input[type="text"] { 
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color); 
    border-radius: 50px; 
    font-size: 0.9rem;
    background: var(--background-white);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--text-primary);
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(12, 36, 97, 0.15);
}

.search-box input[type="submit"] { 
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white; 
    border: none; 
    border-radius: 50px; 
    cursor: pointer; 
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(12, 36, 97, 0.2);
}

.search-box input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 36, 97, 0.3);
}

.search-box input[type="submit"]:active {
    transform: translateY(0);
}

/* ================= 区块标题样式 ================= */
.section-title { 
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-primary); 
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    position: relative;
}

.section-title:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

/* ================= 分类区块样式 ================= */
.category-section { 
    margin-bottom: 20px;
    background: var(--background-white); 
    padding: 15px;
    border-radius: 16px;
    box-shadow: var(--shadow-medium); 
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
}

.category-section:hover {
    transform: translateY(-2px);
}

.category-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-header h3 { 
    margin: 0; 
    color: var(--primary-color); 
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    padding-left: 12px;
}

.category-header h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 16px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.category-header a { 
    color: var(--secondary-color); 
    text-decoration: none; 
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-normal);
    padding: 5px 10px;
    border-radius: 16px;
    background: var(--background-light);
}

.category-header a:hover {
    color: #e65c00;
    transform: translateX(3px);
    background: rgba(255, 107, 107, 0.1);
}

/* ================= 产品容器样式 ================= */
.products-container { 
    display: flex; 
    flex-wrap: wrap; 
    margin: 0 -6px;
}

/* ================= 产品卡片样式 ================= */
.product-item { 
    width: 50%; 
    padding: 0 6px;
    margin-bottom: 12px;
    box-sizing: border-box; 
    border: none;
    border-radius: 12px;
    overflow: hidden; 
    background: var(--background-white); 
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all var(--transition-normal) ease-out;
    position: relative;
}

.product-item:hover { 
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.product-item:active {
    transform: translateY(-1px);
}

.product-item a { 
    text-decoration: none; 
    display: block; 
}

/* 线路和笔记标题 */
.product-title { 
    padding: 10px 10px 5px;
    font-size: 0.85rem;
    line-height: 1.4; 
    height: auto; 
    min-height: 45px;
    max-height: 52px;
    overflow: hidden; 
    color: var(--text-primary); 
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制最多3行 */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 笔记特定标题样式 */
.note-item .product-title {
    padding: 8px 8px 3px;
    font-size: 0.8rem;
    min-height: 42px;
    max-height: 48px;
}

/* 图片懒加载样式 */
.lazy-img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    width: 100%; 
    height: 90px; /* 压缩图片高度 */
    overflow: hidden; 
    position: relative;
}

.lazy-img.loaded {
    animation: none;
    background: transparent;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lazy-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform var(--transition-slow);
}

.product-item:hover .lazy-img img {
    transform: scale(1.05);
}

.product-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 6px 10px 10px;
    border-top: 1px solid var(--border-color);
}

.product-price { 
    color: var(--primary-color); 
    font-weight: 700; 
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-days { 
    color: var(--secondary-color); 
    font-size: 0.75rem;
    background: var(--background-light); 
    padding: 3px 8px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

/* ================= 旅游笔记特定样式 ================= */
/* 图片徽章容器 */
.img-badges {
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 6px;
    z-index: 2;
    pointer-events: none; /* 防止干扰点击 */
}

.badge-left, .badge-right {
    display: flex;
}

/* 类型徽章 */
.type-badge {
    background: rgba(12, 36, 97, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 日期徽章 */
.date-badge {
    background: rgba(255, 107, 0, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
}

/* 位置信息 */
.note-location {
    display: flex;
    align-items: center;
    padding: 0 10px 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    gap: 3px;
}

.location-icon {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

.location-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
}

/* 笔记底部信息 */
.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px 10px;
    border-top: 1px solid var(--border-color);
    margin-top: 3px;
}

.note-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
}

.note-brand img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.note-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.7rem;
}

.note-likes {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.likes-icon {
    font-size: 0.7rem;
}

.likes-count {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* 无数据提示样式 */
.no-data { 
    text-align: center; 
    padding: 30px 15px;
    color: var(--text-light); 
    font-size: 0.9rem;
    width: 100%;
}

.no-data:before {
    content: '😊';
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

/* ================= 分类标签和滑动容器样式 ================= */
.category-tabs-container { 
    margin: 15px 0;
}

.category-tabs-wrapper { 
    position: relative; 
    overflow: hidden;
    border-radius: 12px;
}

.category-tabs { 
    display: flex; 
    overflow-x: auto; 
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; 
    padding: 5px 5px 10px;
    margin-bottom: 0;
    gap: 6px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { 
    display: none; 
}

.category-tab { 
    flex: 0 0 auto; 
    padding: 10px 16px;
    background: var(--background-light); 
    border: 2px solid var(--border-color); 
    border-radius: 8px;
    cursor: pointer; 
    text-align: center; 
    font-size: 0.85rem;
    white-space: nowrap; 
    transition: all var(--transition-normal); 
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 85px;
}

.category-tab:hover { 
    background: var(--background-light); 
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.category-tab.active { 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); 
    color: white; 
    border-color: var(--primary-color); 
    box-shadow: 0 4px 15px rgba(12, 36, 97, 0.2);
}

.category-slider-container { 
    position: relative; 
    overflow: hidden; 
    border-radius: 12px;
}

.category-slider { 
    display: flex; 
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.category-slide { 
    flex: 0 0 100%; 
    padding: 5px; 
    box-sizing: border-box; 
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-slide.active {
    opacity: 1;
}

/* ================= 底部四栏样式 ================= */
.bottom-tabs-container {
    background: var(--background-white);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    margin: 25px 0 100px; /* 增加底部留白 */
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.bottom-tabs-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.bottom-tab-btn {
    background: var(--background-white);
    border: none;
    padding: 18px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
    min-height: 60px;
}

.bottom-tab-btn:hover {
    background: var(--background-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.bottom-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-bottom: 3px solid var(--primary-color); /* 加粗激活状态边框 */
    box-shadow: 0 4px 12px rgba(12, 36, 97, 0.1);
}

.bottom-tab-btn .arrow {
    font-size: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.bottom-tab-btn.active .arrow {
    transform: rotate(180deg);
    color: white;
}

.bottom-tab-content {
    max-height: 0;
    overflow: hidden;
    background: var(--background-light);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                transform 0.4s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.bottom-tab-content.active {
    max-height: 1200px; /* 增加最大高度，确保内容完全展开 */
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
}

.bottom-tab-content-inner {
    padding: 25px;
}

/* 为展开的内容增加呼吸动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bottom-tab-content.active .bottom-tab-content-inner {
    animation: fadeInUp 0.5s ease forwards;
}

/* 报名参团流程 */
.process-list {
    list-style: none;
    counter-reset: process-counter;
    margin-bottom: 20px;
}

.process-item {
    position: relative;
    padding: 12px 0 12px 36px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.process-item:before {
    counter-increment: process-counter;
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 行动按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.action-btn {
    background: #07c160;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.action-btn.primary {
    background: var(--primary-color);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 公司荣誉网格 */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.honor-item {
    text-align: center;
    padding: 8px;
    background: var(--background-white);
    border-radius: 8px;
    transition: transform var(--transition-fast);
    border: 1px solid var(--border-color);
}

.honor-item:hover {
    transform: translateY(-2px);
}

.honor-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.honor-title {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.honor-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 联系信息列表 */
.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-item {
    border: none;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.info-icon {
    width: 20px;
    color: var(--primary-color);
}

/* 温馨提示 */
.bottom-tip {
    margin-top: 20px;
    padding: 16px;
    background: var(--background-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.bottom-tip h4 {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.bottom-tip ul {
    padding-left: 20px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.bottom-tip li {
    margin-bottom: 8px;
}

.bottom-tip li:last-child {
    margin-bottom: 0;
}

/* ================= 浮动操作按钮组 - 固定在右侧中间位置 ================= */
.float-buttons {
    position: fixed;
    right: 16px;
    top: 50%; /* 固定在垂直中间 */
    transform: translateY(-50%); /* 垂直居中 */
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(12, 36, 97, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 12px 8px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.float-buttons.visible {
    opacity: 1;
    visibility: visible;
}

.float-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all var(--transition-normal);
}

.float-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ================= 底部固定导航栏 ================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-white);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 8px 0 10px; /* 减少底部导航栏高度 */
    padding-bottom: env(safe-area-inset-bottom, 10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    gap: 3px; /* 减少图标和文字之间的间距 */
    transition: color var(--transition-fast);
    padding: 3px 0; /* 减少内边距 */
}

.nav-tab-item.active,
.nav-tab-item:hover {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 1.3rem; /* 稍微减小图标大小 */
    line-height: 1;
}

/* ================= 微信模态框 ================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--background-white);
    border-radius: 16px;
    padding: 24px;
    width: 85%;
    max-width: 300px;
    text-align: center;
    box-shadow: var(--shadow-dark);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.qrcode-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
}

.qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================= 错误信息样式 ================= */
.error-message {
    color: #dc2626;
    background: linear-gradient(135deg, #fee, #fdd);
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    border-left: 4px solid #dc2626;
    font-size: 0.85rem;
}

/* 暗色模式错误信息 */
@media (prefers-color-scheme: dark) {
    .error-message {
        background: linear-gradient(135deg, #422, #311);
        color: #ff6b6b;
    }
    
    .bottom-tabs-container {
        background: var(--background-white);
    }
    
    .bottom-tab-btn {
        background: var(--background-white);
    }
    
    .bottom-tab-btn.active {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    }
    
    .honor-item {
        background: var(--background-light);
    }
    
    .bottom-tip {
        background: var(--background-light);
    }
}

/* ================= 媒体查询优化 ================= */
@media (max-width: 768px) {
    body {
        padding-top: 90px; /* 移动端调整固定导航栏空间 */
    }
    
    .container { padding: 10px; }
    .carousel-container { height: 140px; }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        opacity: 1; /* 确保按钮显示 */
    }
    .fixed-nav {
        top: 50px;
        padding: 8px 0;
    }
    .nav-wrapper {
        padding: 0 8px;
    }
    .nav a { 
        font-size: 0.75rem;
        padding: 5px 10px;
        min-width: 60px;
    }
    .search-box { 
        margin-top: 80px; /* 移动端调整搜索框位置 */
        padding: 15px 12px;
    }
    .search-box h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    .search-form {
        gap: 6px;
    }
    .search-box input[type="text"],
    .search-box input[type="submit"] {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .product-item { width: 50%; padding: 0 5px; margin-bottom: 10px; }
    .lazy-img { height: 80px; }
    .product-title { 
        font-size: 0.8rem;
        min-height: 40px;
        max-height: 46px;
        padding: 8px 8px 3px;
    }
    .note-item .product-title {
        font-size: 0.75rem;
        min-height: 38px;
        max-height: 44px;
        padding: 6px 8px 2px;
    }
    .product-price { font-size: 0.8rem; }
    .product-days { font-size: 0.7rem; padding: 2px 6px; }
    .quick-links .links-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .quick-links a { 
        font-size: 0.75rem;
        padding: 12px 6px;
        gap: 6px; 
    }
    .link-icon { font-size: 1.5rem; }
    .link-title { font-size: 0.8rem; }
    .link-subtitle { font-size: 0.65rem; }
    .category-tab { 
        padding: 8px 12px; 
        font-size: 0.8rem;
        min-width: 75px;
    }
    .carousel-container { height: 120px; }
    .carousel-btn { width: 30px; height: 30px; font-size: 0.9rem; }
    .carousel-indicators { bottom: 8px; }
    .indicator { width: 20px; height: 2px; }
    .indicator.active { width: 25px; }
    .category-header h3 { font-size: 1rem; }
    .section-title { 
        font-size: 1.1rem;
        margin: 20px 0 12px;
    }
    .bottom-nav { padding: 6px 0 8px; }
    .nav-icon { font-size: 1.2rem; }
    .nav-tab-item { 
        font-size: 0.7rem;
        gap: 2px; 
    }
    .float-buttons {
        right: 12px;
        top: 50%; /* 保持垂直居中 */
        transform: translateY(-50%);
        padding: 10px 6px;
        gap: 6px;
    }
    .float-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* 底部四栏响应式 */
    .bottom-tabs-container {
        margin: 20px 0 80px; /* 移动端也增加底部留白 */
    }
    
    .bottom-tab-btn {
        padding: 16px 12px;
        font-size: 0.95rem;
        gap: 6px;
        min-height: 55px;
    }
    
    .bottom-tab-content-inner {
        padding: 20px;
    }
    
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* 笔记卡片响应式调整 */
    .type-badge, .date-badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }
    .note-location {
        font-size: 0.7rem;
        padding: 0 8px 3px;
    }
    .location-icon, .location-text {
        font-size: 0.7rem;
    }
    .note-footer {
        padding: 5px 8px 8px;
    }
    .note-brand, .note-likes {
        font-size: 0.65rem;
    }
    .note-brand img {
        width: 12px;
        height: 12px;
    }
    
    /* 容器底部留白调整 */
    .container::after {
        height: 80px; /* 移动端调整底部留白 */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 85px; /* 小屏幕调整固定导航栏空间 */
    }
    
    .product-item { width: 50%; padding: 0 4px; margin-bottom: 8px; }
    .lazy-img { height: 70px; }
    .product-title { 
        font-size: 0.75rem;
        min-height: 36px;
        max-height: 42px;
        padding: 6px 6px 2px; 
    }
    .note-item .product-title {
        font-size: 0.7rem;
        min-height: 34px;
        max-height: 40px;
        padding: 5px 6px 2px;
    }
    .product-price { font-size: 0.75rem; }
    .product-days { font-size: 0.65rem; padding: 2px 5px; }
    .search-form {
        flex-direction: column;
        gap: 10px;
    }
    .search-box input[type="text"],
    .search-box input[type="submit"] {
        width: 100%;
        padding: 12px 16px;
    }
    .float-buttons {
        right: 10px;
        top: 50%; /* 保持垂直居中 */
        transform: translateY(-50%);
        padding: 8px 5px;
        gap: 5px;
    }
    .float-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .quick-links .links-container {
        gap: 6px;
    }
    .quick-links a { 
        padding: 10px 5px; 
        gap: 4px; 
    }
    .link-icon { font-size: 1.3rem; }
    .link-title { font-size: 0.75rem; }
    .link-subtitle { font-size: 0.6rem; }
    .category-tab { 
        padding: 6px 10px; 
        font-size: 0.75rem;
        min-width: 70px;
    }
    .carousel-container { height: 100px; }
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    .carousel-indicators { bottom: 6px; }
    .indicator { width: 18px; height: 2px; }
    .indicator.active { width: 22px; }
    .category-header h3 { font-size: 0.9rem; }
    .section-title { 
        font-size: 1rem;
        margin: 15px 0 10px;
    }
    .bottom-nav { padding: 5px 0 6px; }
    .nav-icon { font-size: 1.1rem; }
    .nav-tab-item { font-size: 0.65rem; }
    
    /* 底部四栏响应式 */
    .bottom-tabs-container {
        margin: 15px 0 60px;
    }
    
    .bottom-tab-btn {
        padding: 14px 10px;
        font-size: 0.9rem;
        gap: 4px;
        min-height: 50px;
    }
    
    .bottom-tab-content-inner {
        padding: 16px;
    }
    
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .honor-item {
        padding: 6px;
    }
    
    .bottom-tip {
        padding: 12px;
    }
    
    /* 容器底部留白调整 */
    .container::after {
        height: 60px; /* 移动端减少底部留白 */
    }
}

@media (max-width: 320px) {
    body {
        padding-top: 80px; /* 超小屏幕调整固定导航栏空间 */
    }
    
    .product-item { width: 50%; padding: 0 3px; margin-bottom: 6px; }
    .lazy-img { height: 65px; }
    .product-title { 
        font-size: 0.7rem;
        min-height: 34px;
        max-height: 40px;
        padding: 5px 5px 2px; 
    }
    .note-item .product-title {
        font-size: 0.65rem;
        min-height: 32px;
        max-height: 38px;
        padding: 4px 5px 2px;
    }
    .product-price { font-size: 0.7rem; }
    .product-days { font-size: 0.6rem; padding: 2px 4px; }
    .nav a { font-size: 0.7rem; padding: 4px 8px; min-width: 55px; }
    .quick-links .links-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    .quick-links a { 
        padding: 8px 4px; 
        gap: 3px; 
    }
    .link-icon { font-size: 1.2rem; }
    .link-title { font-size: 0.7rem; }
    .link-subtitle { font-size: 0.55rem; }
    .category-tab { 
        padding: 5px 8px; 
        font-size: 0.7rem;
        min-width: 65px;
    }
    .carousel-container { height: 90px; }
    .carousel-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    .carousel-indicators { bottom: 5px; }
    .indicator { width: 15px; height: 2px; }
    .indicator.active { width: 20px; }
    .category-header h3 { font-size: 0.85rem; }
    .section-title { 
        font-size: 0.95rem;
        margin: 12px 0 8px;
    }
    .float-buttons {
        right: 8px;
        top: 50%; /* 保持垂直居中 */
        transform: translateY(-50%);
        padding: 6px 4px;
        gap: 4px;
    }
    .float-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    /* 底部四栏响应式 */
    .bottom-tabs-container {
        margin: 12px 0 50px;
    }
    
    .bottom-tab-btn {
        padding: 12px 5px;
        font-size: 0.8rem;
        gap: 3px;
        min-height: 45px;
    }
    
    .bottom-tab-content-inner {
        padding: 12px;
    }
    
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .honor-item {
        padding: 5px;
    }
    
    .bottom-tip {
        padding: 10px;
    }
    
    /* 容器底部留白调整 */
    .container::after {
        height: 50px; /* 移动端减少底部留白 */
    }
}

/* ================= 字体图标定义 ================= */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v142/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ================= 自定义图标样式 ================= */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-small {
    font-size: 1rem;
}

.icon-large {
    font-size: 1.5rem;
}






/* 底部标签全屏展开优化样式 */
.bottom-tab-content.active {
    max-height: none !important; /* 移除固定高度限制 */
    height: calc(100vh - 120px) !important; /* 全屏高度，减去标签栏高度 */
    min-height: 300px; /* 最小高度保证内容可见 */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
}

.bottom-tab-content-inner {
    min-height: 100%; /* 确保内容区域填充 */
    display: flex;
    flex-direction: column;
}

/* 确保内容可以完全展示 */
.process-list,
.honors-grid,
.info-list,
.bottom-tip {
    flex: 1;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .bottom-tab-content.active {
        height: calc(100vh - 100px) !important; /* 移动端调整高度 */
    }
}

@media (max-width: 480px) {
    .bottom-tab-content.active {
        height: calc(100vh - 90px) !important; /* 小屏幕调整高度 */
    }
}

/* 确保底部标签收起时有动画效果 */
.bottom-tab-content {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: max-height, opacity, transform;
}




/* ================= 文件结束 ================= */