* {
    padding: 0px;
    margin: 0px;
    font-size: 16px;
    box-sizing: border-box;
}

body {
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 999;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
  
.top-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 2%;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 调整header样式 */
.header {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo img {
    width: auto;
    max-height: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.header-text {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航样式 */
.Tap_Nav {
    display: flex;
    align-items: center;
    padding: 0px 2%;
    box-sizing: border-box;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* 搜索框样式 */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0 15px;
    max-width: 300px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-container:hover {
    background: rgba(255, 255, 255, 0.3);
}

#search-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 8px 12px;
    width: 100%;
    font-size: 14px;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search-button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#search-button:hover {
    background: #764ba2;
    transform: translateY(-1px);
}

/* 搜索结果样式 */
.search-results {
    margin: 20px auto;
    padding: 0 2%;
    max-width: 1200px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

/* 响应式调整 - 平板和桌面 */
@media screen and (max-width: 1024px) {
    .search-container {
        max-width: 200px;
    }
}

/* 响应式调整 - 移动端（768px以下） */
@media screen and (max-width: 768px) {
    /* 调整顶部容器为垂直布局，控制整体高度 */
    .top-container {
        flex-direction: column;
        align-items: center;
        padding: 8px 5%;
        min-height: auto;
    }
    
    /* 调整logo容器 */
    .logo-container {
        align-items: center;
        margin-bottom: 8px;
        width: 100%;
        text-align: center;
    }
    
    /* 调整logo大小，减小高度 */
    .logo img {
        max-height: 50px;
        height: auto;
    }
    
    /* 调整标题文本 - 进一步减小字体大小，确保文本在一行显示 */
    .header-text {
        font-size: 13px;
        margin-top: 5px;
        margin-bottom: 5px;
        text-align: center;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    /* 调整搜索框 - 减小高度和内边距 */
    .search-container {
        max-width: 100%;
        margin: 6px 0;
        width: 100%;
        padding: 0 12px;
    }
    
    /* 调整搜索输入框 */
    #search-input {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    /* 调整搜索按钮 */
    #search-button {
        padding: 5px 15px;
        font-size: 14px;
    }
    
    /* 调整导航菜单 - 将Home与其他选项放在同一排 */
    .Tap_Nav {
        flex-wrap: nowrap;
        height: auto;
        padding: 6px 5%;
        min-height: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    
    .Tap_Nav .title {
        order: 1;
        width: auto;
        padding-top: 0;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .Tap_Nav .Tap_Nav_swiper {
        order: 2;
        width: calc(100% - 70px);
        margin-top: 0;
        flex-shrink: 1;
    }
    
    /* 调整导航链接字体大小 */
    .Tap_Nav .title a {
        font-size: 16px;
    }
    
    .Tap_Nav .Tap_Nav_swiper .swiper-slide a {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* 响应式调整 - 小手机（576px以下） */
@media screen and (max-width: 576px) {
    /* 进一步压缩顶部容器的内边距，严格控制高度 */
    .top-container {
        padding: 6px 4%;
    }
    
    /* 进一步减小logo大小 */
    .logo img {
        max-height: 40px;
    }
    
    /* 进一步减小标题文本大小，确保文本在一行显示 */
    .header-text {
        font-size: 11px;
        margin-top: 4px;
        margin-bottom: 4px;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    /* 调整搜索框元素大小 */
    .search-container {
        padding: 0 10px;
    }
    
    #search-input {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    #search-button {
        padding: 4px 12px;
        font-size: 13px;
    }
    
    /* 调整导航菜单 - 保持Home与其他选项在同一排 */
    .Tap_Nav {
        padding: 4px 4%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    
    .Tap_Nav .title {
        width: auto;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .Tap_Nav .Tap_Nav_swiper {
        width: calc(100% - 60px);
        flex-shrink: 1;
    }
    
    /* 进一步减小导航链接字体大小 */
    .Tap_Nav .title a {
        font-size: 14px;
    }
    
    .Tap_Nav .Tap_Nav_swiper .swiper-slide a {
        font-size: 12px;
        padding: 3px 6px;
    }
}

.Tap_Nav .title {
    width: 70px;
    height: 100%;
    padding-top: 6px;
    box-sizing: border-box;
}

.Tap_Nav .title a {
    color: white;
    font-size: 22px;
    font-weight: 700;
    display: block;
    transition: color 0.3s ease;
}

.Tap_Nav .title a:hover {
    color: #f8f9fa;
}

.Tap_Nav .Tap_Nav_swiper {
    width: calc(100% - 140px);
    height: 100%;
}

.Tap_Nav .Tap_Nav_swiper .swiper-slide {
    width: auto;
    height: 100%;
    display: flex;
    justify-content: center;
    margin-right: 24px;
    padding-top: 7px;
    box-sizing: border-box;
}

.Tap_Nav .Tap_Nav_swiper .swiper-slide a {
    color: white;
    font-size: 15px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.Tap_Nav .Tap_Nav_swiper .swiper-slide a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 主内容区域 - 适用于所有页面 */
#main {
    overflow: hidden;
    margin-top: 170px;
    padding: 0 20px;
}

#connter_out {
    position: relative;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#connter_out li {
    flex: 0 0 calc(20% - 20px);
    max-width: calc(20% - 20px);
    transition: all 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 0;
}

/* 主内容区域响应式调整 - 平板和桌面 */
@media screen and (max-width: 1024px) {
    #main {
        margin-top: 150px;
    }
    
    #connter_out li {
        flex: 0 0 calc(25% - 20px);
        max-width: calc(25% - 20px);
    }
}

/* 主内容区域响应式调整 - 移动端（768px以下）- 每行显示两张图片 */
@media screen and (max-width: 768px) {
    #main {
        margin-top: 250px;
        padding: 0 10px;
    }
    
    #connter_out {
        gap: 15px;
        justify-content: center;
        padding: 0;
    }
    
    #connter_out li {
        flex: 0 0 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
        width: calc(50% - 15px) !important;
    }
    
    /* 确保图片能够完全利用分配的空间 */
    #connter_out li img {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #connter_out li:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
    }
}

/* 主内容区域响应式调整 - 小手机（576px以下） */
@media screen and (max-width: 576px) {
    #main {
        margin-top: 220px;
        padding: 0 8px;
    }
    
    #connter_out {
        gap: 10px;
        justify-content: center;
        padding: 0;
    }
    
    #connter_out li {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        width: calc(50% - 10px) !important;
    }
    
    /* 确保图片能够完全利用分配的空间 */
    #connter_out li img {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* 调整加载更多按钮 */
    .LoadMore {
        margin: 40px 0px;
    }
    
    .LoadMore a {
        width: 150px;
        height: 40px;
        font-size: 14px;
    }
}

#connter_out li:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#connter_out li a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#connter_out li img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    transition: transform 0.5s ease;
}

