:root {
  --zib-meihua-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --zib-meihua-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --zib-meihua-glass-bg: rgba(255, 255, 255, 0.1);
  --zib-meihua-glass-blur: 10px;
  --zib-meihua-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --zib-meihua-border: 1px solid rgba(255, 255, 255, 0.2);
  --zib-meihua-glow-color: #667eea;
  --zib-meihua-neon-color: #00ffff;
  --zib-meihua-gradient-1: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  --zib-meihua-gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --zib-meihua-gradient-3: linear-gradient(90deg, #ff8a00, #e52e71);
  --zib-meihua-gradient-4: linear-gradient(180deg, #5ee7df, #b490ca);
  --zib-meihua-gradient-5: linear-gradient(225deg, #43e97b, #38f9d7);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--zib-meihua-primary) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--zib-meihua-gradient-2);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--zib-meihua-gradient-2);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--zib-meihua-gradient-3);
}

@keyframes zibRainbowScrollbar {
  0% { background: #ff6b6b; }
  20% { background: #4ecdc4; }
  40% { background: #45b7d1; }
  60% { background: #96ceb4; }
  80% { background: #ffeaa7; }
  100% { background: #ff6b6b; }
}

.zib-scrollbar-rainbow::-webkit-scrollbar-thumb {
  animation: zibRainbowScrollbar 3s linear infinite;
  background-size: 200% 200%;
}

@keyframes zibLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes zibLoaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes zibLoaderBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes zibLoaderWave {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

@keyframes zibLoaderProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

.zib-loader-spin {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: zibLoaderSpin 1s linear infinite;
}

.zib-loader-pulse {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  animation: zibLoaderPulse 1.5s ease-in-out infinite;
}

.zib-loader-bounce {
  display: flex;
  gap: 4px;
}

.zib-loader-bounce div {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  animation: zibLoaderBounce 1.4s ease-in-out infinite both;
}

.zib-loader-bounce div:nth-child(1) { animation-delay: -0.32s; }
.zib-loader-bounce div:nth-child(2) { animation-delay: -0.16s; }

.zib-loader-wave {
  display: flex;
  gap: 4px;
}

.zib-loader-wave div {
  width: 6px;
  height: 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 3px;
  animation: zibLoaderWave 1.2s ease-in-out infinite;
}

.zib-loader-wave div:nth-child(1) { animation-delay: -0.24s; }
.zib-loader-wave div:nth-child(2) { animation-delay: -0.12s; }

.zib-loader-progress {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.zib-loader-progress div {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  animation: zibLoaderProgress 1.5s ease-in-out infinite;
}

.zib-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zib-card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.zib-card-hover-glow:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

.zib-card-hover-rotate:hover {
  transform: rotate(2deg) scale(1.02);
}

.zib-card-hover-3d:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
}

.zib-card-hover-skew:hover {
  transform: skew(-2deg, 2deg) scale(1.02);
}

@keyframes zibFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.zib-float {
  animation: zibFloat 3s ease-in-out infinite;
}

@keyframes zibShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.zib-shake:hover {
  animation: zibShake 0.5s ease-in-out;
}

@keyframes zibZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.zib-zoom:hover {
  animation: zibZoom 0.3s ease-out forwards;
}

@keyframes zibFlip {
  from { transform: perspective(400px) rotateY(0); }
  to { transform: perspective(400px) rotateY(360deg); }
}

.zib-flip:hover {
  animation: zibFlip 0.6s ease-out;
}

.zib-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.zib-glass-dark {
  background: rgba(0, 0, 0, 0.2);
}

.zib-glass-blur-strong {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.zib-glass-border {
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.zib-glass-radius {
  border-radius: 16px;
}

.zib-glass-shadow {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@keyframes zibSnowflake {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.3; }
}

.zib-snowflake {
  position: fixed;
  top: -10px;
  color: #fff;
  font-size: 1em;
  text-shadow: 0 0 5px #fff;
  pointer-events: none;
  z-index: 9999;
  animation: zibSnowflake linear infinite;
}

@keyframes zibCherryBlossom {
  0% { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg) translateX(100px); opacity: 0.3; }
}

.zib-cherry-blossom {
  position: fixed;
  top: -10px;
  color: #ffb7c5;
  font-size: 1.2em;
  pointer-events: none;
  z-index: 9999;
  animation: zibCherryBlossom linear infinite;
}

@keyframes zibFirefly {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

.zib-firefly {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #ffff00;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00;
  pointer-events: none;
  z-index: 9999;
  animation: zibFirefly 3s ease-in-out infinite;
}

@keyframes zibRain {
  0% { transform: translateY(-100vh); }
  100% { transform: translateY(110vh); }
}

.zib-raindrop {
  position: fixed;
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(174, 194, 224, 0.8));
  pointer-events: none;
  z-index: 9999;
  animation: zibRain linear infinite;
}

@keyframes zibConfetti {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.zib-confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 9999;
  animation: zibConfetti linear infinite;
}

.zib-nav-gradient {
  background: var(--zib-meihua-primary);
}

.zib-nav-transparent {
  background: transparent;
  transition: background 0.3s;
}

.zib-nav-transparent.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
}

.zib-nav-shadow {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.zib-nav-blur {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.9);
}

.zib-nav-border {
  border-bottom: 2px solid;
  border-image: var(--zib-meihua-primary) 1;
}

.zib-avatar-ring {
  position: relative;
}

.zib-avatar-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--zib-meihua-gradient-2);
  z-index: -1;
}

.zib-avatar-pulse {
  position: relative;
}

.zib-avatar-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 3px solid #667eea;
  animation: zibAvatarPulse 2s ease-out infinite;
}

@keyframes zibAvatarPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.zib-avatar-spin:hover {
  animation: zibLoaderSpin 0.6s linear;
}

.zib-avatar-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.zib-avatar-3d:hover {
  transform: rotateY(360deg);
}

.zib-avatar-glow {
  box-shadow: 0 0 20px var(--zib-meihua-glow-color), 0 0 40px var(--zib-meihua-glow-color);
}

.zib-avatar-neon {
  box-shadow: 0 0 5px var(--zib-meihua-neon-color),
              0 0 10px var(--zib-meihua-neon-color),
              0 0 20px var(--zib-meihua-neon-color),
              0 0 40px var(--zib-meihua-neon-color);
}

.zib-avatar-gradient {
  background: var(--zib-meihua-gradient-2);
  padding: 3px;
  border-radius: 50%;
}

.zib-avatar-vip {
  position: relative;
}

.zib-avatar-vip::after {
  content: '👑';
  position: absolute;
  top: -10px;
  right: -5px;
  font-size: 20px;
}

.zib-avatar-frame {
  padding: 5px;
  border: 3px solid gold;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffec8b, #ffd700);
}

.zib-article-toc-sticky {
  position: sticky;
  top: 20px;
}

.zib-article-copycode {
  cursor: pointer;
  user-select: none;
}

.zib-article-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--zib-meihua-primary);
  z-index: 99999;
  transition: width 0.1s;
}

.zib-code-highlight pre {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.zib-code-line-numbers pre {
  counter-reset: line;
}

.zib-code-line-numbers pre code {
  display: block;
  padding-left: 40px;
  position: relative;
}

.zib-code-line-numbers pre code::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 0;
  width: 30px;
  text-align: right;
  color: #999;
  border-right: 1px solid #ddd;
  padding-right: 10px;
  margin-right: 10px;
}

.zib-quote-enhanced blockquote {
  border-left: 4px solid #667eea;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
  padding: 20px 30px;
  font-style: italic;
  position: relative;
}

.zib-quote-enhanced blockquote::before {
  content: '"';
  font-size: 60px;
  color: #667eea;
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0.3;
}

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

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

@keyframes zibCardScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes zibCardRotate {
  from { opacity: 0; transform: rotateY(90deg); }
  to { opacity: 1; transform: rotateY(0); }
}

@keyframes zibCardBounce {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.zib-card-animate-fade {
  animation: zibCardFadeIn 0.5s ease-out forwards;
}

.zib-card-animate-slide {
  animation: zibCardSlideUp 0.5s ease-out forwards;
}

.zib-card-animate-scale {
  animation: zibCardScale 0.5s ease-out forwards;
}

.zib-card-animate-rotate {
  animation: zibCardRotate 0.6s ease-out forwards;
}

.zib-card-animate-bounce {
  animation: zibCardBounce 0.8s ease-out forwards;
}

.zib-btn-ripple {
  position: relative;
  overflow: hidden;
}

.zib-btn-ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.zib-btn-ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

.zib-btn-gradient {
  background: var(--zib-meihua-primary);
  color: white;
  border: none;
}

.zib-btn-neon {
  background: transparent;
  border: 2px solid var(--zib-meihua-neon-color);
  color: var(--zib-meihua-neon-color);
  box-shadow: 0 0 5px var(--zib-meihua-neon-color),
              inset 0 0 5px var(--zib-meihua-neon-color);
  transition: all 0.3s;
}

.zib-btn-neon:hover {
  background: var(--zib-meihua-neon-color);
  color: #000;
  box-shadow: 0 0 10px var(--zib-meihua-neon-color),
              0 0 20px var(--zib-meihua-neon-color),
              0 0 40px var(--zib-meihua-neon-color);
}

.zib-btn-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s;
  box-shadow: 0 6px 0 #4a5cb8, 0 10px 20px rgba(0,0,0,0.2);
}

.zib-btn-3d:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #4a5cb8, 0 5px 10px rgba(0,0,0,0.2);
}

.zib-btn-glow {
  box-shadow: 0 0 20px var(--zib-meihua-glow-color);
  transition: all 0.3s;
}

.zib-btn-glow:hover {
  box-shadow: 0 0 40px var(--zib-meihua-glow-color);
}

@keyframes zibCursorGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.5); }
}

.zib-cursor-glow {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--zib-meihua-glow-color), transparent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  animation: zibCursorGlow 2s ease-in-out infinite;
}

