/* 营销站共用 shell — marketing & legal 布局 */

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

:root {
    --brand-blue: #1a6fd4;
    --brand-blue-dark: #1558aa;
    --brand-navy: #0c1524;
    --brand-text: #1e293b;
    --brand-muted: #64748b;
}

body.site-shell {
    line-height: 1.6;
    scroll-behavior: smooth;
}

body.site-shell.layout-marketing {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--brand-text);
}

body.site-shell.layout-legal {
    font-family: Arial, sans-serif;
    color: #333;
    background: #f9f9f9;
}

.site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Marketing header shell ── */
.layout-marketing .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.layout-marketing .topbar {
    background: var(--brand-navy);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.layout-marketing .topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.layout-marketing .topbar-tagline {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layout-marketing .topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.layout-marketing .topbar-email,
.layout-marketing .topbar-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s;
}

.layout-marketing .topbar-email:hover,
.layout-marketing .topbar-lang:hover {
    color: #fff;
}

.layout-marketing .topbar-chevron {
    opacity: 0.7;
}

.layout-marketing header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.layout-marketing .site-header.scrolled header {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.layout-marketing nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 24px;
}

.layout-marketing .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.layout-marketing .logo img {
    height: 40px;
    width: auto;
    display: block;
}

.layout-marketing .nav-links {
    display: flex;
    list-style: none;
    flex: 1;
    justify-content: center;
    gap: 20px;
}

.layout-marketing .nav-links li {
    margin: 0;
}

.layout-marketing .nav-links a {
    display: inline-block;
    text-decoration: none;
    color: var(--brand-muted);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 18px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.layout-marketing .nav-links a:hover {
    color: var(--brand-blue);
}

.layout-marketing .nav-links a.is-active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
}

.layout-marketing .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.layout-marketing .btn-login {
    color: var(--brand-blue);
    padding: 9px 18px;
    border: 1.5px solid var(--brand-blue);
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.layout-marketing .btn-login:hover {
    background: var(--brand-blue);
    color: #fff;
}

.layout-marketing .btn-cta {
    background: var(--brand-blue);
    color: #fff;
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.layout-marketing .btn-cta:hover {
    background: var(--brand-blue-dark);
}

.layout-marketing .btn-arrow {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.layout-marketing .btn-arrow svg {
    width: 18px;
    height: 12px;
    display: block;
}

/* ── Marketing footer ── */
.layout-marketing footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 56px 0 36px;
}

.layout-marketing .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.layout-marketing .footer-grid h4 {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 16px;
}

.layout-marketing .footer-grid p {
    font-size: 14px;
    line-height: 1.7;
}

.layout-marketing .footer-grid ul {
    list-style: none;
}

.layout-marketing .footer-grid ul li {
    margin-bottom: 9px;
    font-size: 14px;
}

.layout-marketing .footer-grid ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.layout-marketing .footer-grid ul li a:hover {
    color: #e2e8f0;
}

.layout-marketing .footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #334155;
    font-size: 13px;
}

.layout-marketing .footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 8px;
}

.layout-marketing .footer-bottom a:hover {
    color: #e2e8f0;
}

/* ── Legal header ── */
.layout-legal header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.layout-legal nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.layout-legal .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.layout-legal .logo img {
    height: 36px;
    width: auto;
    display: block;
}

.layout-legal .nav-back {
    font-size: 14px;
    color: #4CAF50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.layout-legal .nav-back:hover {
    gap: 10px;
}

/* ── Legal footer ── */
.layout-legal footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 24px 20px;
    font-size: 13px;
}

.layout-legal footer a {
    color: #888;
    text-decoration: none;
}

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

@media (max-width: 900px) {
    .layout-marketing .topbar-tagline {
        display: none;
    }

    .layout-marketing .nav-links {
        display: none;
    }

    .layout-marketing .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .layout-marketing .topbar-email span,
    .layout-marketing .topbar-email {
        font-size: 12px;
    }

    .layout-marketing .footer-grid {
        grid-template-columns: 1fr;
    }
}
