html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #ffffff00;
  color: #e0e0e0;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* 确保所有颜色相关属性平滑过渡 */
*, *::before, *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 避免影响UI动画和用户交互 */
button, input, select, textarea, a {
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  --bg-gradient: linear-gradient(135deg, #0f0f18 0%, #1a1a2e 100%);
  --card-bg: rgba(20, 20, 35, 0.75);
  --text-color: #e0e0e0;
  --accent-color: #a0a8d9;
  --button-bg: #3b4da0;
  --button-hover: #4c5eb6;
  --input-bg: rgba(25, 25, 40, 0.5);
  --input-border: rgba(100, 120, 200, 0.3);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 12px 40px rgba(100, 120, 200, 0.25);
}

body.light-theme {
  --bg-gradient: linear-gradient(135deg, #f0f7eb, #e2f0d9);
  --card-bg: rgba(248, 252, 245, 0.9);
  --text-color: #186037;
  --accent-color: #0d8043;
  --button-bg: #0d8043;
  --button-hover: #076a33;
  --input-bg: rgba(255, 255, 255, 0.95);
  --input-border: rgba(13, 128, 67, 0.4);
  --card-shadow: 20px 20px 40px rgba(13, 128, 67, 0.25),
                -20px -20px 40px rgba(248, 252, 245, 0.7),
                inset 6px 6px 12px rgba(255, 255, 255, 0.6),
                inset -6px -6px 12px rgba(13, 128, 67, 0.1);
  --card-hover-shadow: 25px 25px 50px rgba(13, 128, 67, 0.35),
                      -25px -25px 50px rgba(248, 252, 245, 0.8);
  font-family: 'Poppins', 'Arial Rounded MT Bold', 'PingFang SC', sans-serif;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  z-index: -1;
  transition: background 0.3s ease;
}

.content-wrapper {
  flex-direction: column;
  min-height: 100vh;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  position: relative;
  padding-top: 70px;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.content > h1 {
  text-align: center;
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px rgba(100, 120, 200, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.current-time-container {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.current-time-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.main-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 2rem;
}

.form-container {
  flex: 1;
  max-width: 500px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform: translate(50%);
}

.result-container {
  flex: 1;
  max-width: 500px;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.form-active .form-container {
  transform: translateX(-50px);
}

.form-active .result-container {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 20px;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.card-title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.card-title h2 {
  font-size: 1.25rem;
  color: var(--accent-color);
}

.form-control {
  margin-bottom: 1rem;
}

.label {
  display: block;
  margin-bottom: 0.5rem;
}

.label-text {
  color: var(--accent-color);
  font-weight: 500;
}

.input, .select {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0.5rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.input:hover, .select:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(160, 168, 217, 0.2);
  transform: translateY(-2px);
}

.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(160, 168, 217, 0.3);
  transform: translateY(-3px);
}

.btn {
  width: 100%;
  padding: 0.75rem;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
}

.btn:hover {
  background-color: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 77, 160, 0.3);
}

.btn:hover:before {
  width: 100%;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59, 77, 160, 0.2);
}

.hidden {
  display: none;
}

.hologram-effect {
  position: relative;
  overflow: visible;
  border-radius: 16px;
  box-shadow: 
    0 0 10px rgba(100, 120, 200, 0.15),
    0 0 20px rgba(0, 200, 255, 0.05);
  background: var(--card-bg);
  min-height: auto;
  border: 1px solid rgba(100, 120, 200, 0.1);
  transition: all 0.3s ease;
  height: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hologram-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  z-index: 5;
}

.hologram-effect::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  z-index: 5;
}

.form-active .hologram-effect {
  animation: none;
}

.result-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.result {
  margin-top: 1rem;
  flex-grow: 1;
  overflow-y: auto;
  color: var(--text-color);
  font-family: 'Poppins', monospace;
  transition: all 0.3s ease;
}

.result .card {
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 1rem;
  transform: scale(0.95);
  opacity: 0;
  animation: cardAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.result .card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--card-hover-shadow);
}

@keyframes cardAppear {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.result:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-style: italic;
  color: var(--accent-color);
  opacity: 0.6;
}

.result:empty::after {
  content: attr(data-empty-text);
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(160, 168, 217, 0.2) 15%, 
    rgba(160, 168, 217, 0.8) 50%,
    rgba(160, 168, 217, 0.2) 85%,
    transparent 100%);
  box-shadow: 0 0 15px rgba(160, 168, 217, 0.7);
  opacity: 0;
  z-index: 10;
}

@keyframes scanAnimation {
  0% {
    top: 0;
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes borderPulse {
  0% {
    box-shadow: 
      0 0 10px rgba(100, 120, 200, 0.1),
      0 0 20px rgba(0, 200, 255, 0.05);
  }
  100% {
    box-shadow: 
      0 0 15px rgba(100, 120, 200, 0.1),
      0 0 30px rgba(0, 200, 255, 0.05);
  }
}

/* 明亮主题的特殊样式 */
body.light-theme select, body.light-theme input {
  background: linear-gradient(145deg, #fff, #f7faf4);
  border: 2px solid rgba(13, 128, 67, 0.3);
  border-radius: 20px;
  padding: 5px 18px;
  color: #186037;
  box-shadow:
    inset 4px 4px 8px rgba(13, 128, 67, 0.08),
    inset -4px -4px 8px rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.light-theme select:hover, body.light-theme input:hover {
  border-color: rgba(13, 128, 67, 0.6);
  box-shadow: 
    inset 4px 4px 8px rgba(13, 128, 67, 0.12),
    inset -4px -4px 8px rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(13, 128, 67, 0.15);
  transform: translateY(-5px);
}

body.light-theme select:focus, body.light-theme input:focus {
  outline: none;
  border-color: rgba(13, 128, 67, 0.8);
  box-shadow: 
    inset 6px 6px 10px rgba(13, 128, 67, 0.15),
    inset -6px -6px 10px rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(13, 128, 67, 0.2);
  transform: translateY(-5px) translateZ(10px);
}

body.light-theme button {
  background: linear-gradient(145deg, #0d8043, #076a33);
  color: white;
  border-radius: 30px;
  box-shadow:
    10px 10px 20px rgba(13, 128, 67, 0.4),
    -6px -6px 12px rgba(13, 128, 67, 0.25),
    inset 3px 3px 6px rgba(255, 255, 255, 0.3),
    inset -3px -3px 6px rgba(7, 60, 30, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  overflow: hidden;
  position: relative;
}

body.light-theme button:hover {
  transform: translateY(-8px) translateZ(10px);
  box-shadow:
    15px 15px 30px rgba(13, 128, 67, 0.45),
    -10px -10px 20px rgba(13, 128, 67, 0.25),
    inset 4px 4px 8px rgba(255, 255, 255, 0.4),
    inset -4px -4px 8px rgba(7, 60, 30, 0.25);
}

body.light-theme button:active {
  transform: translateY(2px) scale(0.97);
  box-shadow:
    4px 4px 8px rgba(13, 128, 67, 0.4),
    -2px -2px 4px rgba(13, 128, 67, 0.2),
    inset 8px 8px 16px rgba(7, 60, 30, 0.25);
  border-radius: 25px 35px 35px 25px;
}

body.light-theme .result {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(240, 247, 235, 0.5));
  border-radius: 25px;
  padding: 30px 25px;
  color: #186037;
  box-shadow:
    inset 8px 8px 16px rgba(13, 128, 67, 0.1),
    inset -8px -8px 16px rgba(255, 255, 255, 0.7),
    5px 5px 10px rgba(13, 128, 67, 0.1);
  transform-style: preserve-3d;
}

body.light-theme .result:hover {
  box-shadow:
    12px 12px 24px rgba(13, 128, 67, 0.25),
    -8px -8px 16px rgba(248, 252, 245, 0.7),
    inset 8px 8px 16px rgba(13, 128, 67, 0.15),
    inset -8px -8px 16px rgba(255, 255, 255, 0.8);
  transform: translateY(-5px) translateZ(10px);
}

body.light-theme .current-time-container {
  background: linear-gradient(145deg, #f0f7eb, #e2f0d9);
  color: #186037;
  border-radius: 20px;
  padding: 15px;
  box-shadow:
    8px 8px 16px rgba(13, 128, 67, 0.25),
    -8px -8px 16px rgba(248, 252, 245, 0.6),
    inset 2px 2px 4px rgba(255, 255, 255, 0.7),
    inset -2px -2px 4px rgba(13, 128, 67, 0.1);
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.6);
}

body.light-theme .current-time-container:hover {
  transform: translateY(-5px) translateZ(10px);
  box-shadow:
    12px 12px 24px rgba(13, 128, 67, 0.35),
    -12px -12px 24px rgba(248, 252, 245, 0.7);
}

body.light-theme #particles-js {
  background: linear-gradient(135deg, #f0f7eb, #e2f0d9);
}

body.light-theme .refresh-btn {
  color: #0d8043;
}

body.light-theme .refresh-btn:hover {
  color: #076a33;
}

body.light-theme .hologram-effect {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(240, 247, 235, 0.6));
  border-radius: 16px;
  padding: 5px;
  box-shadow:
    10px 10px 20px rgba(13, 128, 67, 0.15),
    -10px -10px 20px rgba(248, 252, 245, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

body.light-theme .form-active .hologram-effect {
  animation: none;
}

body.light-theme .form-active .result .text-lg {
  color: #186037;
  text-shadow: 0 0 5px rgba(13, 128, 67, 0.3);
}

body.light-theme .scan-line {
  background: transparent;
  box-shadow: none;
}

body.light-theme .card {
  background: linear-gradient(145deg, #f8fcf5, #e8f4df);
  border-radius: 30px;
  border: 4px solid rgba(255, 255, 255, 0.7);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67),
              box-shadow 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67),
              border-radius 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  position: relative;
  overflow: hidden;
}

body.light-theme .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 2px, transparent 5px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.15) 3px, transparent 7px);
  background-size: 60px 40px;
  z-index: 1;
  pointer-events: none;
}

body.light-theme .card:hover {
  border-radius: 35px 25px 30px 40px;
  transform: translateY(-8px) translateZ(20px);
}

body.light-theme h1 {
  background: linear-gradient(45deg, #186037, #0d8043);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: 1px;
}

body.light-theme label {
  color: #186037;
  font-weight: bold;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.light-theme .result {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(240, 247, 235, 0.5));
  border-radius: 25px;
  padding: 30px 25px;
  color: #186037;
  box-shadow:
    inset 8px 8px 16px rgba(13, 128, 67, 0.1),
    inset -8px -8px 16px rgba(255, 255, 255, 0.7),
    5px 5px 10px rgba(13, 128, 67, 0.1);
  transform-style: preserve-3d;
}

body.light-theme .result:hover {
  box-shadow:
    12px 12px 24px rgba(13, 128, 67, 0.25),
    -8px -8px 16px rgba(248, 252, 245, 0.7),
    inset 8px 8px 16px rgba(13, 128, 67, 0.15),
    inset -8px -8px 16px rgba(255, 255, 255, 0.8);
  transform: translateY(-5px) translateZ(10px);
}

@keyframes borderPulse {
  0% {
    box-shadow: 
      0 0 10px rgba(100, 120, 200, 0.1),
      0 0 20px rgba(0, 200, 255, 0.05);
  }
  100% {
    box-shadow: 
      0 0 15px rgba(100, 120, 200, 0.1),
      0 0 30px rgba(0, 200, 255, 0.05);
  }
}

/* 明亮主题的导航栏样式 */
body.light-theme .navbar {
  background-color: rgba(255, 250, 240, 0.85);
  border-bottom: 1px solid rgba(155, 126, 255, 0.2);
  box-shadow: 0 4px 20px rgba(13, 128, 67, 0.15);
}

body.light-theme .navbar-start .btn-ghost, 
body.light-theme .navbar-center .menu-horizontal a,
body.light-theme .navbar-end .btn-ghost {
  color: var(--text-color);
}

body.light-theme .navbar .dropdown-content {
  background-color: rgba(255, 250, 240, 0.95);
  border: 1px solid rgba(155, 126, 255, 0.2);
  box-shadow: 0 10px 25px rgba(13, 128, 67, 0.2);
}

body.light-theme .navbar .menu a.active {
  background-color: var(--button-bg);
  color: #fff;
}

body.light-theme .theme-toggle {
  background-color: #0d8043;
}

body.light-theme .theme-toggle:hover {
  box-shadow: 0 4px 15px rgba(13, 128, 67, 0.4);
}

/* 深棕色用于强调元素 */
body.light-theme .card-title h2 {
  color: #61381d;
  font-weight: 600;
}

/* 深蓝色用于某些强调元素 */
body.light-theme .result h3 {
  color: #2c4770;
}

/* Responsive styles */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-container, .result-container {
    max-width: 100%;
    transform: translate(0px);
  }
  
  .form-active .form-container {
    transform: translateY(-10px);
  }
  
  .result-container {
    transform: translateY(50px);
  }
  
  .form-active .result-container {
    transform: translateY(0);
  }
  
  body.light-theme .card {
    border-radius: 20px;
    padding: 15px;
  }
  
  body.light-theme select, body.light-theme input {
    padding: 12px 15px;
  }
}

/* RTL support */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .card,
html[dir="rtl"] .form-control,
html[dir="rtl"] .label,
html[dir="rtl"] .input,
html[dir="rtl"] .select,
html[dir="rtl"] .btn {
  text-align: right;
}

.rtl-text {
  direction: rtl;
  text-align: right;
}

/* Navbar styles */
/* 导航栏样式已移至共享样式文件 common/navbar-styles.css */

/* 方向指示器样式 */
#direction-indicator,
#direction-indicator-mobile {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
}

/* Navbar button size fixes */
.navbar .btn-ghost {
  height: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .btn-ghost.text-xl {
  height: auto;
  width: auto;
  min-width: auto;
  padding: 0.5rem 1rem;
}

.navbar .dropdown label.btn {
  height: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-center .menu a {
  height: 2.5rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

/* Fix for dropdown menu positioning */
.dropdown .dropdown-content {
  transform-origin: top;
}

/* 移动设备上的导航栏调整 */
@media (max-width: 768px) {
  .navbar .dropdown-content {
    width: 90vw;
    max-width: 300px;
  }
  
  .navbar .dropdown-content select {
    max-width: 120px;
  }
}

/* 明亮主题的导航栏样式 */
body.light-theme .navbar {
  background-color: rgba(255, 250, 240, 0.85);
  border-bottom: 1px solid rgba(155, 126, 255, 0.2);
}

body.light-theme .navbar-start .btn-ghost, 
body.light-theme .navbar-end .btn-ghost {
  color: var(--text-color);
}

body.light-theme .navbar .dropdown-content {
  background-color: rgba(255, 250, 240, 0.95);
  border: 1px solid rgba(155, 126, 255, 0.2);
}

body.light-theme .navbar .menu a.active {
  background-color: var(--button-bg);
  color: #fff;
}

/* Theme toggle */
.theme-toggle {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Navbar button size fixes */
.navbar .btn-ghost {
  height: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .btn-ghost.text-xl {
  height: auto;
  width: auto;
  min-width: auto;
  padding: 0.5rem 1rem;
}

.navbar .dropdown label.btn {
  height: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-center .menu a {
  height: 2.5rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

/* Fix for dropdown menu positioning */
.dropdown .dropdown-content {
  transform-origin: top;
}

/* Fix for RTL buttons */
html[dir="rtl"] .navbar .btn-ghost {
  transform: scaleX(-1);
}

以下是添加的样式
body > div.content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 30px auto;
  padding: 0;
  background: transparent;
}

.form-card {
  margin-bottom: 0;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.form-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.language-selector-container {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-selector select {
  width: auto;
  padding: 8px 12px;
  font-size: 0.9rem;
  background-color: rgba(25, 25, 40, 0.8);
  border: none;
  border-radius: 20px;
  color: #a0a8d9;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23a0a8d9' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 30px;
}

.language-selector select:hover, .language-selector select:focus {
  background-color: rgba(35, 35, 50, 0.9);
  box-shadow: 0 4px 15px rgba(100, 120, 200, 0.3);
  transform: translateY(-2px);
  outline: none;
}

.direction-btn {
  background-color: rgba(25, 25, 40, 0.8);
  color: #a0a8d9;
  border: none;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.direction-btn:hover {
  background-color: rgba(35, 35, 50, 0.9);
  box-shadow: 0 4px 15px rgba(100, 120, 200, 0.3);
  transform: translateY(-2px);
}

h1 {
  text-align: center;
  color: var(--accent-color);
  font-size: 28px;
  margin-bottom: 24px;
  text-shadow: 0 0 8px rgba(100, 120, 200, 0.3);
}

label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
  color: var(--accent-color);
  transition: transform 0.3s;
}

label:hover {
  transform: translateX(5px);
}

select, input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  font-size: 1rem;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--text-color);
  transition: all 0.3s ease;
}

select:hover, input:hover {
  border-color: #8087b8;
  box-shadow: 0 0 8px rgba(100, 120, 200, 0.4);
  transform: translateY(-2px);
}

select:focus, input:focus {
  outline: none;
  border-color: #8087b8;
  box-shadow: 0 0 12px rgba(100, 120, 200, 0.5);
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  font-size: 1rem;
  background-color: var(--button-bg);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 77, 160, 0.3);
  position: relative;
  overflow: hidden;
}

button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease;
}

button:hover {
  background-color: var(--button-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(59, 77, 160, 0.4);
}

button:hover:before {
  width: 100%;
}

button:active {
  transform: translateY(-1px);
}

.result {
  margin-top: 30px;
  background: var(--card-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 20px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text-color);
  word-break: break-word;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.result:hover {
  box-shadow: 0 6px 20px rgba(100, 120, 200, 0.3);
  transform: translateY(-2px);
}

.hidden { display: none; }

button:disabled { 
  background: #252d4d; 
  cursor: not-allowed; 
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

button:disabled:before {
  display: none;
}

.exchange-rate-container {
  position: relative;
}

.exchange-rate-container:hover .rate-update-info {
  display: block;
}

.input-with-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-button input {
  width: 100%;
  padding-right: 40px;
}

.refresh-btn {
  position: absolute;
  right: 8px;
  top: 55%;
  transform: translateY(-50%);
  width: 28px !important;
  height: 28px !important;
  min-height: unset;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: transparent !important;
  color: var(--accent-color);
  border: none;
  z-index: 5;
  box-shadow: none !important;
}

.refresh-btn:hover {
  transform: translateY(-50%) rotate(180deg);
  color: var(--button-bg);
}

.rate-update-info {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  padding: 5px;
  font-size: 0.8rem;
  color: #8087b8;
  background-color: var(--card-bg);
  border-radius: 5px;
  z-index: 10;
}

.rate-info-in-result {
  color: var(--accent-color);
  font-weight: 500;
  font-style: italic;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.rate-info-in-result:hover {
  opacity: 1;
}

.input-card {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  margin-bottom: 15px;
  background-color: var(--card-bg);
  transition: all 0.3s ease;
}

.input-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(100, 120, 200, 0.3);
  border-color: var(--accent-color);
}

.input-card label {
  margin-top: 0;
}

/* RTL Support */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .language-selector-container {
  right: auto;
  left: 15px;
}

html[dir="rtl"] .language-selector {
  flex-direction: row-reverse;
}

html[dir="rtl"] .language-selector select {
  background-position: left 8px center;
  padding-right: 12px;
  padding-left: 30px;
}

html[dir="rtl"] input[type="number"],
html[dir="rtl"] select {
  text-align: right;
}

html[dir="rtl"] .input-with-button input {
  padding-right: 12px;
  padding-left: 40px;
}

html[dir="rtl"] .refresh-btn {
  right: auto;
  left: 8px;
}

html[dir="rtl"] .refresh-btn:hover {
  transform: translateY(-50%) rotate(-180deg);
  color: var(--button-bg);
}

html[dir="rtl"] .result {
  text-align: right;
}

html[dir="rtl"] label:hover {
  transform: translateX(-5px);
}

html[dir="rtl"] .input-card:hover {
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  h1 { font-size: 22px; }
  body > div.content {
    margin: 20px 10px;
  }
  .card {
    padding: 15px;
  }
  select, input, button {
    padding: 10px;
  }
  .language-selector-container {
    top: 10px;
    right: 10px;
  }
  .language-selector {
    gap: 5px;
  }
  .direction-btn {
    padding: 6px 10px;
  }
  .input-with-button {
    position: relative;
    display: flex;
    align-items: center;
  }
  .refresh-btn {
    position: absolute;
    right: 8px;
    width: 24px !important;
    height: 24px !important;
  }
}

.result:empty {
  padding: 0;
  border: none;
  box-shadow: none;
  margin: 0;
}

.result:not(:empty) {
  animation: fadeIn 0.5s;
  padding: 20px;
}

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

/* Theme Toggle Switch */
.theme-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  width: 60px;
  height: 30px;
  background-color: #3b4da0;
  border-radius: 30px;
  cursor: pointer;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.theme-toggle:hover {
  box-shadow: 0 4px 15px rgba(100, 120, 200, 0.5);
  transform: translateY(-2px);
}

.theme-toggle .toggle-icon {
  width: 24px;
  height: 24px;
  font-size: 16px;
  color: white;
  position: absolute;
}

.theme-toggle .toggle-ball {
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: white;
  border-radius: 50%;
  left: 4px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.light-theme .theme-toggle .toggle-ball {
  transform: translateX(30px);
}

.light-theme .theme-toggle {
  background-color: #e67e22;
}

html[dir="rtl"] .direction-btn {
  transform: scaleX(-1);
  transition: transform 0.3s;
}

html[dir="rtl"] .fa-calculator,
html[dir="rtl"] .fa-money-bill-wave {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .refresh-btn {
  transform: rotate(-180deg);
  transition: all 0.3s ease;
}

html[dir="rtl"] .refresh-btn:hover {
  transform: rotate(0deg);
}

#result:not(:empty) {
  animation: fadeIn 0.5s;
  padding: 20px;
  margin-bottom: 30px;
}

input:disabled, button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--input-bg);
  box-shadow: none;
  transform: none;
}

/* Focus styles for accessibility */
.input:focus, .select:focus {
  outline: 2px solid var(--accent-color);
  box-shadow: 0 0 0 3px rgba(100, 120, 200, 0.25);
}

/* Animation delay for results section */
#result {
  transition: opacity 0.5s ease;
  min-height: 20px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .card {
    padding: 15px;
    margin-bottom: 15px;
  }
  .card-body {
    padding: 10px;
  }
  .text-3xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  /* Ensure stacked layout on mobile */
  .form-section, .result-section {
    width: 100%;
  }
  .result-section {
    margin-top: 20px;
  }
}

/* Tablet layout adjustments */
@media (min-width: 769px) and (max-width: 1023px) {
  body > div.content {
    max-width: 90%;
    margin: 20px auto;
  }
  
  .form-section, .result-section {
    width: 100%;
  }
  
  .result-section {
    margin-top: 20px;
  }
  
  .card {
    margin-bottom: 20px;
  }
}

/* Dark mode particle colors */
body.dark .particles-js-canvas-el {
  filter: brightness(0.8) contrast(1.2);
}

/* Light mode particle colors */
body.light .particles-js-canvas-el {
  filter: brightness(1.1) contrast(0.9);
}

/* PC left-right layout */
@media (min-width: 1024px) {
  body > div.content {
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
    margin-top: 15px;
  }

  .content > h1 {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.75rem;
  }

  .current-time-container {
    width: 100%;
    margin-bottom: 15px;
    padding: 6px;
  }

  /* Compact form layout */
  .form-section {
    width: 48%;
  }

  .form-card {
    height: auto;
    margin-bottom: 0;
    padding: 15px;
  }

  .form-card .card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
  }

  .form-card .card-title {
    grid-column: 1 / -1;
    margin-bottom: 5px;
    padding-bottom: 0;
  }

  .form-card .card-title h2 {
    margin: 0;
  }

  .form-card .form-control {
    margin-top: 0;
    margin-bottom: 0;
  }

  .form-card .form-control.full-width {
    grid-column: 1 / -1;
  }

  .form-card button {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .form-card label {
    margin-top: 0;
    margin-bottom: 2px;
  }

  .form-card .label {
    padding: 0 0 2px 0;
    min-height: auto;
  }

  .form-card input, 
  .form-card select {
    padding: 6px 10px;
    height: 34px;
    font-size: 0.95rem;
  }

  .form-card .btn {
    padding: 6px;
    height: 36px;
    margin-top: 8px;
  }

  /* Adjust spacing for rate info */
  .form-card #rate-info {
    font-size: 0.7rem;
    margin-top: 2px;
  }

  .result-section {
    width: 48%;
    margin-top: 55px; /* Align with the form card title */
    display: flex;
    flex-direction: column;
  }

  .result-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
  }

  .result {
    min-height: 300px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 700px;
  }
  
  .result:empty {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed var(--input-border);
    background: var(--card-bg);
    opacity: 0.7;
  }
  
  .result:empty::after {
    content: attr(data-empty-text, "等待输入参数计算结果");
    color: var(--text-color);
    opacity: 0.5;
    font-style: italic;
  }
  
  /* Improve card styling for PC */
  .card {
    margin-bottom: 0;
  }

  /* Adjust theme toggle and language selector */
  .theme-toggle {
    top: 10px;
  }
  
  .language-selector-container {
    top: 10px;
  }
}

/* 扫描线动画和全息效果 */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, 
    rgba(0, 200, 255, 0), 
    rgba(0, 200, 255, 0.5), 
    rgba(0, 200, 255, 0.8), 
    rgba(0, 200, 255, 0.5), 
    rgba(0, 200, 255, 0)
  );
  box-shadow: 
    0 0 10px rgba(0, 200, 255, 0.5),
    0 0 20px rgba(0, 200, 255, 0.3),
    0 0 30px rgba(0, 200, 255, 0.1);
  z-index: 10;
  opacity: 0;
  transform: translateY(-10px);
}

/* 扫描动画 */
@keyframes scanAnimation {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(400px);
    opacity: 0;
  }
}

/* 边框脉冲动画 */
@keyframes borderPulse {
  0% {
    box-shadow: 
      0 0 10px rgba(100, 120, 200, 0.1),
      0 0 20px rgba(0, 200, 255, 0.05);
  }
  100% {
    box-shadow: 
      0 0 15px rgba(100, 120, 200, 0.1),
      0 0 30px rgba(0, 200, 255, 0.05);
  }
}

/* 全息投影效果 */
.hologram-effect {
  position: relative;
  overflow: visible;
  border-radius: 16px;
  box-shadow: 
    0 0 10px rgba(100, 120, 200, 0.15),
    0 0 20px rgba(0, 200, 255, 0.05);
  background: var(--card-bg);
  min-height: auto;
  border: 1px solid rgba(100, 120, 200, 0.1);
  transition: all 0.3s ease;
  height: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hologram-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  z-index: 5;
}

.hologram-effect::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  z-index: 5;
}

.form-active .hologram-effect {
  animation: none;
}

.result-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

/* 全息投影数值闪烁效果 */
.form-active .result .text-lg {
  position: relative;
  animation: numberGlow 2s infinite alternate;
}

@keyframes numberGlow {
  0% {
    text-shadow: 0 0 2px rgba(0, 200, 255, 0.3);
  }
  100% {
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.7);
  }
}

