/* ===================================================
   Lm跨境电商工作室 - 全站样式表 v2.0
   完全独立，不依赖旧模板
   =================================================== */

:root {
    --lm-radius: 16px;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--lm-darker);
    color: var(--lm-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--lm-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== 渐变文字 ===== */
.lm-gradient-text {
    background: linear-gradient(90deg, var(--lm-primary), var(--lm-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 顶部导航栏 ===== */
.lm-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 24px;
    background: var(--lm-header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--lm-border);
    transition: all 0.3s;
}
.lm-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.lm-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.lm-logo i {
    font-size: 1.4rem;
    color: var(--lm-secondary);
}
.lm-logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lm-heading);
    white-space: nowrap;
}
.lm-logo-sub {
    font-size: 0.65rem;
    color: var(--lm-text-dim);
    display: block;
    margin-top: -2px;
}

/* Nav */
.lm-nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lm-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.88rem;
    color: var(--lm-text);
    border-radius: 8px;
    transition: all 0.25s;
    text-decoration: none;
}
.lm-nav a:hover,
.lm-nav a.active {
    color: var(--lm-heading);
    background: rgba(108,92,231,0.15);
}
.lm-nav a.active { color: var(--lm-secondary); }

/* Mobile nav */
.lm-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--lm-border);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--lm-heading);
    font-size: 1.2rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .lm-menu-btn { display: block; }
    .lm-nav {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--lm-mobile-nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 12px;
        border-bottom: 1px solid var(--lm-border);
    }
    .lm-nav.open { display: flex; }
    .lm-nav a { padding: 12px 16px; }
}

/* ===== 动画 ===== */
@keyframes lmFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
.lm-ani { opacity: 0; animation: lmFadeUp 0.6s ease forwards; }
.lm-d1 { animation-delay: 0.1s; }
.lm-d2 { animation-delay: 0.2s; }
.lm-d3 { animation-delay: 0.3s; }
.lm-d4 { animation-delay: 0.4s; }

