/* 沐目官网 · 视觉基准：已确认中文加深配色双面彩页（2026-10-05）
   浅色底、深蓝标题、蓝绿与暖黄卡片、柔和波纹与日光圆形；纯粉仅保留在 Logo 与二维码原图内 */
:root {
  --title: #183a57;
  --text: #344e59;
  --muted: #55707a;      /* 彩页次要字 #607D87 在浅底上略暗化，保证小字号对比度 ≥ 4.5 */
  --blue: #087ab8;
  --blue-deep: #06679b;
  --teal: #117d79;
  --card-blue: #d7ebf6;
  --card-green: #d7eddf;
  --card-yellow: #fff1c7;
  --icon-blue: #b9dcf0;
  --icon-green: #b5e0c6;
  --icon-yellow: #f8d978;
  --gold: #8a6100;
  --sun: #fde7a6;
  --bg: #f5fafb;
  --surface: #ffffff;
  --line: rgba(24, 58, 87, .12);
  --shadow: 0 10px 30px rgba(24, 58, 87, .10);
  --shadow-lg: 0 18px 44px rgba(24, 58, 87, .16);
  --radius: 18px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
.lang-pending body { visibility: hidden; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } body { font-size: 17px; } }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { flex: none; display: block; padding: 8px 4px; margin-left: -4px; }
.brand img { height: 34px; width: auto; }
.nav { display: none; }
.nav a {
  color: var(--title); text-decoration: none; font-size: 15px; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--card-blue); }

.lang {
  margin-left: auto; display: inline-flex; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 999px;
  font-size: 14px; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--title); color: #fff; }

.menu-toggle {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: var(--title); stroke-width: 2; stroke-linecap: round; }
.menu-toggle .i-close, .nav-open .menu-toggle .i-open { display: none; }
.nav-open .menu-toggle .i-close { display: inline; }

@media (max-width: 1079.98px) {
  .nav-open .nav {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 10px 20px 18px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-open .nav a { font-size: 17px; padding: 12px 14px; border-radius: 12px; }
}
@media (min-width: 1080px) {
  .nav { display: flex; gap: 2px; margin-left: 28px; }
  .lang { margin-left: auto; }
  .menu-toggle { display: none; }
  .brand img { height: 38px; }
}

/* ---------- 通用 ---------- */
.section { position: relative; padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 88px 0; } }

