/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background: linear-gradient(to bottom, #e5e2f0, #9b7bdb);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* 顶部搜索和功能区 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-btn img, .action-btns img {
    width: 30px;
    height: 30px;
}

.action-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btns span {
    color: #666;
}

/* 标志和标题 */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.logo-container {
    width: 120px;
    height: 120px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.7);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo {
    transform: scale(1.05); /* 鼠标悬停时轻微放大logo */
}

.slogan {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

.link-box {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.main-link {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    margin-left: 10px;
}

/* 导航链接容器 */
.nav-link-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.nav-link {
    text-decoration: none;
}

.nav-button {
    background-color: #fff;
    color: #8a66d4;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-arrow {
    margin-left: 10px;
    font-size: 18px;
    color: #9b7bdb;
}

/* 分隔线 */
.separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 15px 0;
}

/* 视频平台 */
.video-platforms {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 10px 0;
}

.platform-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.platform-row img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.platform-row img:hover {
    transform: scale(1.03);
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 15px;
    padding: 15px;
    width: 32%;
    cursor: pointer;
    transition: transform 0.2s;
}

.platform-item:hover {
    transform: scale(1.05);
}

.platform-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

.platform-item span {
    font-size: 14px;
    color: #666;
}

/* 下载区域 */
.download-section {
    margin: 15px 0;
}

.download-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 40px;
    padding: 12px 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

a.download-item {
    color: inherit;
    text-decoration: none;
}

a.download-item span {
    color: #666;
}

.download-item:hover {
    transform: translateX(5px);
}

.platform-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    flex-shrink: 0;
}

.download-item span {
    flex: 1;
    font-size: 16px;
}

.arrow-right, .download-item .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.download-item .icon path {
    fill: #9b7bdb;
}

/* 弹出窗口 */
.popup {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    max-width: 80%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

#popup-content {
    text-align: center;
}

#popup-content img {
    max-width: 100%;
    height: auto;
}

#popup-content iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.image-content {
    display: flex;
    justify-content: center;
}

.full-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.video-content {
    margin-top: 20px;
}

.full-video {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

video::-webkit-media-controls {
    display: flex !important;
}

video:focus {
    outline: none;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
        border-width: 2px;
    }
    
    .slogan {
        font-size: 20px;
    }
    
    .main-link {
        font-size: 16px;
    }
    
    .platform-row {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-row img {
        width: 100%;
        max-width: 400px; /* 限制在移动设备上的最大宽度 */
        margin-bottom: 15px;
    }
    
    .download-item {
        padding: 10px 15px;
    }
    
    .download-item span {
        font-size: 14px;
    }
    
    .platform-icon {
        width: 25px;
        height: 25px;
        margin-right: 10px;
    }
    
    .full-video {
        max-height: 50vh;
    }
    
    .popup-content {
        max-width: 95%;
        padding: 15px;
    }
    
    #popup-content iframe {
        height: 240px;
    }
}

/* 在大屏幕上限制最大高度 */
@media (min-height: 800px) {
    .full-image {
        max-height: 70vh;
    }
}

/* 超小屏幕设备适配 */
@media (max-width: 480px) {
    .logo-container {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }
    
    .slogan {
        font-size: 18px;
    }
    
    .download-item {
        padding: 8px 12px;
    }
    
    .platform-icon {
        width: 22px;
        height: 22px;
        margin-right: 8px;
    }
    
    .download-item span {
        font-size: 13px;
    }
    
    .arrow-right, .download-item .icon {
        width: 16px;
        height: 16px;
    }
    
    #popup-content iframe {
        height: 200px;
    }
}

/* 微信浏览器引导页面样式 */
.wechat-guide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #7f7f7f; /* 纯灰色背景 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    text-align: center;
    margin-top: -50px; /* 整体内容上移 */
}

.guide-arrow-container {
    position: relative;
    /* width: 100%;
    height: 100px; */
    margin-bottom: 20px;
    overflow: visible;
}

.guide-arrow {
    position: absolute;
    top: -260px;
    right: 50%;
    width: 215px;
    height: 150px;
}

.guide-arrow svg path {
    fill: #ebeff1; /* 蓝色 */
  }

.guide-text {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: normal;
    text-align: center;
}

.browser-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.browser-icon {
    width: 22px;
    height: 22px;
    color: #1677ff;
}

.guide-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 90px;
}

.button-text {
    color: #fff;
    font-size: 20px;
    margin-top: 5px;
}

.guide-alternate {
    color: #fff;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: normal;
}

.link-text {
    display: block;
    font-weight: normal;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 15px;
    color: #fff;
}

.copy-button {
    background-color: #fff;
    color: #a264b1;
    border: none;
    border-radius: 25px;
    padding: 12px 0;
    width: 240px;
    max-width: 100%;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: -210px;
}

.free-link3-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #d9b6e6;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
} 