@charset "UTF-8";
/* ===========================
   Layer 2: 共享布局样式
   导航栏 / 左栏 Profile / 联系区 / Footer / 右栏结构 / Label
   所有页面（Home, Logs, About, Friends）共享
   =========================== */


/* 模块: 页面主体布局 */
main {
  background: 0 0;
  font-size: 80%;
}

iframe {
  border: none;
  cursor: url(../assets/items/cursor.png), default !important;
}


/* 模块: 左栏 + 右栏结构 */
.left-col {
  padding: 5px;
  top: var(--nav-offset);
  width: var(--sidebar-width);
  position: fixed;
  left: var(--layout-gap);
  z-index: 950;
}

.col {
  display: block;
  background: #fff;
  border-left: 1px solid #000;
  position: relative;
  width: calc(100% - var(--sidebar-width) - (var(--layout-gap) * 2));
  max-width: 1200px;
  min-height: calc(100vh - var(--nav-offset));
  margin-left: calc(var(--sidebar-width) + (var(--layout-gap) * 2));
  margin-top: var(--nav-offset);
  margin-right: var(--layout-gap);
  border-right: 1px solid #000;
}

/* 右栏整体: 可滚动 */
.col.right {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px 20px;
  z-index: 900;
}

.col.right:hover {
  z-index: 980;
}


/* ========== Navigation ========== */
nav {
  width: 100%;
  position: fixed;
  top: 8px;
  z-index: 999;
  font-size: 72%;
}

nav .links a:after,
nav .links a:hover {
  font-size: 14px;
}

nav .links li:first-child a:after {
  content: "导航";
}

nav .links li:nth-child(2) a:after {
  content: "主页";
}

nav .links li:nth-child(3) a:after {
  content: "博客";
}

nav .links li:nth-child(4) a:after {
  content: "动态";
}

nav .links li:nth-child(5) a:after {
  content: "作品集";
}

nav .links li:nth-child(6) a:after {
  content: "仓库";
}

nav .links li:nth-child(7) a:after {
  content: "友链";
}

nav .links li:nth-child(8) a:after {
  content: "留言";
}

nav .links li:nth-child(9) a:after {
  content: "关于";
}

nav .links li {
  display: inline-block;
  min-height: 1.4em;
  list-style: none;
}

nav .links li.active a {
  font-weight: bold;
}

nav .links li:not(:last-child)::after,
footer .links li:not(:last-child)::after {
  content: "";
  color: black;
}

nav .links {
  padding: 3.5px 16px;
  list-style: none;
  padding-inline: 0 !important;
  padding-bottom: 0 !important;
  padding-top: 5px !important;
  border-bottom: 2px solid #000000;
  background: #fff;
  margin: -8px;
}

nav .links a {
  font-size: 0;
  width: 75px;
  border-radius: 10px 10px 0 0;
  border: 1px solid #000;
  transform: translateY(1px);
  padding-top: 3px;
  background: #ffcfe2;
  white-space: nowrap;
  margin-top: 2px;
  display: inline-block;
  text-transform: uppercase;
  font-family: SimSun, "Unifont", sans-serif;
  font-weight: 400 !important;
  text-decoration: none !important;
  box-shadow: 0 -2px 2px 3px rgba(255, 255, 255, 0.5) inset;
  color: #fff !important;
  text-shadow: 0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    1px 1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    -1px -1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    -1px 1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    1px -1px 0 color-mix(in srgb, #f9bddd 70%, #000);
}

nav .links a:not([title="Notifications"]):hover:after {
  font-size: 0;
}

.links {
  text-align: center;
}


/* 模块: 左侧 Profile 区域 */
.profile h1 {
  position: fixed;
  left: var(--layout-gap);
  top: 40px;
  background: #f9bddd;
  width: var(--sidebar-width);
  padding-inline: 10px;
  padding-bottom: 3px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -8px 3px 3px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid #000;
  color: #fff !important;
  text-shadow: 0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    1px 1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    -1px -1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    -1px 1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    1px -1px 0 color-mix(in srgb, #f9bddd 70%, #000);
  font-size: 1.5em;
  margin: 0 0 10px 0;
}

.general-about,
footer {
  width: var(--sidebar-width);
  border: 1px solid #000;
  background: #fff;
}

.general-about {
  background: #fff;
  background-image: url(../assets/images/purinweb.webp);
  background-size: 900px;
  background-position: 100% 5%;
  border-radius: 0 0 10px 10px !important;
  top: 65px;
  padding: 5px 5px 40px;
  height: 250px;
  width: var(--sidebar-width);
  border: 1px solid #000;
  position: fixed;
  left: var(--layout-gap);
}

/* Profile 文本框样式 */
.profile-note {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  height: 120px;
  padding: 8px 10px;
  border: 2px solid #8d6e6888;
  border-radius: 16px;
  background-color: #fff;
  background-image: var(--profile-note-bg, linear-gradient(180deg, #fff6f9 0%, #fff 45%, #fdf3ff 100%));
  background-size: cover;
  background-position: center;
  color: #3b2b2b;
  line-height: 1.35;
  overflow: hidden;
  z-index: 1;
}

/* ========== Profile Picture ========== */
.profile-pic .pfp-fallback {
  border: 1px solid gray;
  width: 100% !important;
  height: 100% !important;
  position: relative;
  z-index: 900;
  object-fit: cover;
  margin: -7px 0 0;
}

.profile-pic {
  width: 140px;
  height: 140px !important;
  display: block;
  float: left;
  margin: 0 15px 8px 0;
}

#about {
  position: absolute;
  display: block;
  width: 200px;
  margin: 0 0 10px 155px;
}

.online {
  color: color-mix(in srgb, #4045ff 50%, #000);
  filter: saturate(3);
}

/* ========== Status Box ========== */
.status {
  background: url(../assets/backgrounds/bluenote.jpg) center/cover;
  background-position: 0 2%;
  border: 4px ridge #d7b999;
  width: var(--sidebar-width);
  height: 135px;
  border-radius: 10px;
  padding: 0 35px 0 !important;
  position: fixed;
  left: var(--layout-gap);
  top: 200px;
  z-index: 896;
}

/* ========== Decorative Elements (Profile) ========== */
#left-tape {
  position: absolute;
  left: 10px;
  bottom: -210px;
  z-index: 940;
  pointer-events: none;
}

#left-tape img {
  transform: rotate(28deg);
  height: 37px;
  -webkit-mask-image: none;
  mask-image: none;
}

#hosparkle {
  position: absolute;
  right: -10px;
  top: 10px;
  z-index: 890;
}

#hosparkle img {
  transform: rotate(15deg);
  height: 46px;
}

