/* ===== 基础变量 - 配色取自 iPhone Mirror logo (iOS 蓝 / 银白 / 深灰) ===== */
:root {
    --c-primary: #007AFF;
    --c-primary-dark: #0051D5;
    --c-primary-light: #5AC8FA;
    --c-accent: #0A84FF;
    --c-dark: #1d1d1f;
    --c-text: #424245;
    --c-muted: #86868b;
    --c-bg: #ffffff;
    --c-bg-soft: #f5f5f7;
    --c-bg-alt: #fbfbfd;
    --c-border: #d2d2d7;
    --c-card-shadow: 0 10px 30px rgba(0, 32, 96, 0.08);

    --grad-primary: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    --grad-hero: radial-gradient(1200px 600px at 70% -20%, rgba(10, 132, 255, 0.18), transparent 60%),
                 radial-gradient(900px 500px at 10% 10%, rgba(90, 200, 250, 0.12), transparent 60%),
                 linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 4px 12px rgba(0, 32, 96, 0.06);
    --shadow-md: 0 12px 28px rgba(0, 32, 96, 0.10);
    --shadow-lg: 0 24px 60px rgba(0, 32, 96, 0.14);

    --container: 1200px;
    --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 全局 ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
                 "Helvetica Neue", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(210, 210, 215, 0.6);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

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

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0f0f5, #d2d2d7);
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-dark);
    letter-spacing: 0.2px;
}

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

.nav-link {
    padding: 8px 14px;
    color: var(--c-text);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.nav-link:hover { color: var(--c-primary); background: rgba(0, 122, 255, 0.06); }

.nav-cta {
    background: var(--grad-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(0, 122, 255, 0.30);
}

.nav-cta:hover {
    color: #fff;
    background: linear-gradient(135deg, #0051D5 0%, #007AFF 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 122, 255, 0.42);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--c-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== 首屏 ===== */
.hero {
    position: relative;
    padding: 80px 0 120px;
    background: var(--grad-hero);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.18);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--c-primary-dark);
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.18);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(0, 122, 255, 0.06); }
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--c-dark);
    margin: 22px 0 18px;
    letter-spacing: -1.2px;
}

.grad-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--c-text);
    max-width: 560px;
    margin: 0 0 28px;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid rgba(210, 210, 215, 0.6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item { display: flex; flex-direction: column; gap: 2px; }

.meta-label { font-size: 12px; color: var(--c-muted); letter-spacing: 0.5px; }

.meta-value { font-size: 15px; color: var(--c-dark); font-weight: 600; }

.meta-divider { width: 1px; height: 32px; background: var(--c-border); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-xl { padding: 20px 44px; font-size: 18px; }

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.34);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 122, 255, 0.46);
}

.btn-ghost {
    background: #fff;
    color: var(--c-dark);
    border: 1px solid var(--c-border);
}

.btn-ghost:hover {
    color: var(--c-primary);
    border-color: var(--c-primary);
    background: rgba(0, 122, 255, 0.04);
    transform: translateY(-2px);
}

.btn-icon { font-size: 1.15em; line-height: 1; }

/* ===== 首屏右侧截图 ===== */
.hero-right { display: flex; justify-content: center; }

.screenshot-frame {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f5 100%);
    border: 1px solid rgba(210, 210, 215, 0.6);
    box-shadow: var(--shadow-lg);
    padding: 14px;
    overflow: hidden;
}

.screenshot {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
    object-fit: cover;
}

.screenshot-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.25), transparent 60%);
    filter: blur(40px);
    z-index: -1;
    border-radius: 50%;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, #ffffff 100%);
}

/* ===== 通用 Section ===== */
.section { padding: 100px 0; position: relative; }

.section-alt { background: var(--c-bg-soft); }

