/* 试衣 Android 下载页 — 响应式布局 PC + 移动端 */

:root {
    --bg: #0c0e14;
    --bg-elevated: #141824;
    --surface: #1a2030;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8eaef;
    --text-muted: #8b93a7;
    --accent: #6366f1;
    --accent-bright: #818cf8;
    --accent-dim: rgba(99, 102, 241, 0.35);
    --gradient-start: #6366f1;
    --gradient-end: #ec4899;
    --radius: 16px;
    --radius-sm: 12px;
    --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --header-h: 64px;
    --container: min(1120px, calc(100% - 40px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(236, 72, 153, 0.12), transparent);
    min-height: 100vh;
}

a {
    color: var(--accent-bright);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

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

.logo:hover {
    text-decoration: none;
}

.logo:hover .logo-name {
    opacity: 0.92;
}

.logo-img {
    display: block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 12px;
}

.logo-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
}

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

.nav-cta {
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gradient-start), #7c3aed);
    color: #fff !important;
    font-weight: 500;
}

.nav-cta:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 16px var(--container);
    padding-top: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.mobile-nav a {
    padding: 14px 0;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

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

.mobile-nav:not([hidden]) {
    display: flex;
}

/* Hero */
.hero {
    padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 64px);
    align-items: center;
}

.badge {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--accent-bright);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 999px;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    margin: 0 0 28px;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 32em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, filter 0.15s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), #7c3aed);
    color: #fff;
    box-shadow: 0 8px 28px var(--accent-dim);
}

.btn-primary:hover {
    filter: brightness(1.06);
    text-decoration: none;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent-bright);
    color: var(--accent-bright);
    text-decoration: none;
}

.meta-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-list strong {
    color: var(--text);
    font-weight: 600;
}

/* Phone mock */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
}

.phone-frame {
    width: min(280px, 75vw);
    aspect-ratio: 9 / 18.5;
    background: linear-gradient(160deg, #2a3042, #1a1f2e);
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #0c0e14;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.hero-visual .phone-frame {
    position: relative;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: #12151c;
}

.hero-screenshot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.float-card {
    position: absolute;
    padding: 12px 16px;
    font-size: 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.float-card-a {
    left: 0;
    bottom: 18%;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    vertical-align: middle;
}

.dot.ok {
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

/* Sections */
.section {
    padding: clamp(56px, 10vw, 96px) 0;
}

.section-head {
    text-align: center;
    margin-bottom: clamp(36px, 6vw, 56px);
}

.section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 700;
}

.section-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.features {
    background: rgba(20, 24, 36, 0.5);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* 界面预览：三列实拍缩略宽度 */
.screens-row .mini-body.feature-preview-body {
    width: min(220px, 28vw);
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.mini-body .mini-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.95);
}

.feature-icon.f1 {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.feature-icon.f2 {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.feature-icon.f3 {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.feature-icon.f4 {
    background: linear-gradient(135deg, #22c55e, #84cc16);
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Screens */
.screens-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 4vw, 32px);
}

.screen-shot {
    margin: 0;
    text-align: center;
}

.screen-shot figcaption {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mini-phone {
    display: inline-block;
    padding: 8px;
    background: linear-gradient(160deg, #3d4558, #252a38);
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.mini-body {
    width: min(200px, 28vw);
    min-width: 140px;
    aspect-ratio: 9 / 16.5;
    border-radius: 22px;
    overflow: hidden;
    background: #12151c;
}

/* Download */
.download-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(32px, 6vw, 56px);
    align-items: start;
}

.download-card {
    padding: clamp(28px, 5vw, 40px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.download-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.download-note {
    margin: 0 0 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.install-steps {
    margin: 0;
    padding-left: 1.2em;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.install-steps li {
    margin-bottom: 8px;
}

.qr-aside {
    text-align: center;
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    min-width: min(200px, 100%);
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.03) 8px,
        transparent 8px,
        transparent 16px
    );
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.qr-placeholder small {
    display: block;
    margin-top: 8px;
    font-size: 0.72rem;
    opacity: 0.8;
}

.qr-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

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

.footer-inner p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-bright);
}

/* Tablet */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .meta-list {
        justify-content: center;
    }

    .hero-visual {
        min-height: 340px;
        order: -1;
    }

    .float-card-a {
        left: 5%;
    }

    .screens-row {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .download-inner {
        grid-template-columns: 1fr;
    }

    .qr-aside {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 720px) {
    :root {
        --container: calc(100% - 32px);
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    .mini-body {
        width: min(240px, 70vw);
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-buttons .btn {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .feature-card {
        transition: none;
    }
}
