/* ============================================
   个人主页 —— 融合四站风格 · 蓝灰主题
   灰机wiki(导航/卡片) + 陕历博数字展厅(低饱和底/时间线/大数字)
   + 东南大学官网(严谨排版/圆形指标卡) + 明日方舟官网(细网格/过渡动画/高亮)
   ============================================ */

:root {
  /* 蓝灰色系 —— 柔和低饱和底色 */
  --bg:          #E9EDF2;   /* 页面主底色（陕历博风格低饱和） */
  --bg-soft:     #F2F5F8;
  --card:        #FFFFFF;
  --primary:     #5A7A99;   /* 主蓝灰 */
  --primary-dk:  #3D5A78;   /* 深蓝灰（标题/导航） */
  --accent:      #4A90D9;   /* 明日方舟高亮强调色 */
  --accent-soft: #D6E6F5;
  --line:        #D4DCE4;
  --text:        #2B3A4A;
  --text-light:  #6B7B8C;
  --shadow:      0 6px 20px rgba(61,90,120,.10);
  --radius:      14px;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  /* 明日方舟风格：细网格/点阵背景 */
  background-image:
    linear-gradient(rgba(90,122,153,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,122,153,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  min-height: 100vh;
}

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

/* ============ 1. 灰机wiki 风格：顶部导航栏 ============ */
.nav {
  position: sticky; top:0; z-index:100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(61,90,120,.06);
}
.nav-inner {
  max-width: 1100px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 24px; height:62px;
}
.nav-logo {
  display:flex; align-items:center; gap:10px;
  font-weight:700; font-size:18px; color:var(--primary-dk);
  letter-spacing:1px;
}
.nav-logo .mark {
  width:34px; height:34px; border-radius:9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff; display:grid; place-items:center; font-size:16px;
}
.nav-links { display:flex; gap:6px; }
.nav-links a {
  padding:8px 16px; border-radius:8px; font-size:15px;
  color: var(--text-light); transition: all .25s ease;
}
.nav-links a:hover { background:var(--accent-soft); color:var(--primary-dk); }
.nav-links a.active {
  background: var(--primary-dk); color:#fff;
  box-shadow: 0 3px 10px rgba(61,90,120,.25);
}

/* ============ 通用容器 ============ */
.container { max-width:1100px; margin:0 auto; padding: 40px 24px 60px; }

/* 区块标题（东南大学风格：正式严谨） */
.section-title {
  display:flex; align-items:center; gap:12px;
  font-size:22px; font-weight:700; color:var(--primary-dk);
  margin-bottom:26px;
}
.section-title::before {
  content:""; width:5px; height:24px; border-radius:3px;
  background: linear-gradient(var(--accent), var(--primary));
}
.section-title small { font-size:13px; color:var(--text-light); font-weight:400; }

/* ============ Hero 区 ============ */
.hero {
  text-align:center; padding: 50px 20px 30px;
}
.hero .avatar {
  width:110px; height:110px; border-radius:50%;
  margin:0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display:grid; place-items:center;
  color:#fff; font-size:42px; font-weight:700;
  box-shadow: 0 8px 24px rgba(74,144,217,.3);
  border: 4px solid #fff;
}
.hero h1 { font-size:32px; color:var(--primary-dk); letter-spacing:2px; }
.hero .sub { color:var(--text-light); margin-top:8px; font-size:15px; }
.hero .tagline {
  display:inline-block; margin-top:16px; padding:6px 18px;
  background:var(--accent-soft); color:var(--primary-dk);
  border-radius:20px; font-size:13px;
}

/* ============ 3. 东南大学风格：圆形信息卡片（核心指标） ============ */
.metrics {
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap:20px; margin: 40px 0;
}
.metric {
  background:var(--card); border-radius:var(--radius);
  padding:28px 16px; text-align:center;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.metric:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(61,90,120,.16); }
.metric .ring {
  width:84px; height:84px; border-radius:50%;
  margin:0 auto 14px;
  display:grid; place-items:center;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent-soft));
  border: 3px solid var(--accent);
}
/* 陕历博风格：重点数字放大 */
.metric .num {
  font-size:30px; font-weight:800; color:var(--primary-dk);
  font-variant-numeric: tabular-nums;
}
.metric .num span { font-size:15px; font-weight:600; color:var(--accent); }
.metric .label { font-size:13px; color:var(--text-light); margin-top:6px; }