.section-head {
    text-align: center;
    margin-bottom: 60px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 122, 255, 0.10);
    color: var(--c-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.section-tag-light {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.section-title {
    font-size: 42px;
    color: var(--c-dark);
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -0.8px;
}

.section-sub { font-size: 17px; color: var(--c-muted); margin: 0; }

/* ===== 功能特性 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid rgba(210, 210, 215, 0.5);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 122, 255, 0.25);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.10), rgba(90, 200, 250, 0.14));
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--c-dark);
    margin: 0 0 10px;
    font-weight: 600;
}

.feature-card p { margin: 0; color: var(--c-text); font-size: 15px; }

/* ===== 用户评价 ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.review-card {
    background: #fff;
    border: 1px solid rgba(210, 210, 215, 0.5);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition);
    box-shadow: var(--c-card-shadow);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-stars { color: #FFB400; letter-spacing: 3px; font-size: 16px; margin-bottom: 14px; }

.review-text {
    font-size: 16px;
    color: var(--c-dark);
    line-height: 1.7;
    margin: 0 0 22px;
    font-style: italic;
}

.review-user { display: flex; align-items: center; gap: 14px; }

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0, 122, 255, 0.28);
}

.review-name { font-size: 15px; color: var(--c-dark); font-weight: 600; }
.review-role { font-size: 13px; color: var(--c-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
    background: #fff;
    border: 1px solid rgba(210, 210, 215, 0.5);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item[open] {
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    list-style: none;
    padding: 20px 24px;
    font-size: 16px;
    color: var(--c-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--c-primary); }

.faq-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.10);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    transition: transform var(--transition);
}

.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--grad-primary); color: #fff; }

.faq-answer {
    padding: 0 24px 22px;
    color: var(--c-text);
    font-size: 15px;
    line-height: 1.75;
    animation: fadeSlide 0.3s ease;
}

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

/* ===== 下载区域 ===== */
.download-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--c-bg-soft) 100%);
    padding: 80px 0 120px;
}

.download-card {
    position: relative;
    text-align: center;
    padding: 70px 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 122, 255, 0.32);
}

.download-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

.download-title {
    font-size: 40px;
    font-weight: 700;
    margin: 18px 0 12px;
    color: #fff;
    letter-spacing: -0.8px;
    position: relative;
}

.download-sub { font-size: 17px; opacity: 0.92; margin: 0 auto 30px; max-width: 560px; position: relative; }

.download-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-bottom: 36px;
    position: relative;
}

.dm-item { display: flex; flex-direction: column; gap: 2px; align-items: center; }

.dm-label {
    font-size: 12px;
    opacity: 0.85;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dm-value { font-size: 15px; font-weight: 600; }

.download-btn {
    background: #fff;
    color: var(--c-primary-dark);
    font-size: 18px;
    padding: 22px 48px;
    position: relative;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.download-btn:hover {
    color: var(--c-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

.download-tip { margin: 18px 0 0; font-size: 13px; opacity: 0.82; position: relative; }

/* ===== 页脚 ===== */
.footer {
    background: var(--c-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }

.footer-brand .brand-logo {
    background: linear-gradient(135deg, #2c2c2e, #1d1d1f);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-text { margin: 0; font-size: 13px; }

.footer-nav { display: flex; gap: 22px; }

.footer-nav a { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.footer-nav a:hover { color: var(--c-primary-light); }

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 50;
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-title { font-size: 44px; }
    .hero-right { order: -1; }
    .screenshot-frame { max-width: 480px; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }

    .nav-links {
        position: fixed;
        top: 68px;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 16px;
        width: 240px;
        max-height: calc(100vh - 68px);
        transform: translateX(110%);
        transition: transform var(--transition);
        border-left: 1px solid var(--c-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.06);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-link { padding: 12px 18px; }
    .nav-cta { text-align: center; }
    .nav-toggle { display: flex; }

    .section-title { font-size: 34px; }
    .download-title { font-size: 32px; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }

    .hero { padding: 50px 0 80px; }
    .hero-title { font-size: 34px; letter-spacing: -0.6px; }
    .hero-desc { font-size: 16px; }

    .hero-meta {
        gap: 14px;
        padding: 14px 18px;
    }
    .meta-divider { display: none; }

    .hero-actions .btn { flex: 1; min-width: 140px; }

    .section { padding: 70px 0; }
    .section-head { margin-bottom: 40px; }
    .section-title { font-size: 28px; }
    .section-sub { font-size: 15px; }

    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 26px 22px; }

    .review-card { padding: 24px; }

    .download-card { padding: 50px 22px; border-radius: 22px; }
    .download-title { font-size: 26px; }
    .download-btn { padding: 18px 28px; font-size: 16px; width: 100%; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 380px) {
    .brand-name { font-size: 16px; }
    .hero-title { font-size: 28px; }
}

/* ===== 滚动渐显 ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 导航栏滚动后阴影 ===== */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px rgba(0, 32, 96, 0.06);
}

/* ===== 移动端菜单按钮激活态 ===== */
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 下载按钮脉冲(地址为空时提示) ===== */
.btn-pulse {
    animation: btnPulse 0.6s ease 0s 2;
}

@keyframes btnPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
    50% { transform: scale(1.04); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.30); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto;
    }
    .reveal { opacity: 1; transform: none; }
}
