@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;700&display=swap');

/* 复用算数-TMS 移动端骨架，配色改为海外工厂太阳能金 */
:root {
  --m-bg: #f3eee4;
  --m-card: #fffdf8;
  --m-ink: #102033;
  --m-muted: #6d7a86;
  --m-accent: #1c8c7a;
  --m-accent-2: #e39b12;
  --m-danger: #c45c4a;
  --m-ok: #0d6b58;
  --m-line: #d9d0c0;
  --m-top: #0d1c2c;
}
* { box-sizing: border-box; }
body.m-body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--m-bg);
  color: var(--m-ink);
  padding-bottom: 24px;
}
.m-top {
  position: sticky; top: 0; z-index: 10;
  background: var(--m-top); color: #fff;
  padding: .85rem 1rem .75rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: .5rem;
}
.lang-switch {
  display: inline-flex;
  border: 1.5px solid #e39b12;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}
.lang-switch button {
  border: 0; background: transparent; color: #16324f;
  padding: .4rem .7rem; font-size: .82rem; font-weight: 800; cursor: pointer;
}
.lang-switch button + button { border-inline-start: 1px solid #d9d0c0; }
.lang-switch button.on { background: #e39b12; color: #1a1204; }
.lang-switch--hero button { min-width: 4.4rem; padding: .45rem .75rem; }
html[dir="rtl"] body.m-body {
  font-family: "Noto Naskh Arabic", "PingFang SC", "Noto Sans SC", sans-serif;
}
.m-brand-row { display: flex; align-items: center; gap: .55rem; }
.m-logo { height: 28px; }
.m-logout { color: #9fb2c2; text-decoration: none; font-size: .82rem; }
.m-main { padding: .9rem; max-width: 560px; margin: 0 auto; }
.m-hero {
  background: linear-gradient(135deg, #16324f, #1c8c7a);
  color: #fff; border-radius: 12px; padding: 1.1rem 1rem; margin-bottom: 1rem;
}
.m-hero h1 { margin: 0 0 .35rem; font-size: 1.25rem; }
.m-hero p { margin: 0; opacity: .88; font-size: .88rem; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1rem; }
a.m-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--m-card); border: 1px solid var(--m-line);
  border-radius: 10px; padding: .95rem; font-weight: 700;
}
.m-panel {
  background: var(--m-card); border: 1px solid var(--m-line);
  border-radius: 10px; padding: .95rem; margin-bottom: 1rem;
}
.m-panel h3 { margin: 0 0 .5rem; font-size: 1rem; }
.m-panel ul { margin: 0; padding-left: 1.1rem; }
.m-panel .danger { color: var(--m-danger); }
.m-panel .warn { color: #8a5a00; }
.m-btn {
  display: block; width: 100%; min-height: 44px; margin-top: .7rem;
  border: 0; border-radius: 8px; background: var(--m-accent-2);
  color: #1a1204; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.m-btn.ghost { background: #fff; border: 1px solid var(--m-line); color: var(--m-ink); }
.m-main label { display: block; margin: .6rem 0; font-size: .85rem; font-weight: 600; }
.m-main input {
  width: 100%; min-height: 44px; margin-top: .3rem;
  padding: .7rem; border: 1px solid var(--m-line); border-radius: 8px; font-size: 16px;
}
