/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量定义 - 统一主题色 */
:root {
    --primary-color: #C3272B; /* 中国红 */
    --primary-dark: #A81F23; /* 深中国红 */
    --primary-light: #F8D4D6; /* 浅中国红 */
    --secondary-color: #D4AF37; /* 金色 */
    --secondary-dark: #B8941F; /* 深金色 */
    --secondary-light: #F9F0D9; /* 浅金色 */
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #C3272B;
    --text-primary: #333333; /* 深灰 */
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #F8F4E9; /* 米白 */
    --bg-secondary: #FFFFFF;
    --border-color: #E6DFD0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; /* 正文使用苹方或思源黑体 */
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'FangSong', serif; /* 标题使用思源宋体或方正小标宋 */
    font-weight: bold;
}

/* 应用容器 */
#app {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    min-height: 100vh;
    position: relative;
    box-shadow: var(--shadow-md);
}

/* 页面通用样式 */
.page {
    display: none;
    min-height: 100vh;
    flex-direction: column;
}

.page.active {
    display: flex;
}

/* 头部样式 */
.app-header,
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.app-title {
    font-size: 20px;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-role {
    font-size: 14px;
}

.login-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.page-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-actions button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.header-actions button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 主内容区域 */
.app-main,
.page-main {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: var(--bg-primary);
}

/* 核心功能入口网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.feature-item {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 推荐路线 */
.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "📍";
    font-size: 20px;
    color: var(--primary-color);
}

.route-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

.route-list::-webkit-scrollbar {
    height: 6px;
}

.route-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.route-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

.route-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.route-card {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.route-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.route-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.2);
    border-color: var(--primary-dark);
}

.route-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-card h3::before {
    content: "📌";
    font-size: 20px;
}

.route-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.view-route-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-route-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #a93226);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

/* 底部导航 */
.bottom-nav {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.nav-item.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: var(--transition);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-size: 12px;
    font-weight: 500;
}

