/* style.css */
/* --- 1. 声明自定义字体 --- */
@font-face {
  font-family: 'Rubik'; /* 我们给这个字体家族统一命名为 'Rubik' */
  src: url('/assets/fonts/Rubik/Rubik-Medium.ttf'); /* 指定字体文件的路径 */
  font-weight: 500; /* Medium 通常对应字重 500 */
}
@font-face {
  font-family: 'Rubik'; /* 家族名称保持一致 */
  src: url('/assets/fonts/Rubik/Rubik-Regular.ttf'); 
  font-weight: 400; 
}
@font-face {
  font-family: 'Rubik'; /* 家族名称保持一致 */
  src: url('/assets/fonts/Rubik/Rubik-SemiBold.ttf'); /* 指定 SemiBold 字体文件的路径 */
  font-weight: 600; /* SemiBold 通常对应字重 600 */
}
/* --- 2. 声明装饰字体 --- */
@font-face {
  font-family: 'SignPainter'; /* 给这个新字体家族命名，让它独立出来 */
  src: url('/assets/fonts/SignPainter.ttc'); /* ！！注意！！：这里需要替换成你实际的字体文件路径 */
  /* 如果这个字体只有一个字重，可以不写 font-weight，浏览器会默认为 normal (400) */
}

/* === 基础样式 === */
body {
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
}

/* === Header 头部整体样式 === */
.site-header {
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
  /* 让里面的 nav-container 宽度为 100% */
  width: 100%; 
}
/* 选中态（默认页面下的 About） */
.nav-item[aria-current="page"],
.nav-item.is-active {
  background: #F0F3F6;
  border-radius: 9999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
}

.brand-text {
  font-family: 'SignPainter', sans-serif;
  font-weight: 400;
  font-size: 36px;
  color: #333;
  line-height: 1;
}

/* === 导航栏内部容器样式 (关键修改) === */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 上下 10px；右 30px；左 60px（按你之前的左侧视觉保留） */
  padding: 10px 30px 10px 60px;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1400px;
}

/* === 品牌/学生名字 的样式 === */
.brand {
  font-family: 'Rubik', sans-serif; /* 使用 Rubik 字体，如果加载失败则使用无衬线字体 */
  font-weight: 600; /* 指定使用 600 字重，浏览器会自动匹配到 Rubik-SemiBold */
  font-size: 36px;
  text-decoration: none;
  color: #333;
}

/* 导航容器：行内 tabs，间距 10px */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 10px;              /* 容器间距=10px（你写的 10p 我理解为 10px） */
}

/* 每个 tab：最小/最大宽度、内边距、文字大小、居中、可点击 */
.nav-item {
  display: inline-flex;           /* 让内容水平/垂直居中 */
  align-items: center;
  justify-content: center;
  min-width: 90px;                /* 最小宽度 90px */
  max-width: 120px;               /* 最大宽度 120px */
  padding: 10px 20px;             /* 上下=10px，左右=20px */
  font-size: 16px;                /* 文字大小 16 */
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  color: #333;
  border-radius: 0;               /* 初始无圆角 */
  transition: background-color 160ms ease, border-radius 160ms ease, transform 120ms ease;
  box-sizing: border-box;
}

/* 悬浮态：背景 #EFF2F5 且出现圆角（pill 感觉更现代） */
.nav-item:hover,
.nav-item:focus-visible {
  background: #EFF2F5;
  border-radius: 9999px;          /* 明显圆角；如果你要小圆角，改成 12px */
}

/* 可选的小交互：按下轻微缩放 */
.nav-item:active {
  transform: translateY(1px);
}

/* 焦点可见性（键盘导航更友好） */
.nav-item:focus-visible {
  outline: 2px solid #9bbcf5;     /* 你网站主色可替换 */
  outline-offset: 2px;
}


.banner-curious {
  width: 100%; /* 设置宽度为300像素 */
  height: auto; /* 高度会自动按比例缩放，防止图片变形 */
  border-radius: 0px; /* 额外加个圆角，让图片更好看 */
}

/* ========== About / Intro Section ========== */
:root{
  --text: #0f0f0f;
  --muted: #4a4a4a;
  --primary: #1147ff;     /* 标题用的深蓝 */
  --badge-bg: #7fd3e8;    /* 青色标签底 */
  --badge-text: #08313c;
  --maxw: 1200px;
  --space-xl: 56px;
  --space-lg: 40px;
  --space-md: 24px;
  --space-sm: 12px;
}

/* 通用容器 */
.container{
  max-width: var(--maxw);
  padding: 0 60px;           /* 与你的导航保持一致的左右内边距 */
  margin: 0 auto;
  box-sizing: border-box;
}

.intro{
  background: #fff;
  padding: var(--space-xl) 0;
}

/* 两列布局：左文右图；窄屏改为单列 */
.intro-grid{
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

/* 左列 */
.intro-title{
  margin: 0 0 var(--space-md) 0;
  line-height: 1.05;
  font-weight: 600;                        /* 使用 Rubik SemiBold(600) */
  color: var(--primary);
  /* 兼顾不同屏幕的可读性：40px~96px 自动缩放 */
  font-size: clamp(40px, 8vw, 96px);
}
.intro-title span{ display: inline-block; margin-bottom: 4px; }

/* 标签（badges） */
.badges{
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.badge{
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--badge-bg);
  color: var(--badge-text);
  user-select: none;
}

/* 正文段落 */
.intro-paragraph{
  margin: 0 0 var(--space-md) 0;
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;                         /* Rubik Medium(500) 也可视需要改 */
  font-size: 18px;
  max-width: 58ch;                          /* 控制理想读宽 */
}

/* 右列：插画 */
.intro-figure{ margin: 0; }
.intro-image{
  width: 100%;
  max-width: 460px;                         /* 不让图片无限放大 */
  height: auto;
  display: block;
  margin-left: auto;                        /* 让图片贴右对齐 */
}

/* ===== 响应式布局 ===== */
@media (max-width: 1024px){
  .intro-grid{
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .intro-image{
    margin: 0 auto;                         /* 小屏居中图片 */
  }
}
@media (max-width: 520px){
  .container{ padding: 0 20px; }            /* 小屏缩小左右边距 */
  .badge{ font-size: 15px; padding: 8px 12px; }
  .intro-paragraph{ font-size: 16px; }
}