.eyebrow { font-size: 14px; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.tagline { color: var(--blue); font-size: 19px; font-weight: 600; line-height: 1.6; }
.lead { margin-top: 16px; max-width: 46em; }

/* 区块标题：彩页“黄点 + 蓝条”小装饰 */
.sec-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px;
  color: var(--blue); font-size: 24px; line-height: 1.4; font-weight: 700; letter-spacing: .02em;
}
.sec-title::after {
  content: ""; flex: none; width: 46px; height: 10px; border-radius: 999px;
  background: radial-gradient(circle at 5px 5px, #f6c94e 4.5px, transparent 5px), linear-gradient(90deg, transparent 8px, #7cc6e8 8px);
}
@media (min-width: 960px) { .sec-title { font-size: 28px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; text-align: center; line-height: 1.3;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(8, 122, 184, .25); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { color: var(--teal); border: 1.5px solid var(--teal); background: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: var(--card-green); }

figcaption { margin-top: 12px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* 卡片 */
.card {
  border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(255, 255, 255, .6) inset;
}
.card h3 { color: var(--title); font-size: 20px; line-height: 1.45; font-weight: 700; }
.card p { margin-top: 12px; }
.card .icon {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
}
.card .icon svg { width: 34px; height: 34px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.c-blue { background: var(--card-blue); }
.c-blue .icon { background: var(--icon-blue); }
.c-blue .icon svg { stroke: var(--blue); }
.c-green { background: var(--card-green); }
.c-green .icon { background: var(--icon-green); }
.c-green .icon svg { stroke: var(--teal); }
.c-yellow { background: var(--card-yellow); }
.c-yellow .icon { background: var(--icon-yellow); }
.c-yellow .icon svg { stroke: var(--gold); }
@media (min-width: 960px) { .card { padding: 30px; } }

/* ---------- 首屏 ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 56px; }
.waves { position: absolute; left: 0; top: 0; width: 100%; height: 220px; z-index: -1; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 {
  color: var(--title); font-size: 34px; line-height: 1.3; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 18px;
}
:lang(zh-CN) .hero h1 { max-width: 8.4em; }
:lang(en) .hero h1 { letter-spacing: 0; font-size: 30px; line-height: 1.25; }
.hero .solution { margin-top: 22px; color: var(--teal); font-weight: 600; font-size: 17px; letter-spacing: .04em; white-space: pre-wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.devices { position: relative; max-width: 420px; width: 100%; justify-self: center; padding-top: 12px; }
.devices .sun {
  position: absolute; z-index: -1; top: -6px; right: -14px;
  width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--sun);
}
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.device-grid li {
  aspect-ratio: 1; overflow: hidden; background: #fff;
  border: 1px solid #cfe3ec; border-radius: 16px; box-shadow: var(--shadow);
}
.device-grid img { width: 100%; height: 100%; }
/* 三配色：保留已确认的正方形裁切 */
.d-colors img { object-fit: cover; object-position: 50% 22%; padding: 6% 8% 0; }
/* 蓝黄款：缩小留白，不撑满 */
.d-blue-yellow img { object-fit: contain; padding: 15%; }
/* 粉紫款、红色款原图留白多：铺满方框放大主体，主体完整不裁切 */
.d-pink-purple img { object-fit: cover; object-position: 55% 50%; }
.d-red img { object-fit: cover; object-position: 48% 50%; transform: scale(1.06); }

@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .waves { height: 300px; }
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 64px; }
  .hero h1 { font-size: 52px; }
  :lang(en) .hero h1 { font-size: 44px; }
  .tagline { font-size: 21px; }
  .devices { max-width: 440px; justify-self: end; }
}

/* ---------- 三项价值 ---------- */
.values { padding-top: 8px; }
.value-grid { display: grid; gap: 16px; }
.values .card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.values .num { font-size: 18px; color: var(--title); letter-spacing: .06em; }
@media (min-width: 860px) { .value-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ---------- 软件展示 ---------- */
.software .sec-title { margin-bottom: 32px; }
.zoom {
  position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 12px;
}
.zoom img { border-radius: 12px; box-shadow: var(--shadow-lg); background: #fff; }
.zoom::after {
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(24, 58, 87, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transition: opacity .2s;
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .zoom::after { opacity: .85; } }

.showcase { display: grid; gap: 40px; }
/* 手机：同组图片顺序展开 */
.web-stage { display: grid; gap: 14px; }
.app-stage { display: flex; align-items: center; justify-content: center; gap: 10px; }
.app-stage .zoom { flex: 1 1 0; max-width: 170px; }
.app-stage .app-home { flex-grow: 1.25; max-width: 210px; order: 2; }
.app-stage .app-class { order: 1; }
.app-stage .app-student { order: 3; }
.app-stage .zoom img { border-radius: 14px; }

/* 桌面：Web 主图与分组比较小幅叠放；App 首页居中靠前，班级、学生分置左右后方且高度不同 */
@media (min-width: 960px) {
  .showcase { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 48px; align-items: end; }
  .web-stage { display: block; position: relative; aspect-ratio: 100 / 64; }
  .web-stage .zoom { position: absolute; }
  .web-main { left: 0; top: 0; width: 90%; z-index: 1; }
  .web-sub { right: 0; bottom: 0; width: 60%; z-index: 2; }
  .web-sub img { border: 1px solid var(--line); }
  .app-stage { display: block; position: relative; aspect-ratio: 100 / 112; }
  .app-stage .zoom { position: absolute; max-width: none; }
  .app-stage .app-class { left: 0; top: 0; width: 40%; z-index: 1; }
  .app-stage .app-student { right: 0; top: 14%; width: 40%; z-index: 1; }
  .app-stage .app-home { left: 26%; top: 7%; width: 48%; z-index: 2; }
}

.software-text { margin-top: 36px; display: grid; gap: 12px; max-width: 60em; }
.software-text .body { color: var(--text); }
.notice {
  font-size: 15px; color: var(--title); line-height: 1.7;
  padding: 10px 14px; border-left: 4px solid var(--teal); background: rgba(215, 237, 223, .55); border-radius: 0 10px 10px 0;
}
.disclaimer { font-size: 14px; color: var(--muted); }

/* ---------- 定制研发 ---------- */
.development { isolation: isolate; overflow: hidden; background: linear-gradient(180deg, rgba(215, 235, 246, .45), rgba(245, 250, 251, 0) 70%); }
.sun-deco { position: absolute; z-index: -1; right: -60px; top: 30px; width: 200px; height: 200px; fill: var(--sun); }
.dev-head { max-width: 52em; margin-bottom: 36px; }
.big-title { color: var(--title); font-size: 30px; line-height: 1.35; font-weight: 700; letter-spacing: .03em; margin-bottom: 14px; }
:lang(en) .big-title { letter-spacing: 0; }
.dev-grid { display: grid; gap: 16px; }
.dev-grid .card-head { display: flex; align-items: center; gap: 16px; }
.dev-grid .c-blue h3 { color: var(--blue); }
.dev-grid .card p { margin-top: 14px; }
@media (min-width: 860px) {
  .dev-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .big-title { font-size: 42px; }
  .sun-deco { right: 6%; top: 60px; width: 240px; height: 240px; }
}

/* ---------- 网关 / 产品展示 ---------- */
.duo { display: grid; gap: 56px; }
.duo .sec-title { margin-bottom: 24px; }
.duo article > p { margin-top: 18px; }
.gateway-pics { display: flex; gap: 14px; align-items: flex-start; }
.gateway-pics figure { min-width: 0; }
/* 两图等高：按宽高比分配宽度；平板 3:2 原图正好填满图框 */
.pic-eco { flex: 0.962 1 0; }
.pic-tablet { flex: 1.5 1 0; }
.gateway-pics img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pic-tablet img { aspect-ratio: 3 / 2; object-fit: cover; }

.example-stack { position: relative; aspect-ratio: 100 / 84; }
.example-stack img { position: absolute; border-radius: 14px; box-shadow: var(--shadow-lg); }
.ex-tv { right: 0; top: 0; width: 60%; z-index: 1; }
.ex-classroom { left: 0; bottom: 0; width: 80%; z-index: 2; border: 4px solid #fff; }
.example-figure figcaption { text-align: left; }
@media (min-width: 960px) {
  .duo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
}

/* ---------- 合作交流 ---------- */
.contact { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 241, 199, .35), rgba(215, 235, 246, .5)); }
.contact-grid { display: grid; gap: 36px; }
.contact-copy p { margin-top: 16px; max-width: 38em; }
.contact-side { display: grid; gap: 20px; justify-items: center; }
.qrs { display: flex; gap: 20px; justify-content: center; }
.qrs figure { width: 150px; }
.qr { width: 100%; padding: 8px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.qr img { box-shadow: none; border-radius: 4px; }
.qr::after { right: 4px; bottom: 4px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1.3fr) auto; align-items: center; gap: 56px; }
  .qrs figure { width: 164px; }
}

/* ---------- 页脚 ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: var(--muted); }
.footer-mark { width: 26px; height: 26px; }
.footer-inner a { margin-left: auto; color: var(--blue); text-decoration: none; padding: 8px 0; }
.footer-inner a:hover { text-decoration: underline; }

/* ---------- 大图查看 ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff;
}
.lightbox::backdrop { background: rgba(10, 26, 38, .88); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-body { flex: 1 1 auto; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 64px 16px 8px; }
.lb-body img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px);
  object-fit: contain; border-radius: 10px; background: #fff;
}
/* 原比例完整显示；手机可双指放大查看 Web 细节 */
.lightbox.is-qr .lb-body img { width: min(80vw, 480px); }
.lb-caption { flex: none; text-align: center; padding: 10px 16px 18px; font-size: 15px; }
.lb-close {
  position: fixed; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: rgba(0, 0, 0, .35);
  color: #fff; cursor: pointer; font-size: 15px;
}
.lb-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lb-close:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zoom::after { transition: none; }
}
