* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

[v-cloak] .modal-mask {
  display: none !important;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 1rem;
  background: #3c3c3c url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="2" height="2" fill="%23383838"/><rect x="2" y="2" width="2" height="2" fill="%23383838"/></svg>');
  background-attachment: fixed;
  color: #1f2937;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

a {
  text-decoration: none;
  color: inherit;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 网站备案信息页脚 */
.site-footer {
  margin-top: 12px;
  padding: 18px 12px 20px;
  text-align: center;
  color: #f1e3cc;
  font-size: 13px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.16);
  border-top: 2px solid rgba(0, 0, 0, 0.25);
}

.site-footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.site-footer-nav-link,
.site-footer-icp-link {
  color: #ffff55;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.site-footer-nav-link:hover,
.site-footer-icp-link:hover {
  color: #ffffff;
}

.site-footer-nav-sep {
  color: rgba(241, 227, 204, 0.75);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
}

.site-footer-meta {
  line-height: 1.7;
  color: #f1e3cc;
}

/* 顶部导航栏 - Minecraft石砖风格 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #565656;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px);
  color: #ffffff;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 
    0 4px 0 rgba(0, 0, 0, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 3px solid #3a3a3a;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: #ffff55;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 2px;
  transition: all 0.1s;
  font-size: 14px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(0, 0, 0, 0.4);
  border-bottom: 3px solid rgba(0, 0, 0, 0.5);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffff55;
  transform: translateY(1px);
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
}

.nav-link.admin-link {
  background: #c4492f;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px);
  color: #fff;
  border-color: #a53520;
}

.nav-link.admin-link:hover {
  background: #d45533;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.user-info {
  color: #55ff55;
  font-size: 14px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #6b6b6b;
  border: 2px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  z-index: 20;
  padding: 8px 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  white-space: nowrap;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.user-menu.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.user-info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-link {
  color: #ffffff;
  font-size: 14px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  padding: 8px 10px;
  border-radius: 2px;
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffff55;
}

.dropdown-link.danger:hover {
  color: #ff9a8b;
}


/* 主容器 - 放宽宽度使内容更舒展 */
.container {
  width: min(1120px, 92%);
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.home-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  align-items: start;
}

.home-side-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1024px) {
  .home-bottom-grid {
    grid-template-columns: 1fr;
  }
  
  .server-details {
    gap: 16px;
  }
}

/* 首页底部统计栏 */
.home-stats-bar {
  margin-top: 8px;
  padding: 24px 32px;
  background: rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(0, 0, 0, 0.15);
}

.home-stats-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.home-stat-item {
  flex: 1;
  min-width: 120px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
}

.home-stat-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
  opacity: 0.9;
}

.home-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: #2a1f0f;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.home-stat-label {
  font-size: 13px;
  color: #5a4835;
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35);
  text-align: center;
  line-height: 1.3;
}

.home-stat-divider {
  width: 1px;
  min-height: 48px;
  align-self: center;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2), transparent);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .home-stats-inner {
    flex-direction: column;
    gap: 16px;
  }
  .home-stat-divider {
    width: 60%;
    min-width: 80px;
    height: 1px;
    min-height: 0;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2), transparent);
  }
  .home-stat-item {
    max-width: none;
  }
}

