/* 全局样式 */
* {
    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-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    pointer-events: auto;
}

.mobile-overlay img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    position: relative;
}

.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: 234px;
    margin-top: 30px;   /* 修改为70px */
    margin-bottom: 0px; /* 修改为-60px */
    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: 900;
    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;
}

/* 左图右文通用布局 */
.split-section {
    background: #f8f9fa;
}

.split-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* 左图稍大 */
    gap: 48px;
    align-items: center;
}

/* 左文右图时使用 */
.split-reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.split-media img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.split-content h2 {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #111;
}

.split-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 16px;
}

.split-list {
    margin: 6px 0 20px;
    padding-left: 18px;
    color: #444;
}

.split-list li {
    margin-bottom: 8px;
}

/* 小屏单列堆叠 */
@media (max-width: 992px) {
    .split-wrapper,
    .split-wrapper.split-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all .25s ease;
}

.btn-primary {
    background: #2b7cff;
    color: #fff;
    box-shadow: 0 12px 24px rgba(43,124,255,.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(43,124,255,.3);
}

/* 指定高度与背景需求 */
.split-700-media { padding: 0; }
.split-700-media .split-wrapper { height: 700px; }

.split-700-content { background: #ffffff; padding: 0; }
.split-700-content .split-wrapper { height: 700px; }

.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;
}

/* 用户评价 */
.testimonials-section {
    padding: 120px 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    min-height: 200px; /* 至少200px高度 */
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-meta h3 {
    font-size: 16px;
    line-height: 1.2;
    color: #111;
}

.testimonial-meta span {
    font-size: 12px;
    color: #777;
}

.rating {
    margin-left: auto;
    color: #ffb400;
    font-size: 14px;
}

.quote {
    color: #444;
    line-height: 1.75;
    margin-top: 6px;
    flex: 1;
}

@media (max-width: 992px) {
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1023px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .nav-menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* 移动端弹层 */
    .mobile-overlay {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        justify-content: center;
        align-items: flex-start;
        z-index: 9999;
        padding: 20px;
        padding-top: 120px;
        pointer-events: auto;
    }
    
    .mobile-overlay img {
        width: 100%;
        max-width: 700px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        z-index: 10000;
        position: relative;
    }
    
    .hero-banner {
        height: 0px; /* 修改为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: 0px; /* 修改为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: 100%; /* 修改为98% */
    height: 100%; /* 修改为97% */
    background-color: #fff;
    border-radius: 0px; /* 12px 修改为0px 就没边框了*/ 
    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: 20px;
    right: 30px;
    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: 1024px) {
    .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%;
    }
} 