/* 移动端样式优先 */
@media only screen and (max-width: 768px), 
       only screen and (max-device-width: 768px),
       only screen and (hover: none) {
    /* 强制三列变一列 */
    .three-column-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .column {
        width: 100% !important;
        min-width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* 图标样式 */
    .list-item i {
        font-size: 24px !important;
        margin-right: 20px !important;
        color: #3498db !important;
    }

    .rv-type-icon {
        width: 32px !important;
        height: 32px !important;
        margin-right: 15px !important;
        filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg) brightness(118%) contrast(119%) !important;
    }

    /* 导航菜单图标 */
    .nav-links i,
    .theme-options i,
    .route-options i,
    .type-options i,
    .community-options i,
    .member-options i,
    .language-options i {
        color: #3498db !important;
        margin-right: 12px !important;
        width: 20px !important;
        text-align: center !important;
    }

    /* 页脚图标 */
    .social-links a i,
    .contact-info i {
        color: #3498db !important;
        margin-right: 10px !important;
    }
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏基础样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
    margin: 0 10px;
}

.nav-links > li > a,
.nav-links > li > span {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.nav-links > li > span > i {
    margin-left: 5px;
}

/* 导航菜单���样式 */
.nav-links i {
    color: #3498db; /* 统一的蓝色 */
    margin-left: 8px; /* 给下拉箭头添加间距 */
}

/* 下拉菜单基础样式 */
.theme-options,
.route-options,
.type-options,
.community-options,
.member-options,
.language-options {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

/* 下拉菜单项样式 */
.theme-options a,
.route-options a,
.type-options a,
.community-options a,
.member-options a,
.language-options a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.theme-options a:hover,
.route-options a:hover,
.type-options a:hover,
.community-options a:hover,
.member-options a:hover,
.language-options a:hover {
    background-color: #f5f5f5;
}

/* 下拉菜单图标样式 */
.theme-options i,
.route-options i,
.type-options i,
.community-options i,
.member-options i,
.language-options i {
    color: #3498db;
    margin-right: 12px; /* 增加图标和文字的间距 */
    width: 20px;
    text-align: center;
}

/* 语言切换器样式 */
.language-switcher {
    position: relative;
}

.language-options {
    right: 0;
    left: auto;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.language-options i {
    margin-right: 10px;
}

/* 显示下拉菜单 */
.nav-links > li:hover .theme-options,
.nav-links > li:hover .route-options,
.nav-links > li:hover .type-options,
.nav-links > li:hover .community-options,
.nav-links > li:hover .member-options,
.language-switcher:hover .language-options {
    display: block;
}

/* RV类型图标样式 */
.rv-type-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px; /* 增加间距 */
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg) brightness(118%) contrast(119%); /* 将图标变成蓝色 */
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* 轮播图样式 */
.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 20%;
    height: 100%;
    position: relative;
}

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

.slide-content {
    display: none;  /* 完全隐藏轮播图上的文字 */
}

/* 轮播图导航钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 轮播图指示器 */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: #fff;
}

/* 主要内容区域样式 */
.hero-content {
    text-align: center;
    padding: 30px 20px;
}

.hero-content h1 {
    font-size: 28px;
    margin-bottom: 0;  /* 移除底部间距 */
    white-space: nowrap;
}

.hero-content p {
    display: none;
}

.cta-button {
    margin-top: 20px;  /* 添加顶部间距 */
    padding: 12px 30px;
    font-size: 18px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* 三列布局基础样式 */
.section {
    padding: 40px 20px;
}

.three-column-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.column {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: transform 0.3s;
}

/* 响应式布局调整 */
@media screen and (max-width: 1024px) {
    .column {
        min-width: calc(50% - 15px); /* 两列布局 */
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 20px 15px;
    }

    .three-column-container {
        flex-direction: column;
        gap: 20px;
    }

    .column {
        width: 100%;
        min-width: 100%;
        margin: 0;
    }

    .list-item {
        padding: 12px;
    }

    .list-item i {
        font-size: 20px;
        margin-right: 15px;
    }

    .rv-type-img {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }

    .item-content h3 {
        font-size: 16px;
    }

    .item-content p {
        font-size: 14px;
    }
}

.column h2 {
    margin-bottom: 20px;
    text-align: center;
}

.list-item:hover {
    transform: translateY(-5px);
}

.list-item i {
    font-size: 24px;
    margin-right: 20px; /* 增加间距 */
    color: #3498db;
}

.rv-type-img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.item-content h3 {
    margin-bottom: 5px;
}

.item-content p {
    color: #666;
    font-size: 14px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.contact-info,
.social-links {
    flex: 1;
}

.contact-info h3,
.social-links h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    margin-right: 20px;
    color: #fff;
    text-decoration: none;
}

.social-links a:hover {
    color: #007bff;
}

/* 社交媒体标样式 */
.social-links a i {
    color: #3498db;
    margin-right: 10px;
}

/* 页脚联系方式图标样式 */
.contact-info i {
    color: #3498db;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 响应式���计 */
@media screen and (max-width: 1024px), 
       screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #fff;
        flex-direction: column;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        z-index: 1001;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .nav-links.show {
        display: flex !important;
    }

    /* 子菜单样式 */
    .theme-options,
    .route-options,
    .type-options,
    .community-options,
    .member-options,
    .language-options {
        position: static;
        width: 100%;
        display: none;
        box-shadow: none;
        background: #f8f9fa;
        max-height: none;
        overflow-y: visible;
    }

    /* 移除悬停效果 */
    .nav-links > li:hover .theme-options,
    .nav-links > li:hover .route-options,
    .nav-links > li:hover .type-options,
    .nav-links > li:hover .community-options,
    .nav-links > li:hover .member-options,
    .language-switcher:hover .language-options {
        display: none;
    }

    /* 显示激活的子菜单 */
    .nav-links li.active > div {
        display: block !important;
    }

    /* 调整内容区域上边距，为固定导航栏留出空间 */
    #hero {
        margin-top: 60px;
    }
}