/* 卡片样式 - Minecraft木板风格 */
.card {
  background: #9c7f4e;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 32px, rgba(0,0,0,.05) 32px, rgba(0,0,0,.05) 34px),
    repeating-linear-gradient(0deg, #a6855a 0px, #a6855a 8px, #9c7f4e 8px, #9c7f4e 16px);
  border-radius: 0;
  padding: 28px;
  box-shadow: 
    0 0 0 3px rgba(0, 0, 0, 0.3),
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 12px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s;
  border: 3px solid #7a6541;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 3px rgba(0, 0, 0, 0.3),
    0 8px 0 rgba(0, 0, 0, 0.3),
    0 14px 25px rgba(0, 0, 0, 0.5);
}

.card h2,
.card h3 {
  margin-top: 0;
  color: #2a1f0f;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.card h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

.divider {
  height: 2px;
  background: rgba(0, 0, 0, 0.15);
  margin: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.account-settings-card {
  padding: 16px 18px;
}

.account-settings-card .field {
  margin-bottom: 8px;
}

.account-settings-card .input {
  padding: 6px 9px;
  font-size: 13px;
}

.account-settings-card .btn {
  padding: 6px 12px;
  font-size: 13px;
}

.account-settings-card .divider {
  margin: 10px 0;
}

/* 首页特殊样式 - Minecraft草地风格 */
.home-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-card {
  background: #6ba340;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: white;
  text-align: center;
  padding: 48px 36px;
  border-radius: 0;
  box-shadow: 
    0 0 0 4px rgba(0, 0, 0, 0.3),
    0 8px 0 rgba(0, 0, 0, 0.3),
    0 16px 30px rgba(0, 0, 0, 0.5);
  border: 4px solid #5a8a35;
  text-shadow: 
    3px 3px 0 rgba(0, 0, 0, 0.8),
    -1px -1px 0 rgba(0, 0, 0, 0.4),
    1px -1px 0 rgba(0, 0, 0, 0.4),
    -1px 1px 0 rgba(0, 0, 0, 0.4);
}

.hero-card h1 {
  margin: 0 0 16px 0;
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 
    4px 4px 0 rgba(0, 0, 0, 0.9),
    -2px -2px 0 rgba(0, 0, 0, 0.5),
    2px -2px 0 rgba(0, 0, 0, 0.5),
    -2px 2px 0 rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  font-size: 18px;
  margin-bottom: 28px;
  opacity: 1;
  text-shadow: 
    2px 2px 0 rgba(0, 0, 0, 0.8),
    -1px -1px 0 rgba(0, 0, 0, 0.4),
    1px -1px 0 rgba(0, 0, 0, 0.4),
    -1px 1px 0 rgba(0, 0, 0, 0.4);
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 列表项 */
.list-item {
  padding: 12px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.list-item:last-child {
  border-bottom: none;
}

/* 登录确认 */
.login-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.login-request-item:last-child {
  border-bottom: none;
}

.login-request-main {
  flex: 1;
}

.login-request-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: #1f3a0f;
  font-size: 15px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.login-request-actions {
  flex-shrink: 0;
}

.link-title {
  color: #1f3a0f;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  transition: color 0.1s;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 16px;
}

.link-title:hover {
  color: #1a3009;
  text-decoration: underline;
}

.meta {
  font-size: 14px;
  color: #f4e7d2;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
  font-weight: 500;
}

/* 服务器状态 */
.server-status-card {
  min-height: 100%;
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.server-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px;
  background: rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: all 0.15s;
}

.server-item:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateX(2px);
}

.server-item:last-child {
  margin-bottom: 0;
}

.server-info-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-item-enhanced {
  background: rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 14px 16px;
  transition: all 0.15s;
}

.server-item-enhanced:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: translateX(2px);
}

.server-item-enhanced:last-child {
  margin-bottom: 0;
}

.server-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.server-name {
  font-weight: 700;
  color: #2a1f0f;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 17px;
}

.server-info-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.server-info-item {
  font-size: 13px;
  color: #3a2818;
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.server-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.server-online-names {
  font-size: 12px;
  color: #3a2818;
  font-weight: 500;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
  line-height: 1.5;
}

.server-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.server-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: #5a4835;
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 14px;
  color: #2a1f0f;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.badge-server {
  align-self: flex-start;
  margin-top: 2px;
}

.server-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  border: 2px solid rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.server-icon-preview {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  border: 3px solid rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.1);
}

.server-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.server-desc {
  color: #3a2818;
  font-size: 14px;
  line-height: 1.6;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.server-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #2a1f0f;
  padding-top: 12px;
  border-top: 2px solid rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* 服务器聊天 */
.chat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-messages {
  max-height: 380px;
  overflow-y: auto;
  padding: 16px 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  background: #e9e1d2;
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chat-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0;
}

/* 自己发的消息靠右 */
.chat-line.chat-self {
  align-items: flex-end;
}

/* 其他人的消息靠左 */
.chat-line.chat-other {
  align-items: flex-start;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* 自己发的消息气泡 - 绿色 */
.chat-line.chat-self .chat-bubble {
  background: #c7f0a1;
  border-color: rgba(0, 0, 0, 0.12);
}

/* 其他人的网页消息气泡 - 白色 */
.chat-line.chat-other.chat-source-web .chat-bubble {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
}

/* 其他人的游戏消息气泡 - 淡黄色 */
.chat-line.chat-other.chat-source-minecraft .chat-bubble,
.chat-line.chat-other.chat-source-server .chat-bubble {
  background: #ffe3b8;
  border-color: rgba(0, 0, 0, 0.15);
}

/* 来源标签基础样式 */
.chat-source-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  color: #2f2416;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* 游戏来源标签 - 淡黄色 */
.chat-line.chat-source-minecraft .chat-source-tag,
.chat-line.chat-source-server .chat-source-tag {
  background: #f7e8ce;
}

/* 网页来源标签 - 淡绿色 */
.chat-line.chat-source-web .chat-source-tag {
  background: #e6f7d2;
}

.chat-sender {
  font-weight: 700;
  color: #3a2818;
  font-size: 12px;
  margin-bottom: 4px;
  opacity: 0.8;
  text-shadow: none;
}

.chat-content {
  color: #2b1f12;
  word-break: break-word;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.chat-time {
  font-size: 12px;
  color: #6d5b47;
  opacity: 0.9;
  font-weight: 500;
}

.chat-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* 站内信 */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #d9544f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* 站内信页面 */
.notification-page-item {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.notification-page-item:last-child {
  border-bottom: none;
}

.notification-page-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #2a1f0f;
}

.notification-page-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.notification-page-time {
  font-size: 12px;
  color: #5a4835;
  font-weight: 500;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.notification-page-content {
  margin-top: 6px;
  color: #3a2818;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.notification-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9544f;
  display: inline-block;
}

/* 弹窗提示 */
.flash-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.flash-dialog {
  min-width: 280px;
  max-width: 460px;
  background: #e6d1a4;
  border: 4px solid #5b3d1f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  padding: 18px 20px;
}

.flash-dialog.error {
  border-color: #7a2c2b;
}

.flash-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #3a2f1f;
}

.flash-content {
  color: #3e2e1e;
  line-height: 1.6;
}

.flash-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.flash-modal[v-cloak] {
  display: none;
}

/* 表单 */
.form-card {
  max-width: 520px;
  margin: 60px auto;
  padding: 44px 56px;
  position: relative;
  background: #9c7f4e;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 32px, rgba(0,0,0,.05) 32px, rgba(0,0,0,.05) 34px),
    repeating-linear-gradient(0deg, #a6855a 0px, #a6855a 8px, #9c7f4e 8px, #9c7f4e 16px);
  box-shadow: 
    0 0 0 4px rgba(0, 0, 0, 0.35),
    0 8px 0 rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(0, 0, 0, 0.1);
  border: 4px solid #7a6541;
  animation: formCardAppear 0.4s ease-out;
}

.form-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 2px;
}

@keyframes formCardAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-card h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 36px;
  color: #2a1f0f;
  text-shadow: 
    2px 2px 0 rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 200, 100, 0.2);
  padding-bottom: 22px;
  border-bottom: 3px solid rgba(0, 0, 0, 0.15);
  position: relative;
}

.form-card h2::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #5a8a35, transparent);
}

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-card .btn-primary {
  margin-top: 16px;
  padding: 16px 28px;
  font-size: 17px;
  width: 100%;
  background: #5cb85c;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.form-card .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.4s ease;
}

.form-card .btn-primary:hover::before {
  left: 100%;
}

.form-card .btn-primary:hover:not(:disabled) {
  background: #6bc96b;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  box-shadow: 0 0 20px rgba(92, 184, 92, 0.4);
}

.form-card .muted {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed rgba(0, 0, 0, 0.15);
}

.form-card .muted a {
  color: #1f5a1f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.form-card .muted a:hover {
  color: #2a7a2a;
  text-shadow: 0 0 10px rgba(90, 138, 53, 0.3);
}

/* 表单页面装饰背景 */
.form-card-wrapper {
  position: relative;
  padding: 40px 0;
}

/* 表单页面装饰性粒子效果 */
.form-card::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(8px);
  border-radius: 50%;
}

/* 验证码输入框行内布局优化 */
.form-card .field-inline {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.form-card .field-inline .input {
  flex: 1;
  min-width: 0;
}

.form-card .field-inline .btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 10px 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.field span {
  font-weight: 700;
  color: #2a1f0f;
  font-size: 15px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.field span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #5a8a35;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(90, 138, 53, 0.5);
}

.field-inline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.field-inline .input {
  flex: 1;
}

.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkbox-field input {
  width: auto;
}

.input, .textarea {
  padding: 14px 18px;
  border: 3px solid rgba(0, 0, 0, 0.35);
  border-radius: 0;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: #2a1f0f;
  font-weight: 500;
}

.input::placeholder, .textarea::placeholder {
  color: #8a7a6a;
  font-weight: 400;
}

.input:hover, .textarea:hover {
  border-color: rgba(0, 0, 0, 0.5);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: #5a8a35;
  background: rgba(255, 255, 255, 1);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    0 0 0 3px rgba(107, 163, 64, 0.25),
    0 0 15px rgba(107, 163, 64, 0.15);
}

/* 表单输入框动画 */
.form-card .field {
  animation: fieldAppear 0.4s ease-out backwards;
}

.form-card .field:nth-child(1) { animation-delay: 0.1s; }
.form-card .field:nth-child(2) { animation-delay: 0.2s; }
.form-card .field:nth-child(3) { animation-delay: 0.3s; }
.form-card .field:nth-child(4) { animation-delay: 0.4s; }

@keyframes fieldAppear {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 登录邮箱自动补全下拉 */
.email-suggestion-wrapper {
  position: relative;
  display: block;
}

.email-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  padding: 4px 0;
  list-style: none;
  background: #2b2b2b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 40;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.email-suggestion-item {
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  color: #ffffff;
}

.email-suggestion-item:hover {
  background: rgba(92, 184, 92, 0.25);
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

select.input {
  cursor: pointer;
}

/* 按钮 - Minecraft按钮风格 */
.btn {
  border: none;
  padding: 11px 20px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s;
  display: inline-block;
  border: 3px solid rgba(0, 0, 0, 0.4);
  border-bottom: 4px solid rgba(0, 0, 0, 0.5);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  position: relative;
}

.btn:hover {
  transform: translateY(1px);
  border-bottom: 3px solid rgba(0, 0, 0, 0.5);
}

.btn:active {
  transform: translateY(2px);
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(0.3);
}

.btn-primary {
  background: #5cb85c;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #fff;
  border-color: #4a9a4a;
}

.btn-primary:hover {
  background: #6bc96b;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
}

.btn-secondary {
  background: #888888;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #ffffff;
  border-color: #666666;
}

.btn-secondary:hover {
  background: #999999;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
}

.btn-danger {
  background: #d9534f;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #fff;
  border-color: #b33a36;
}

.btn-danger:hover {
  background: #e76662;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
}

.btn-warning {
  background: #f0ad4e;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #fff;
  border-color: #c69138;
}

.btn-warning:hover {
  background: #f5c16e;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 0;
  font-weight: 600;
}

/* 徽章 - Minecraft物品栏风格 */
.badge {
  display: inline-block;
  padding: 5px 12px;
  background: #c4c4c4;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #3a2f1f;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.badge-online {
  background: #5cb85c;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.badge-offline {
  background: #d9534f;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.badge-maintenance {
  background: #f0ad4e;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.pin-badge {
  background: #f0ad4e;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.category-badge {
  background: #5bc0de;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

/* 提示消息 */
.muted {
  color: #f1e3cc;
  font-size: 14px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
  font-weight: 500;
}

.alert {
  padding: 14px 18px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  border: 3px solid rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.alert.success {
  background: #5cb85c;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #ffffff;
  border-color: #4a9a4a;
}

.alert.error {
  background: #d9534f;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #ffffff;
  border-color: #b33a36;
}

/* 表格 */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.table th,
.table td {
  padding: 11px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  text-align: left;
  color: #2a1f0f;
  font-weight: 500;
}

.table th {
  background: rgba(0, 0, 0, 0.2);
  font-weight: 700;
  color: #1f1509;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.table tbody tr:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* 拖动排序样式 */
.sortable-row {
  transition: background-color 0.15s ease;
}

.server-row-hidden {
  opacity: 0.55;
}

.sortable-row.dragging {
  opacity: 0.5;
  background: rgba(139, 195, 74, 0.3);
}

.drag-handle {
  color: #6d5b47;
  font-size: 16px;
  user-select: none;
}

.drag-handle:hover {
  color: #3a2818;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 内容区域 */
.content-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 4px;
}

.section-header h2 {
  margin: 0;
  color: #ffffff;
  text-shadow: 
    3px 3px 0 rgba(0, 0, 0, 0.7),
    0 0 20px rgba(0, 0, 0, 0.5);
  font-size: 26px;
  font-weight: 700;
}

/* 公告和帖子项 */
.announcement-item, .post-item {
  padding: 16px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.announcement-item:last-child, .post-item:last-child {
  border-bottom: none;
}

.announcement-header, .post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.announcement-title, .post-title {
  color: #1f3a0f;
  font-weight: 700;
  font-size: 16px;
  flex: 1;
  transition: color 0.1s;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.announcement-title:hover, .post-title:hover {
  color: #1a3009;
  text-decoration: underline;
}

.views, .post-stats {
  font-size: 13px;
  color: #f4e7d2;
  white-space: nowrap;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
  font-weight: 500;
}

/* 详情页 */
.detail-header {
  border-bottom: 3px solid rgba(0, 0, 0, 0.3);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.detail-header h2 {
  margin-bottom: 12px;
  color: #2a1f0f;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 24px;
}

.detail-content {
  line-height: 1.8;
  color: #2a1f0f;
  margin-bottom: 24px;
  font-size: 15px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.detail-footer, .detail-actions {
  padding-top: 16px;
  border-top: 2px solid rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 12px;
}

/* 回复区域 */
.replies-section {
  margin-top: 20px;
}

.reply-item {
  padding: 16px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0;
  margin-bottom: 12px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.reply-header strong {
  color: #2a1f0f;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 15px;
}

.reply-content {
  color: #3a2818;
  line-height: 1.6;
  font-size: 14px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.reply-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 3px solid rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 4px;
}

.tab-btn {
  padding: 8px 16px;
  border: 3px solid rgba(0, 0, 0, 0.4);
  background: #888888;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #ffffff;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.1s;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.tab-btn:hover {
  background: #999999;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  transform: translateY(1px);
}

.tab-btn.active {
  background: #5cb85c;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #fff;
  border-color: #4a9a4a;
}

/* 管理后台 */
.admin-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #565656;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px);
  padding: 16px;
  border-radius: 0;
  box-shadow: 
    0 0 0 3px rgba(0, 0, 0, 0.3),
    0 6px 0 rgba(0, 0, 0, 0.3);
  border: 3px solid #3a3a3a;
}

.admin-nav-btn {
  padding: 10px 18px;
  border: 3px solid rgba(0, 0, 0, 0.4);
  background: #888888;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #ffffff;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.1s;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.admin-nav-btn:hover {
  background: #999999;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  transform: translateY(1px);
}

.admin-nav-btn.active {
  background: #5cb85c;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  color: #fff;
  border-color: #4a9a4a;
}

/* 模态框 - Minecraft箱子风格 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-card {
  width: min(600px, 94%);
  max-height: 90vh;
  overflow-y: auto;
  background: #9c7f4e;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 32px, rgba(0,0,0,.05) 32px, rgba(0,0,0,.05) 34px),
    repeating-linear-gradient(0deg, #a6855a 0px, #a6855a 8px, #9c7f4e 8px, #9c7f4e 16px);
  border-radius: 0;
  padding: 28px;
  box-shadow: 
    0 0 0 4px rgba(0, 0, 0, 0.4),
    0 10px 0 rgba(0, 0, 0, 0.4),
    0 20px 40px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.3s;
  border: 4px solid #7a6541;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #3a2f1f;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
}

.modal-content {
  margin-bottom: 20px;
}

.detail-item {
  padding: 10px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 1.6;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item strong {
  color: #2a1f0f;
  margin-right: 8px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* 全局音乐悬浮模块 */
.music-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 280px;
  background: rgba(70, 70, 70, 0.95);
  border: 2px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 12px;
  z-index: 120;
  transition: transform 0.18s ease, width 0.18s ease, height 0.18s ease, right 0.18s ease, bottom 0.18s ease;
}

.music-widget.minimized {
  width: 56px;
  height: 140px;
  padding: 8px;
  right: 6px;
  bottom: 120px;
  border-radius: 10px 0 0 10px;
}

.music-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.music-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.music-title {
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.music-actions {
  display: flex;
  gap: 6px;
}

.music-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #f1f1f1;
  font-size: 13px;
}

.music-track {
  font-weight: 600;
  color: #ffe59a;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.music-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.music-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a3a3a3;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.music-dot.playing {
  background: #55ff55;
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-volume input[type="range"] {
  flex: 1;
}

.music-tips {
  color: #ffdf6b;
  font-size: 12px;
}

.music-minimized {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.music-minimized-icon {
  font-size: 20px;
}

.music-minimized-text {
  font-size: 12px;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
}

/* 响应式 */
@media (max-width: 768px) {
  .music-widget {
    right: 14px;
    bottom: 14px;
    width: 240px;
  }

  .music-widget.minimized {
    right: 4px;
    bottom: 90px;
    width: 52px;
    height: 120px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card {
    padding: 36px 28px;
  }

  .hero-card h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .announcement-header, .post-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-nav {
    flex-direction: column;
  }

  .admin-nav-btn {
    width: 100%;
    text-align: left;
  }

  .table {
    font-size: 12px;
  }

  .table th,
  .table td {
    padding: 8px;
  }

  .server-details {
    gap: 12px;
  }

  .server-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .badge-server {
    align-self: flex-start;
  }

  .server-stat {
    min-width: 45%;
  }

  /* 表单卡片移动端适配 */
  .form-card {
    margin: 30px auto;
    padding: 32px 28px;
    max-width: calc(100% - 24px);
  }

  .form-card h2 {
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 14px;
  }

  .form-card .field-inline {
    flex-direction: column;
    gap: 10px;
  }

  .form-card .field-inline .btn {
    width: 100%;
  }

  .form-card .btn-primary {
    padding: 12px 20px;
    font-size: 15px;
  }

  .field span {
    font-size: 13px;
  }

  .input, .textarea {
    padding: 11px 14px;
    font-size: 14px;
  }
}
