@charset 'UTF-8';

/* ==========================================================================
   前台首页 · 现代化重构样式（仅首页加载，类名前缀 mh-，不与既有主题冲突）
   ========================================================================== */

.mh-home {
    background: var(--mh-bg, #f6f8fc);
    color: var(--mh-ink, #0f172a);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

.mh-home * { box-sizing: border-box; }

.mh-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------------------ Hero */
.mh-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 88px;
    background: radial-gradient(120% 140% at 8% 0%, #1e3a8a 0%, #0f172a 52%, #0b1220 100%);
    color: #fff;
}

.mh-hero::before,
.mh-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.mh-hero::before {
    width: 620px;
    height: 620px;
    top: -260px;
    right: -140px;
    background: radial-gradient(circle, rgba(59, 130, 246, .42) 0%, rgba(59, 130, 246, 0) 66%);
}

.mh-hero::after {
    width: 520px;
    height: 520px;
    bottom: -280px;
    left: -120px;
    background: radial-gradient(circle, rgba(124, 58, 237, .34) 0%, rgba(124, 58, 237, 0) 68%);
}

.mh-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 48px;
    align-items: center;
}

.mh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    backdrop-filter: blur(6px);
}

.mh-badge b {
    font-weight: 600;
    color: #fff;
}

.mh-hero h1 {
    margin: 22px 0 16px;
    font-size: 46px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.6px;
    color: #fff;
}

.mh-hero h1 .mh-hl {
    background: linear-gradient(120deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mh-lead {
    margin: 0 0 28px;
    max-width: 520px;
    font-size: 16px;
    color: rgba(255, 255, 255, .72);
}

.mh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    list-style: none;
    padding-left: 0;
}

.mh-chips li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .78);
}

.mh-chips i {
    font-size: 18px;
    color: #60a5fa;
}

/* ------------------------------------------------------------------ 按钮 */
.mh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: transform .14s, box-shadow .18s, background-color .18s, color .18s, border-color .18s;
}

.mh-btn:hover,
.mh-btn:focus { text-decoration: none; }
.mh-btn:active { transform: translateY(1px); }

