/* index.html 专用样式 */

body {
    background: linear-gradient(135deg, #e6f3ff 0%, #b3d9ff 50%, #99ccff 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 50px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #f0f2f5;
    color: #FF7043;
}

.admin-btn {
    background: linear-gradient(135deg, #FF7043 0%, #ff5722 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 112, 67, 0.3);
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.4);
}

/* 主内容区 */
.main-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 120px;
    overflow: hidden;
}

.content-wrapper {
    max-width: 1300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    position: relative;
    z-index: 10;
}

/* 左侧手机样机 */
.phone-mockup {
    flex: 0 0 auto;
}

.phone-image {
    width: 260px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

/* 右侧下载区域 */
.download-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: white;
    margin-top: 80px;
}

.download-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 18px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #2c5aa0;
}

.app-description {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 20px;
    color: #131f2e;
    max-width: 750px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.version-info {
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.version-info p {
    margin: 4px 0;
    line-height: 1.6;
}

.version-info strong {
    color: #333;
    font-weight: 600;
}

.download-box {
    display: flex;
    align-items: center;
    gap: 35px;
}

.qr-code-box {
    background: white;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.qr-code-box img {
    width: 160px;
    height: 160px;
    display: block;
}

.qr-hint {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

.download-buttons {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.download-btn {
    background: white;
    color: #666;
    padding: 14px 45px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    color: #5a9fd4;
}

/* 快捷链接 */
.quick-links {
    margin-top: 25px;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-link {
    color: #4a6fa5;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    border: 1px solid rgba(74, 111, 165, 0.2);
    font-size: 13px;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    border-color: #FF7043;
    color: #FF7043;
}

/* 页脚 - 简洁版 */
.footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(74, 111, 165, 0.1);
    padding: 20px 50px;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    color: #676767;
    font-size: 14px;
    margin: 3px 0;
    line-height: 1.8;
}

.footer-text a {
    color: #676767;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-text a:hover {
    color: #FF7043;
    text-decoration: underline;
}

/* 自动跳转提示 */
.auto-redirect-message {
    display: none;
    background: white;
    border: 2px solid #5a9fd4;
    border-radius: 10px;
    padding: 15px 25px;
    margin-bottom: 20px;
    text-align: center;
    color: #5a9fd4;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 移动端适配 */
@media (max-width: 1200px) {
    .content-wrapper {
        gap: 50px;
    }

    .phone-image {
        width: 220px;
    }

    .download-title {
        font-size: 36px;
    }

    .app-description {
        font-size: 13px;
    }

    .qr-code-box img {
        width: 145px;
        height: 145px;
    }

    .main-content {
        padding: 50px 60px;
    }
}

@media (max-width: 968px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .navbar {
        padding: 12px 20px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo {
        width: 36px;
        height: 36px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 8px;
    }

    /* 移动端隐藏管理员按钮 */
    .admin-btn {
        display: none;
    }

    .main-content {
        padding: 30px 20px;
        overflow: visible;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .phone-mockup {
        display: none;
    }

    .download-area {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .download-title {
        font-size: 28px;
        text-align: center;
    }

    .app-description {
        text-align: center;
        font-size: 13px;
    }

    .version-info {
        text-align: center;
    }

    .download-box {
        flex-direction: column;
        gap: 25px;
    }

    /* 移动端：隐藏二维码，显示下载按钮 */
    .qr-code-box {
        display: none;
    }

    .download-buttons {
        display: flex;
    }

    .quick-links {
        justify-content: center;
        gap: 10px;
    }

    .quick-link {
        padding: 5px 12px;
        font-size: 12px;
    }

    .footer {
        padding: 20px 20px;
    }

    .footer-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo {
        width: 30px;
        height: 30px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-link {
        font-size: 12px;
        padding: 5px 6px;
    }

    .download-title {
        font-size: 22px;
    }

    .app-description {
        font-size: 11px;
    }

    .version-info {
        font-size: 11px;
        padding: 10px 15px;
    }

    .qr-code-box {
        padding: 12px;
    }

    .qr-code-box img {
        width: 135px;
        height: 135px;
    }

    .download-btn {
        padding: 12px 40px;
        font-size: 14px;
        min-width: 180px;
    }

    .quick-links {
        gap: 8px;
    }

    .quick-link {
        padding: 4px 10px;
        font-size: 11px;
    }

    .footer {
        padding: 15px;
    }

    .footer-text {
        font-size: 11px;
    }

    .footer-text a {
        margin: 0 5px;
        display: block;
        margin-bottom: 5px;
    }
}
