@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');

:root {
    --bg-dark: #120428;
    --bg-darker: #0a0218;
    --primary-gradient: linear-gradient(135deg, #9564df 0%, #7c4dc4 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-purple: #9564df;
    --text-gray: #B0BEC5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(18, 4, 40, 0.3);
}

.logo {
    font-family: "Ma Shan Zheng", cursive;
    font-size: 32px;
    font-weight: normal;
    color: var(--text-purple);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-purple);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 40px;
    background: radial-gradient(circle at 50% 30%, #2a0a55 0%, #120428 70%);
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-purple);
    margin-bottom: 60px;
    font-weight: 300;
}

/* 3D Mockup Area */
.mockup-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    perspective: 1000px;
}

.phone-mockup {
    width: 240px;
    height: 480px;
    background: #000;
    border-radius: 36px;
    border: 8px solid #222;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:nth-child(2) {
    transform: rotateY(15deg) rotateX(5deg);
    margin-top: 40px;
    /* Slight offset */
}

.phone-mockup:hover {
    transform: rotateY(0) rotateX(0) scale(1.05);
    z-index: 10;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Download Section */
.download-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-top: 40px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.qr-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
}

.qr-wrapper img {
    width: 160px;
    height: 160px;
    display: block;
}

.main-download-btn {
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(124, 77, 196, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-download-btn.secondary {
    background: transparent;
    border: 2px solid rgba(149, 100, 223, 0.4);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.9);
}

.main-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(124, 77, 196, 0.5);
    filter: brightness(1.1);
}

.main-download-btn.secondary:hover {
    background: rgba(149, 100, 223, 0.1);
    border-color: var(--text-purple);
    color: #fff;
    box-shadow: 0 8px 20px rgba(149, 100, 223, 0.2);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

.feature-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Footer (Black Section) */
.site-footer {
    background-color: #000;
    padding: 60px 20px 40px;
    border-top: 1px solid #222;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.company-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

/* Footer Links - Enforce Row Layout */
.footer-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 100%;
    margin: 16px 0;
}

.footer-links a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7) !important;
    /* Explicit color to override default visited */
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff !important;
}

.legal-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    /* Tighter line height */
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.legal-info p {
    margin-bottom: 4px;
}

.legal-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s;
}

.legal-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .mockup-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        transform: none !important;
        margin: 0 !important;
    }

    .download-card {
        padding: 24px;
    }

    .main-download-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* WeChat/QQ Browse Mask Overlay */
.safari-hint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    cursor: pointer;
}

.safari-hint-overlay.active {
    display: block;
}

.safari-hint-img {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 250px;
}

.safari-hint-text {
    position: absolute;
    top: 280px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    padding: 0 40px;
}

.safari-hint-text h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.safari-hint-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}