:root {
    --bg-dark: #0a0a0c;
    --bg: #0a0a0c;
    --text-main: #e0e0e2;
    --text-sub: #8a8a92;
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --card-bg: #161618;
    --border: #2a2a2e;
    --nav-bg: rgba(22, 22, 24, 0.8);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #c4c4cf 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, -system-ui, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 60%), var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
}

.i18n[data-lang="en"] {
    display: none;
}

html[data-lang="en"] .i18n[data-lang="zh"] {
    display: none;
}

html[data-lang="en"] .i18n[data-lang="en"] {
    display: block;
}

html[data-lang="en"] span.i18n[data-lang="en"],
html[data-lang="en"] a.i18n[data-lang="en"],
html[data-lang="en"] label.i18n[data-lang="en"] {
    display: inline;
}

/* Header & Nav */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px; /* Reduced padding since no box */
    /* background: rgba(22, 22, 24, 0.7); Remove pill background */
    background: transparent; /* Clean look */
    /* backdrop-filter: blur(12px); Remove blur box */
    /* -webkit-backdrop-filter: blur(12px); */
    /* border: 1px solid rgba(255, 255, 255, 0.08); Remove */
    /* border-radius: 999px; Remove */
    margin-top: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text-main {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

.logo-text-sub {
    font-size: 12px;
    color: var(--text-sub);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 48px; /* Increased from 24px */
    font-size: 15px; /* Slightly larger */
}

.nav-link {
    position: relative;
    padding: 6px 0;
    color: var(--text-sub);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.16s ease;
    box-shadow: 0 0 8px var(--primary-glow);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.lang-label {
    color: var(--text-sub);
}

.lang-btn {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-sub);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: #555;
    color: #fff;
}

.lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Footer Redesign */
footer {
    display: block;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 14px;
}

.footer-container {
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links-group {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-sub);
    font-size: 13px;
    transition: color 0.2s;
    text-decoration: none;
}

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

.footer-column a.disabled {
    opacity: 0.5;
    cursor: default;
}
.footer-column a.disabled:hover {
    color: var(--text-sub);
}

.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-box {
    width: 100px;
    height: 100px;
    background: #fff;
    padding: 4px;
    border-radius: 8px;
}

.qr-box img {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-qr p {
    font-size: 12px;
    color: var(--text-sub);
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #555;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.icp-info {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    .footer-links-group {
        gap: 40px;
        justify-content: space-between;
        width: 100%;
    }
    .footer-qr {
        align-items: center;
        width: 100%;
    }
}

.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* --- App Detail Page Styles --- */
.app-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0 80px;
    position: relative;
}

.app-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: -20%;
    left: -20%;
    z-index: -1;
    pointer-events: none;
}

.app-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-icon-lg {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
    margin-bottom: 8px;
}

.app-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.app-hero-subtitle {
    font-size: 20px;
    color: var(--text-main);
    font-weight: 500;
}

.app-hero-desc {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.7;
    max-width: 480px;
}

.app-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    color: #000;
}

.app-hero-media {
    position: relative;
    perspective: 1000px;
}

.app-mockup {
    width: 100%;
    max-width: 340px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.app-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

/* Feature Grid */
.app-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* Showcase Section */
.app-showcase {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-item.reverse {
    direction: rtl; /* simple way to swap columns visually, but better use order */
}
.showcase-item.reverse > * {
    direction: ltr;
}

.showcase-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-text p {
    color: var(--text-sub);
    font-size: 16px;
}

.showcase-img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .app-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 0;
    }
    
    .app-hero-content {
        align-items: center;
    }
    
    .app-hero-desc {
        margin: 0 auto;
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .showcase-item, .showcase-item.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .app-mockup {
        transform: none;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}
