/* 全局样式 */
:root {
    --primary-color: #6a5acd;
    --secondary-color: #9370db;
    --accent-color: #4b0082;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-color: #333;
    --light-text: #f8f9fa;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 通用触摸反馈效果 */
.touch-active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(0);
}

/* 标题样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    margin-bottom: 40px;
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    box-shadow: var(--box-shadow);
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 内容区样式 */
main {
    padding-bottom: 60px;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.intro p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* 平台选择提示样式 */
.platform-selection-tip {
    margin: 20px 0 10px;
}

.platform-selection-tip p {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px;
    background-color: rgba(106, 90, 205, 0.1);
    border-radius: var(--border-radius);
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 引导图标 */
.guide-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-direction: row; /* 确保始终是横向排列 */
    flex-wrap: wrap; /* 允许在较窄屏幕上换行 */
}

.guide-icon-link {
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.guide-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    width: 150px;
    height: 150px;
    justify-content: center;
    margin: 0 auto; /* 居中对齐 */
    position: relative;
    opacity: 0.6; /* 默认所有图标都有一定的透明度 */
    filter: grayscale(30%); /* 默认有一定的灰度 */
}

.guide-icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    opacity: 0.8; /* 悬停时略微提高透明度 */
    filter: grayscale(15%); /* 悬停时减少灰度 */
}

/* 移动端触摸反馈 */
.guide-icon:active {
    transform: scale(0.95);
    background-color: #f0f0f0;
}

/* 激活状态的图标样式 */
.guide-icon.active-guide {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: white;
    opacity: 1; /* 激活状态时完全不透明 */
    filter: grayscale(0%); /* 激活状态时无灰度 */
    border: 2px solid var(--primary-color); /* 添加边框突出显示 */
}

.guide-icon i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.guide-icon.windows {
    color: #0078d7;
}

.guide-icon.android {
    color: #a4c639;
}

.guide-icon span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* 平台卡片 */
.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 60px;
}

.platform-card {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.platform-card.active-card {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.platform-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.platform-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.platform-card h2 {
    text-align: center;
    margin-bottom: 25px;
}

.platform-card h2:after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

.steps {
    margin-bottom: 30px;
}

.steps ol {
    padding-left: 25px;
}

.steps li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

/* 视频容器样式 */
.video-container {
    margin: 25px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #f0f0f0;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.video-container video {
    width: 100%;
    border-radius: var(--border-radius);
    max-height: 250px;
    background-color: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* 视频预览 */
.video-preview {
    margin: 25px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #f0f0f0;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-link {
    text-decoration: none;
    color: var(--text-color);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-link:hover {
    background-color: #e5e5e5;
}

/* 移动端触摸反馈 */
.video-link:active {
    background-color: #e0e0e0;
}

.play-button {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 10px;
    transition: var(--transition);
}

.video-link:hover .play-button {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* 移动端触摸反馈 */
.video-link:active .play-button {
    transform: scale(0.95);
}

.play-button i {
    font-size: 1.2rem;
}

.video-unavailable {
    color: #d32f2f;
    font-style: italic;
    text-align: center;
}

/* 下载按钮 */
.download-section {
    text-align: center;
    margin-top: 25px;
}

.download-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.4);
    transition: var(--transition);
}

.download-button i {
    margin-right: 8px;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 90, 205, 0.6);
}

/* 移动端触摸反馈 */
.download-button:active {
    transform: translateY(0);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    box-shadow: 0 2px 10px rgba(106, 90, 205, 0.3);
}

/* FAQ部分 */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 移动端触摸反馈 */
.faq-item:active {
    background-color: #f9f9f9;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: var(--transition);
}

.faq-item.active h3:after {
    transform: rotate(180deg);
}

.faq-item p {
    color: #666;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active p {
    max-height: 500px;
}

/* 页脚 */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 40px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* 移动端触摸反馈 */
.social-links a:active {
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 40px 0 30px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .platforms {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-card {
        width: 100%;
    }
    
    .guide-icons {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    
    .guide-icon {
        width: 130px;
        height: 130px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .platform-icon {
        font-size: 2.5rem;
    }
    
    .guide-icon {
        width: 120px;
        height: 120px;
        padding: 15px;
    }
    
    .guide-icon i {
        font-size: 2.5rem;
    }
    
    .guide-icon span {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .intro p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .platform-card {
        padding: 20px;
    }
    
    .steps ol {
        padding-left: 20px;
    }
    
    .steps li {
        font-size: 0.95rem;
    }
    
    .download-button {
        padding: 10px 25px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
    
    .faq-item p {
        font-size: 0.95rem;
    }
}

/* 额外的移动端优化 */
@media (max-width: 380px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    header {
        padding: 30px 0 25px;
        margin-bottom: 30px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    .platform-card {
        min-width: 260px;
        padding: 15px;
    }
    
    .guide-icon {
        width: 110px;
        height: 110px;
        padding: 10px;
    }
    
    .guide-icon i {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }
    
    .guide-icon span {
        font-size: 0.9rem;
    }
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    max-width: 450px;
    width: 90%;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: all 0.3s ease;
    text-align: center;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.modal p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    justify-content: center;
}

.primary-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(106, 90, 205, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 90, 205, 0.5);
}

.primary-button:active {
    transform: translateY(0);
} 