:root {
  --text-color: #333;
  --white-alpha: rgba(255, 255, 255, 0.7);
}

* {
  box-sizing: border-box;
}
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("./HarmonyOS_Sans_SC_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pomes Digital";
  src: url("./PomesDigitalFont-Normal.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

pomes {
  font-family: "Pomes Digital", "HarmonyOS Sans SC", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  font-family: "HarmonyOS Sans SC", sans-serif;
}

#web_bg {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -999;
  background: url("../img/背景.png") no-repeat center center;
  background-size: cover;
}

header {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header.page-hero {
  min-height: 30vh;
}

nav {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

.nav-link:hover {
  border-bottom: 2px solid white;
}

#site-title {
  font-size: 2.5rem;
  margin: 0;
}

main {
  max-width: 1100px;
  margin: -40px auto 40px;
  display: flex;
  gap: 20px;
  padding: 0 20px;
  width: 100%;
}

main.single-column {
  flex-direction: column;
}

.post-card,
.content-card,
.card-info {
  background: var(--white-alpha);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.post-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.9);
}

.post-card a {
  text-decoration: none;
  color: #007799;
  font-weight: bold;
  font-size: 1.2rem;
}

.recent-posts {
  flex: 2;
}

.aside-content {
  flex: 1;
}

.welcome-text {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #111;
}

footer {
  text-align: center;
  padding: 40px 20px;
  color: white;
  font-size: 0.8rem;
  background: transparent;
  width: 100%;
  margin-top: auto;
}

footer p {
  margin: 0;
}

@media (max-width: 768px) {
  main {
    flex-direction: column;
    margin-top: 20px;
  }
}
