:root {
    --primary-color: #1a73e8;
    --primary-strong: #1558b0;
    --surface: #ffffff;
    --surface-muted: #f7f9fc;
    --border-color: #e2e8f0;
    --text-dark: #202124;
    --text-medium: #5f6368;
    --text-light: #80868b;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Noto Sans TC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #f3f6fb;
}

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    padding: 14px 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(226, 232, 240, 1);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34a853 0%, #1a73e8 65%);
    color: transparent;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.08);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 26px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-dark);
}

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

.language-switcher {
    display: flex;
    gap: 4px;
    background: #f1f4f8;
    border-radius: 999px;
    padding: 4px;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-medium);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.lang-btn.active {
    background: #ffffff;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
}

.hero {
    padding: 132px 0 84px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(4px);
    animation: ambientFloat 12s ease-in-out infinite;
}

.hero::before {
    width: 340px;
    height: 340px;
    right: -110px;
    top: 40px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.15) 0%, rgba(26, 115, 232, 0) 72%);
}

.hero::after {
    width: 300px;
    height: 300px;
    left: -90px;
    bottom: 20px;
    background: radial-gradient(circle, rgba(52, 168, 83, 0.12) 0%, rgba(52, 168, 83, 0) 72%);
    animation-delay: 1.8s;
}

@keyframes ambientFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-14px) translateX(10px); }
}

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

.hero-text h1 {
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: clamp(17px, 2.2vw, 22px);
    color: var(--text-medium);
    max-width: 560px;
    margin-bottom: 36px;
}

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

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 999px;
    padding: 13px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 18px rgba(26, 115, 232, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--primary-strong);
}

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

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.phone-frame {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    background: #101214;
    border: 10px solid #101214;
    box-shadow: var(--shadow-md);
    animation: deviceFloat 7s ease-in-out infinite;
}

@keyframes deviceFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.phone-screenshot {
    width: 100%;
    display: block;
    border-radius: 28px;
}

.hero-phone {
    position: relative;
}

.scroll-indicator,
.mouse {
    display: none;
}

.features,
.data-cards,
.success-preview,
.download {
    padding: 88px 0;
}

.features,
.success-preview {
    background: var(--surface);
}

.data-cards,
.download {
    background: var(--surface-muted);
}

.section-title {
    text-align: center;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.01em;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    font-size: 26px;
    margin-bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eef4ff;
}

.feature-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.feature-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.cards-showcase {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 52px;
    align-items: center;
}

.cards-description h3 {
    font-size: clamp(26px, 3.5vw, 38px);
    margin-bottom: 14px;
}

.cards-description p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 20px;
}

.card-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.card-features li:last-child {
    border-bottom: 0;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.success-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.success-avatar {
    font-size: 38px;
    margin-bottom: 12px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    margin-left: auto;
    margin-right: auto;
}

.success-card h4 {
    margin-bottom: 8px;
}

.success-card p {
    color: var(--text-medium);
    font-style: normal;
    font-size: 15px;
}

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

.download-content {
    background: linear-gradient(140deg, #1a73e8 0%, #3f8cff 100%);
    border-radius: var(--radius-lg);
    padding: 56px 28px;
    text-align: center;
    color: #fff;
}

.download-content h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 12px;
}

.download-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
}

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

.download-btn img {
    height: 54px;
    display: block;
}

.footer {
    background: #111827;
    color: #d1d5db;
    padding: 60px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #c1c7d0;
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.fade-in,
.fade-in-up,
.fade-in-right {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.in-view,
.fade-in-up.in-view,
.fade-in-right.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

.animate-rise {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    transition:
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--stagger-index, 0) * 70ms);
}

.animate-rise.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .phone-frame {
        animation: none;
    }

    .fade-in,
    .fade-in-up,
    .fade-in-right,
    .animate-rise {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 940px) {
    .hero-content,
    .cards-showcase {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-text,
    .cards-description {
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        gap: 18px;
        background: #fff;
        padding: 24px;
        box-shadow: var(--shadow-md);
        transition: left 0.2s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .container,
    .nav-container {
        padding: 0 18px;
    }

    .features,
    .data-cards,
    .success-preview,
    .download {
        padding: 64px 0;
    }
}
