/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Specific Rules */
.cn {
    display: none; /* Hide Chinese by default */
}
/* Ensure inline elements display correctly when switched */
.cn, .en {
    display: inline;
}
body[lang="en"] .cn,
body[lang="zh-CN"] .en {
    display: none;
}


/* Header */
header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.logo-image {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

header nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

header nav a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.app-store-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.app-store-button:hover {
    background-color: #0056b3;
}

/* Features Section */
.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.feature-item h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    header h1 {
        margin-bottom: 1rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
}