/* ============ 卡片式模块化（灰机wiki） ============ */
.card-grid {
  display:grid; grid-template-columns: repeat(2,1fr);
  gap:22px; margin-top:8px;
}
.card {
  background:var(--card); border-radius:var(--radius);
  border:1px solid var(--line); box-shadow:var(--shadow);
  padding:26px; transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow:0 14px 30px rgba(61,90,120,.15); }
.card h3 {
  font-size:17px; color:var(--primary-dk); margin-bottom:12px;
  display:flex; align-items:center; gap:8px;
}
.card h3 .dot {
  width:9px; height:9px; border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft);
}
.card p, .card li { font-size:14px; color:var(--text-light); }
.card ul { padding-left:18px; }
.card ul li { margin-bottom:6px; }

.tag {
  display:inline-block; padding:3px 12px; margin:4px 6px 0 0;
  background:var(--bg-soft); border:1px solid var(--line);
  border-radius:14px; font-size:12px; color:var(--primary-dk);
}

/* ============ 2. 陕历博风格：节点时间线 ============ */
.timeline {
  position:relative; margin:20px 0 10px; padding-left:30px;
}
.timeline::before {
  content:""; position:absolute; left:8px; top:6px; bottom:6px;
  width:2px; background:linear-gradient(var(--primary), var(--accent));
}
.tl-item { position:relative; padding-bottom:26px; }
.tl-item::before {
  content:""; position:absolute; left:-28px; top:6px;
  width:14px; height:14px; border-radius:50%;
  background:#fff; border:3px solid var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft);
}
.tl-item .time { font-size:13px; color:var(--accent); font-weight:700; letter-spacing:1px; }
.tl-item h4 { font-size:16px; color:var(--primary-dk); margin:4px 0; }
.tl-item p { font-size:14px; color:var(--text-light); }

/* 时间线里的重点数字放大 */
.bignum {
  font-size:26px; font-weight:800; color:var(--accent);
  font-variant-numeric:tabular-nums;
}

/* ============ 留言板（预留功能） ============ */
.guestbook {
  background:var(--card); border-radius:var(--radius);
  border:1px solid var(--line); box-shadow:var(--shadow);
  padding:30px; margin-top:10px;
}
.guestbook .placeholder {
  text-align:center; padding:30px 10px;
  border:2px dashed var(--line); border-radius:12px;
  background:var(--bg-soft); color:var(--text-light);
}
.guestbook .placeholder .icon { font-size:38px; margin-bottom:10px; }
.guestbook .form-row { display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }
.guestbook input, .guestbook textarea {
  flex:1; min-width:200px; padding:12px 14px;
  border:1px solid var(--line); border-radius:10px;
  font-size:14px; font-family:inherit; background:var(--bg-soft);
  transition: border-color .25s, box-shadow .25s;
}
.guestbook input:focus, .guestbook textarea:focus {
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}
.btn {
  display:inline-block; padding:12px 28px; border:none; cursor:pointer;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff; font-size:15px; border-radius:10px;
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow:0 8px 18px rgba(74,144,217,.35); }

/* ============ 页脚 ============ */
.footer {
  text-align:center; padding:26px; margin-top:20px;
  color:var(--text-light); font-size:13px;
  border-top:1px solid var(--line); background:rgba(255,255,255,.6);
}
.footer b { color:var(--primary-dk); }

/* ============ 4. 明日方舟风格：平滑过渡动画 ============ */
.fade-up { opacity:0; transform:translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.show { opacity:1; transform:translateY(0); }

/* 跳转按钮组 */
.jump-bar { display:flex; gap:14px; justify-content:center; margin:36px 0 0; flex-wrap:wrap; }

/* ============ 响应式 ============ */
@media (max-width: 820px) {
  .metrics { grid-template-columns: repeat(2,1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .nav-links a { padding:8px 10px; font-size:14px; }
}
