/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: #242424; /* 修改为深灰色背景 FFF */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 59px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #fff;  /* 修改为白色 333*/
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 英雄横幅 */
.hero-banner {
    position: relative;
    height: 600px;
    margin-top: 30px;   /* 修改为70px */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.play-button {
    width: 130px;
    height: 130px;
    background: #e83835;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
}

.play-icon {
    width: 60px;
    height: 60px;
}

.hero-text {
    font-size: 18px;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 通用区块样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Box登录器官方承诺 */
.promise-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-container {
    display: flex;
    gap: 15px;
    overflow: hidden;
}

.carousel-img {
    width: 550px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.carousel-img:hover {
    transform: scale(1.05);
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: #c0392b;
}

/* 选择Box登录器的四大理由 */
.reasons-section {
    padding: 80px 0;
    background: white;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.reason-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.reason-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reason-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.reason-card p {
    color: #666;
    line-height: 1.6;
}

/* Box登录器功能介绍 */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #242424;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #333;
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-banner {
        height: 400px;
        margin-top: 120px;
    }
    
    .play-button {
        width: 80px;
        height: 80px;
    }
    
    .play-icon {
        width: 30px;
        height: 30px;
    }
    
    .hero-text {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-container {
        justify-content: center;
    }
    
    .carousel-img {
        width: 300px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .hero-banner {
        height: 300px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-icon {
        width: 25px;
        height: 25px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .reason-card,
    .feature-card {
        padding: 20px;
    }
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    width: 90%;
    height: 90%;
    background-color: #fff;
    border-radius: 12px;
    position: relative;
    transform: scale(0.7) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10001;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.modal-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-logout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modal-logout:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.modal-logout:hover::before {
    left: 100%;
}

.modal-close {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modal-close:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.modal-close:hover::before {
    left: 100%;
}

.modal-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
}

/* 弹窗内容iframe样式 */
.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: block;
}

/* 加载状态样式 */
.modal-content .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 18px;
    color: #666;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

.modal-content .error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 18px;
    color: #e74c3c;
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    text-align: center;
    padding: 20px;
}

/* 弹窗加载动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-overlay.show .modal-container {
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 响应式弹窗 */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        height: 95%;
        border-radius: 8px;
    }
    
    .modal-close {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    
    .modal-logout {
        width: 38px;
        height: 38px;
    }
    
    .modal-logout svg {
        width: 18px;
        height: 18px;
    }
    
    .modal-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 98%;
        height: 98%;
        border-radius: 6px;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .modal-logout {
        width: 32px;
        height: 32px;
    }
    
    .modal-logout svg {
        width: 16px;
        height: 16px;
    }
    
    .modal-content {
        padding: 10px;
    }
    
    .modal-header {
        padding: 8px;
    }
}

/* 横屏设备优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .modal-container {
        height: 98%;
        width: 95%;
    }
} 