* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --primary-color: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary-color: #f97316;
    --secondary-light: #fb923c;
    --secondary-dark: #ea580c;
    --text-dark: #111827;
    --text-light: #4b5563;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --transition-normal: all 0.3s ease;
    --border-color: #e5e7eb;
}

body {
    background-color: #f3f4f6;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    background-image: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
}

/* 移除容器的卡片边框和阴影 */
.container {
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    background-color: transparent; /* 改为透明背景 */
    border-radius: 0; /* 移除圆角 */
    box-shadow: none; /* 移除阴影 */
    border: none; /* 移除边框 */
    margin: 20px 0;
}

/* 确保图片容器在所有屏幕尺寸下保持一行两张 */
.image-container {
    width: 100%;
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap; /* 防止换行 */
}

.image-box {
    width: calc(50% - 10px); /* 确保两张图片平均分配空间 */
    min-width: calc(50% - 10px); /* 设置最小宽度防止收缩 */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
}

/* 修改响应式设计，确保图片始终保持一行两张 */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .download-button {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    /* 移除这部分代码，防止图片在小屏幕上变成一列 */
    /*.image-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .image-box {
        width: 100%;
        margin-bottom: 0;
    }*/
    
    /* 替换为保持两列的样式 */
    .image-container {
        gap: 10px; /* 在小屏幕上减小间距 */
    }
    
    .image-box {
        width: calc(50% - 5px); /* 调整宽度计算 */
        min-width: calc(50% - 5px);
    }
}

/* Logo 样式 */
.logo-container {
    margin-top: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-xl);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: bold;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(30deg);
}

/* 标题样式 */
.title-container {
    text-align: center;
    margin-bottom: 36px;
    width: 100%;
}

.title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* 替换 text-fill-color 为标准属性 color */
}

.subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 8px;
}

/* 按钮样式 */
.download-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 36px;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    width: 48%;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.download-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.6s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-button:hover::after {
    left: 100%;
}

.download-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.download-button img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.button-container {
    width: 100%;
    margin-bottom: 36px;
}

/* 图片容器样式 */
.image-container {
    width: 100%;
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.image-box {
    width: 48%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
}

.image-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.image-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-normal);
}

.image-box:hover img {
    transform: scale(1.05);
}

/* 视频容器样式 */
.video-container {
    width: 100%;
    margin-bottom: 36px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 通知容器样式 */
.notice-container {
    width: 100%;
    margin-bottom: 28px;
    background-color: #fff7ed;
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.notice-container:hover {
    box-shadow: var(--shadow-md);
}

.notice-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.notice-title svg {
    margin-right: 10px;
    color: var(--secondary-color);
}

.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.toggle-icon.active {
    transform: rotate(180deg);
}

.notice-content {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    max-height: 0; /* 恢复为0，默认收起 */
    overflow: hidden; /* 恢复为hidden */
    transition: all 0.4s ease-out;
    opacity: 0; /* 默认隐藏 */
    margin-top: 0; /* 默认无间距 */
}

.notice-content.active {
    max-height: 2000px; /* 设置足够大的值确保内容完全显示 */
    opacity: 1;
    margin-top: 16px;
}

.notice-content p {
    margin-bottom: 10px;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

/* FAQ样式 */
.faq-container {
    width: 100%;
    margin-bottom: 40px;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.faq-question {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-normal);
}

.faq-question:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

.faq-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
    flex-shrink: 0; /* 防止图标缩小 */
}

.faq-toggle {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    flex-shrink: 0; /* 防止箭头缩小 */
}

.faq-toggle.active {
    transform: rotate(180deg);
}

/* 修改FAQ答案样式，确保至少显示一行 */
.faq-answer {
    padding: 0 20px 0 62px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    max-height: 1.7em; /* 设置为一行的高度 */
    overflow: hidden;
    transition: all 0.4s ease-out;
    opacity: 0.8; /* 稍微降低不活跃状态的透明度 */
    margin-bottom: 15px; /* 添加底部间距 */
}

.faq-answer.active {
    max-height: 600px;
    padding-bottom: 20px; /* 展开时添加底部内边距 */
    opacity: 1;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* 响应式设计中的FAQ调整 */
@media (max-width: 480px) {
    /* ... 其他响应式样式 ... */
    
    /* 调整FAQ在移动端的显示 */
    .faq-question {
        padding: 15px;
        font-size: 15px;
        line-height: 1.4;
    }
    
    .faq-icon {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        font-size: 12px;
    }
    
    .faq-answer {
        padding: 0 15px 0 49px;
        font-size: 14px;
        max-height: 1.6em; /* 移动端一行的高度 */
        line-height: 1.6;
    }
    
    .faq-answer.active {
        padding-bottom: 15px;
    }
    
    /* ... 其他响应式样式 ... */
}

/* Footer样式 */
.footer {
    width: 100%;
    padding: 40px 30px;
    margin-top: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.logo-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin: 0 auto 30px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.logo-small:hover {
    transform: rotate(10deg) scale(1.05);
}

.logo-small::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(30deg);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 15px; /* 减小间距 */
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
    padding: 5px 0;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 20px;
    position: relative;
    padding-top: 20px;
}

.footer-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--border-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}


/* 在响应式设计中添加 Footer 的移动端样式 */
@media (max-width: 480px) {
    /* ... 其他响应式样式 ... */
    
    .footer {
        padding: 30px 15px;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .footer-link {
        font-size: 14px;
        padding: 4px 8px; /* 添加水平内边距 */
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .logo-small {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .footer-copyright {
        font-size: 13px;
        margin-top: 15px;
        padding-top: 15px;
    }
}

/* 修改语言切换器样式 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn svg {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-btn.active svg {
    box-shadow: 0 0 0 2px white;
}

.lang-btn:hover:not(.active) {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .lang-btn svg {
        width: 16px;
        height: 16px;
    }
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-btn:hover:not(.active) {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 视频弹出框样式 */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

.popup-video-container {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
}

.popup-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-popup-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-popup-btn:hover {
    background-color: var(--primary-dark);
}

/* 弹出动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-popup.show {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}