#connter_out li:hover img {
    transform: scale(1.1);
}

/* 图片悬停效果 - 渐变遮罩 */
#connter_out li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transition: height 0.4s ease;
    z-index: 1;
}

#connter_out li:hover a::after {
    height: 100%;
}

/* 主页特定样式（如需覆盖默认样式） */
.home-page #main {
    /* 主页特定样式可以在这里添加 */
}

/* 下载页面样式 */
/* 标题区域 */
.Tap_title_out {
    padding: 0px 2%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    margin-top: 170px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.Tap_title_out .buddha {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.Tap_title_out .buddha img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: block;
    margin-right: 10px;
    object-fit: contain;
    background: #FFF;
    border: 2px solid #667eea;
}

.Tap_title_out .buddha span {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.Tap_title_out .title {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    flex: 1;
}

.Tap_title_out .button_out {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.Tap_title_out .button_out a {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.Tap_title_out .button_out a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.Tap_title_out .button_out a img {
    width: 20px;
    margin-right: 10px;
}

.Tap_title_out .button_out a span {
    font-size: 16px;
}

/* 主图片区域 */
.mian_iamges {
    width: 100%;
    display: flex;
    padding: 0px 2%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.mian_iamges img {
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.mian_iamges img:hover {
    transform: scale(1.02);
}

/* 翻页导航 */
.flip_over {
    display: flex;
    width: 100%;
    padding: 0px 2%;
    box-sizing: border-box;
    max-width: 60%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px auto 50px auto;
    background: white;
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.flip_over .box {
    display: flex;
    align-items: center;
    width: 48%;
}

.flip_over .box span {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    min-width: 50px;
}

.flip_over .box a {
    color: #333;
    font-size: 16px;
    margin-left: 10px;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    white-space: nowrap;
    width: calc(100% - 50px);
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.flip_over .box a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* 下载按钮列表 */
.button_out_list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 30px;
    margin: 0 2% 50px 2%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.button_out_list .B_1 {
    background: linear-gradient(to right, #667eea, #764ba2);
    width: 300px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.button_out_list .B_1:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.button_out_list .B_text {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.button_out_list .B_text span {
    font-size: 24px;
    display: block;
    margin-right: 8px;
    color: #667eea;
}

.button_out_list .B_text a {
    font-size: 16px;
    color: #333;
}

.button_out_list p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 2em;
    width: 100%;
}

.button_out_list p strong {
    margin-right: 10px;
    font-size: 16px;
    color: #333;
}

.button_out_list p .b_4 {
    color: #333;
    padding: 8px 20px;
    box-sizing: border-box;
    font-size: 14px;
    margin: 0px 10px 10px 0;
    background: #f8f9fa;
    border-radius: 30px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.button_out_list p .b_4:hover {
    border: 1px solid #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.button_out_list p .b_txt {
    padding: 8px 20px;
    background: #667eeae8;
    color: #FFF;
    margin-left: 10px;
    border-radius: 40px;
}

/* 相似壁纸区域 */
.Similarwallpaper {
    width: 100%;
    max-width: 100%;
    margin: 40px auto 60px auto;
    padding: 0 2%;
}

.Similarwallpaper h5 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.Similarwallpaper #main {
    margin-top: 0px;
    padding: 0;
}

.Similarwallpaper #connter_out {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.Similarwallpaper #connter_out li {
    flex: 0 0 calc(12.5% - 15px);
    max-width: calc(12.5% - 15px);
    transition: all 0.4s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 0;
}

.Similarwallpaper #connter_out li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.Similarwallpaper #connter_out li a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.Similarwallpaper #connter_out li img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.Similarwallpaper #connter_out li:hover img {
    transform: scale(1.1);
}

/* 加载更多按钮 */
.LoadMore {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0px;
}

.LoadMore a {
    width: 180px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: 500;
}

.LoadMore a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 页脚样式 */
.footer {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0px;
    box-sizing: border-box;
    margin-top: 60px;
    color: white;
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.footer p a {
    margin: 0px 10px;
    color: white;
    font-size: 14px;
    text-align: center;
    transition: color 0.3s ease;
}

.footer p a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

.friendLink {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.friendLink a {
    color: white;
    font-size: 14px;
    margin: 0 10px 10px 10px;
    transition: color 0.3s ease;
}

.friendLink a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    #connter_out li {
        flex: 0 0 calc(25% - 20px);
        max-width: calc(25% - 20px);
    }
}

@media (max-width: 992px) {
    #connter_out li {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .header-text {
        font-size: 14px;
    }
    
    #main {
        margin-top: 140px;
        padding: 0 10px;
    }
    
    #connter_out li {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    
    .Tap_Nav .Tap_Nav_swiper {
        width: 87%;
    }
    
    /* 翻页导航响应式样式 - 平板设备 */
    .flip_over {
        max-width: 90%;
        padding: 10px 20px;
    }
    
    .flip_over .box {
        width: 48%;
    }
    
    .flip_over .box span {
        font-size: 14px;
        min-width: 45px;
    }
    
    .flip_over .box a {
        font-size: 14px;
        margin-left: 8px;
    }
}

@media (max-width: 576px) {
    #connter_out li {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .logo img {
        height: 50px;
    }
    
    /* 翻页导航响应式样式 - 手机设备 */
    .flip_over {
        max-width: 95%;
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .flip_over .box {
        width: 100%;
        justify-content: center;
    }
    
    .flip_over .box span {
        font-size: 12px;
        min-width: 40px;
    }
    
    .flip_over .box a {
        font-size: 12px;
        margin-left: 6px;
        width: auto;
        white-space: normal;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#connter_out li {
    animation: fadeIn 0.6s ease-out;
}

/* 延迟加载动画 */
#connter_out li:nth-child(1) { animation-delay: 0.1s; }
#connter_out li:nth-child(2) { animation-delay: 0.2s; }
#connter_out li:nth-child(3) { animation-delay: 0.3s; }
#connter_out li:nth-child(4) { animation-delay: 0.4s; }
#connter_out li:nth-child(5) { animation-delay: 0.5s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}