.mh-btn-primary {
    background: var(--mh-brand-grad, linear-gradient(135deg, #3b82f6, #2563eb 55%, #1d4ed8));
    color: #fff;
    box-shadow: 0 14px 30px -16px rgba(37, 99, 235, .95);
}

.mh-btn-primary:hover,
.mh-btn-primary:focus {
    color: #fff;
    background: linear-gradient(135deg, #2f74f0, #1d4ed8);
    box-shadow: 0 18px 36px -16px rgba(29, 78, 216, .98);
}

.mh-btn-ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .26);
    color: #fff;
}

.mh-btn-ghost:hover,
.mh-btn-ghost:focus {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.mh-btn-light {
    background: #fff;
    border-color: var(--mh-line, #e6eaf2);
    color: var(--mh-ink, #0f172a);
    box-shadow: var(--mh-shadow-sm, 0 1px 2px rgba(15, 23, 42, .05));
}

.mh-btn-light:hover,
.mh-btn-light:focus {
    color: var(--mh-brand, #2563eb);
    border-color: #cddcf7;
}

.mh-btn-block { width: 100%; }
.mh-btn-lg { padding: 14px 30px; font-size: 15px; }

/* ------------------------------------------------------------ 登录卡片 */
.mh-login-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 40px 80px -40px rgba(2, 6, 23, .8);
    color: var(--mh-ink, #0f172a);
}

.mh-login-card h3 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    color: var(--mh-ink, #0f172a);
}

.mh-login-card .mh-sub {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--mh-muted, #64748b);
}

.mh-field { margin-bottom: 14px; }
.mh-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mh-ink-2, #334155);
}

.mh-input-wrap { position: relative; }

.mh-input-wrap > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9aa5b6;
    pointer-events: none;
}

.mh-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    background: #fff;
    color: var(--mh-ink, #0f172a);
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .16s, box-shadow .16s;
}

.mh-input::placeholder { color: #a8b2c1; }

.mh-input:focus {
    outline: none;
    border-color: var(--mh-brand-2, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}

.mh-login-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 18px;
    font-size: 13px;
}

.mh-login-links a { color: var(--mh-muted, #64748b); text-decoration: none; }
.mh-login-links a:hover { color: var(--mh-brand, #2563eb); }

.mh-login-foot {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--mh-muted, #64748b);
}

/* -------------------------------------------------------------- 快捷入口 */
.mh-quick { margin-top: -56px; position: relative; z-index: 3; }

.mh-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mh-quick-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--mh-surface, #fff);
    border: 1px solid var(--mh-line, #e6eaf2);
    box-shadow: var(--mh-shadow, 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(15, 23, 42, .28));
    color: var(--mh-ink, #0f172a);
    text-decoration: none;
    transition: transform .16s, box-shadow .18s, border-color .18s;
}

.mh-quick-item:hover {
    color: var(--mh-ink, #0f172a);
    text-decoration: none;
    transform: translateY(-3px);
    border-color: #cddcf7;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 22px 44px -22px rgba(37, 99, 235, .45);
}

.mh-quick-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    color: var(--mh-brand, #2563eb);
    font-size: 22px;
}

.mh-quick-item b {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
}

.mh-quick-item span {
    display: block;
    font-size: 12.5px;
    color: var(--mh-muted, #64748b);
}

/* ------------------------------------------------------------------ 区块 */
.mh-section { padding: 84px 0; }
.mh-section-alt { background: #fff; }

.mh-section-head {
    max-width: 660px;
    margin: 0 auto 44px;
    text-align: center;
}

.mh-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .1);
    color: var(--mh-brand, #2563eb);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .3px;
}

.mh-section-head h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--mh-ink, #0f172a);
    letter-spacing: -.3px;
}

.mh-section-head p {
    margin: 0;
    color: var(--mh-muted, #64748b);
    font-size: 15px;
}

/* -------------------------------------------------------------- 优势卡片 */
.mh-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mh-feature {
    padding: 26px 22px;
    border-radius: 16px;
    background: var(--mh-surface, #fff);
    border: 1px solid var(--mh-line, #e6eaf2);
    box-shadow: var(--mh-shadow-sm, 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px -12px rgba(15, 23, 42, .16));
    transition: transform .16s, box-shadow .18s, border-color .18s;
}

.mh-feature:hover {
    transform: translateY(-4px);
    border-color: #cddcf7;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 46px -24px rgba(37, 99, 235, .5);
}

.mh-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 12px 24px -14px rgba(37, 99, 235, .95);
}

.mh-feature h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--mh-ink, #0f172a);
}

.mh-feature p {
    margin: 0;
    font-size: 13.5px;
    color: var(--mh-muted, #64748b);
}

/* ------------------------------------------------------------ 图文分栏 */
.mh-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
}

.mh-split + .mh-split { margin-top: 76px; }
.mh-split-rev .mh-split-media { order: 2; }

.mh-split h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--mh-ink, #0f172a);
}

.mh-split p { color: var(--mh-muted, #64748b); }

.mh-split-media {
    padding: 26px;
    border-radius: 20px;
    background: linear-gradient(140deg, #eff6ff 0%, #eef2ff 55%, #faf5ff 100%);
    border: 1px solid var(--mh-line, #e6eaf2);
    text-align: center;
}

.mh-split-media img {
    max-width: 100%;
    height: auto;
}

.mh-list {
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
}

.mh-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--mh-ink-2, #334155);
    font-size: 14.5px;
}

.mh-list i {
    margin-top: 3px;
    font-size: 18px;
    color: #10b981;
}

/* ------------------------------------------------------------------ 步骤 */
.mh-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mh-step {
    position: relative;
    padding: 28px 24px;
    border-radius: 16px;
    background: var(--mh-surface, #fff);
    border: 1px solid var(--mh-line, #e6eaf2);
    box-shadow: var(--mh-shadow-sm, 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px -12px rgba(15, 23, 42, .16));
}

.mh-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(37, 99, 235, .1);
    color: var(--mh-brand, #2563eb);
    font-size: 16px;
    font-weight: 700;
}

.mh-step h3 {
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--mh-ink, #0f172a);
}

.mh-step p {
    margin: 0;
    font-size: 13.5px;
    color: var(--mh-muted, #64748b);
}

/* ------------------------------------------------------------------ CTA */
.mh-cta {
    position: relative;
    overflow: hidden;
    padding: 54px 48px;
    border-radius: 24px;
    background: radial-gradient(120% 180% at 0% 0%, #1e3a8a 0%, #0f172a 60%, #0b1220 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
}

.mh-cta::after {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    right: -150px;
    top: -190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .4) 0%, rgba(59, 130, 246, 0) 68%);
    pointer-events: none;
}

.mh-cta-text { position: relative; z-index: 2; max-width: 620px; }

.mh-cta h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.mh-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14.5px;
}

.mh-cta .mh-actions { position: relative; z-index: 2; }

/* ------------------------------------------------------------ 滚动动画 */
.mh-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.mh-reveal.mh-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .mh-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
    .mh-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-hero h1 { font-size: 38px; }
}

@media (max-width: 900px) {
    .mh-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .mh-hero { padding: 48px 0 76px; }
    .mh-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .mh-split-rev .mh-split-media { order: 0; }
    .mh-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .mh-section { padding: 60px 0; }
    .mh-cta { padding: 36px 26px; }
}

@media (max-width: 600px) {
    .mh-hero h1 { font-size: 30px; }
    .mh-lead { font-size: 15px; }
    .mh-grid-4 { grid-template-columns: minmax(0, 1fr); }
    .mh-quick-grid { grid-template-columns: minmax(0, 1fr); }
    .mh-actions .mh-btn { width: 100%; }
    .mh-section-head h2 { font-size: 24px; }
}
