:root {
    --lp-bg: #f8fafc;
    --lp-surface: #ffffff;
    --lp-text: #0f172a;
    --lp-muted: #64748b;
    --lp-border: #e2e8f0;
    --lp-accent: #1e40af;
    --lp-accent-hover: #1e3a8a;
    --lp-radius: 12px;
    --lp-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --lp-shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.08);
    --lp-max: 960px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lp-inner {
    width: 100%;
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lp-border);
}

.lp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
}

.lp-logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--lp-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.lp-logo:hover {
    color: var(--lp-accent);
}

.lp-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}

.lp-nav a {
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--lp-muted);
    text-decoration: none;
    border-radius: 8px;
}

.lp-nav a:hover {
    color: var(--lp-accent);
    background: rgba(30, 64, 175, 0.06);
}

.lp-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    background: var(--lp-surface);
    cursor: pointer;
    position: relative;
}

.lp-nav-toggle::before {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    top: 14px;
    height: 2px;
    background: var(--lp-text);
    box-shadow: 0 6px 0 var(--lp-text), 0 12px 0 var(--lp-text);
}

@media (max-width: 768px) {
    .lp-nav-toggle {
        display: block;
    }

    .lp-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        background: var(--lp-surface);
        border-bottom: 1px solid var(--lp-border);
        box-shadow: var(--lp-shadow-lg);
    }

    .lp-nav.is-open {
        display: flex;
    }

    .lp-header__inner {
        position: relative;
    }
}

/* Hero — hot products only */
.lp-hero {
    padding: 20px 0 28px;
    background: linear-gradient(180deg, #ffffff 0%, var(--lp-bg) 100%);
}

.lp-hero--products {
    text-align: left;
}

.lp-hot-section__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    color: var(--lp-text);
}

.lp-hot-section__title[hidden] {
    display: none !important;
}

.lp-hero--products .lp-hot-grid {
    margin-top: 0;
}

.lp-hero__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-muted);
    margin: 0 0 16px;
}

.lp-hero__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.lp-hero__sub {
    font-size: 1rem;
    color: var(--lp-muted);
    margin: 0 auto 8px;
    max-width: 36rem;
}

.lp-hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px;
    text-align: left;
}

.lp-hot-card {
    display: flex;
    flex-direction: column;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--lp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-hot-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lp-shadow-lg);
    border-color: rgba(30, 64, 175, 0.25);
}

.lp-hot-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
}

.lp-hot-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-hot-card__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-muted);
    font-size: 13px;
}

.lp-hot-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e63946;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.lp-hot-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.lp-hot-card__name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-hot-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.lp-hot-card__price {
    font-size: 15px;
    font-weight: 700;
    color: #e63946;
}

.lp-hot-card__original {
    font-size: 12px;
    color: var(--lp-muted);
    text-decoration: line-through;
}

.lp-hero__cta {
    margin-bottom: 16px;
}

.lp-hero__note {
    font-size: 13px;
    color: var(--lp-muted);
    margin: 0;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.lp-btn--primary:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.lp-btn--lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* Sections */
.lp-section {
    padding: 32px 0;
}

.lp-section--muted {
    background: #ffffff;
    border-top: 1px solid var(--lp-border);
}

.lp-section--cta {
    text-align: center;
}

.lp-section__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.lp-section__lead {
    font-size: 14px;
    color: var(--lp-muted);
    margin: 0 0 28px;
    max-width: 36rem;
}

.lp-section--cta .lp-section__lead {
    margin-left: auto;
    margin-right: auto;
}

/* Trust grid */
.lp-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.lp-trust-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 18px;
    box-shadow: var(--lp-shadow);
}

.lp-trust-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--lp-text);
}

.lp-trust-card p {
    margin: 0;
    font-size: 14px;
    color: var(--lp-muted);
    line-height: 1.55;
}

/* Combined info: about + contact + legal */
.lp-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-info-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .lp-info-row {
        grid-template-columns: 1fr 1fr;
    }

    .lp-info-row:has(#lpInfoAbout[hidden]),
    .lp-info-row:has(#lpInfoContact[hidden]) {
        grid-template-columns: 1fr;
    }
}

.lp-info-block {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 16px 18px;
}

.lp-info-block--legal {
    background: transparent;
    border: none;
    padding: 0;
}

.lp-info-block__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--lp-text);
    letter-spacing: -0.01em;
}

.lp-info-block__text {
    font-size: 14px;
    color: var(--lp-muted);
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Legal */
.lp-legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 560px) {
    .lp-legal-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.lp-legal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text);
    text-decoration: none;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.lp-legal-btn:hover {
    border-color: var(--lp-accent);
    background: rgba(30, 64, 175, 0.04);
}

button.lp-legal-btn {
    font-family: inherit;
    width: 100%;
}

/* Footer */
.lp-footer {
    margin-top: auto;
    padding: 22px 0;
    background: var(--lp-text);
    color: #94a3b8;
    font-size: 13px;
}

.lp-footer__inner {
    text-align: center;
}

.lp-footer__brand {
    margin: 0 0 8px;
    color: #e2e8f0;
    font-weight: 600;
}

.lp-footer__copy {
    margin: 0;
    font-size: 12px;
}

/* Modal */
.lp-modal[hidden] {
    display: none !important;
}

.lp-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.lp-modal__box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: min(80vh, 560px);
    background: var(--lp-surface);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lp-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--lp-border);
    flex-shrink: 0;
}

.lp-modal__head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.lp-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--lp-muted);
    border-radius: 8px;
}

.lp-modal__close:hover {
    background: var(--lp-bg);
    color: var(--lp-text);
}

.lp-modal__body {
    padding: 18px 20px 22px;
    overflow-y: auto;
    font-size: 14px;
    color: var(--lp-muted);
    line-height: 1.65;
    white-space: pre-wrap;
}

/* Skeleton */
.landing-skel {
    animation: lp-pulse 1.1s ease-in-out infinite;
}

@keyframes lp-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

.lp-cta-block .lp-section__title {
    margin-left: auto;
    margin-right: auto;
}