/* 动态轮播 */
.carousel {
    position: relative;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.carousel-content {
    color: white;
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.carousel-content h2 {
    font-size: 20px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 核心景点卡片 */
.core-spots {
    margin-bottom: 24px;
}

.spot-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spot-card {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.spot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.spot-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.spot-info {
    padding: 16px;
}

.spot-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.spot-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.view-spot-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.view-spot-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 红色活动 */
.red-activities {
    margin-bottom: 24px;
}

.activity-card {
    background: linear-gradient(135deg, var(--primary-light), white);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.activity-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.activity-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.activity-date {
    font-size: 12px;
    color: var(--text-light);
    background-color: var(--primary-light);
    padding: 4px 8px;
    border-radius: 12px;
}

.join-activity-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.join-activity-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background-color: var(--bg-secondary);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    background-color: var(--bg-primary);
}

.search-bar button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 点位列表 */
.spot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spot-item {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.spot-item {
    position: relative;
    overflow: hidden;
}

.spot-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.spot-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.spot-item:hover .spot-image {
    transform: scale(1.05);
}

.spot-item h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 点位详情图片样式 */
.spot-image-container {
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.spot-detail-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition);
}

.spot-image-container:hover .spot-detail-image {
    transform: scale(1.02);
}

.spot-item h3::before {
    content: "📍";
    font-size: 16px;
    color: var(--primary-color);
}

.spot-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.spot-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.spot-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spot-meta span::before {
    content: "•";
    color: var(--primary-color);
    font-size: 16px;
    line-height: 1;
}

/* 路线标签页 */
.route-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-lg);
}

.tab-btn {
    background: var(--bg-primary);
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    flex: 1;
    text-align: center;
}

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tab-btn:hover:not(.active) {
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 生成路线按钮 */
.generate-route-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 24px;
    width: 100%;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.generate-route-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 地图样式 */
.route-map {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.route-map:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* 横屏适配 */
@media (orientation: landscape) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* 横屏时地图高度调整 */
    .route-map {
        height: 300px;
    }
}

/* 大屏设备适配 */
@media (min-width: 768px) {
    #app {
        max-width: 768px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    
    /* 大屏时地图高度调整 */
    .route-map {
        height: 400px;
    }
}

/* 打卡状态 */
.checkin-status {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.checkin-status h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.progress-bar {
    background-color: #f0f0f0;
    border-radius: 12px;
    height: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-fill {
    background-color: #e74c3c;
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s;
}

.checkin-status p {
    font-size: 14px;
    color: #666;
    text-align: right;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tool-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #e74c3c;
}

.tool-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.tool-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 个人中心 */
.user-profile {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    font-size: 64px;
}

.user-details h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.user-stats {
    font-size: 14px;
    color: #666;
}

.profile-menu {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.menu-icon {
    font-size: 20px;
}

.menu-text {
    font-size: 16px;
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #E53E3E;
        --primary-dark: #C53030;
        --primary-light: #FC8181;
        --secondary-color: #D69E2E;
        --secondary-dark: #B7791F;
        --secondary-light: #F6E05E;
        --text-primary: #E2E8F0;
        --text-secondary: #A0AEC0;
        --text-light: #718096;
        --bg-primary: #1A202C;
        --bg-secondary: #2D3748;
        --border-color: #4A5568;
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    }
}

/* 深色模式手动切换 */
body.dark-mode {
    --primary-color: #E53E3E;
    --primary-dark: #C53030;
    --primary-light: #FC8181;
    --secondary-color: #D69E2E;
    --secondary-dark: #B7791F;
    --secondary-light: #F6E05E;
    --text-primary: #E2E8F0;
    --text-secondary: #A0AEC0;
    --text-light: #718096;
    --bg-primary: #1A202C;
    --bg-secondary: #2D3748;
    --border-color: #4A5568;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* 响应式设计 - 竖屏（9:16） */
@media (max-width: 480px) and (orientation: portrait) {
    .app-title {
        font-size: 18px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .feature-icon {
        font-size: 32px;
    }
    
    .feature-title {
        font-size: 14px;
    }
    
    .route-list {
        gap: 12px;
    }
    
    .route-card {
        min-width: 160px;
        padding: 12px;
    }
    
    .nav-icon {
        font-size: 18px;
    }
    
    .nav-text {
        font-size: 11px;
    }
    
    /* 竖屏轮播高度调整 */
    .carousel-container {
        height: 200px;
    }
    
    /* 竖景点卡片图片高度 */
    .spot-card img {
        height: 150px;
    }
}

/* 横屏适配（16:9） */
@media (orientation: landscape) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* 横屏轮播高度调整 */
    .carousel-container {
        height: 250px;
    }
    
    /* 横屏时核心景点卡片布局 */
    .spot-cards {
        flex-direction: row;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 16px;
    }
    
    .spot-card {
        min-width: 280px;
        flex-shrink: 0;
    }
    
    /* 横屏时景点卡片图片高度 */
    .spot-card img {
        height: 180px;
    }
    
    /* 横屏时活动卡片布局 */
    .activity-card {
        flex-direction: row;
    }
    
    /* 横屏时地图高度调整 */
    .route-map {
        height: 350px;
    }
}

/* 大屏设备适配 */
@media (min-width: 768px) {
    #app {
        max-width: 100%;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .spot-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        display: grid;
    }
    
    .spot-card img {
        height: 200px;
    }
}

/* 红色知识库页面样式 */
.knowledge-main {
    padding: 0;
}

.knowledge-layout {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* 左侧目录样式 */
.knowledge-sidebar {
    width: 280px;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    padding: 0 20px 16px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 16px;
}

.knowledge-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.knowledge-menu .menu-item {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
    text-align: left;
    width: 100%;
    display: block;
}

.knowledge-menu .menu-item:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--primary-color);
}

.knowledge-menu .menu-item.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.knowledge-menu .submenu-item {
    padding: 10px 20px 10px 40px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
    text-align: left;
    width: 100%;
    display: block;
}

.knowledge-menu .submenu-item:hover {
    background-color: rgba(231, 76, 60, 0.05);
    color: var(--primary-color);
    padding-left: 45px;
}

.knowledge-menu .submenu-item.active {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    padding-left: 45px;
}

/* 右侧内容样式 */
.knowledge-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background-color: white;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.content-section h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 24px 0 16px;
    font-weight: bold;
}

.content-section h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 20px 0 12px;
    font-weight: bold;
}

.content-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.content-section strong {
    color: var(--text-primary);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .knowledge-layout {
        flex-direction: column;
        height: auto;
    }
    
    .knowledge-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .knowledge-content {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .content-section h3 {
        font-size: 18px;
    }
    
    .content-section h4 {
        font-size: 16px;
    }
}