/* 主页专用样式 */

/* 主要英雄区域 */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 背景图片 */
.hero-background {
    position: relative;
    width: 100%;
    flex: 1;
    z-index: 1;
    margin-top: 10px;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scaleY(0.95);
    transform-origin: center top;
}

/* 右下角主要操作按钮 */
.main-actions {
    position: absolute;
    bottom: 140px;
    right: 60px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

/* 操作按钮容器 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 340px;
}

/* 主要操作按钮 */
.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.action-btn img {
    height: auto;
    width: 100%;
    max-width: 340px;
    display: block;
}

/* 按钮文字 */
.button-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

/* 下载按钮 */
.download-buttons {
    display: flex;
    gap: 15px;
    width: 340px;
    margin-top: 20px;
}

.download-btn {
    display: block;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.download-btn:hover {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.platform-icon {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 40px;
}

/* 左下角社交媒体区域 */
.social-section {
    /*position: relative;*/
    z-index: 10;
    height: auto;
    width: 50%;
    flex-shrink: 0;
    /*margin-top: -120px;*/
}

.social-background {
    position: relative;
    width: 100%;
    height: auto;
}

.social-bg {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* 社交媒体链接 */
.social-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 40px;
    height: 100%;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
    transform: translateY(-2px);
}

.social-link img {
    width: 24px;
    height: 24px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-background {
        margin-top: 5px;
    }

    .hero-section {
        height: 100vh;
    }

    .main-actions {
        bottom: 120px;
        right: 40px;
    }

    .action-buttons {
        width: 280px;
    }

    .button-text {
        font-size: 15px;
    }

    .action-btn img {
        max-width: 280px;
    }

    .download-buttons {
        width: 280px;
    }

    .download-btn {
        min-height: 36px;
    }

    .platform-icon {
        min-height: 36px;
    }
}

@media (max-width: 768px) {
    .hero-background {
        margin-top: 0px;
    }

    .hero-section {
        height: 100vh;
    }

    .main-actions {
        bottom: 100px;
        right: 30px;
    }

    .action-buttons {
        width: 240px;
    }

    .button-text {
        font-size: 14px;
    }

    .action-btn img {
        max-width: 240px;
    }

    .download-buttons {
        gap: 10px;
        width: 240px;
    }

    .download-btn {
        min-height: 32px;
    }

    .platform-icon {
        min-height: 32px;
    }

    .social-links {
        padding: 20px 30px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-top: 0;
        height: 100vh;
    }

    .hero-background {
        margin-top: 5px;
    }

    .main-actions {
        bottom: 80px;
        right: 20px;
        gap: 6px;
    }

    .action-buttons {
        width: 200px;
    }

    .button-text {
        font-size: 12px;
    }

    .action-btn img {
        max-width: 200px;
    }

    .download-buttons {
        flex-direction: column;
        gap: 8px;
        width: 200px;
    }

    .download-btn {
        width: 100%;
        min-height: 28px;
    }

    .platform-icon {
        min-height: 28px;
    }

    .social-section {
        height: auto;
        min-height: 40px;
        margin-top: -90px;
    }

    .social-background {
        height: auto;
    }

    .social-bg {
        /* 移动端保持图片原始比例 */
    }

    .social-links {
        padding: 8px 15px;
        gap: 8px;
        flex-wrap: wrap;
        min-height: 40px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .social-link img {
        width: 20px;
        height: 20px;
    }
}

/* 安卓下载弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 580px;
    height: auto;
}
.modal-content2 {
    position: relative;
    width: 90%;
    max-width: 200vh;
    height: auto;
}

/* 弹窗主背景边框 */
.modal-main-bg {
    position: relative;
    width: 100%;
    z-index: 1;
}

.modal-border {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 右下角装饰 */
.modal-corner-decoration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    width: 60px;
    height: 60px;
}

.modal-shape {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 顶部LOGO背景 */
.modal-top-logo {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.modal-top-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* 关闭按钮 (在弹窗外面，右上角) */
.modal-close {
    position: absolute;
    top: 0px;
    right: -50px;
    z-index: 15;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-close img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 弹窗内容主体 */
.modal-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60%;
    height: 60%;
    text-align: center;
}

.modal-title {
    margin-bottom: 15px;
    order: 1;
}

.modal-title h3 {
    color: white;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 二维码区域 */
.qr-section {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    order: 2;
}

.qr-container {
    position: relative;
    display: inline-block;
}

.qr-frame {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

.qr-code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* 下载按钮 */
.download-section {
    display: flex;
    justify-content: center;
    order: 3;
    margin-top: 0;
}

.modal-download-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.modal-download-btn:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.download-bg {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.download-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* 社交媒体二维码 */
.social-qr-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    pointer-events: none;
}

.social-qr-bubble.show {
    display: block;
    opacity: 1;
    animation: qrFadeIn 0.3s ease;
}

@keyframes qrFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* 简单二维码样式 */
.qr-code-simple {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
}

/* 弹窗响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 500px;
    }

    .modal-content2 {
        width: 95%;
        max-width: 200vh;
    }

    .modal-body {
        width: 65%;
        height: 55%;
    }

    .modal-top-logo {
        top: 12px;
    }

    .modal-top-logo img {
        height: 35px;
    }

    .modal-title h3 {
        font-size: 16px;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        top: -20px;
        right: -20px;
    }

    .modal-corner-decoration {
        width: 50px;
        height: 50px;
        bottom: 8px;
        right: 8px;
    }

    .qr-frame {
        width: 100px;
        height: 100px;
    }

    .qr-code {
        width: 75px;
        height: 75px;
    }

    .download-bg {
        height: 40px;
    }

    .download-text {
        font-size: 13px;
    }

    /* 社交二维码响应式 */
    .qr-code-simple {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 400px;
    }
    .modal-content2 {
        max-width: 200vh;
    }

    .modal-body {
        width: 70%;
        height: 55%;
    }

    .modal-top-logo {
        top: 10px;
    }

    .modal-top-logo img {
        height: 30px;
    }

    .modal-title h3 {
        font-size: 15px;
    }

    .modal-corner-decoration {
        width: 40px;
        height: 40px;
        bottom: 6px;
        right: 6px;
    }

    .qr-frame {
        width: 90px;
        height: 90px;
    }

    .qr-code {
        width: 65px;
        height: 65px;
    }

    .download-bg {
        height: 35px;
    }

    .download-text {
        font-size: 12px;
    }

    .modal-close {
        width: 30px;
        height: 30px;
        top: -18px;
        right: -18px;
    }

    .modal-close:hover {
        transform: scale(1.1);
    }

    /* 移动端社交二维码 */
    .qr-code-simple {
        width: 60px;
        height: 60px;
    }
}

/* 测试资格弹窗样式 */
.test-modal-bg {
    position: relative;
    width: 100%;
    z-index: 1;
}

.test-modal-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 中央播放按钮样式 */
.center-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.play-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    padding: 0;
}

.play-btn:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.play-btn-img {
    width: auto;
    height: 80px;
    display: block;
    object-fit: contain;
}

/* 播放视频弹窗样式 */
.play-modal-bg {
    position: relative;
    width: 100%;
    z-index: 1;
}

.play-modal-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.play-modal-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: #000;
}

/* 播放按钮响应式设计 */
@media (max-width: 768px) {
    .play-btn-img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .play-btn-img {
        height: 50px;
    }
}

/* 顶部中间选择图标 */
.top-center-selector {
    position: absolute;
    top: -60px;
    left: 33%;
    transform: translateX(-50%);
    z-index: 5;
    width: auto;
    height: auto;
    overflow: hidden;
}

.selector-img {
    width: auto;
    height: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

/* 响应式设计 - 选择图标 */
@media (max-width: 768px) {
    .top-center-selector {
        top: -45px;
    }

    .selector-img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .top-center-selector {
        top: -35px;
    }

    .selector-img {
        max-width: 90px;
    }
}
