.aspectration{
	position: relative;
	height: 0;
	width: 100%;
	padding-top: 75%;
}
.aspectration > * {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.author-avatar{
    width: 32px;
    height: 32px;
    border-radius: 3px;
}
.o{
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  padding-top: 80px;
  background-color: rgb(20, 20, 31);
  overflow-x: hidden;
}

/* 导航栏样式 */
:root {
  --mc-green: #5B8C29;
  --mc-dark-green: #3B5C1A;
  --mc-blue: #3C44AA;
  --mc-dark-blue: #232C7A;
  --mc-brown: #8B6B4D;
  --mc-dark-brown: #6B4B2D;
  --mc-light: #F0F0F0;
  --mc-dark: #0A0A14;
  --mc-darker: #050510;
  --mc-gray: #7D7D7D;
  --mc-grass: #5B8C29;
  --mc-dirt: #8B6B4D;
  --mc-stone: #7D7D7D;
  --mc-water: #3C44AA;
  --mc-lava: #FF6A00;
  --mc-glow: #5CFF6D;
}

.mc-pixel-font {
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

header {
  background-color: rgba(10, 10, 20, 0.95);
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 100;
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(92, 255, 109, 0.2);
  backdrop-filter: blur(10px);
}

.nav-container {
  width: 100%;
  padding: 0 20px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 45px;
  height: 45px;
  margin-right: 12px;
  position: relative;
  animation: pulse 2s infinite;
}

.logo-text {
  font-size: 1.4rem;
  color: var(--mc-light);
  text-shadow: 0 0 10px rgba(92, 255, 109, 0.7);
  font-weight: bold;
}

.logo-text span {
  color: var(--mc-glow);
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin: 0 15px;
}

nav a {
  color: var(--mc-light);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  padding: 8px 16px;
  border-radius: 20px;
  position: relative;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--mc-glow);
  background: rgba(92, 255, 109, 0.1);
  text-shadow: 0 0 8px rgba(92, 255, 109, 0.8);
}

.cta-button {
  background: linear-gradient(135deg, var(--mc-green), var(--mc-glow));
  color: var(--mc-dark);
  padding: 12px 28px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(92, 255, 109, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(92, 255, 109, 0.6);
}

.cta-button:hover:before {
  left: 100%;
}

.login-nickname {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 60px;
  margin-left: 15px;
  color: rgb(92, 255, 109);
  text-align: center;
  font-size: 14px;
  white-space: nowrap;
}

#avatar_img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 5px;
}

/* 悬浮VIP图标 */
@keyframes shake {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-3px); }
  75% { transform: translateY(3px); }
}

.image {
  animation: shake 2s ease-in-out infinite;
  display: inline-block;
}

.suspension {
  cursor: pointer;
}

.suspension {
  width: 50px;
  height: 130px;
  position: fixed;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 999;
}

.suspension .text {
  width: 50px;
  height: 90px;
  padding-top: 10px;  
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.suspension .image {
  width: 50px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    text-align: center;
  }
  
  nav {
    order: 3;
    width: 100%;
    margin-top: 15px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav li {
    margin: 8px;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 作品展示样式 */
.project-card {
  background: rgba(25, 25, 35, 0.8);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(92, 255, 109, 0.1);
  transition: all 0.4s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(92, 255, 109, 0.4);
  box-shadow: 0 15px 35px rgba(92, 255, 109, 0.2);
}

.project-image {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #F0F0F0;
}

.project-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.project-author {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.works-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.coming-soon {
  position: relative;
}

.coming-soon::after {
  content: "火热进行中";
  position: absolute;
  top: -8px;
  right: -5px;
  background: var(--mc-lava);
  color: white;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}