/* ============================================================
   漠漠引导页 · 站点样式
   原 mdui + main.css + index.css + detaile.css 合并重写，零依赖
   图片使用相对路径，CSS 和 img 保持同级目录关系即可整体搬迁
   ============================================================ */

/* ---------- 基础 ---------- */
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  margin:0;
  background:#2e2e2c;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",
              "Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
::selection{color:#e0e0e0;background:rgba(255,64,129,.35)}
a{color:inherit}

/* ---------- 背景 ---------- */
#rin-bg{
  position:fixed;inset:0;z-index:-2;
  background:#818181 url("../img/background.jpg") center / cover no-repeat;
  background-attachment:fixed;
}
#rin-bg::after{
  content:"";position:fixed;inset:0;z-index:-1;
  background:rgba(66,66,66,.6);
}

/* ---------- 分隔线 ---------- */
.rin-tr{
  width:100%;height:2px;
  background:rgba(255,255,255,.3);
}

/* ---------- 按钮（替代 mdui-btn / mdui-btn-raised） ---------- */
.btn{
  display:inline-block;
  min-width:64px;height:36px;line-height:36px;
  padding:0 16px;
  border-radius:2px;
  color:#fff;
  font-size:14px;font-weight:500;
  text-align:center;text-decoration:none;
  border-bottom:1.5px solid transparent;
  box-shadow:0 3px 1px -2px rgba(0,0,0,.2),
             0 2px 2px 0 rgba(0,0,0,.14),
             0 1px 5px 0 rgba(0,0,0,.12);
  transition:box-shadow .2s,background-color .3s,border-color .3s;
}
.btn:hover{
  box-shadow:0 2px 4px -1px rgba(0,0,0,.2),
             0 4px 5px 0 rgba(0,0,0,.14),
             0 1px 10px 0 rgba(0,0,0,.12);
}
.btn:active{background:rgba(255,255,255,.18)}

.btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.btns .btn{min-width:100px}
/* 相邻按钮之间的细竖线（原版 mdui 阴影叠出来的观感） */
.btns .btn:not(:last-child){border-right:1px solid rgba(255,255,255,.16)}

.btn-blue{border-bottom-color:#28A9E0}
.btn-blue:hover{background-color:#28A9E0}
.btn-pink{border-bottom-color:#F9A2A8}
.btn-pink:hover{background-color:#F9A2A8}
.btn-black{border-bottom-color:#353535}
.btn-black:hover{background-color:#353535}

/* ---------- 卡片（替代 mdui-card） ---------- */
.rin-card{
  margin:20px 0;
  padding:20px 25px 0;
  border-radius:2px;
  background:rgba(66,66,66,.3);
}
.rin-card-title{font-size:30px;color:#fff;margin-bottom:15px;line-height:1.3}
.rin-card-title2{font-size:20px;color:#fff;margin-bottom:5px;line-height:1.4}
.rin-card-title2 a{color:#2196f3;text-decoration:none;margin-right:4px}
.rin-card-content{font-size:17px;color:#fff;margin-bottom:5px;line-height:1.5}
.rin-card-part{margin:10px 0 15px}


/* ============================================================
   首页
   ============================================================ */
.page-home #rin-main{
  width:600px;max-width:95%;
  margin:calc(50vh - 200px) auto 0;
  text-align:center;
}
.page-home .rin-tr{width:80%;margin:0 auto}

#rin-headimg{
  width:150px;height:150px;margin:0 auto;
  border-radius:50%;
  border:3px solid #fff;
  background:url("../img/logo.png") center / cover no-repeat;
  box-shadow:0 0 8px 0 rgba(0,0,0,.55);
  transition:transform .4s ease-out;
  cursor:pointer;
}
#rin-headimg:hover{transform:rotate(360deg) scale(1.2)}

.rin-name{
  margin-top:20px;
  color:#fff;font-size:26px;font-weight:700;
  text-shadow:0 0 8px rgba(255,255,255,.55);
}
.rin-description{
  color:#fff;
  text-shadow:0 0 8px rgba(255,255,255,.55);
  font-size:20px;
  margin:15px 0 20px;
  letter-spacing:8px;
  line-height:1.6;
}
.page-home .btn{margin-top:10px}

.beian{
  position:absolute;left:50%;bottom:10px;
  transform:translateX(-50%);
  color:#bbb;font-size:13px;text-decoration:none;
  transition:color .25s;
}
.beian:hover{color:#fff}

@media (max-width:600px){
  .page-home #rin-main{margin-top:calc(50vh - 180px)}
  .page-home .rin-description{font-size:17px;letter-spacing:5px}
  #rin-headimg{width:120px;height:120px}
}


/* ============================================================
   详情页
   ============================================================ */
.page-detail #rin-main{
  display:flex;
  flex-flow:column nowrap;
  justify-content:center;
  width:95%;max-width:1200px;
  min-height:100vh;
  margin:0 auto;
}
@media (max-height:777px){
  .page-detail #rin-main{min-height:0;padding:30px 0}
}
.page-detail .rin-tr{margin:40px 0 20px}

/* 技能条（替代 mdui-progress） */
.skills{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px 28px;
  margin:8px 0 4px;
}
@media (max-width:900px){.skills{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.skills{grid-template-columns:1fr}}

.skill{
  display:grid;
  grid-template-columns:104px 1fr;
  gap:12px;
  align-items:center;
}
.skill span{font-size:17px;color:#fff;white-space:nowrap}
.bar{
  height:4px;border-radius:2px;
  background:rgba(255,255,255,.2);
  overflow:hidden;
}
.bar i{
  display:block;height:100%;
  background:#fff;border-radius:2px;
  transition:width .3s linear;
}

/* 尾部 */
#last{text-align:center;margin-top:10px}
#last .rin-card-title2{letter-spacing:10px;margin-bottom:10px}
#last .rin-card-content{font-size:12px;letter-spacing:1em;opacity:.5;text-indent:1em}
#footer{text-align:center}
#footer .rin-card-content{font-size:12px;opacity:.5}
#footer a{color:#2196f3;font-weight:700;text-decoration:none;transition:all .3s}
#footer a:hover{text-decoration:underline}

@media (max-width:600px){
  .page-detail .rin-card{padding:16px 18px 0}
  .page-detail .rin-card-title{font-size:24px}
  .page-detail .rin-card-title2{font-size:18px}
  .page-detail .rin-card-content{font-size:15px}
  .skill{grid-template-columns:88px 1fr}
  .skill span{font-size:15px}
  .btns .btn{min-width:80px}
}
