/* Möbius official site — design tokens
   视觉交给页面使用；文案（含英文）以文档「」句为准，英文由 grok 统一补。 */

@font-face {
  font-family: "Noto Sans SC";
  src: url("../fonts/NotoSansSC-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("../fonts/NotoSansSC-Bold.woff") format("woff");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color — base */
  --bg: #F4F7FA;
  --bg-ice: #E5EDF1;
  --bg-white: #FFFFFF;
  --title: #14397D;
  --title-soft: #1C3F81;
  --ink: #12233A;
  --ink-soft: #3A4A63;
  --muted: #7A8494;
  --wordmark: #A0A0A0;
  --line: rgba(20, 57, 125, 0.12);
  --cyan: #2CAFCB;
  --cyan-deep: #2C8FBC;
  --violet: #5757A1;
  --violet-deep: #504796;

  /* Column accents — same family, slight hue shift */
  --accent-about: #14397D;      /* 关于莫必斯：深蓝 */
  --accent-ideas: #5757A1;      /* 思想广场：紫 */
  --accent-edition: #2CAFCB;    /* 本届赛事：青 */
  --accent-works: #6B7BC8;      /* 理想作品：稍暖的蓝紫 */
  --accent-guide: #2BA3A8;      /* 创作导引：青绿 */
  --accent-forum: #3E4E96;      /* 专题研讨：靛 */
  --accent-contact: #5A6B80;    /* 联系我们：中性蓝灰 */

  /* Type */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei UI", "Microsoft YaHei",
               Inter, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
                  "Microsoft YaHei UI", "Microsoft YaHei",
                  Inter, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  /* Type scale (desktop). 手机见下方 media。单位用 rem，根字号 16px。 */
  --fs-hero: 4.5rem;       /* 72px 首页主标题 */
  --fs-hero-sub: 1.75rem;  /* 28px 首页副标题 */
  --fs-hero-small: 0.9375rem; /* 15px 首屏小字 */
  --fs-h1: 3.5rem;         /* 56px 栏目首屏主标题 */
  --fs-h2: 2.25rem;        /* 36px 区块标题 */
  --fs-h3: 1.5rem;         /* 24px 小节标题 */
  --fs-body: 1.125rem;     /* 18px 正文 */
  --fs-sub: 1rem;          /* 16px 辅助说明 */
  --fs-nav: 0.9375rem;     /* 15px 导航 */
  --fs-caption: 0.8125rem; /* 13px 注释、页脚 */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --lh-title: 1.15;
  --lh-body: 1.75;
  --tracking-title: 0.02em;
  --tracking-nav: 0.04em;

  /* Space — Apple-like generous rhythm */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 128px;
  --page-x: 120px;
  --nav-h: 64px;
  --hero-h: 100vh;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 280ms;
  --dur-slow: 600ms;
}

@media (max-width: 1024px) {
  :root {
    --fs-hero: 3rem;        /* 48px */
    --fs-hero-sub: 1.375rem;
    --fs-h1: 2.5rem;
    --fs-h2: 1.875rem;
    --page-x: 56px;
    --space-6: 72px;
    --space-7: 96px;
  }
}

@media (max-width: 640px) {
  :root {
    --fs-hero: 2.25rem;     /* 36px */
    --fs-hero-sub: 1.125rem;
    --fs-hero-small: 0.8125rem;
    --fs-h1: 1.875rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
    --page-x: 28px;
    --nav-h: 56px;
    --space-5: 48px;
    --space-6: 56px;
    --space-7: 72px;
  }
}


/* English titles run longer; shrink the hero type so buttons stay above the ring. */
@media (max-width: 1024px) {
  html[lang="en"] {
    --fs-hero: 2.375rem;
    --fs-hero-sub: 1.25rem;
  }
}
@media (max-width: 640px) {
  html[lang="en"] {
    --fs-hero: 1.75rem;      /* 28px, keep the English title to two or three lines */
    --fs-hero-sub: 1rem;
    --fs-hero-small: 0.75rem;
    --lh-title: 1.2;
  }
}

/* First-screen typography over imagery */
.hero-copy,
.section-hero-copy {
  color: var(--title);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.hero-copy h1,
.section-hero-copy h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-title);
  letter-spacing: var(--tracking-title);
}