/* 结果卡片动画 */
.hologram-card {
  opacity: 0;
  transform: translateY(20px);
  animation: cardAppear 0.8s forwards;
  animation-delay: var(--delay, 0s);
}

/* Navbar styles */
.navbar {
  background-color: var(--card-bg);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-start .btn-ghost, 
.navbar-center .menu-horizontal a,
.navbar-end .btn-ghost {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.navbar-start .btn-ghost:hover, 
.navbar-center .menu-horizontal a:hover,
.navbar-end .btn-ghost:hover {
  background-color: rgba(100, 120, 200, 0.1);
  transform: translateY(-2px);
}

.navbar .dropdown-content {
  background-color: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--card-shadow);
}

.navbar .menu a.active {
  background-color: var(--button-bg);
  color: #fff;
}

.navbar .menu li.active {
  background-color: transparent;
}

.navbar-end .dropdown-content,
.navbar-start .dropdown-content {
  min-width: 220px;
}

/* 方向指示器样式 */
#direction-indicator,
#direction-indicator-mobile {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
}

/* Navbar button size fixes */
.navbar .btn-ghost {
  height: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .btn-ghost.text-xl {
  height: auto;
  width: auto;
  min-width: auto;
  padding: 0.5rem 1rem;
}

.navbar .dropdown label.btn {
  height: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-center .menu a {
  height: 2.5rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

/* Fix for dropdown menu positioning */
.dropdown .dropdown-content {
  transform-origin: top;
}

/* 移动设备上的导航栏调整 */
@media (max-width: 768px) {
  .navbar .dropdown-content {
    width: 90vw;
    max-width: 300px;
  }
  
  .navbar .dropdown-content select {
    max-width: 120px;
  }
}

/* 明亮主题的导航栏样式 */
body.light-theme .navbar {
  background-color: rgba(255, 250, 240, 0.85);
  border-bottom: 1px solid rgba(155, 126, 255, 0.2);
}

body.light-theme .navbar-start .btn-ghost, 
body.light-theme .navbar-end .btn-ghost {
  color: var(--text-color);
}

body.light-theme .navbar .dropdown-content {
  background-color: rgba(255, 250, 240, 0.95);
  border: 1px solid rgba(155, 126, 255, 0.2);
}

body.light-theme .navbar .menu a.active {
  background-color: var(--button-bg);
  color: #fff;
} 