/* 小屏幕设备优化 */
@media screen and (max-width: 480px) {
    .slider-container {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* iPad 专用样式 */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    /* 基础导航样式 */
    .navbar {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
    }

    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
        padding: 10px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        z-index: 1001;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .nav-links.show {
        display: flex !important;
    }

    .nav-links > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links > li > a,
    .nav-links > li > span {
        padding: 15px 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 子菜单样式 */
    .theme-options,
    .route-options,
    .type-options,
    .community-options,
    .member-options,
    .language-options {
        position: static !important;
        width: 100% !important;
        display: none;
        box-shadow: none;
        background: #f8f9fa;
    }

    /* 移除所有悬停效果 */
    .nav-links > li:hover .theme-options,
    .nav-links > li:hover .route-options,
    .nav-links > li:hover .type-options,
    .nav-links > li:hover .community-options,
    .nav-links > li:hover .member-options,
    .language-switcher:hover .language-options {
        display: none !important;
    }

    /* 显示激活的子菜单 */
    .nav-links li.active > div {
        display: block !important;
        position: static !important;
    }

    /* 内容区域调整 */
    #hero {
        margin-top: 60px;
    }

    /* 确保内容不被导航栏遮 */
    .slider-container {
        margin-top: 60px;
    }
}

/* 移动设备特定样式 */
.mobile-device .three-column-container {
    flex-direction: column !important;
}

.mobile-device .column {
    width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 20px;
}

.mobile-device .nav-links {
    display: none;
}

.mobile-device .nav-links.show {
    display: flex !important;
}

/* 导航菜单基础样式 */
.nav-links > li > span {
    white-space: nowrap;  /* 防止文字换行 */
    padding: 0.5rem 1rem;  /* 增加水平内边距 */
}

/* 子菜单样式优化 */
.theme-options, 
.route-options, 
.type-options, 
.community-options, 
.member-options,
.language-options {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;  /* 增加最小宽度 */
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    display: none;
    z-index: 1000;
}

/* 子菜单项样式 */
.theme-options a,
.route-options a,
.type-options a,
.community-options a,
.member-options a,
.language-options a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    white-space: nowrap;  /* 防止文字换行 */
}

/* 图标样式 */
.nav-links i,
.theme-options i,
.route-options i,
.type-options i,
.community-options i,
.member-options i {
    margin-right: 12px;  /* 增加图标右边距 */
    width: 20px;  /* 固定图标宽度 */
    text-align: center;
}

/* 语言切换器样式优化 */
.language-switcher {
    position: relative;
}

#current-language {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

#current-language i:first-child {
    margin-right: 10px;  /* 国旗图标右边距 */
}

#current-language i:last-child {
    margin-left: 10px;  /* 下拉箭头左边距 */
}

.language-options {
    right: 0;
    left: auto;
    min-width: 200px;  /* 语言菜单最小宽度 */
}

.language-options a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
}

.language-options i {
    margin-right: 12px;  /* 国旗图标右边距 */
    width: 20px;  /* 固定图标宽度 */
}

/* 移动端样式调整 */
@media screen and (max-width: 768px) {
    .nav-links li > a,
    .nav-links li > span {
        padding: 15px 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .theme-options, 
    .route-options, 
    .type-options, 
    .community-options, 
    .member-options,
    .language-options {
        position: static;
        width: 100%;
        min-width: auto;
    }

    .language-options a {
        padding: 15px 30px;  /* 增加移动端语言选项内边距 */
    }
}