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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 科技感网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* 渐变光效背景 */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 鼠标跟随光标 - 隐藏 */
.cursor-follow {
    display: none;
}

/* 粒子画布 */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* 主容器 */
.container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 头部 */
header {
    text-align: center;
    color: #00ffff;
    margin-bottom: 60px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5),
                     0 0 20px rgba(0, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.8),
                     0 0 30px rgba(0, 255, 255, 0.5),
                     0 0 40px rgba(0, 255, 255, 0.3);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #8899ff;
    opacity: 0.9;
}

/* 卡片容器 */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 卡片样式 */
.card {
    background: rgba(10, 20, 40, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.card:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 15px 50px rgba(0, 255, 255, 0.3),
                inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 50%;
    padding: 15px;
}

.card-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

.platform-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    position: relative;
    z-index: 1;
}

.card h3 {
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.card-description {
    color: #8899ff;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.view-tutorial {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.2));
    color: #00ffff;
    border: 2px solid rgba(0, 255, 255, 0.5);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.view-tutorial::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.view-tutorial:hover::before {
    width: 300px;
    height: 300px;
}

.view-tutorial:hover {
    transform: scale(1.05);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* 内测码输入区域 */
.code-input-section {
    background: rgba(10, 20, 40, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.code-input-section h2 {
    color: #00ffff;
    margin-bottom: 30px;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.input-wrapper {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

#testCode {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(0, 20, 40, 0.6);
    color: #00ffff;
    backdrop-filter: blur(5px);
}

#testCode::placeholder {
    color: rgba(136, 153, 255, 0.5);
}

#testCode:focus {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4),
                inset 0 0 10px rgba(0, 255, 255, 0.1);
}

#submitCode {
    padding: 15px 40px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.2));
    color: #00ffff;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

#submitCode::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#submitCode:hover::before {
    width: 300px;
    height: 300px;
}

#submitCode:hover {
    transform: scale(1.05);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.result-message.show {
    opacity: 1;
}

.result-message.success {
    background: rgba(0, 255, 100, 0.1);
    color: #00ff88;
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.2);
}

.result-message.error {
    background: rgba(255, 50, 100, 0.1);
    color: #ff5588;
    border-color: rgba(255, 50, 100, 0.5);
    box-shadow: 0 0 20px rgba(255, 50, 100, 0.2);
}

/* 客服联系区域 */
.contact-section {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: rgba(10, 20, 40, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-title {
    color: #8899ff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(136, 153, 255, 0.5);
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.tg-btn {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 100, 180, 0.2));
    color: #0088cc;
    border: 2px solid rgba(0, 136, 204, 0.5);
    text-shadow: 0 0 10px rgba(0, 136, 204, 0.5);
}

.tg-btn:hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.3), rgba(0, 100, 180, 0.3));
    border-color: #0088cc;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
    transform: translateY(-2px);
}

.qq-btn {
    background: linear-gradient(135deg, rgba(18, 183, 245, 0.2), rgba(0, 150, 220, 0.2));
    color: #12b7f5;
    border: 2px solid rgba(18, 183, 245, 0.5);
    text-shadow: 0 0 10px rgba(18, 183, 245, 0.5);
}

.qq-btn:hover {
    background: linear-gradient(135deg, rgba(18, 183, 245, 0.3), rgba(0, 150, 220, 0.3));
    border-color: #12b7f5;
    box-shadow: 0 0 20px rgba(18, 183, 245, 0.5);
    transform: translateY(-2px);
}

.contact-btn span {
    font-size: 1.2rem;
}

/* QQ号显示区域 */
.qq-number-display {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(18, 183, 245, 0.1);
    border: 2px solid rgba(18, 183, 245, 0.3);
    border-radius: 10px;
    color: #12b7f5;
    font-size: 1.1rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.qq-number-display.show {
    display: flex;
}

.copy-qq-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(18, 183, 245, 0.3), rgba(0, 150, 220, 0.3));
    color: #12b7f5;
    border: 2px solid rgba(18, 183, 245, 0.5);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-qq-btn:hover {
    background: linear-gradient(135deg, rgba(18, 183, 245, 0.4), rgba(0, 150, 220, 0.4));
    border-color: #12b7f5;
    box-shadow: 0 0 15px rgba(18, 183, 245, 0.4);
    transform: scale(1.05);
}

/* 教程弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(10, 20, 40, 0.95);
    border: 2px solid rgba(0, 255, 255, 0.3);
    margin: 50px auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.close:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    transform: rotate(90deg);
}

#tutorialContent h2 {
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

#tutorialContent h3 {
    color: #00ffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

#tutorialContent p {
    color: #8899ff;
    line-height: 1.8;
    margin-bottom: 15px;
}

#tutorialContent ol, #tutorialContent ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

#tutorialContent li {
    color: #8899ff;
    line-height: 1.8;
    margin-bottom: 10px;
}

#tutorialContent img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    border: 2px solid rgba(0, 255, 255, 0.2);
}

/* 教程按钮样式 */
.tutorial-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0 30px 0;
    flex-wrap: wrap;
}

.tutorial-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.2), rgba(0, 200, 100, 0.2));
    color: #00ff88;
    border: 2px solid rgba(0, 255, 100, 0.5);
    text-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
}

.download-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.3), rgba(0, 200, 100, 0.3));
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.5);
    transform: translateY(-2px);
}

.video-btn {
    background: linear-gradient(135deg, rgba(255, 100, 200, 0.2), rgba(200, 50, 150, 0.2));
    color: #ff69b4;
    border: 2px solid rgba(255, 100, 200, 0.5);
    text-shadow: 0 0 10px rgba(255, 100, 200, 0.5);
}

.video-btn:hover {
    background: linear-gradient(135deg, rgba(255, 100, 200, 0.3), rgba(200, 50, 150, 0.3));
    border-color: #ff69b4;
    box-shadow: 0 0 20px rgba(255, 100, 200, 0.5);
    transform: translateY(-2px);
}

.apple-id-btn {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.2), rgba(50, 100, 200, 0.2));
    color: #6699ff;
    border: 2px solid rgba(100, 150, 255, 0.5);
    text-shadow: 0 0 10px rgba(100, 150, 255, 0.5);
}

.apple-id-btn:hover {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.3), rgba(50, 100, 200, 0.3));
    border-color: #6699ff;
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.5);
    transform: translateY(-2px);
}

.tutorial-btn span {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}
