/* ==========================================================================
   ModuCore 静态复刻 — 基础样式（base.css）
   --------------------------------------------------------------------------
   内容：设计 Token / 现代 Reset / 排版 / 通用布局与组件 / 滚动显现动画
   依据：moducore.ai 原站全局样式（Tailwind preflight 基础层 + 自定义 CSS）
   说明：本文件为全站共享样式，页面专属样式见各 page-*.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计 Token
   品牌视觉：Aurora Teal 极光青绿 — 墨绿黑底 + 薄荷绿/天蓝双强调
   -------------------------------------------------------------------------- */
:root {
  --ink: #041210;                    /* 页面主背景：墨绿黑（极光夜色） */
  --ink-soft: #071b16;               /* 柔和深色 */
  --panel: #0a201c;                  /* 面板 / 卡片表面 */
  --line: hsla(158, 42%, 88%, .13);  /* 通用边线：薄荷调半透明白 */
  --line-accent: rgba(46, 230, 168, .22);          /* 强调边线：薄荷绿半透明 */
  --accent: #2ee6a8;                 /* 品牌强调色：薄荷绿 */
  --accent-deep: #23c28b;            /* 深薄荷绿（hover 深化） */
  --accent-2: #4cc9f0;               /* 辅助色：极光天蓝 */
  --accent-glow: rgba(46, 230, 168, .2);           /* 强调色辉光 */
  --on-accent: #02150d;              /* 强调色之上的深色文字 */
  --grad-accent: linear-gradient(92deg, #2ee6a8, #4cc9f0);  /* 极光渐变 */
  --paper: #effcf6;                  /* 纸白（薄荷调） */
  --text: #edfbf5;                   /* 主文本 */
  --muted: #93b8ac;                  /* 弱化文字：青灰绿 */

  --font-sans: 'Arboria-Medium', Arial, sans-serif;              /* 西文几何无衬线 */
  --font-ja: 'Mplus2-Regular', 'Noto Sans JP', sans-serif;       /* 日文 */

  --ease-out: cubic-bezier(.22, 1, .36, 1);   /* 揭示动画缓动（easeOutQuint 风格） */
}

/* --------------------------------------------------------------------------
   2. 现代 Reset
   等效原站 Tailwind v4 preflight，按本站实际用到的元素精简
   -------------------------------------------------------------------------- */
*,
::before,
::after {
  border: 0 solid;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;           /* 锚点平滑滚动 */
  -webkit-tap-highlight-color: transparent;
}

body {
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

ul, ol, menu {
  list-style: none;
}

img, svg, video, canvas, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  height: auto;
  max-width: 100%;
}

button, input, optgroup, select, textarea {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  appearance: button;               /* 保留原生按钮交互 */
}

button[type="button"],
input[type="submit"],
input[type="reset"] {
  appearance: none;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. 全局基础
   -------------------------------------------------------------------------- */
html,
body {
  background: var(--ink);
}

body {
  color: var(--text);
  font-family: var(--font-sans);
}

/* 日文环境字体（原站 :lang(ja) 规则） */
:lang(ja) {
  font-family: var(--font-ja);
}

button, input, select, textarea {
  font: inherit;
}

/* 文字选中：薄荷绿底 + 深色字（品牌细节） */
::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.app-shell {
  background: var(--ink);
  min-height: 100vh;
}

/* 防止区块内溢出造成横向滚动 */
.page {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   4. 布局原语
   -------------------------------------------------------------------------- */
/* 内容容器：最宽 1180px，两侧留 20px */
.wrap {
  margin: 0 auto;
  width: min(1180px, calc(100% - 40px));
}

/* 区块纵向节奏：桌面 112px → 平板 82px → 手机 68px */
.section {
  padding: 112px 0;
  position: relative;
}

.section-dark {
  background: var(--ink);
}

.section-soft {
  background: #061a13;
}

/* --------------------------------------------------------------------------
   5. 排版体系
   -------------------------------------------------------------------------- */
/* 眉标题：全大写 + 宽字距 + lime */
.eyebrow {
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

/* 超大展示标题（subhero 用） */
.display {
  font-size: clamp(2.65rem, 6vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .97;
  max-width: 920px;
}

/* 区块大标题 */
.section-title {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 0;
  max-width: 780px;
}

/* 导语段落 */
.lead {
  color: #b9d4c9;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.75;
  margin: 24px 0 0;
  max-width: 740px;
}

.lime {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. 通用网格与卡片
   -------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

/* 深色通用卡片：薄荷绿编号 + 大上边距标题的排版节奏 */
.card {
  background: rgba(46, 230, 168, .05);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}

.card-number {
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .14em;
}

.card h3 {
  font-size: 1.45rem;
  font-weight: 500;
  margin: 58px 0 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. 按钮
   胶囊形 + lime 描边；hover 上浮 + lime 辉光
   -------------------------------------------------------------------------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  text-decoration: none;
  transition: .25s ease;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.button:hover {
  box-shadow: 0 10px 32px var(--accent-glow);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. Subhero 内页页头
   右上角薄荷绿径向光晕 + 底部分隔线
   -------------------------------------------------------------------------- */
.subhero {
  background:
    radial-gradient(circle at 78% 20%, rgba(46, 230, 168, .16), transparent 32%),
    #041210;
  border-bottom: 1px solid var(--line);
  padding: 150px 0 90px;
}

.subhero .display {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

/* --------------------------------------------------------------------------
   9. 网格线式数据布局（Facts）
   共享 1px 边线的"表格化"网格
   -------------------------------------------------------------------------- */
.facts {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 170px;
  padding: 25px;
}

.fact strong {
  color: var(--accent);
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 35px;
}

.fact span {
  color: #b9d4c9;
  line-height: 1.55;
}

/* 左右分栏区块标题（标题 + 右侧导语） */
.section-heading {
  align-items: flex-end;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 55px;
}

.section-heading .lead {
  margin: 0;
  max-width: 480px;
}

/* --------------------------------------------------------------------------
   10. 滚动显现动画（Reveal on Scroll）
   默认隐藏 + 下移 26px，进入视口后过渡到可见。
   no-js 保护：<html> 默认带 no-js 类，JS 加载后移除；
   无 JS 环境下内容始终可见（渐进增强）。
   -------------------------------------------------------------------------- */
html:not(.no-js) [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
}

html:not(.no-js) [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   11. 响应式
   断点：900px（平板） / 640px（手机）
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .section {
    padding: 82px 0;
  }

  .facts,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    display: block;
  }

  .section-heading .lead {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1180px, 100% - 28px);
  }

  .section {
    padding: 68px 0;
  }

  .facts,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .display {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .card h3 {
    margin-top: 38px;
  }

  .subhero {
    padding: 120px 0 65px;
  }
}

/* --------------------------------------------------------------------------
   12. 无障碍：减少动态效果偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  ::before,
  ::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
