/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --secondary-color: #10B981;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow: 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);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.logo svg {
    width: 60px;
    height: 60px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 主页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.version-info {
    display: flex;
    gap: 1rem;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

/* 手机模型 */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    z-index: 1;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a1628 0%, #0f1922 50%, #0a1628 100%);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 刘海屏 */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #000;
    border-radius: 15px;
    z-index: 10;
}

/* 应用预览内容 */
.app-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 5;
}

/* 播放图标 */
.preview-icon {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 30px;
}

/* 使用SVG背景 */
.preview-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 108 108"><path fill="%239EDBFF" d="M35,27 L42,43 L28,46 Z" /><path fill="%239EDBFF" d="M73,27 L80,46 L66,43 Z" /><path fill="%239EDBFF" d="M54,31 C39.64,31 28,42.64 28,57 C28,71.36 39.64,83 54,83 C68.36,83 80,71.36 80,57 C80,42.64 68.36,31 54,31 Z" /><path fill="%23132E66" d="M54,36 C42.4,36 33,45.4 33,57 C33,68.6 42.4,78 54,78 C65.6,78 75,68.6 75,57 C75,45.4 65.6,36 54,36 Z" /><path fill="%234FE0FF" d="M50,48 L50,66 L63.5,57 Z" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 移除之前的伪元素样式 */
.preview-icon::before,
.preview-icon::after {
    display: none;
}

/* 移除播放三角形 */
.app-preview::before {
    display: none;
}

/* 文字样式 */
.preview-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0 0 180px 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.preview-loading {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

/* 特点区域 */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 下载区域 */
.download {
    padding: 80px 0;
}

.download-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.download-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.download-info .version,
.download-info .size,
.download-info .requirements {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.download-features {
    list-style: none;
    margin-top: 1.5rem;
}

.download-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.download-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-download {
    background: var(--primary-color);
    color: white;
    padding: 16px 48px;
    font-size: 1.25rem;
    width: 100%;
    max-width: 300px;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-note {
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
}

.qr-code {
    margin-top: 2rem;
    text-align: center;
}

.qr-placeholder {
    display: inline-block;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qr-code p {
    margin-top: 0.5rem;
    color: var(--text-light);
}

/* 安装说明 */
.install-guide {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 16px;
}

.install-guide h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 更新日志 */
.changelog {
    padding: 80px 0;
    background: var(--bg-light);
}

.changelog-list {
    max-width: 800px;
    margin: 0 auto;
}

.changelog-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.changelog-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.changelog-header .date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.changelog-content {
    list-style: none;
}

.changelog-content li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    padding-left: 1.5rem;
    position: relative;
}

.changelog-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .download-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo span {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 加载动画 */
.loading-spinner {
    animation: spin 1s linear infinite;
}

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

.btn-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-download:disabled:hover {
    transform: none;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 密码提示弹窗样式 */
.password-notification .password-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.password-notification .password-icon {
    font-size: 48px;
}

.password-notification .password-text {
    flex: 1;
}

.password-notification .password-text strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.password-notification .password-text p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.875rem;
}

.copy-password-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-password-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* 响应式密码弹窗 */
@media (max-width: 480px) {
    .password-notification {
        min-width: 90% !important;
        padding: 20px !important;
    }
    
    .password-notification .password-content {
        flex-direction: column;
        text-align: center;
    }
    
    .copy-password-btn {
        width: 100%;
    }
}

/* 动画效果 */
/* 已禁用淡入动画，避免页面滚动问题 */
/*
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.changelog-item {
    animation: fadeInUp 0.6s ease-out;
}
*/