/* OsScrcpy 官网样式 - 安卓绿极简 */

:root {
    --bg: #ffffff;
    --bg-soft: #f8faf8;
    --bg-green: #f0fdf4;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --android-green: #3ddc84;
    --android-green-dark: #2db86a;
    --android-dark: #073042;
    --border: #e2e8f0;
    --border-green: #bbf7d0;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

/* Canvas 粒子网络背景 */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.9;
}

/* 全页白色背景上的动态元素 */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.page-bg span {
    position: absolute;
    display: block;
    border-radius: 50%;
    animation: pageFloat 18s linear infinite;
}

.page-bg span:nth-child(1) { left: 8%; top: 15%; width: 8px; height: 8px; background: rgba(61, 220, 132, 0.22); animation-delay: 0s; animation-duration: 20s; }
.page-bg span:nth-child(2) { left: 22%; top: 55%; width: 12px; height: 12px; background: rgba(61, 220, 132, 0.16); animation-delay: -3s; animation-duration: 26s; }
.page-bg span:nth-child(3) { left: 38%; top: 30%; width: 6px; height: 6px; background: rgba(61, 220, 132, 0.28); animation-delay: -6s; animation-duration: 22s; }
.page-bg span:nth-child(4) { left: 52%; top: 70%; width: 10px; height: 10px; background: rgba(61, 220, 132, 0.18); animation-delay: -9s; animation-duration: 28s; }
.page-bg span:nth-child(5) { left: 68%; top: 12%; width: 7px; height: 7px; background: rgba(61, 220, 132, 0.24); animation-delay: -12s; animation-duration: 24s; }
.page-bg span:nth-child(6) { left: 82%; top: 45%; width: 14px; height: 14px; background: rgba(61, 220, 132, 0.14); animation-delay: -15s; animation-duration: 30s; }
.page-bg span:nth-child(7) { left: 14%; top: 82%; width: 9px; height: 9px; background: rgba(61, 220, 132, 0.2); animation-delay: -18s; animation-duration: 25s; }
.page-bg span:nth-child(8) { left: 30%; top: 8%; width: 11px; height: 11px; background: rgba(61, 220, 132, 0.15); animation-delay: -2s; animation-duration: 21s; }
.page-bg span:nth-child(9) { left: 60%; top: 38%; width: 5px; height: 5px; background: rgba(61, 220, 132, 0.3); animation-delay: -7s; animation-duration: 27s; }
.page-bg span:nth-child(10) { left: 76%; top: 85%; width: 13px; height: 13px; background: rgba(61, 220, 132, 0.17); animation-delay: -11s; animation-duration: 23s; }

@keyframes pageFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { transform: translateY(-180px) translateX(60px) scale(0.6); opacity: 0; }
}

/* 滚动入场动画：更明显，滑出视野后重置，再次进入时重新播放 */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-70px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(70px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* 错落延迟 */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }
.delay-6 { transition-delay: 0.48s; }

a {
    color: var(--android-green-dark);
    text-decoration: none;
}

a:hover {
    color: var(--android-green);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.navbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo-dot {
    width: 7px;
    height: 7px;
    background: var(--android-green);
    border-radius: 50%;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--android-green-dark);
}

.nav-links .btn-nav {
    padding: 9px 18px;
    background: var(--android-green);
    color: var(--android-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
}

.nav-links .btn-nav:hover {
    background: var(--android-green-dark);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    position: absolute;
    transition: all 0.25s ease;
}

.hamburger span:nth-child(1) { transform: translateY(-6px); }
.hamburger span:nth-child(2) { transform: translateY(0); }
.hamburger span:nth-child(3) { transform: translateY(6px); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

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

/* Hero */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* 动态背景：缓慢漂浮的绿色光斑 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: float 20s ease-in-out infinite;
}

.hero-blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(61, 220, 132, 0.18);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 220px;
    height: 220px;
    background: rgba(61, 220, 132, 0.12);
    top: 40%;
    right: 12%;
    animation-delay: -7s;
}