.zib-cursor-trail {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--zib-meihua-glow-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s;
}

.zib-cursor-emoji {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  z-index: 99999;
}

@keyframes zibImageMagnify {
  from { transform: scale(1); }
  to { transform: scale(1.5); }
}

.zib-image-magnify:hover {
  animation: zibImageMagnify 0.3s ease-out forwards;
}

.zib-image-lazy {
  filter: blur(5px);
  transition: filter 0.3s;
}

.zib-image-lazy.loaded {
  filter: blur(0);
}

.zib-image-waterfall {
  column-count: 3;
  column-gap: 20px;
}

.zib-image-waterfall img {
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
}

.zib-image-hover-zoom img {
  transition: transform 0.5s;
}

.zib-image-hover-zoom:hover img {
  transform: scale(1.2);
}

.zib-image-hover-grayscale img {
  transition: filter 0.5s;
  filter: grayscale(100%);
}

.zib-image-hover-grayscale:hover img {
  filter: grayscale(0%);
}

.zib-image-hover-blur img {
  transition: filter 0.5s;
}

.zib-image-hover-blur:hover img {
  filter: blur(5px);
}

.zib-footer-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.zib-footer-copyright {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.zib-footer-animation {
  animation: zibFloat 5s ease-in-out infinite;
}

.zib-footer-gradient {
  background: var(--zib-meihua-gradient-2);
}

.zib-sidebar-collapse {
  transition: width 0.3s;
}

.zib-sidebar-sticky {
  position: sticky;
  top: 20px;
}

.zib-sidebar-floating {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.zib-sidebar-gradient {
  background: var(--zib-meihua-gradient-1);
}

.zib-widget-collapse .widget-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}

.zib-widget-collapse.active .widget-content {
  max-height: 500px;
}

.zib-widget-tabs {
  display: flex;
  flex-direction: column;
}

.zib-widget-tab-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.zib-widget-tab-btn {
  padding: 8px 16px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.zib-widget-tab-btn.active {
  background: var(--zib-meihua-primary);
  color: white;
}

.zib-widget-tab-content {
  display: none;
}

.zib-widget-tab-content.active {
  display: block;
}

.zib-widget-slide {
  animation: zibFloat 3s ease-in-out infinite;
}

.zib-widget-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.zib-widget-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.zib-widget-glass {
  background: var(--zib-meihua-glass-bg);
  backdrop-filter: blur(10px);
  border: var(--zib-meihua-border);
  border-radius: 12px;
}

.zib-comments-avatar-glow img {
  box-shadow: 0 0 15px var(--zib-meihua-glow-color);
}

.zib-comments-level {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: 8px;
}

.zib-comments-level-vip {
  background: linear-gradient(135deg, #ffd700, #ffec8b);
  color: #8b4513;
}

.zib-comments-level-admin {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}

.zib-comments-bubble {
  background: #f0f0f0;
  border-radius: 16px;
  padding: 15px 20px;
  position: relative;
}

.zib-comments-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 15px;
  border: 10px solid transparent;
  border-right-color: #f0f0f0;
}

.zib-comments-like {
  cursor: pointer;
  transition: transform 0.3s;
}

.zib-comments-like:hover {
  transform: scale(1.2);
}

.zib-comments-like.liked {
  color: #ff6b6b;
}

.zib-search-focus {
  width: 300px;
  transition: width 0.3s;
}

.zib-search-focus:focus {
  width: 400px;
}

.zib-search-history {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-top: 10px;
  padding: 10px;
  display: none;
}

.zib-search-history.active {
  display: block;
}

.zib-search-suggestions {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: absolute;
  width: 100%;
  z-index: 1000;
  display: none;
}

.zib-search-suggestions.active {
  display: block;
}

.zib-search-voice {
  cursor: pointer;
  transition: transform 0.3s;
}

.zib-search-voice:hover {
  transform: scale(1.2);
}

.zib-search-voice.recording {
  animation: zibLoaderPulse 1s infinite;
  color: #ff6b6b;
}

.zib-notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 99999;
  transform: translateX(400px);
  transition: transform 0.3s;
}

.zib-notification-toast.show {
  transform: translateX(0);
}

.zib-notification-badge {
  position: relative;
}

.zib-notification-badge::after {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 10px;
  height: 10px;
  background: #ff6b6b;
  border-radius: 50%;
}

.zib-notification-sound {
  animation: zibShake 0.5s;
}

@keyframes zibLive2DBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.zib-live2d {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  animation: zibLive2DBreathe 3s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s;
}

.zib-live2d:hover {
  transform: scale(1.1);
}

.zib-live2d-dialog {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.zib-live2d:hover .zib-live2d-dialog {
  opacity: 1;
}

.zib-live2d-dialog::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: white;
}

.zib-404-gradient {
  background: var(--zib-meihua-gradient-2);
  color: white;
}

.zib-404-animation {
  animation: zibFloat 3s ease-in-out infinite;
}

.zib-404-game {
  text-align: center;
}

.zib-404-countdown {
  font-size: 48px;
  font-weight: bold;
}

.zib-dark-mode-transition {
  transition: background-color 0.3s, color 0.3s;
}

.zib-dark-mode-toggle {
  cursor: pointer;
  font-size: 24px;
  transition: transform 0.3s;
}

.zib-dark-mode-toggle:hover {
  transform: rotate(30deg);
}

.dark-mode {
  --zib-meihua-glass-bg: rgba(0, 0, 0, 0.3);
  --zib-meihua-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.zib-music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9997;
}

.zib-music-player.mini {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.zib-music-visualizer {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 30px;
}

.zib-music-bar {
  width: 4px;
  background: var(--zib-meihua-gradient-2);
  animation: zibMusicBar 0.5s ease-in-out infinite alternate;
}

.zib-music-bar:nth-child(1) { animation-delay: 0s; }
.zib-music-bar:nth-child(2) { animation-delay: 0.1s; }
.zib-music-bar:nth-child(3) { animation-delay: 0.2s; }
.zib-music-bar:nth-child(4) { animation-delay: 0.3s; }
.zib-music-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes zibMusicBar {
  from { height: 5px; }
  to { height: 100%; }
}

.zib-login-glass {
  background: var(--zib-meihua-glass-bg);
  backdrop-filter: blur(20px);
  border: var(--zib-meihua-border);
  border-radius: 20px;
  padding: 40px;
}

.zib-login-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.zib-login-social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s;
}

.zib-login-social-btn:hover {
  transform: scale(1.1);
}

.zib-login-captcha {
  display: flex;
  gap: 10px;
  align-items: center;
}

.zib-login-captcha-img {
  cursor: pointer;
  border-radius: 4px;
}

.zib-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zib-tag-cloud .tag {
  padding: 5px 15px;
  border-radius: 20px;
  transition: all 0.3s;
  cursor: pointer;
}

.zib-tag-cloud .tag:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.zib-tag-3d {
  transform-style: preserve-3d;
  perspective: 500px;
}

.zib-tag-colorful .tag:nth-child(odd) {
  background: var(--zib-meihua-gradient-1);
  color: white;
}

.zib-tag-colorful .tag:nth-child(even) {
  background: var(--zib-meihua-gradient-2);
  color: white;
}

.zib-tag-glow .tag {
  box-shadow: 0 0 10px var(--zib-meihua-glow-color);
}

.zib-time-machine {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.zib-time-machine-item {
  padding: 10px 20px;
  background: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.zib-time-machine-item:hover {
  background: var(--zib-meihua-primary);
  color: white;
}

.zib-timeline {
  position: relative;
  padding-left: 30px;
}

.zib-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--zib-meihua-gradient-2);
}

.zib-timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.zib-timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--zib-meihua-gradient-2);
  box-shadow: 0 0 10px var(--zib-meihua-gradient-2);
}

