/* ===========================================================
   Mogai — About section  ·  Vue 3 + Element Plus
   Visual language inspired by bigmodel.cn:
   near-monochrome (ink + white cards on soft gray) with the
   brand accent: main #3076C5, hover/active second color #28AFE6.
   =========================================================== */
:root {
    --mg-ink: #131212;
    --mg-ink-2: #3d3d40;
    --mg-muted: #6a6a70;
    --mg-bg: #f7f8fa;
    --mg-card: #ffffff;
    --mg-border: #ededf0;
    --mg-accent: #3076c5;      /* main theme color */
    --mg-accent-2: #28afe6;    /* second color: hover / clicked */
    --mg-radius: 14px;
    --mg-shadow: 0 6px 24px rgba(19, 18, 18, .05);
    --mg-shadow-lg: 0 16px 44px rgba(19, 18, 18, .10);

    /* ---- Element Plus theme overrides ---- */
    --el-color-primary: #3076c5;          /* default button */
    --el-color-primary-light-3: #28afe6;  /* hover -> second color */
    --el-color-primary-light-5: #98bbe2;
    --el-color-primary-light-7: #c1d6ee;
    --el-color-primary-light-8: #d6e4f3;
    --el-color-primary-light-9: #eaf1f9;
    --el-color-primary-dark-2: #28afe6;   /* active/clicked -> second color */
    --el-border-radius-base: 8px;
    --el-font-family: "MiSans", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --el-text-color-primary: #131212;
}