.hero-blob-3 {
    width: 160px;
    height: 160px;
    background: rgba(61, 220, 132, 0.1);
    bottom: 15%;
    left: 35%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* 缓慢上浮的小点 */
.hero-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-dots::before,
.hero-dots::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(61, 220, 132, 0.25);
    border-radius: 50%;
    animation: rise 15s linear infinite;
}

.hero-dots::before {
    left: 20%;
    bottom: -10px;
    animation-delay: 0s;
}

.hero-dots::after {
    left: 70%;
    bottom: -10px;
    width: 4px;
    height: 4px;
    animation-delay: -7s;
    animation-duration: 18s;
}

@keyframes rise {
    0% { transform: translateY(0) opacity(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-400px); opacity(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-green);
    border: 1px solid var(--border-green);
    color: var(--android-green-dark);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.hero .subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0 auto 36px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    border-radius: 8px;
}

.btn-primary {
    background: var(--android-green);
    color: var(--android-dark);
}

.btn-primary:hover {
    background: var(--android-green-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-green);
    border-color: var(--border-green);
    color: var(--android-dark);
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--android-green);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

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

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--android-green);
    border-radius: 12px;
    padding: 26px;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--border-green);
    box-shadow: 0 8px 24px rgba(61, 220, 132, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-green);
    border-radius: 10px;
    margin-bottom: 16px;
    color: var(--android-green-dark);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 教程 */
.tutorial {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tutorial-steps {
    max-width: 760px;
    margin: 0 auto;
}

.tutorial-step {
    display: flex;
    gap: 20px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}

.tutorial-step:last-child {
    border-bottom: none;
}

.step-index {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--android-green);
    color: var(--android-dark);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 下载区 */
.download-area {
    text-align: center;
}

.download-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-green);
    border: 1px solid var(--border-green);
    border-radius: 16px;
    padding: 44px 32px;
}

.download-card .windows-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
}

.download-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--android-dark);
}

.download-card .desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.download-buttons .btn {
    min-width: 150px;
    justify-content: center;
}

.download-note {
    font-size: 13px;
    color: var(--text-muted);
}

.empty-download {
    padding: 30px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
}

.footer-links a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: var(--android-green-dark);
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: var(--android-green);
    border: none;
    border-radius: 50%;
    color: var(--android-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(61, 220, 132, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--android-green-dark);
    color: #fff;
}

/* 响应式 */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .navbar-inner {
        padding: 0 16px;
        width: 100%;
    }
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
    }
    .logo {
        min-width: 0;
    }
    .logo span {
        font-size: 15px;
        white-space: nowrap;
    }
    .mobile-menu {
        top: 64px;
        padding: 8px 16px 16px;
    }
    .hero {
        padding: 120px 0 70px;
    }
    .hero::before {
        width: 60px;
        height: 60px;
        right: 5%;
        top: 100px;
    }
    .hero h1 {
        font-size: clamp(28px, 8vw, 40px);
    }
    .hero .subtitle {
        font-size: 15px;
        padding: 0 8px;
    }
    .container {
        padding: 0 16px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .tutorial-step {
        flex-direction: column;
        gap: 12px;
    }
    .download-card {
        padding: 32px 20px;
    }
    .download-buttons {
        flex-direction: column;
    }
    .footer-inner {
        flex-direction: column;
    }
    .section {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 36px;
    }
    .section-title {
        font-size: 24px;
    }
    .back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

/* 超窄屏（小屏手机）进一步收敛 */
@media (max-width: 380px) {
    .navbar-inner {
        padding: 0 12px;
    }
    .logo span {
        font-size: 14px;
    }
    .container {
        padding: 0 12px;
    }
    .hero h1 {
        font-size: clamp(24px, 9vw, 32px);
    }
    .download-card {
        padding: 28px 16px;
    }
}