/* ===== 页面容器 ===== */
.lm-page { padding-top: 64px; }
.lm-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Hero ===== */
.lm-hero {
    padding: 100px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--lm-hero-bg);
}
.lm-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(108,92,231,0.18) 0%, transparent 70%);
    top: -200px; right: -100px;
    border-radius: 50%;
    pointer-events: none;
}
.lm-hero::after {
    content: '';
    position: absolute;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(0,206,201,0.1) 0%, transparent 70%);
    bottom: -120px; left: -80px;
    border-radius: 50%;
    pointer-events: none;
}
.lm-hero h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--lm-heading);
    margin: 0 0 14px;
    position: relative;
    z-index: 1;
}
.lm-hero h2 span { background: linear-gradient(90deg, var(--lm-primary), var(--lm-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lm-hero-quote {
    color: rgba(255,255,255,0.88);
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
}
.lm-hero-sub {
    color: var(--lm-text);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* ===== CTA 按钮 ===== */
.lm-cta {
    display: inline-block;
    padding: 14px 38px;
    background: linear-gradient(135deg, var(--lm-primary), var(--lm-secondary));
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 24px rgba(108,92,231,0.35);
    position: relative;
    z-index: 1;
    cursor: pointer;
}
.lm-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(108,92,231,0.5);
    color: #fff;
}

/* ===== Section 通用 ===== */
.lm-section { padding: 70px 20px; }
.lm-section.dark { background: var(--lm-dark); }
.lm-section.darker { background: var(--lm-darker); }
.lm-section.gradient { background: var(--lm-gradient-section); }
.lm-section.glow { background: var(--lm-glow-section); }

.lm-section-title {
    text-align: center;
    color: var(--lm-heading);
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 44px;
}
.lm-section-title span { background: linear-gradient(90deg, var(--lm-primary), var(--lm-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== 特性卡片(三列) ===== */
.lm-grid { display: grid; gap: 24px; max-width: 1100px; margin: 0 auto; }
.lm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lm-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
    .lm-grid-3, .lm-grid-2 { grid-template-columns: 1fr; }
}

.lm-fcard {
    background: var(--lm-glass);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.35s;
}
.lm-fcard:hover {
    transform: translateY(-6px);
    border-color: rgba(108,92,231,0.3);
    box-shadow: 0 18px 40px rgba(108,92,231,0.12);
}
.lm-fcard .lm-fcard-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--lm-primary), var(--lm-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lm-fcard h3 { color: var(--lm-heading); font-size: 1.1rem; font-weight: 600; margin: 0 0 10px; }
.lm-fcard p { color: var(--lm-text-dim); font-size: 0.88rem; line-height: 1.75; margin: 0; }

/* ===== 服务卡片(详细) ===== */
.lm-card {
    background: var(--lm-card-bg);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    padding: 32px 26px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.lm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--lm-primary), var(--lm-secondary));
    opacity: 0;
    transition: opacity 0.35s;
}
.lm-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108,92,231,0.3);
    box-shadow: 0 20px 44px rgba(108,92,231,0.15);
}
.lm-card:hover::before { opacity: 1; }

.lm-card-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 18px;
}
.lm-card-icon.purple { background: linear-gradient(135deg, #6C5CE7, #a29bfe); }
.lm-card-icon.teal { background: linear-gradient(135deg, #00CEC9, #81ecec); }
.lm-card-icon.pink { background: linear-gradient(135deg, #FD79A8, #fab1a0); }
.lm-card-icon.blue { background: linear-gradient(135deg, #0984e3, #74b9ff); }

.lm-card h3 { color: var(--lm-heading); font-size: 1.15rem; font-weight: 600; margin: 0 0 4px; }
.lm-card .lm-card-en { color: var(--lm-text-dim); font-size: 0.72rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 1px; }
.lm-card p { color: var(--lm-text); font-size: 0.9rem; line-height: 1.7; margin: 0; }
.lm-card ul { list-style: none; padding: 0; margin: 0; }
.lm-card ul li { color: var(--lm-text); font-size: 0.88rem; line-height: 1.85; padding-left: 18px; position: relative; }
.lm-card ul li::before { content: '▸'; position: absolute; left: 0; color: var(--lm-secondary); font-weight: 700; }

/* ===== Why Us 卡片 ===== */
.lm-why-card {
    background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,206,201,0.06));
    border: 1px solid rgba(108,92,231,0.12);
    border-radius: var(--lm-radius);
    padding: 32px 28px;
    transition: all 0.3s ease;
}
.lm-why-card:hover { border-color: rgba(108,92,231,0.35); box-shadow: 0 12px 30px rgba(108,92,231,0.1); }
.lm-why-card .lm-why-num {
    font-size: 2.2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--lm-primary), var(--lm-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin: 0 0 8px;
}
.lm-why-card h3 { color: var(--lm-heading); font-size: 1.05rem; font-weight: 600; margin: 0 0 10px; }
.lm-why-card p { color: var(--lm-text-dim); font-size: 0.86rem; line-height: 1.7; margin: 0; }

/* ===== 主理人寄语 ===== */
.lm-founder-box {
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(0,206,201,0.04));
    border: 1px solid var(--lm-border);
    border-radius: 20px;
    padding: 44px 40px;
    text-align: center;
}
.lm-founder-box .lm-quote-icon { font-size: 2.8rem; color: var(--lm-primary); opacity: 0.4; margin-bottom: 16px; }
.lm-founder-box blockquote { color: rgba(255,255,255,0.78); font-size: 1.08rem; line-height: 1.95; font-style: italic; margin: 0 0 22px; border: none; padding: 0; }
.lm-founder-box .lm-founder-name { color: var(--lm-heading); font-weight: 600; font-size: 1rem; margin: 0; }
.lm-founder-box .lm-founder-role { color: var(--lm-secondary); font-size: 0.82rem; margin: 4px 0 0; }

/* ===== 数据统计 ===== */
.lm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 800px; margin: 0 auto; }
@media (max-width: 600px) { .lm-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.lm-stat-item { text-align: center; padding: 24px 10px; }
.lm-stat-num {
    font-size: 2.6rem; font-weight: 800;
    background: linear-gradient(135deg, var(--lm-primary), var(--lm-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.lm-stat-label { color: var(--lm-text-dim); font-size: 0.85rem; margin-top: 4px; }

/* ===== CTA Section ===== */
.lm-cta-section { text-align: center; }
.lm-cta-section h2 { color: var(--lm-heading); font-size: 1.6rem; font-weight: 700; margin: 0 0 12px; }
.lm-cta-section h2 span { background: linear-gradient(90deg, var(--lm-primary), var(--lm-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.lm-cta-section p { color: var(--lm-text-dim); max-width: 580px; margin: 0 auto 28px; font-size: 0.9rem; line-height: 1.7; }

/* ===== 联系卡片 ===== */
.lm-contact-card {
    background: var(--lm-card-bg);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    padding: 36px 28px;
}
.lm-contact-card h3 { color: var(--lm-heading); font-size: 1.15rem; font-weight: 600; margin: 0 0 22px; }
.lm-contact-item { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.lm-contact-item:last-child { border-bottom: none; }
.lm-contact-item i { color: var(--lm-secondary); font-size: 1.05rem; width: 30px; flex-shrink: 0; }
.lm-contact-item .lm-cl { color: var(--lm-text-dim); font-size: 0.82rem; min-width: 48px; }
.lm-contact-item .lm-cv { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-left: 8px; }
.lm-qrcode { text-align: center; padding: 16px 0; }
.lm-qrcode img { max-width: 170px; border-radius: 12px; border: 2px solid rgba(108,92,231,0.25); }
.lm-qrcode p { color: var(--lm-text-dim); font-size: 0.8rem; margin: 12px 0 0; }

/* ===== Tabs ===== */
.lm-tab-nav { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; justify-content: center; }
.lm-tab-btn {
    padding: 10px 24px;
    background: var(--lm-glass);
    border: 1px solid var(--lm-border);
    border-radius: 30px;
    color: var(--lm-text);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s;
}
.lm-tab-btn:hover, .lm-tab-btn.active {
    background: linear-gradient(135deg, var(--lm-primary), var(--lm-secondary));
    color: #fff;
    border-color: transparent;
}
.lm-tab-content {
    background: var(--lm-card-bg);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    padding: 34px 30px;
    max-width: 760px;
    margin: 0 auto;
}
.lm-tab-content h3 { color: var(--lm-heading); font-size: 1.1rem; font-weight: 600; margin: 0 0 14px; }
.lm-tab-content p { color: var(--lm-text); font-size: 0.88rem; line-height: 1.85; margin: 0; }
.lm-tab-pane { display: none; }
.lm-tab-pane.active { display: block; }

/* ===== FAQ ===== */
.lm-faq-item {
    background: var(--lm-card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 12px;
    transition: all 0.3s;
}
.lm-faq-item:hover { border-color: rgba(108,92,231,0.2); }
.lm-faq-item .lm-faq-q { color: var(--lm-heading); font-size: 0.95rem; font-weight: 600; margin: 0 0 8px; }
.lm-faq-item .lm-faq-a { color: var(--lm-text-dim); font-size: 0.85rem; line-height: 1.65; margin: 0; }

/* ===== Footer ===== */
.lm-footer {
    background: var(--lm-footer-bg);
    padding: 22px 20px;
    text-align: center;
    border-top: 1px solid var(--lm-border);
}
.lm-footer p { color: var(--lm-text-dim); font-size: 0.78rem; margin: 0; }
.lm-footer a { color: var(--lm-secondary); }

/* ===== Theme and language controls ===== */
.lm-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 12px;
}
.lm-control-group {
    display: flex;
    align-items: center;
    padding: 3px;
    background: var(--lm-glass);
    border: 1px solid var(--lm-border);
    border-radius: 999px;
}
.lm-control-btn {
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--lm-text);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.lm-control-btn:hover { color: var(--lm-heading); transform: translateY(-1px); }
.lm-control-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--lm-primary), var(--lm-secondary));
}
.lm-theme-btn {
    width: 38px;
    padding: 0;
    font-size: 0.9rem;
}
@media (max-width: 980px) {
    .lm-logo-sub { display: none; }
    .lm-nav a { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 768px) {
    .lm-header { padding: 0 14px; }
    .lm-header-actions { margin-left: auto; margin-right: 8px; gap: 5px; }
    .lm-control-btn { min-width: 31px; height: 28px; padding: 0 7px; }
}
@media (max-width: 420px) {
    .lm-logo-text { display: none; }
    .lm-header-actions { margin-left: 8px; }
}

/* ===== WeChat image modal ===== */
.lm-wechat-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 35%, rgba(108,92,231,0.2), transparent 38%),
        rgba(4,6,18,0.82);
    backdrop-filter: blur(14px);
}
.lm-wechat-modal.open { display: flex; }
.lm-wechat-dialog {
    position: relative;
    width: min(470px, 94vw);
    max-height: 94vh;
    overflow: auto;
    padding: 34px 36px 30px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.09), transparent 34%),
        var(--lm-darker);
    box-shadow: 0 36px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,92,231,0.08);
    animation: lmModalIn 0.28s cubic-bezier(.2,.8,.2,1);
}
.lm-wechat-accent {
    position: absolute;
    top: 0;
    left: 50%;
    width: 120px;
    height: 4px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--lm-primary), var(--lm-secondary));
    transform: translateX(-50%);
    box-shadow: 0 4px 20px rgba(0,206,201,0.35);
}
.lm-wechat-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 24px;
}
.lm-wechat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #07c160, #00a84f);
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 10px 26px rgba(7,193,96,0.25);
}
.lm-wechat-eyebrow {
    margin-bottom: 2px;
    color: var(--lm-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.lm-wechat-heading h2 {
    margin: 0;
    color: var(--lm-heading);
    font-size: 1.3rem;
    line-height: 1.35;
}
.lm-wechat-desc {
    margin: 18px 0 22px;
    color: var(--lm-text-dim);
    font-size: 0.86rem;
    line-height: 1.7;
}
.lm-wechat-content {
    padding: 18px 18px 14px;
    border: 1px solid var(--lm-border);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(108,92,231,0.08), rgba(0,206,201,0.04));
}
.lm-wechat-qr-wrap {
    position: relative;
    width: min(286px, 100%);
    margin: 0 auto;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0,0,0,0.16);
}
.lm-wechat-qr-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}
.lm-qr-corner {
    position: absolute;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-color: var(--lm-secondary);
    border-style: solid;
    pointer-events: none;
}
.lm-qr-corner.top-left { top: 5px; left: 5px; border-width: 3px 0 0 3px; border-radius: 8px 0 0; }
.lm-qr-corner.top-right { top: 5px; right: 5px; border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.lm-qr-corner.bottom-left { bottom: 5px; left: 5px; border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.lm-qr-corner.bottom-right { right: 5px; bottom: 5px; border-width: 0 3px 3px 0; border-radius: 0 0 8px; }
.lm-wechat-scan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
    color: var(--lm-text);
    font-size: 0.82rem;
    font-weight: 600;
}
.lm-wechat-scan i { color: var(--lm-secondary); }
.lm-wechat-meta {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}
.lm-wechat-account,
.lm-wechat-note {
    display: flex;
    align-items: center;
    border-radius: 12px;
    font-size: 0.8rem;
}
.lm-wechat-account {
    justify-content: space-between;
    padding: 11px 14px;
    background: var(--lm-glass);
    color: var(--lm-text-dim);
}
.lm-wechat-account strong {
    color: var(--lm-heading);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}
.lm-wechat-note {
    justify-content: center;
    gap: 7px;
    color: var(--lm-text-dim);
}
.lm-wechat-note i { color: var(--lm-primary); }
.lm-wechat-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--lm-border);
    border-radius: 11px;
    background: var(--lm-glass);
    color: var(--lm-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.lm-wechat-close:hover {
    border-color: rgba(108,92,231,0.45);
    color: var(--lm-heading);
    transform: rotate(90deg);
}
body.lm-modal-open { overflow: hidden; }
@keyframes lmModalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 520px) {
    .lm-wechat-modal { padding: 12px; }
    .lm-wechat-dialog {
        width: 100%;
        padding: 28px 20px 22px;
        border-radius: 23px;
    }
    .lm-wechat-heading { gap: 11px; }
    .lm-wechat-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; font-size: 1.4rem; }
    .lm-wechat-heading h2 { font-size: 1.08rem; }
    .lm-wechat-desc { margin: 14px 0 17px; }
    .lm-wechat-content { padding: 14px 14px 12px; }
    .lm-wechat-qr-wrap { width: min(250px, 100%); }
}
