/* Global Styles */
:root {
    --primary-color: #4f56ff;
    --primary-gradient: linear-gradient(135deg, #4f56ff, #6e78ff);
    --secondary-color: #9c42f5;
    --accent-color: #ff3a8c;
    --text-color: #25294a;
    --light-text: #ffffff;
    --background-color: #ffffff;
    --secondary-background: #f8f9ff;
    --box-shadow: 0 10px 30px rgba(79, 86, 255, 0.15);
    --button-shadow: 0 8px 20px rgba(79, 86, 255, 0.25);
    --transition: all 0.3s ease;
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

section {
    padding: 6rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    gap: 0.5rem;
}

.btn.primary {
    background: var(--primary-gradient);
    color: var(--light-text);
    box-shadow: var(--button-shadow);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 86, 255, 0.35);
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    border: 1px solid rgba(79, 86, 255, 0.2);
}

.btn.secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Ensure logo image fits within the container and has a fixed height */
.logo img {
    height: 40px; /* Control the height directly */
    width: auto;  /* Maintain aspect ratio */
    max-width: 100%; /* Ensure it doesn't overflow if container is very narrow */
    display: block; /* Prevents potential extra space below */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-gradient);
    transition: var(--transition);
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 40%, rgba(79, 86, 255, 0.05) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(156, 66, 245, 0.05) 0%, transparent 60%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 86, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156, 66, 245, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 1rem;
    color: #5e6388;
}

.hero p:last-of-type {
    margin-bottom: 3rem;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero .decoration {
    position: absolute;
    z-index: 0;
}

.hero .decoration.circle-1 {
    top: 15%;
    left: 10%;
    width: 20px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.5;
}

.hero .decoration.circle-2 {
    bottom: 20%;
    right: 10%;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
}

.hero .decoration.dots {
    top: 30%;
    right: 15%;
    opacity: 0.2;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    margin: 0 auto;
}

.cta-buttons .btn {
    min-width: 200px;
}

.cta-buttons::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(79, 86, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Features Section */
.features {
    background-color: var(--secondary-background);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background-color: var(--background-color);
    padding: 2rem 1.8rem;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: auto;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

/* Download Section */
.download {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
}

.download h2 {
    color: var(--light-text);
}

.download p {
    margin-bottom: 3rem;
    font-size: 1.3rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.app-store-button img,
.play-store-button img {
    height: 160px;
    /* width: 200px; */ /* Removed width to maintain aspect ratio */
    transition: var(--transition);
}

.app-store-button:hover img,
.play-store-button:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-info {
    margin: 3rem 0;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-item a {
    font-size: 1.2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--light-text);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #aaa;
}

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

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(0.7);
    transition: var(--transition);
}

.social-icon:hover img {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #aaa;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p:last-of-type {
        font-size: 1.6rem;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .container {
        width: 90%;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    p {
        font-size: 1rem;
    }
    
    .hero {
        padding: 7rem 0 5rem;
        min-height: auto;
        height: auto;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        width: 90%;
    }
    
    .hero p:last-of-type {
        font-size: 1.3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    .btn {
        width: 100%;
        padding: 0.9rem 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links, .footer-social {
        margin-top: 1rem;
    }
    
    .hero::before, .hero::after {
        width: 300px;
        height: 300px;
    }
    
    .hero .decoration {
        display: none;
    }
    
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    /* 确保特性卡片在移动端有更好的布局 */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 4rem 0;
    }
    
    .hero {
        min-height: auto;
        padding: 7rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
        width: 100%;
    }
    
    .hero p:last-of-type {
        font-size: 1.2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .about-text h2, .download h2, .contact h2 {
        font-size: 1.8rem;
    }
    
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    nav {
        padding: 1rem 4%;
    }
    
    .logo img {
        height: 35px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 添加屏幕旋转适配 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 7rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        margin-bottom: 0.8rem;
    }
    
    .hero p:last-of-type {
        margin-bottom: 2rem;
    }
    
    .nav-links {
        padding-top: 5rem;
    }
}

/* Animation & Transition Styles */
.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.header-hidden {
    transform: translateY(-100%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero h1, .hero p, .cta-buttons {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero p:first-of-type {
    animation-delay: 0.4s;
}

.hero p:last-of-type {
    animation-delay: 0.6s;
}

.cta-buttons {
    animation-delay: 0.8s;
}

.hero .decoration {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1s;
}

.hero .decoration.circle-1 {
    animation: fadeIn 1s ease-out forwards, float 4s ease-in-out infinite;
    animation-delay: 1s;
}

.hero .decoration.circle-2 {
    animation: fadeIn 1s ease-out forwards, float 5s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* Initially hide elements for scroll animation */
.feature-card, .about-content, .download-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animate elements when they come into view */
.feature-card.animate, .about-content.animate, .download-buttons.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for feature cards */
.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

.feature-card:nth-child(5) {
    transition-delay: 0.5s;
} 