/* Global Styles */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #1677FF;
    transition: color 0.2s;
}

a:hover {
    color: #0958d9;
}

/* Header & Nav */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.brand img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #555;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-menu li a:hover, .nav-menu li a.active {
    color: #1677FF;
    background-color: #e6f4ff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    color: #333;
}

/* Common Layout */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #ccc;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
}

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

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

.footer-section a {
    color: #adb5bd;
}

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

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #495057;
    font-size: 14px;
}

.more-apps-link {
    color: #8ab4f8;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.more-apps-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Page Specific: Home */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1677FF 0%, #0958d9 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #1677FF;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: #1677FF;
    color: white;
}
.btn-primary:hover {
    background-color: #0958d9;
    color: white;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

/* Mini Program QR Section */
.mini-qr-section {
    text-align: center;
    margin: 50px 0;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mini-qr-section img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Docs & Legal */
.doc-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.doc-container h1 { margin-top: 0; }
.doc-container h2 { margin-top: 30px; border-bottom: 1px solid #eee; padding-bottom: 10px; }

/* Help Cards */
.help-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.help-card h3 { margin-top: 0; }

/* FAQ */
.faq-item { margin-bottom: 20px; }
.faq-item .question { font-weight: bold; color: #333; margin-bottom: 6px; }
.faq-item .answer { color: #555; }

/* Obfuscated Email */
.email-container::after {
    content: attr(data-user) "@" attr(data-domain);
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .brand { font-size: 16px; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 10px 0;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li a { padding: 12px 20px; }
    .navbar { flex-wrap: wrap; position: relative; }
    .hero h1 { font-size: 2rem; }
    .lang-btn { margin: 8px 20px; }
    .mini-qr-section img { width: 160px; height: 160px; }
}

/* Language Switcher */
.lang-btn {
    background: transparent;
    border: 1.5px solid #1677FF;
    color: #1677FF;
    padding: 4px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.4;
    margin-left: 12px;
}
.lang-btn:hover {
    background: #1677FF;
    color: #fff;
}
.lang-item {
    display: flex;
    align-items: center;
}

/* Legal notice banner */
.legal-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 14px;
    text-align: center;
}