* {
    font-family: "MiSans", "PingFang SC", "PingFang HK", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html, body { margin: 0; padding: 0; }
body {
    color: var(--mg-ink);
    background: var(--mg-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: var(--mg-ink); font-weight: 600; letter-spacing: -.01em; margin: 0; }

.mg-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mg-muted { color: var(--mg-muted); }

/* ---------------- Navbar ---------------- */
.mg-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--mg-border);
}
.mg-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mg-brand { display: flex; align-items: center; gap: 10px; }
.mg-brand-tag { color: #9aa0a6; font-size: 12px; }
.mg-nav-links { display: flex; align-items: center; gap: 4px; }
.mg-nav-links > a,
.mg-nav-links .mg-menu-trigger {
    color: var(--mg-ink-2); font-size: 14.5px; font-weight: 400; line-height: 1.2;
    padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.mg-nav-links > a:hover,
.mg-nav-links .mg-menu-trigger:hover { color: var(--mg-accent); background: rgba(48, 118, 197, .07); }
.mg-nav-sep { width: 1px; height: 18px; background: var(--mg-border); margin: 0 6px; }
.mg-nav-cta {
    background: var(--mg-ink); color: #fff !important; padding: 8px 18px !important;
    border-radius: 999px !important; margin-left: 6px;
}

.mg-nav-toggle, .mg-nav-burger { display: none; }

/* nav dropdowns — full-width panel (Z.ai style) */
.mg-has-menu { position: static; display: flex; align-items: center; height: 64px; }
.mg-menu-trigger { display: inline-flex; align-items: center; gap: 5px; }
.mg-menu-trigger i { font-style: normal; font-size: 10px; opacity: .55; transition: transform .22s ease; }
.mg-has-menu:hover .mg-menu-trigger i { transform: rotate(180deg); }
/* full-width panel anchored under the sticky header.
   .mg-nav has backdrop-filter (→ containing block) + sticky, so absolute
   anchors to it: top:100% = header bottom, left/right:0 = full width. */
.mg-menu {
    position: absolute; top: 100%; left: 0; right: 0; margin-top: -1px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--mg-border);
    box-shadow: 0 24px 48px rgba(19, 18, 18, .10);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 90;
}
.mg-has-menu:hover .mg-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mg-menu-inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px 40px; }
.mg-menu-grid { display: flex; gap: 60px; }
.mg-menu-col { min-width: 150px; display: flex; flex-direction: column; }
.mg-menu-h { font-size: 12px; color: #9aa0a6; font-weight: 600; letter-spacing: .06em; margin-bottom: 12px; }
.mg-menu-col > a { display: block; color: var(--mg-ink-2); font-size: 14.5px; padding: 8px 0; white-space: nowrap; }
.mg-menu-col > a:hover { color: var(--mg-accent); }

/* ---------------- Hero ---------------- */
.mg-hero {
    position: relative; text-align: center; overflow: hidden;
    padding: 92px 0 76px;
    background:
        radial-gradient(900px 380px at 50% -60px, rgba(48, 118, 197, .12), transparent 62%),
        radial-gradient(700px 320px at 82% 8%, rgba(120, 110, 255, .10), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--mg-bg) 100%);
}
.mg-eyebrow {
    display: inline-block; color: var(--mg-accent); font-size: 13px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px;
}
.mg-hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.15; }
.mg-hero .mg-sub {
    max-width: 680px; margin: 20px auto 0; color: var(--mg-muted);
    font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7;
}
.mg-hero-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Sections ---------------- */
.mg-section { padding: 72px 0; }
.mg-section.alt { background: #fff; border-top: 1px solid var(--mg-border); border-bottom: 1px solid var(--mg-border); }
.mg-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.mg-kicker { color: var(--mg-accent); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.mg-head h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 10px; }
.mg-head p { color: var(--mg-muted); margin-top: 12px; font-size: 16px; line-height: 1.7; }

/* ---------------- Cards ---------------- */
.mg-card {
    background: var(--mg-card); border: 1px solid var(--mg-border);
    border-radius: var(--mg-radius); padding: 28px; height: 100%;
    box-shadow: var(--mg-shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mg-card:hover { transform: translateY(-4px); box-shadow: var(--mg-shadow-lg); border-color: #e2e2e6; }
.mg-card.link { display: block; color: inherit; }
.mg-ico {
    width: 46px; height: 46px; border-radius: 12px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 22px;
    background: rgba(48, 118, 197, .10); color: var(--mg-accent); margin-bottom: 16px;
}
.mg-card h4 { font-size: 18px; margin-bottom: 8px; }
.mg-card p { color: var(--mg-muted); font-size: 14px; line-height: 1.7; margin: 0; }
.mg-card .mg-more { color: var(--mg-accent); font-size: 14px; font-weight: 600; margin-top: 14px; display: inline-block; }

/* Intro text block */
.mg-prose p { color: var(--mg-ink-2); font-size: 16px; line-height: 1.9; margin: 0 0 16px; }
.mg-prose p:last-child { margin-bottom: 0; }

/* Stats */
.mg-stat { text-align: center; padding: 22px 10px; }
.mg-stat .n { font-size: 30px; font-weight: 700; color: var(--mg-ink); }
.mg-stat .l { color: var(--mg-muted); font-size: 13.5px; margin-top: 4px; }

/* ---------------- AI Sales Agent Platform (5-layer flow) ---------------- */
.mg-flow { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; }
.mg-flow-step { flex: 1 1 0; min-width: 200px; display: flex; }
.mg-flow-step .mg-card { padding: 22px; width: 100%; }
.mg-flow-top { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.mg-flow-badge { font-size: 11px; color: #fff; background: var(--mg-accent); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mg-flow-en { font-size: 12px; letter-spacing: .08em; color: var(--mg-accent); font-weight: 600; margin-top: 14px; }
.mg-flow-step h4 { font-size: 17px; margin: 4px 0 8px; }
.mg-flow-step p { color: var(--mg-muted); font-size: 13.5px; line-height: 1.7; margin: 0; }
.mg-flow-step.base .mg-card { border-color: var(--mg-accent); box-shadow: 0 0 0 1px var(--mg-accent) inset, var(--mg-shadow); }
@media (max-width: 768px) { .mg-flow-step { flex: 1 1 45%; } }
@media (max-width: 480px) { .mg-flow-step { flex: 1 1 100%; } }

/* ---------------- Team ---------------- */
.mg-team { background: var(--mg-card); border: 1px solid var(--mg-border); border-radius: var(--mg-radius); overflow: hidden; box-shadow: var(--mg-shadow); height: 100%; transition: transform .25s, box-shadow .25s; }
.mg-team:hover { transform: translateY(-4px); box-shadow: var(--mg-shadow-lg); }
.mg-team .ph { aspect-ratio: 1/1; width: 100%; object-fit: cover; display: block; background: var(--mg-bg); }
.mg-team .ph.ph-empty { display: flex; align-items: center; justify-content: center; color: var(--mg-accent); font-size: 46px; background: linear-gradient(135deg, #eafafc, #daf3f6); }
.mg-team .body { padding: 20px 22px 24px; }
.mg-team .name { font-size: 19px; }
.mg-team .en { color: #a2a7ad; font-weight: 400; font-size: 13px; margin-left: 6px; }
.mg-team .role { color: var(--mg-accent); font-weight: 600; font-size: 13.5px; margin: 8px 0 12px; }
.mg-team .bio { color: var(--mg-muted); font-size: 13.5px; line-height: 1.75; margin: 0; }

/* ---------------- Founders (classic alternating layout) ---------------- */
.mg-founder { display: flex; align-items: center; gap: 52px; margin-bottom: 64px; }
.mg-founder:last-child { margin-bottom: 0; }
.mg-founder.reverse { flex-direction: row-reverse; }
.mg-founder .photo { flex: 0 0 20%; max-width: 20%; }
.mg-founder .photo img { width: 100%; border-radius: var(--mg-radius); box-shadow: var(--mg-shadow-lg); display: block; }
.mg-founder .info { flex: 1; }
.mg-founder .info h3 { font-size: 30px; line-height: 1.2; }
.mg-founder .info .en { font-size: 16px; color: #a2a7ad; font-weight: 400; margin-left: 10px; }
.mg-founder .info .role { color: var(--mg-ink); font-weight: 700; font-size: 15px; margin: 16px 0 12px; }
.mg-founder .info p { color: var(--mg-muted); font-size: 15px; line-height: 1.95; margin: 0; }

.mg-video { margin-top: 8px; text-align: center; }
.mg-video video { width: 100%; max-width: 860px; border-radius: var(--mg-radius); box-shadow: var(--mg-shadow-lg); background: #000; }

@media (max-width: 768px) {
    .mg-founder, .mg-founder.reverse { flex-direction: column; gap: 24px; text-align: center; }
    .mg-founder .photo { flex: none; max-width: 340px; width: 100%; }
    .mg-founder .info h3 { font-size: 26px; }
}

/* ---------------- Contact ---------------- */
.mg-tile { display: flex; gap: 14px; align-items: flex-start; background: var(--mg-card); border: 1px solid var(--mg-border); border-radius: var(--mg-radius); padding: 22px; box-shadow: var(--mg-shadow); height: 100%; }
.mg-tile .ico { flex: 0 0 auto; }
.mg-tile .t { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.mg-tile .d { color: var(--mg-muted); font-size: 14px; margin: 0; line-height: 1.6; }
.mg-qr-wrap { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.mg-qr { text-align: center; }
.mg-qr img { width: 150px; height: 150px; border-radius: 12px; border: 1px solid var(--mg-border); }
.mg-qr span { display: block; color: var(--mg-muted); font-size: 13px; margin-top: 8px; }

/* Gallery via el-image */
.mg-gallery .el-image { width: 100%; aspect-ratio: 4/3; border-radius: 12px; box-shadow: var(--mg-shadow); overflow: hidden; cursor: zoom-in; }
.mg-gallery .el-image img { transition: transform .4s ease; }
.mg-gallery .el-image:hover img { transform: scale(1.06); }

/* ---------------- Certifications ---------------- */
.mg-filterbar { display: flex; justify-content: center; margin-bottom: 40px; }
.mg-cert { background: var(--mg-card); border: 1px solid var(--mg-border); border-radius: 12px; overflow: hidden; box-shadow: var(--mg-shadow); transition: transform .25s, box-shadow .25s; height: 100%; }
.mg-cert:hover { transform: translateY(-4px); box-shadow: var(--mg-shadow-lg); }
.mg-cert .thumb { background: var(--mg-bg); padding: 14px; }
.mg-cert .thumb .el-image { width: 100%; aspect-ratio: 3/4; cursor: zoom-in; }
.mg-cert .thumb .el-image img { object-fit: contain; }
.mg-cert .cap { padding: 12px 14px 16px; font-size: 13px; color: var(--mg-muted); line-height: 1.55; }

/* ---------------- CTA ---------------- */
.mg-cta { background: var(--mg-ink); color: #fff; padding: 56px 0; }
.mg-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mg-cta h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.mg-cta p { color: rgba(255, 255, 255, .72); margin: 0; font-size: 15px; }
.mg-cta-btn { background: #fff; color: var(--mg-ink); font-weight: 600; padding: 13px 26px; border-radius: 999px; white-space: nowrap; transition: transform .2s; }
.mg-cta-btn:hover { transform: translateX(3px); }

/* ---------------- Footer ---------------- */
.mg-footer { background: #0e0e10; color: #b7b7bd; padding: 56px 0 28px; }
.mg-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; }
.mg-footer h6 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.mg-footer a { display: block; color: #9a9aa2; font-size: 13.5px; margin-bottom: 9px; }
.mg-footer a:hover { color: var(--mg-accent-2); }
.mg-foot-logo { filter: brightness(0) invert(1); opacity: .9; margin-bottom: 14px; }
.mg-foot-desc { color: #86868e; font-size: 13px; line-height: 1.7; margin: 0; }
.mg-foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #86868e; }
.mg-foot-bottom a { color: #86868e; display: inline; }
.mg-foot-beian { display: inline-flex; align-items: center; }

/* ---------------- Buttons (framework-independent) ---------------- */
.mg-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 12px 26px; font-size: 15px; font-weight: 500; transition: .2s ease; border: 1px solid transparent; cursor: pointer; }
.mg-btn-primary { background: var(--mg-accent); color: #fff; }
.mg-btn-primary:hover { background: var(--mg-accent-2); color: #fff; }
.mg-btn-ghost { background: #fff; color: var(--mg-ink); border-color: var(--mg-border); }
.mg-btn-ghost:hover { border-color: var(--mg-accent); color: var(--mg-accent); }
.mg-btn-lg { padding: 14px 32px; font-size: 16px; }
.mg-hero-note { margin-top: 26px; font-size: 13.5px; }
.mg-hero-note a { color: var(--mg-accent); }
.mg-hero-note a:hover { color: var(--mg-accent-2); }

/* Product screenshot */
.mg-shot { width: 100%; border-radius: var(--mg-radius); box-shadow: var(--mg-shadow-lg); display: block; }
.mg-shot-pad { background: var(--mg-bg); border: 1px solid var(--mg-border); border-radius: var(--mg-radius); padding: 18px; }

/* Checklist */
.mg-check { list-style: none; padding: 0; margin: 0; }
.mg-check li { position: relative; padding-left: 26px; color: var(--mg-ink-2); font-size: 14.5px; line-height: 2; }
.mg-check li::before { content: "✓"; position: absolute; left: 0; color: var(--mg-accent); font-weight: 700; }

/* Product / capability card with header line */
.mg-card .mg-card-sub { font-size: 12px; color: var(--mg-accent); font-weight: 600; letter-spacing: .04em; }

/* Dark stat band */
.mg-statband { background: var(--mg-ink); color: #fff; padding: 56px 0; }
.mg-statband .mg-statband-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.mg-statband .n { font-size: 46px; font-weight: 700; color: #fff; line-height: 1; }
.mg-statband .n small { font-size: 18px; font-weight: 600; margin-left: 4px; }
.mg-statband .u { color: rgba(255,255,255,.9); font-size: 16px; margin-top: 10px; font-weight: 600; }
.mg-statband .d { color: rgba(255,255,255,.55); font-size: 13px; margin-top: 6px; }

/* Client logos */
.mg-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: center; }
.mg-logos a { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--mg-border); border-radius: 12px; padding: 18px; height: 84px; transition: .2s; }
.mg-logos a:hover { box-shadow: var(--mg-shadow); border-color: #e2e2e6; }
.mg-logos img { max-width: 100%; max-height: 46px; object-fit: contain; }
@media (max-width: 768px) {
    .mg-statband .mg-statband-grid { grid-template-columns: 1fr; gap: 32px; }
    .mg-logos { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------- Feature table ---------------- */
.mg-tablewrap { overflow-x: auto; border: 1px solid var(--mg-border); border-radius: var(--mg-radius); box-shadow: var(--mg-shadow); }
.mg-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.mg-table th, .mg-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--mg-border); }
.mg-table thead th { background: var(--mg-bg); color: var(--mg-ink); font-weight: 600; white-space: nowrap; }
.mg-table tbody th { font-weight: 600; color: var(--mg-ink); }
.mg-table td { color: var(--mg-muted); }
.mg-table .dot { color: var(--mg-accent); text-align: center; font-size: 16px; }
.mg-table tbody tr:hover { background: rgba(48,118,197,.03); }

/* ---------------- Customer cases + sidebar ---------------- */
.mg-intro-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.mg-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mg-case { display: flex; flex-direction: column; }
.mg-case-logo { height: 56px; display: flex; align-items: center; margin-bottom: 14px; }
.mg-case-logo img { max-height: 52px; max-width: 170px; object-fit: contain; }
.mg-side-widget { margin-bottom: 24px; }
.mg-side-widget .wt { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.mg-taglist { list-style: none; padding: 0; margin: 0; }
.mg-taglist li a { display: block; padding: 9px 2px; color: var(--mg-ink-2); font-size: 14px; border-bottom: 1px solid var(--mg-border); }
.mg-taglist li a:hover { color: var(--mg-accent); }
.mg-side-form { display: flex; gap: 8px; }
.mg-side-form input { flex: 1; border: 1px solid var(--mg-border); border-radius: 8px; padding: 9px 12px; font-size: 14px; outline: none; }
.mg-side-form input:focus { border-color: var(--mg-accent); }
@media (max-width: 900px) { .mg-intro-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mg-cases { grid-template-columns: 1fr; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .mg-foot-grid { grid-template-columns: 1fr 1fr; }
    .mg-nav-links {
        position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--mg-border); padding: 12px 16px; gap: 2px;
        max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--mg-shadow-lg);
    }
    .mg-nav-toggle:checked ~ .mg-nav-links { max-height: 80vh; overflow-y: auto; }
    .mg-has-menu { display: block; width: 100%; height: auto; }
    .mg-menu-trigger i { display: none; }
    .mg-menu { display: none; }   /* on mobile, tapping the trigger navigates to its page */
    .mg-nav-sep { display: none; }
    .mg-nav-cta { display: inline-block; text-align: center; margin: 8px 0 4px; }
    .mg-nav-burger { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
    .mg-nav-burger span { width: 22px; height: 2px; background: var(--mg-ink); border-radius: 2px; }
    .mg-section { padding: 52px 0; }
    .mg-hero { padding: 64px 0 52px; }
    .mg-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .mg-foot-grid { grid-template-columns: 1fr; }
}
