/* Flycc 下载页 — 与主站统一的清爽风格 */

:root {
    --accent: #0066ff;
    --accent-dark: #0052cc;
    --accent-soft: #f0f7ff;
    --text: #333;
    --text-muted: #666;
    --text-light: #999;
    --bg: #f5f7fa;
    --card: #ffffff;
    --border: #e8ecf0;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 102, 255, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 顶栏 */
.dl-header {
    background: var(--card);
    padding: 1rem 1rem 1.25rem;
    text-align: center;
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dl-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.dl-back:hover {
    color: var(--accent);
}

.dl-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.dl-header h1::before {
    content: "📱 ";
}

.dl-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* 主内容 */
.dl-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

/* Hero */
.dl-hero {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

.dl-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    object-fit: cover;
}

.dl-hero-tag {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.dl-hero-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto 1.5rem;
}

/* 下载按钮 */
.dl-downloads {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dl-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.dl-btn:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.dl-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dl-btn.android .dl-btn-icon {
    background: linear-gradient(135deg, #3ddc84, #2eb872);
    color: #fff;
}

.dl-btn.ios .dl-btn-icon {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: #fff;
}

.dl-btn-text {
    flex: 1;
    text-align: left;
}

.dl-btn-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.dl-btn-text span {
    font-size: 0.78rem;
    color: var(--text-light);
}

.dl-btn-arrow {
    color: var(--accent);
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.dl-btn:hover .dl-btn-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.dl-ios-tip {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

/* 区块标题 */
.dl-section {
    margin-top: 2.5rem;
}

.dl-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dl-section-title::before {
    content: "";
    width: 3px;
    height: 1em;
    background: var(--accent);
    border-radius: 2px;
}

/* 功能卡片 */
.dl-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.dl-feature {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem;
    transition: border-color 0.2s;
}

.dl-feature:hover {
    border-color: #cce0ff;
}

.dl-feature-icon {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.dl-feature h3 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.dl-feature p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 截图轮播 */
.dl-carousel-wrap {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dl-carousel-viewport {
    overflow: hidden;
    border-radius: 8px;
}

.dl-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dl-carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    padding: 0 0.5rem;
}

.dl-carousel-slide img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dl-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.dl-carousel-nav:hover {
    background: var(--accent);
    color: #fff;
}

.dl-carousel-nav.prev { left: 0.5rem; }
.dl-carousel-nav.next { right: 0.5rem; }

.dl-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.dl-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: #d0d5dd;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}

.dl-dot.active {
    background: var(--accent);
    width: 18px;
    border-radius: 3px;
}

/* 相关链接 */
.dl-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dl-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.2s;
}

.dl-link-card:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dl-link-card span:last-child {
    color: var(--accent);
    font-size: 1rem;
}

/* 页脚 */
.dl-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.dl-footer p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.8;
}

.dl-footer p:first-child::before {
    content: "🎧 ";
}

/* 桌面端 */
@media screen and (min-width: 600px) {
    .dl-main {
        padding: 2rem 1.5rem 3rem;
    }

    .dl-header h1 {
        font-size: 1.75rem;
    }

    .dl-downloads {
        flex-direction: row;
    }

    .dl-btn {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }

    .dl-btn-text {
        text-align: center;
    }

    .dl-btn-arrow {
        display: none;
    }

    .dl-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .dl-feature {
        padding: 1rem;
    }

    .dl-feature h3 {
        font-size: 0.88rem;
    }

    .dl-feature p {
        font-size: 0.78rem;
    }

    .dl-links {
        flex-direction: row;
    }

    .dl-link-card {
        flex: 1;
    }
}
