:root {
    --primary-color: #4a6bff;
    --primary-dark: #3a5bef;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dark-color);
    background-color: #f5f7ff;
    line-height: 1.6;
}

/* 顶部导航栏样式 */
.top-navigation {
    background: linear-gradient(135deg, #4a6bff, #6a4bff);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 107, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 10px;
    background: white;
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-size: 1.8rem;
}

.logo-text p {
    font-size: 0.9rem;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    gap: 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.main-container {
    padding: 30px 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    color: white;
    text-align: center;
    padding: 20px;
}

.video-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.video-placeholder p {
    color: rgba(255, 255, 255, 0.7);
}

.video-container iframe {
    width: 100%;
    border: none;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 25px;
    background: white;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    border-radius: var(--border-radius);
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    width: 100%;
    font-size: 1rem;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    padding: 0.8rem 1.75rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 107, 255, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-links {
    text-align: center;
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.platform-links .btn {
    margin: 0;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    background-color: white;
    color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.platform-links .btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(74, 107, 255, 0.3);
}

@media (max-width: 768px) {
    .video-container {
        min-height: 200px;
    }

    .video-placeholder h3 {
        font-size: 1.2rem;
    }

    .video-placeholder p {
        font-size: 0.9rem;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    /* 移动端导航菜单样式优化 */
    .top-navigation {
        flex-direction: column;
        padding: 15px 10px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 5px;
    }

    .nav-menu a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

footer.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 20px 0;
}

footer.footer p {
    margin: 5px 0;
}

footer.footer p.small {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* 调整平台 logo 布局 */
.title-tit h4 {
    color: #666666;
}

.logo-box .row {
    display: flex;
    flex-wrap: wrap;
}

.logo-box .col-xs-4.col-sm-2 {
    flex: 0 0 20%;
    /* 每个元素占 20% 宽度，一行显示 5 个 */
    max-width: 20%;
    padding: 0 15px;
}

/* 为 logo 容器添加样式 */
.logo-box .logo-lie {
    border-radius: 10px;
    /* 设置边框圆角 */
    overflow: hidden;
    /* 确保图片适应圆角 */
    margin: 10px 0;
    /* 上下留出 15px 的间隔 */
    transition: transform 0.3s ease;
    /* 添加过渡效果 */
    background-color: #ffffff;
    padding: 5px;
}

.logo-box .logo-lie:hover {
    transform: translateY(-5px);
    /* 鼠标悬停时向上移动 5px */
}

.logo-box .logo-lie img {
    width: 100%;
    /* 确保图片填满容器 */
    height: auto;
    /* 保持图片比例 */
    display: block;
    /* 去除图片下方的空白 */
}

/* 添加针对“联系我们”链接的样式 */
footer.footer p.small a {
    color: white;
    text-decoration: none;
}

footer.footer p.small a:hover {
    text-decoration: underline;
}

/* 下载APP模态框样式优化 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.modal p {
    margin-bottom: 15px;
    text-align: center;
    color: #555;
}

.qrcode-container {
    text-align: center;
    margin: 25px 0;
}

.qrcode-container img {
    max-width: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal .btn {
    margin-bottom: 15px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal .btn-primary {
    background: linear-gradient(135deg, #4a6bff, #6a4bff);
    color: white;
}

.modal .btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.modal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal .btn i {
    font-size: 1.2rem;
}