/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #2dd4a8 0%, #c5f5e4 45%, #f0fdf9 75%, #f5f5f5 100%);
    min-height: 100vh;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* ===== 顶部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, #2dd4a8 0%, #26c49a 100%);
    padding: 0 16px;
    height: 56px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

/* 汉堡菜单 */
.menu-btn {
    width: 32px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 2px;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(45, 212, 168, 0.98);
    backdrop-filter: blur(10px);
    z-index: 99;
    padding: 8px 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:active {
    background: rgba(255,255,255,0.15);
}

/* ===== 主内容区 ===== */
.main {
    padding-top: 56px;
    padding-bottom: 40px;
}

/* ===== 手机展示 ===== */
.phones-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 10px;
}

.app-screenshot {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
}

/* ===== 下载区域 ===== */
.download-area {
    text-align: center;
    padding: 20px 24px;
}

.download-btn {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #3b9dff 0%, #1a7ae8 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(26, 122, 232, 0.35);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.download-btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 12px rgba(26, 122, 232, 0.3);
}

/* ===== 版本信息 ===== */
.version-info {
    margin-top: 28px;
    padding: 0 16px;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 157, 255, 0.1);
    border: 1px solid rgba(59, 157, 255, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 12px;
}

.version-label {
    font-size: 13px;
    color: #1a7ae8;
    font-weight: 500;
}

.version-number {
    font-size: 14px;
    color: #1a7ae8;
    font-weight: 700;
    font-family: "SF Mono", Monaco, monospace;
}

.version-detail {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.version-detail p {
    font-size: 13px;
    color: #888;
}

/* ===== 版本说明 ===== */
.version-notes {
    margin-top: 28px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255,255,255,0.7);
    border-radius: 16px;
    padding: 20px 24px;
    backdrop-filter: blur(10px);
}

.version-notes h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.version-notes ul {
    list-style: none;
}

.version-notes li {
    font-size: 14px;
    color: #555;
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.version-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    background: #2dd4a8;
    border-radius: 50%;
}

/* ===== 页脚 ===== */
.footer {
    padding: 24px 16px 32px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.footer-links.sub {
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    padding: 4px 6px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #555;
}

.divider {
    color: #ccc;
    font-size: 12px;
}

.copyright {
    color: #aaa;
    font-size: 12px;
    line-height: 2;
}

.copyright p {
    margin: 0;
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
    .header {
        height: 64px;
        padding: 0 32px;
    }

    .logo-img {
        width: 42px;
        height: 42px;
    }

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

    .mobile-menu {
        top: 64px;
    }

    .main {
        padding-top: 64px;
    }

    .phones-showcase {
        padding-top: 40px;
    }

    .app-screenshot {
        max-width: 640px;
    }

    .download-area {
        padding-top: 30px;
    }

    .download-btn {
        max-width: 360px;
        padding: 18px 48px;
        font-size: 18px;
    }

    .version-notes {
        max-width: 460px;
        padding: 24px 32px;
    }
}

@media (min-width: 1024px) {
    .app-screenshot {
        max-width: 720px;
    }
}