.zib-friends-link-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.zib-friends-link-card:hover {
  transform: translateY(-5px) rotate(2deg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.zib-friends-link-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.zib-friends-random-btn {
  display: inline-block;
  padding: 10px 30px;
  background: var(--zib-meihua-primary);
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
}

.zib-friends-random-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.zib-love-ranking {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zib-love-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  transition: all 0.3s;
}

.zib-love-item:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.zib-love-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.zib-love-number-1 {
  background: linear-gradient(135deg, #ffd700, #ffec8b);
}

.zib-love-number-2 {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
}

.zib-love-number-3 {
  background: linear-gradient(135deg, #cd7f32, #daa06d);
}

.zib-love-number-default {
  background: #667eea;
}

.zib-stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.zib-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.zib-stat-number {
  font-size: 36px;
  font-weight: bold;
  background: var(--zib-meihua-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zib-stat-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.zib-stat-animation {
  animation: zibFloat 3s ease-in-out infinite;
}

.zib-greeting-morning {
  color: #ff6b6b;
}

.zib-greeting-noon {
  color: #ffa500;
}

.zib-greeting-afternoon {
  color: #4ecdc4;
}

.zib-greeting-evening {
  color: #667eea;
}

.zib-greeting-night {
  color: #764ba2;
}

.zib-weather-icon {
  font-size: 48px;
}

.zib-weather-temp {
  font-size: 32px;
  font-weight: bold;
}

.zib-weather-desc {
  color: #666;
}

@keyframes zibLoveHeart {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100px) scale(0); opacity: 0; }
}

.zib-love-heart {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  font-size: 20px;
  animation: zibLoveHeart 1s ease-out forwards;
}

.zib-click-effect {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
}

.zib-right-menu {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  padding: 10px 0;
  z-index: 99999;
  min-width: 150px;
  display: none;
}

.zib-right-menu.show {
  display: block;
}

.zib-right-menu-item {
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zib-right-menu-item:hover {
  background: #f0f0f0;
}

.zib-right-menu-divider {
  height: 1px;
  background: #eee;
  margin: 5px 0;
}

.zib-dynamic-title {
  transition: all 0.3s;
}

.zib-article-highlight {
  background: linear-gradient(90deg, #fff 0%, #f0f7ff 100%);
}

.zib-sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  animation: zibSlideDown 0.3s ease-out;
}

@keyframes zibSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.zib-fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--zib-meihua-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
  z-index: 9997;
}

.zib-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.zib-fab-hide {
  opacity: 0;
  pointer-events: none;
}

.zib-watermark {
  position: fixed;
  bottom: 10px;
  right: 10px;
  opacity: 0.3;
  font-size: 12px;
  color: #999;
  pointer-events: none;
  z-index: 9999;
}

.zib-sakura {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.zib-code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
}

.zib-code-copy-btn:hover {
  background: #667eea;
  color: white;
}

.zib-image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.zib-image-lightbox.show {
  opacity: 1;
  visibility: visible;
}

.zib-image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.zib-image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 36px;
  color: white;
  cursor: pointer;
}

.zib-typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #667eea;
  animation: zibTyping 3s steps(40, end), zibBlink 0.75s step-end infinite;
}

@keyframes zibTyping {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes zibBlink {
  from, to { border-color: transparent; }
  50% { border-color: #667eea; }
}

.zib-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.zib-marquee-content {
  display: inline-block;
  animation: zibMarquee 20s linear infinite;
}

@keyframes zibMarquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.zib-glitch {
  position: relative;
}

.zib-glitch::before,
.zib-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.zib-glitch::before {
  animation: zibGlitch-1 0.3s infinite linear alternate-reverse;
  color: #ff00ff;
  z-index: -1;
}

.zib-glitch::after {
  animation: zibGlitch-2 0.3s infinite linear alternate-reverse;
  color: #00ffff;
  z-index: -2;
}

@keyframes zibGlitch-1 {
  0% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  20% { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
  40% { clip-path: inset(40% 0 40% 0); transform: translate(-3px, 0); }
  60% { clip-path: inset(80% 0 10% 0); transform: translate(3px, 0); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(50% 0 30% 0); transform: translate(3px, 0); }
}

@keyframes zibGlitch-2 {
  0% { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  40% { clip-path: inset(80% 0 10% 0); transform: translate(3px, 0); }
  60% { clip-path: inset(40% 0 40% 0); transform: translate(-3px, 0); }
  80% { clip-path: inset(30% 0 50% 0); transform: translate(3px, 0); }
  100% { clip-path: inset(70% 0 10% 0); transform: translate(-3px, 0); }
}

.zib-neon-text {
  color: #fff;
  text-shadow: 0 0 5px var(--zib-meihua-neon-color),
               0 0 10px var(--zib-meihua-neon-color),
               0 0 20px var(--zib-meihua-neon-color),
               0 0 40px var(--zib-meihua-neon-color);
  animation: zibNeonFlicker 2s infinite alternate;
}

@keyframes zibNeonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 5px var(--zib-meihua-neon-color),
                 0 0 10px var(--zib-meihua-neon-color),
                 0 0 20px var(--zib-meihua-neon-color),
                 0 0 40px var(--zib-meihua-neon-color);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

.zib-gradient-text {
  background: var(--zib-meihua-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zib-3d-text {
  text-shadow: 0 1px 0 #ccc,
               0 2px 0 #c9c9c9,
               0 3px 0 #bbb,
               0 4px 0 #b9b9b9,
               0 5px 0 #aaa,
               0 6px 1px rgba(0,0,0,.1),
               0 0 5px rgba(0,0,0,.1),
               0 1px 3px rgba(0,0,0,.3),
               0 3px 5px rgba(0,0,0,.2),
               0 5px 10px rgba(0,0,0,.25),
               0 10px 10px rgba(0,0,0,.2),
               0 20px 20px rgba(0,0,0,.15);
}

.zib-stroke-text {
  -webkit-text-stroke: 2px #667eea;
  color: transparent;
}

.zib-shadow-text {
  text-shadow: 4px 4px 0 #667eea,
               8px 8px 0 rgba(102, 126, 234, 0.3);
}

.zib-animate-text span {
  display: inline-block;
  animation: zibTextBounce 0.6s ease-out;
}

@keyframes zibTextBounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.zib-wave-text span {
  display: inline-block;
  animation: zibTextWave 1s ease-in-out infinite;
}

@keyframes zibTextWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.zib-random-text span {
  display: inline-block;
  animation: zibTextRandom 0.5s ease-out;
}

@keyframes zibTextRandom {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.zib-member-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.zib-member-header {
  text-align: center;
  margin-bottom: 40px;
}

.zib-member-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
  background: var(--zib-meihua-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zib-member-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .zib-member-content {
    grid-template-columns: 1fr;
  }
}

.zib-member-sidebar {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.zib-member-avatar {
  text-align: center;
  margin-bottom: 20px;
}

.zib-member-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid;
  border-image: var(--zib-meihua-gradient-2) 1;
}

.zib-member-name {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
}

.zib-member-level {
  text-align: center;
  padding: 5px 15px;
  background: var(--zib-meihua-gradient-2);
  color: white;
  border-radius: 20px;
  display: inline-block;
  font-size: 14px;
  margin: 0 auto;
  display: table;
}

.zib-member-stats {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.zib-member-stat-item {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 12px;
}

.zib-member-stat-number {
  font-size: 28px;
  font-weight: bold;
  background: var(--zib-meihua-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zib-member-stat-label {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.zib-member-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.zib-member-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.zib-member-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zib-member-section h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--zib-meihua-gradient-2);
  border-radius: 2px;
}

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

.zib-member-level-card {
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.zib-member-level-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(45deg);
}

.zib-member-level-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.zib-member-level-card-normal {
  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.zib-member-level-card-silver {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
}

.zib-member-level-card-gold {
  background: linear-gradient(135deg, #ffd700, #ffec8b);
}

.zib-member-level-card-platinum {
  background: linear-gradient(135deg, #e5e4e2, #f5f5f5);
}

.zib-member-level-card-diamond {
  background: linear-gradient(135deg, #b9f2ff, #e0f7ff);
}

.zib-member-level-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.zib-member-level-price {
  font-size: 36px;
  font-weight: bold;
  margin: 20px 0;
}

.zib-member-level-benefits {
  text-align: left;
  margin: 20px 0;
}

.zib-member-level-benefit {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zib-member-level-benefit::before {
  content: '✓';
  color: #4caf50;
  font-weight: bold;
}

.zib-member-level-btn {
  display: inline-block;
  padding: 12px 40px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.zib-member-level-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.zib-member-level-btn-normal {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.zib-member-level-btn-silver {
  background: linear-gradient(135deg, #a0a0a0, #c0c0c0);
  color: white;
}

.zib-member-level-btn-gold {
  background: linear-gradient(135deg, #ff8c00, #ffd700);
  color: #8b4513;
}

.zib-member-level-btn-platinum {
  background: linear-gradient(135deg, #708090, #b0c4de);
  color: white;
}

.zib-member-level-btn-diamond {
  background: linear-gradient(135deg, #00ced1, #40e0d0);
  color: white;
}

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

.zib-member-benefit-item {
  padding: 25px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  transition: all 0.3s;
}

.zib-member-benefit-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  transform: translateY(-5px);
}

.zib-member-benefit-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.zib-member-benefit-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.zib-member-benefit-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.zib-member-orders {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.zib-member-order-item {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.zib-member-order-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.zib-member-order-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.zib-member-order-info p {
  font-size: 14px;
  color: #666;
}

.zib-member-order-status {
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: bold;
}

.zib-member-order-status-success {
  background: linear-gradient(135deg, #4caf50, #81c784);
  color: white;
}

.zib-member-order-status-pending {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: white;
}

.zib-member-order-status-failed {
  background: linear-gradient(135deg, #f44336, #ef5350);
  color: white;
}