/* ========== Pixel Mask for Profile Image ========== */
.general-about img {
  -webkit-mask-image: url(../assets/items/pixelmask.png);
  -webkit-mask-size: 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url(../assets/items/pixelmask.png);
  mask-size: 100%;
  mask-repeat: no-repeat;
  mask-position: center;
}


/* 模块: 社交联系方式 */
.contact .heading h4:after {
  font-size: 14px;
  content: "社交";
  display: inline;
}

.contact .heading h4:hover:after {
  font-size: 14px !important;
  content: "contact me";
}

.contact .heading {
  background: #fff;
  font-size: 14px;
  border-radius: 10px 10px 0 0;
  background: #f9bddd !important;
  box-shadow: 0 -4px 3px 3px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid #000;
  border-bottom: 0;
  color: #fff !important;
  text-shadow: 0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    1px 1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    -1px -1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    -1px 1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    1px -1px 0 color-mix(in srgb, #f9bddd 70%, #000);
  padding: 2px;
}

.contact {
  width: var(--sidebar-width) !important;
  top: 314.5px;
  border: 0 !important;
  position: fixed;
  left: var(--layout-gap);
  margin: 10px 0;
  z-index: 900;
}

.contact .inner {
  background: #fff;
  border: 1px solid #000;
  border-radius: 0 0 10px 10px;
  height: 160px;
  overflow-y: auto;
  position: relative;
}

.contact:hover,
.contact:focus-within {
  z-index: 980;
}

.contact .inner::-webkit-scrollbar {
  display: none;
}

/* ========== App Icons (Contact) ========== */
.app {
  border: 1px rgba(0, 0, 0, 0.467) solid;
  border-radius: 10px;
  background: rgba(118, 219, 56, 0.298);
  padding: 3px;
  width: 100%;
  aspect-ratio: 1;
  position: relative;
}

.app img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.appfix {
  flex: 1;
}

.appset {
  display: flex;
  flex-direction: row;
  padding: 4px 4px;
  margin: 4px 0 0 0;
  gap: 4px;
  justify-content: center;
}

.app:hover {
  background: #c9c9c9;
  opacity: 0.9;
  transition: 0.1s ease;
  transform: scale(1.05);
}

.appblack {
  border: 1px dashed #a95a736b;
  border-radius: 6px;
  height: 100%;
}

.appwhite {
  border: 1px dashed #fff;
  border-radius: 6px;
  height: 100%;
}


/* ========== Footer ========== */
footer a {
  margin-top: 40px !important;
  display: inline-block;
  color: #00f !important;
  text-decoration: underline;
}

.footrimg {
  position: absolute;
  right: -15px;
  top: 35px;
  transform: rotate(-15deg);
  z-index: 10;
}

footer {
  border-radius: 10px;
  width: var(--sidebar-width);
  height: 104px;
  border: 3.5px ridge #91919188;
  background: linear-gradient(#fff, #fbb4d4c4, #fff);
  top: 499px;
  text-align: center;
  font-size: 70%;
  margin: 23px 0 10px;
  position: fixed;
  left: var(--layout-gap);
  display: flex;
  z-index: 900;
}

footer:hover,
footer:focus-within {
  z-index: 980;
}

footer p {
  margin: 7px 0 0;
  vertical-align: middle;
  font-size: 9px;
}

#footer-pic {
  width: 350px;
  height: 98px;
  background: url(../assets/images/pudding_slash.jpg) bottom/contain;
  background-size: cover;
  border-radius: 8px 0 0 8px;
  border-right: 1.5px solid #8d6e6888;
  margin: 0 !important;
}


/* ========== Page Iframe ========== */
.page {
  height: 579px;
  width: 960px;
  overflow: auto;
  border: none;
}


/* ========== 通用 Flex 工具类 ========== */
.columnflex {
  display: flex;
  flex-direction: column;
}
