/* ============================================================
   小明的个人主页 · 清新青绿主题
   ============================================================ */

:root {
  --accent: #0d9488;
  --accent-2: #0ea5e9;
  --accent-soft: #ecfdf8;
  --text: #26303a;
  --text-2: #7a8590;
  --bg: #f6f9f9;
  --card: #ffffff;
  --line: #e6edee;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(13, 148, 136, 0.07);
  --shadow-hover: 0 10px 28px rgba(13, 148, 136, 0.16);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.brand small { font-size: 11px; color: var(--text-2); font-weight: 400; display: block; line-height: 1; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: 0.15s;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent); background: var(--accent-soft); }
.nav a.active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 600; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero::before {
  content: "";
  position: absolute;
  left: 8%;
  bottom: -120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.hero .wrap {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-top: 54px;
  padding-bottom: 54px;
  position: relative;
  z-index: 1;
}
.hero .avatar-xl {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  flex: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.hero h1 { font-size: 38px; margin-bottom: 10px; letter-spacing: 1px; }
.hero .slogan { font-size: 17px; opacity: 0.95; margin-bottom: 8px; }
.hero .desc { font-size: 14px; opacity: 0.82; max-width: 560px; margin-bottom: 22px; }
.hero .skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.hero .skills span {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 12px;
  padding: 3px 13px;
  border-radius: 20px;
}
.hero .btns { display: flex; gap: 14px; }
.hero .btn-white { background: #fff; color: var(--accent); }
.hero .btn-white:hover { background: #eafef9; }
.hero .btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(13, 148, 136, 0.3); }
.btn-outline { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); box-shadow: none; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- 区块标题 ---------- */
.section { padding: 46px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 24px; }
.section-head h2 em { color: var(--accent); font-style: normal; }
.section-head .more { font-size: 13px; color: var(--text-2); }
.section-head .more:hover { color: var(--accent); }

/* ---------- 入口卡片（首页） ---------- */
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.entry-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 24px 20px;
  transition: 0.25s;
  border: 2px solid transparent;
  display: block;
}
.entry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #bfeee6; }
.entry-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.entry-card b { display: block; font-size: 16px; margin-bottom: 5px; }
.entry-card span { font-size: 13px; color: var(--text-2); }

/* ---------- 数据统计条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 26px 0 10px;
}
.stat { text-align: center; }
.stat b { font-size: 26px; color: var(--accent); font-weight: 800; }
.stat span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ---------- 关于我 ---------- */
.page-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 40px;
  margin: 26px 0 40px;
}
.page-card h1 { font-size: 24px; margin-bottom: 16px; }
.page-card h2 { font-size: 18px; margin: 26px 0 12px; padding-left: 11px; border-left: 4px solid var(--accent); line-height: 1.3; }
.page-card p { margin-bottom: 12px; color: #45525e; }
.page-card ul.dash li { padding-left: 20px; position: relative; margin-bottom: 8px; color: #45525e; }
.page-card ul.dash li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

.timeline { margin-top: 10px; }
.timeline li {
  display: flex;
  gap: 16px;
  padding: 9px 0 9px 4px;
  border-left: 2px solid var(--line);
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #45525e;
}
.timeline li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: -6px;
  top: 18px;
}
.timeline li b { flex: none; width: 82px; color: var(--accent); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; margin-top: 6px; }
.info-grid li { font-size: 14px; color: #45525e; display: flex; gap: 10px; }
.info-grid li b { color: var(--text); flex: none; width: 74px; font-weight: 500; }

/* ---------- 作品展示 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 26px 0 40px; }
.work-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.25s;
  display: block;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.work-cover { height: 170px; display: flex; align-items: center; justify-content: center; }
.work-cover svg { height: 120px; }
.work-body { padding: 18px 22px 22px; }
.work-body h3 { font-size: 17px; margin-bottom: 6px; }
.work-body p { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.work-body .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-body .tags span {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* ---------- 生活相册 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 40px; }
.photo-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.25s;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.photo-card .pic { height: 180px; overflow: hidden; }
.photo-card .pic svg { width: 100%; height: 100%; display: block; }
.photo-card .cap { padding: 12px 16px; }
.photo-card .cap b { font-size: 14px; display: block; }
.photo-card .cap span { font-size: 12px; color: var(--text-2); }

/* ---------- 学习笔记 ---------- */
.note-list { margin: 26px 0 40px; }
.note-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 26px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: 0.2s;
}
.note-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.note-item .date {
  flex: none;
  width: 76px;
  text-align: center;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 8px 0;
}
.note-item .date b { display: block; font-size: 20px; color: var(--accent); font-weight: 800; line-height: 1.2; }
.note-item .date span { font-size: 11px; color: var(--text-2); }
.note-item .info { flex: 1; }
.note-item .info .cat { font-size: 12px; color: var(--accent); font-weight: 600; }
.note-item .info h3 { font-size: 16px; margin: 2px 0 4px; }
.note-item .info p { font-size: 13px; color: var(--text-2); }
.note-item .go { color: var(--accent); font-size: 13px; font-weight: 600; flex: none; }

/* ---------- 留言板 ---------- */
.msg-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; margin: 26px 0 44px; }
.msg-form {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 30px;
}
.msg-form h3, .msg-list h3 { font-size: 17px; margin-bottom: 18px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.form-item input, .form-item textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: 0.15s;
  font-family: inherit;
  background: #fbfdfd;
}
.form-item input:focus, .form-item textarea:focus { border-color: var(--accent); background: #fff; }
.form-item textarea { height: 110px; resize: vertical; }
.form-tip { font-size: 12px; color: var(--text-2); margin-bottom: 14px; }
.form-msg { font-size: 13px; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; display: none; }
.form-msg.ok { display: block; background: #e8faf3; color: #0a7d5f; border: 1px solid #b5ead9; }
.form-msg.err { display: block; background: #fdeeee; color: #d64545; border: 1px solid #f5cccc; }

.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
}
.msg-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.msg-card .head .ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}
.msg-card .head b { font-size: 14px; }
.msg-card .head span { font-size: 12px; color: var(--text-2); margin-left: auto; }
.msg-card p { font-size: 13px; color: #45525e; }

.contact-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 26px;
  height: fit-content;
  position: sticky;
  top: 84px;
}
.contact-card h3 { font-size: 17px; margin-bottom: 14px; }
.contact-card li { display: flex; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 12px; opacity: 0.95; }
.contact-card li svg { flex: none; }
.contact-card .qr {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin-top: 16px;
}
.contact-card .qr svg { width: 100%; height: auto; display: block; }
.contact-card .qr p { font-size: 11px; color: var(--text-2); margin-top: 6px; }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--text-2); padding-top: 16px; }
.crumb a:hover { color: var(--accent); }
.crumb em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer { background: #1e2a30; color: #9fb0b8; margin-top: 30px; }
.site-footer .wrap { padding: 36px 22px 18px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid #2e3d45; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-grid ul li { font-size: 13px; margin-bottom: 8px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 300px; }
.footer-bottom { text-align: center; font-size: 12px; padding-top: 16px; line-height: 2; color: #6e7f88; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero .wrap { flex-direction: column; text-align: center; padding-top: 40px; }
  .hero .btns, .hero .skills { justify-content: center; }
  .hero .desc { margin-left: auto; margin-right: auto; }
  .entries { grid-template-columns: 1fr 1fr; }
  .works-grid, .gallery, .msg-layout, .info-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav { overflow-x: auto; }
  .entries { grid-template-columns: 1fr; }
  .note-item { flex-wrap: wrap; }
}

.beian-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}
.beian-icon{width:20px;height:22px;vertical-align:middle;margin-right:4px}
.beian-icp{margin-left:14px}
.beian-row a{color:inherit;text-decoration:none}
.beian-row a:hover{text-decoration:underline}
