* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: #333;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1.5" fill="%23ffffff" opacity="0.1"><animate attributeName="opacity" values="0.1;0.4;0.1" dur="2s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.1"><animate attributeName="opacity" values="0.1;0.5;0.1" dur="4s" repeatCount="indefinite"/></circle></svg>') repeat;
  pointer-events: none;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  flex: 1;
}

.main-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  margin: 10px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.main-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.hide {
  display: none !important;
}

.icp {
  margin-bottom: 5px;
  font-size: small;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(10px);
  z-index: 10;
  bottom: 0px;
  left: 0px;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#offline-resources {
  display: none;
}

#message h1 {
  font-size: 32px;
  color: #2c3e50;
  margin: 0 0 15px 0;
  text-align: center;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#message p {
  color: #34495e;
  padding: 5px 0;
  line-height: 1.6;
  letter-spacing: 0.5px;
  font-size: 16px;
  text-align: center;
}

#welcome {
  font-size: 22px !important;
  font-weight: 500;
  background: linear-gradient(45deg, #689f38, #4a7c3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px !important;
}

#message p a,
p a:hover {
  color: #689f38;
  padding: 0 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

#message p a:hover {
  color: #4a7c3a;
}

#message p span {
  color: #fff;
  margin: 0 6px;
  padding: 6px 12px;
  background: linear-gradient(45deg, #689f38, #4a7c3a);
  border-radius: 20px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(104, 159, 56, 0.4);
}

#message p span:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(104, 159, 56, 0.6);
}

.go2blogwork {
  font-size: 18px;
  text-align: center;
  margin: 15px 0;
}

.go2blogwork a {
  display: inline-block !important;
  margin: 10px 15px !important;
  padding: 12px 24px !important;
  background: linear-gradient(45deg, #689f38, #4a7c3a);
  color: white !important;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(104, 159, 56, 0.4);
  position: relative;
  overflow: hidden;
  min-width: 80px;
  text-align: center;
  cursor: pointer;
  transform: none !important;
  border: none !important;
  font-size: 16px !important;
  vertical-align: baseline !important;
}

.go2blogwork a::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: left 0.5s;
}

.go2blogwork a:hover::before {
  left: 100%;
}

.go2blogwork a:hover {
  background: linear-gradient(45deg, #5d8a2f, #3e5e2a);
  box-shadow: 0 6px 20px rgba(104, 159, 56, 0.6);
  color: white !important;
  opacity: 1;
  transform: none !important;
  padding: 12px 24px !important;
  margin: 10px 15px !important;
}

a:not(.go2blogwork a),
a:not(.go2blogwork a):hover,
a:not(.go2blogwork a):visited {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: 100%;
  vertical-align: baseline;
  background: 0 0;
  text-decoration: none;
  outline: none;
  transition: all 0.3s ease;
}

.main-shici {
  font-size: 16px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  margin: 15px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-shici hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #689f38, transparent);
  margin: 10px 0;
}

.main-shici p {
  text-align: center;
  font-weight: 500;
  color: #2c3e50;
  margin: 8px 0;
}

.article {
  display: none;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(104, 159, 56, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  border-left: 4px solid #689f38;
  position: relative;
}

.article::-webkit-scrollbar {
  width: 6px;
}

.article::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.article::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #689f38, #4a7c3a);
  border-radius: 3px;
}

.chushibiao p {
  text-indent: 2rem;
  line-height: 1.8;
  color: #34495e;
  margin: 10px 0;
  transition: all 0.3s ease;
}

.chushibiao p:first-child {
  font-weight: 600;
  font-size: 20px;
  color: #2c3e50;
  text-indent: 0;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(104, 159, 56, 0.2);
}

.chushibiao p:hover {
  color: #689f38;
  transform: translateX(5px);
}

#go2blogwork a {
  cursor: pointer;
}

/* 语言切换按钮样式 */
.language-switcher {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 30px 5px;
  gap: 10px;
}

.language-switcher a {
  padding: 8px 16px;
  background: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  text-decoration: none;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.language-switcher a:hover {
  background: none;
  color: #8bc34a !important;
  box-shadow: none;
  transform: translateY(-1px);
  border: none;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ❤️Eve 按钮特殊样式 */
.language-switcher a[href*="eve"] {
  background: none;
  color: #ff6b9d !important;
  border: none;
  box-shadow: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.language-switcher a[href*="eve"]:hover {
  background: none;
  color: #ff4081 !important;
  box-shadow: none;
  border: none;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header {
    padding: 15px;
  }

  .main-content {
    padding: 25px;
    margin: 10px;
    border-radius: 15px;
  }

  .language-switcher {
    padding: 15px 20px;
    gap: 10px;
  }

  #welcome {
    font-size: 24px !important;
  }

  .go2blogwork a {
    margin: 8px 10px;
    padding: 10px 20px;
    font-size: 16px;
  }

  .main-shici {
    padding: 20px;
  }

  .chushibiao p:first-child {
    font-size: 18px;
  }
}

/* 加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-content {
  animation: fadeInUp 0.8s ease;
}

.main-shici {
  animation: fadeInUp 0.8s ease 0.2s both;
}
