/* 拟态风格 (Neumorphism) 样式 */

/* 基础拟态容器 */
.neumorphic-container {
  background: #e0e5ec;
  border-radius: 20px;
  position: relative;
  box-shadow: 
    8px 8px 16px #b8bec7, 
    -8px -8px 16px #ffffff;
}

/* 拟态按钮 */
.neumorphic-button {
  background: #e0e5ec;
  border-radius: 50px;
  border: none;
  color: #656a73;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 
    6px 6px 12px #b8bec7, 
    -6px -6px 12px #ffffff;
  transition: all 0.3s ease;
  position: relative;
  outline: none;
}

.neumorphic-button:hover {
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  color: #165DFF;
}

.neumorphic-button:active {
  box-shadow: 
    inset 6px 6px 12px #b8bec7, 
    inset -6px -6px 12px #ffffff;
}

.neumorphic-button.primary {
  color: #165DFF;
}

.neumorphic-button.accent {
  color: #722ED1;
}

/* 拟态卡片 */
.neumorphic-card {
  background: #e0e5ec;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 
    8px 8px 16px #b8bec7, 
    -8px -8px 16px #ffffff;
  transition: all 0.3s ease;
  position: relative;
}

.neumorphic-card:hover {
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

/* 拟态输入框 */
.neumorphic-input {
  background: #e0e5ec;
  border-radius: 12px;
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  color: #656a73;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.neumorphic-input:focus {
  box-shadow: 
    inset 6px 6px 12px #b8bec7, 
    inset -6px -6px 12px #ffffff,
    0 0 0 2px rgba(22, 93, 255, 0.2);
}

/* 拟态选择框 */
.neumorphic-select {
  background: #e0e5ec;
  border-radius: 12px;
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  color: #656a73;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  outline: none;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23656a73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 36px;
}

/* 拟态开关 */
.neumorphic-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.neumorphic-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.neumorphic-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e0e5ec;
  border-radius: 34px;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  transition: .4s;
}

.neumorphic-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 
    2px 2px 4px #b8bec7, 
    -2px -2px 4px #ffffff;
  transition: .4s;
}

.neumorphic-switch input:checked + .neumorphic-slider {
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

.neumorphic-switch input:checked + .neumorphic-slider:before {
  transform: translateX(26px);
  box-shadow: 
    2px 2px 4px #b8bec7, 
    -2px -2px 4px #ffffff;
}

/* 拟态图标 */
.neumorphic-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e5ec;
  box-shadow: 
    6px 6px 12px #b8bec7, 
    -6px -6px 12px #ffffff;
  transition: all 0.3s ease;
}

.neumorphic-icon:hover {
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

/* 拟态圆形按钮 */
.neumorphic-circle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #e0e5ec;
  box-shadow: 
    6px 6px 12px #b8bec7, 
    -6px -6px 12px #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #656a73;
  font-size: 18px;
}

.neumorphic-circle-btn:hover {
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

.neumorphic-circle-btn:active {
  box-shadow: 
    inset 6px 6px 12px #b8bec7, 
    inset -6px -6px 12px #ffffff;
}

/* 拟态时钟 */
.neumorphic-clock {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #e0e5ec;
  box-shadow: 
    inset 8px 8px 16px #b8bec7, 
    inset -8px -8px 16px #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neumorphic-clock .clock-center {
  width: 12px;
  height: 12px;
  background: #656a73;
  border-radius: 50%;
  position: relative;
  z-index: 10;
}

.neumorphic-clock .clock-hand {
  position: absolute;
  background: #656a73;
  transform-origin: bottom center;
  border-radius: 4px;
}

.neumorphic-clock .hour-hand {
  width: 6px;
  height: 50px;
  top: 50px;
}

.neumorphic-clock .minute-hand {
  width: 4px;
  height: 70px;
  top: 30px;
}

.neumorphic-clock .second-hand {
  width: 2px;
  height: 80px;
  top: 20px;
  background: #ff4757;
}

.neumorphic-clock .clock-marks {
  position: absolute;
  width: 100%;
  height: 100%;
}

.clock-mark {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 2px;
  height: 10px;
  background: #656a73;
  transform-origin: bottom center;
  margin-left: -1px;
}

.clock-mark.major {
  width: 3px;
  height: 15px;
  background: #165DFF;
}

/* 拟态数字显示 */
.neumorphic-display {
  background: #e0e5ec;
  border-radius: 16px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 24px;
  font-weight: bold;
  color: #656a73;
  letter-spacing: 2px;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  text-align: center;
  min-width: 200px;
}

/* 拟态滑块 */
.neumorphic-slider-container {
  width: 100%;
  height: 20px;
  background: #e0e5ec;
  border-radius: 10px;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  position: relative;
  cursor: pointer;
}

.neumorphic-slider-progress {
  height: 100%;
  background: #165DFF;
  border-radius: 10px;
  width: 50%;
}

.neumorphic-slider-handle {
  width: 30px;
  height: 30px;
  background: #e0e5ec;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 
    4px 4px 8px #b8bec7, 
    -4px -4px 8px #ffffff;
  cursor: grab;
}

.neumorphic-slider-handle:active {
  cursor: grabbing;
  box-shadow: 
    6px 6px 12px #b8bec7, 
    -6px -6px 12px #ffffff;
}

/* 拟态进度条 */
.neumorphic-progress-container {
  width: 100%;
  background: #e0e5ec;
  border-radius: 10px;
  height: 20px;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  overflow: hidden;
}

.neumorphic-progress-bar {
  height: 100%;
  background: #165DFF;
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* 拟态文本框 */
.neumorphic-textarea {
  background: #e0e5ec;
  border-radius: 12px;
  border: none;
  padding: 16px;
  font-size: 16px;
  color: #656a73;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  outline: none;
  width: 100%;
  resize: vertical;
  transition: all 0.3s ease;
}

.neumorphic-textarea:focus {
  box-shadow: 
    inset 6px 6px 12px #b8bec7, 
    inset -6px -6px 12px #ffffff,
    0 0 0 2px rgba(22, 93, 255, 0.2);
}

/* 拟态复选框 */
.neumorphic-checkbox {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.neumorphic-checkbox input {
  opacity: 0;
  width: 0;
  height: 0;
}

.neumorphic-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background: #e0e5ec;
  border-radius: 6px;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

.neumorphic-checkbox:hover input ~ .neumorphic-checkmark {
  box-shadow: 
    inset 6px 6px 12px #b8bec7, 
    inset -6px -6px 12px #ffffff;
}

.neumorphic-checkbox input:checked ~ .neumorphic-checkmark {
  background: #165DFF;
  box-shadow: 
    2px 2px 4px #b8bec7, 
    -2px -2px 4px #ffffff;
}

.neumorphic-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.neumorphic-checkbox input:checked ~ .neumorphic-checkmark:after {
  display: block;
}

.neumorphic-checkbox .neumorphic-checkmark:after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* 拟态单选按钮 */
.neumorphic-radio {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.neumorphic-radio input {
  opacity: 0;
  width: 0;
  height: 0;
}

.neumorphic-radio-mark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background: #e0e5ec;
  border-radius: 50%;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

.neumorphic-radio input:checked ~ .neumorphic-radio-mark {
  background: #e0e5ec;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

.neumorphic-radio input:checked ~ .neumorphic-radio-mark:after {
  display: block;
}

.neumorphic-radio-mark:after {
  content: "";
  position: absolute;
  display: none;
  top: 6px;
  left: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #165DFF;
}

/* 反转拟态效果 - 用于浅色背景 */
.neumorphic-container.reverse,
.neumorphic-card.reverse,
.neumorphic-button.reverse,
.neumorphic-input.reverse,
.neumorphic-select.reverse,
.neumorphic-icon.reverse,
.neumorphic-circle-btn.reverse,
.neumorphic-textarea.reverse {
  background: #ffffff;
  box-shadow: 
    8px 8px 16px #d6dce6, 
    -8px -8px 16px #ffffff;
}

.neumorphic-button.reverse,
.neumorphic-input.reverse,
.neumorphic-select.reverse,
.neumorphic-icon.reverse,
.neumorphic-circle-btn.reverse,
.neumorphic-textarea.reverse {
  box-shadow: 
    6px 6px 12px #d6dce6, 
    -6px -6px 12px #ffffff;
}

.neumorphic-input.reverse,
.neumorphic-select.reverse,
.neumorphic-textarea.reverse {
  box-shadow: 
    inset 4px 4px 8px #d6dce6, 
    inset -4px -4px 8px #ffffff;
}

.neumorphic-button.reverse:hover,
.neumorphic-card.reverse:hover {
  box-shadow: 
    inset 4px 4px 8px #d6dce6, 
    inset -4px -4px 8px #ffffff;
}

.neumorphic-button.reverse:active {
  box-shadow: 
    inset 6px 6px 12px #d6dce6, 
    inset -6px -6px 12px #ffffff;
}

/* 暗色模式拟态效果 */
[data-theme="dark"] .neumorphic-container,
[data-theme="dark"] .neumorphic-card,
[data-theme="dark"] .neumorphic-button,
[data-theme="dark"] .neumorphic-input,
[data-theme="dark"] .neumorphic-select,
[data-theme="dark"] .neumorphic-icon,
[data-theme="dark"] .neumorphic-circle-btn,
[data-theme="dark"] .neumorphic-textarea {
  background: #1e293b;
  box-shadow: 
    8px 8px 16px #1a2332, 
    -8px -8px 16px #222f45;
}

[data-theme="dark"] .neumorphic-button:hover,
[data-theme="dark"] .neumorphic-card:hover {
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-button:active {
  box-shadow: 
    inset 6px 6px 12px #1a2332, 
    inset -6px -6px 12px #222f45;
}

[data-theme="dark"] .neumorphic-input,
[data-theme="dark"] .neumorphic-select,
[data-theme="dark"] .neumorphic-textarea {
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
  color: #e2e8f0;
}

[data-theme="dark"] .neumorphic-input:focus,
[data-theme="dark"] .neumorphic-textarea:focus {
  box-shadow: 
    inset 6px 6px 12px #1a2332, 
    inset -4px -4px 8px #222f45,
    0 0 0 2px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .neumorphic-slider {
  background: #1e293b;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-slider:before {
  background: #334155;
  box-shadow: 
    2px 2px 4px #1a2332, 
    -2px -2px 4px #222f45;
}

[data-theme="dark"] .neumorphic-checkmark {
  background: #1e293b;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-checkmark:after {
  border-color: #93c5fd;
}

[data-theme="dark"] .neumorphic-radio-mark {
  background: #1e293b;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-radio-mark:after {
  background: #60a5fa;
}

[data-theme="dark"] .neumorphic-progress-container {
  background: #1e293b;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-progress-bar {
  background: #60a5fa;
}

/* 暗色模式反转拟态效果 */
[data-theme="dark"] .neumorphic-container.reverse,
[data-theme="dark"] .neumorphic-card.reverse,
[data-theme="dark"] .neumorphic-button.reverse,
[data-theme="dark"] .neumorphic-input.reverse,
[data-theme="dark"] .neumorphic-select.reverse,
[data-theme="dark"] .neumorphic-icon.reverse,
[data-theme="dark"] .neumorphic-circle-btn.reverse,
[data-theme="dark"] .neumorphic-textarea.reverse {
  background: #0f172a;
  box-shadow: 
    8px 8px 16px #0c1220, 
    -8px -8px 16px #121c38;
}

[data-theme="dark"] .neumorphic-button.reverse,
[data-theme="dark"] .neumorphic-input.reverse,
[data-theme="dark"] .neumorphic-select.reverse,
[data-theme="dark"] .neumorphic-icon.reverse,
[data-theme="dark"] .neumorphic-circle-btn.reverse,
[data-theme="dark"] .neumorphic-textarea.reverse {
  box-shadow: 
    6px 6px 12px #0c1220, 
    -6px -6px 12px #121c38;
}

[data-theme="dark"] .neumorphic-input.reverse,
[data-theme="dark"] .neumorphic-select.reverse,
[data-theme="dark"] .neumorphic-textarea.reverse {
  box-shadow: 
    inset 4px 4px 8px #0c1220, 
    inset -4px -4px 8px #121c38;
  color: #cbd5e1;
}

[data-theme="dark"] .neumorphic-button.reverse:hover,
[data-theme="dark"] .neumorphic-card.reverse:hover {
  box-shadow: 
    inset 4px 4px 8px #0c1220, 
    inset -4px -4px 8px #121c38;
}

[data-theme="dark"] .neumorphic-button.reverse:active {
  box-shadow: 
    inset 6px 6px 12px #0c1220, 
    inset -6px -6px 12px #121c38;
}

/* 暗色模式时钟 */
[data-theme="dark"] .neumorphic-clock {
  background: #1e293b;
  box-shadow: 
    inset 8px 8px 16px #1a2332, 
    inset -8px -8px 16px #222f45;
}

[data-theme="dark"] .neumorphic-clock .clock-center {
  background: #94a3b8;
}

[data-theme="dark"] .neumorphic-clock .clock-hand {
  background: #94a3b8;
}

[data-theme="dark"] .neumorphic-clock .clock-mark {
  background: #94a3b8;
}

[data-theme="dark"] .neumorphic-clock .clock-mark.major {
  background: #60a5fa;
}

/* 暗色模式数字显示 */
[data-theme="dark"] .neumorphic-display {
  background: #1e293b;
  color: #e2e8f0;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

/* 暗色模式滑块 */
[data-theme="dark"] .neumorphic-slider-container {
  background: #1e293b;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-slider-progress {
  background: #60a5fa;
}

[data-theme="dark"] .neumorphic-slider-handle {
  background: #1e293b;
  box-shadow: 
    4px 4px 8px #1a2332, 
    -4px -4px 8px #222f45;
}

/* 拟态图片容器 */
.neumorphic-img {
  border-radius: 12px;
  box-shadow: 
    8px 8px 16px #b8bec7, 
    -8px -8px 16px #ffffff;
  transition: all 0.3s ease;
}

.neumorphic-img:hover {
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

/* 暗色模式拟态图片容器 */
[data-theme="dark"] .neumorphic-img {
  box-shadow: 
    8px 8px 16px #1a2332, 
    -8px -8px 16px #222f45;
}

[data-theme="dark"] .neumorphic-img:hover {
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

/* 拟态标签 */
.neumorphic-tag {
  background: #e0e5ec;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  box-shadow: 
    4px 4px 8px #b8bec7, 
    -4px -4px 8px #ffffff;
  display: inline-block;
  transition: all 0.3s ease;
}

.neumorphic-tag:hover {
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

/* 暗色模式拟态标签 */
[data-theme="dark"] .neumorphic-tag {
  background: #1e293b;
  box-shadow: 
    4px 4px 8px #1a2332, 
    -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-tag:hover {
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

/* 拟态进度条容器 */
.neumorphic-progress-container {
  width: 100%;
  background: #e0e5ec;
  border-radius: 10px;
  height: 20px;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  overflow: hidden;
}

.neumorphic-progress-bar {
  height: 100%;
  background: #165DFF;
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* 暗色模式拟态进度条 */
[data-theme="dark"] .neumorphic-progress-container {
  background: #1e293b;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-progress-bar {
  background: #60a5fa;
}

/* 拟态轮播图 */
.neumorphic-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 
    8px 8px 16px #b8bec7, 
    -8px -8px 16px #ffffff;
}

/* 暗色模式拟态轮播图 */
[data-theme="dark"] .neumorphic-carousel {
  box-shadow: 
    8px 8px 16px #1a2332, 
    -8px -8px 16px #222f45;
}

/* 拟态导航按钮 */
.neumorphic-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e5ec;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    6px 6px 12px #b8bec7, 
    -6px -6px 12px #ffffff;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.neumorphic-nav-btn:hover {
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

.neumorphic-nav-btn.prev {
  left: 10px;
}

.neumorphic-nav-btn.next {
  right: 10px;
}

/* 暗色模式拟态导航按钮 */
[data-theme="dark"] .neumorphic-nav-btn {
  background: #1e293b;
  box-shadow: 
    6px 6px 12px #1a2332, 
    -6px -6px 12px #222f45;
}

[data-theme="dark"] .neumorphic-nav-btn:hover {
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

/* 拟态分页指示器 */
.neumorphic-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.neumorphic-pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e5ec;
  border: none;
  box-shadow: 
    4px 4px 8px #b8bec7, 
    -4px -4px 8px #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.neumorphic-pagination-dot.active {
  background: #165DFF;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

/* 暗色模式拟态分页指示器 */
[data-theme="dark"] .neumorphic-pagination-dot {
  background: #1e293b;
  box-shadow: 
    4px 4px 8px #1a2332, 
    -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-pagination-dot.active {
  background: #60a5fa;
}

/* 新增：高级拟态组件 */

/* 拟态仪表盘 */
.neumorphic-gauge {
  position: relative;
  width: 200px;
  height: 100px;
  overflow: hidden;
  border-radius: 100px 100px 0 0;
  background: #e0e5ec;
  box-shadow: 
    inset 8px 8px 16px #b8bec7, 
    inset -8px -8px 16px #ffffff;
}

.neumorphic-gauge .gauge-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 100px 100px 0 0;
  background: #165DFF;
  transform-origin: bottom center;
  transform: rotate(0deg);
  opacity: 0.7;
}

.neumorphic-gauge .gauge-center {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e0e5ec;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

/* 拟态计数器 */
.neumorphic-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: #e0e5ec;
  box-shadow: 
    inset 6px 6px 12px #b8bec7, 
    inset -6px -6px 12px #ffffff;
}

.neumorphic-counter-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #e0e5ec;
  box-shadow: 
    4px 4px 8px #b8bec7, 
    -4px -4px 8px #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.neumorphic-counter-btn:active {
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

.neumorphic-counter-value {
  font-size: 24px;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
  color: #656a73;
}

/* 拟态选项卡 */
.neumorphic-tabs {
  display: flex;
  border-radius: 16px;
  background: #e0e5ec;
  box-shadow: 
    inset 6px 6px 12px #b8bec7, 
    inset -6px -6px 12px #ffffff;
  padding: 4px;
}

.neumorphic-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #656a73;
  font-weight: 500;
}

.neumorphic-tab.active {
  background: #e0e5ec;
  box-shadow: 
    4px 4px 8px #b8bec7, 
    -4px -4px 8px #ffffff;
  color: #165DFF;
}

/* 拟态下拉菜单 */
.neumorphic-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

.neumorphic-dropdown-btn {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  border: none;
  border-radius: 12px;
  background: #e0e5ec;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #656a73;
}

.neumorphic-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #e0e5ec;
  border-radius: 12px;
  box-shadow: 
    6px 6px 12px #b8bec7, 
    -6px -6px 12px #ffffff;
  z-index: 100;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.neumorphic-dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.neumorphic-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #656a73;
}

.neumorphic-dropdown-item:hover {
  background: #d6dbe3;
  border-radius: 12px;
  margin: 0 4px;
  padding: 12px 12px;
}

/* 拟态搜索框 */
.neumorphic-search {
  display: flex;
  align-items: center;
  background: #e0e5ec;
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
}

.neumorphic-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  font-size: 16px;
  color: #656a73;
  outline: none;
}

.neumorphic-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #e0e5ec;
  box-shadow: 
    4px 4px 8px #b8bec7, 
    -4px -4px 8px #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 拟态工具提示 */
.neumorphic-tooltip {
  position: relative;
  display: inline-block;
}

.neumorphic-tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background: #e0e5ec;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 
    4px 4px 8px #b8bec7, 
    -4px -4px 8px #ffffff;
  font-size: 14px;
  color: #656a73;
}

.neumorphic-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #e0e5ec transparent transparent transparent;
}

/* 拟态徽章 */
.neumorphic-badge {
  position: relative;
  display: inline-block;
}

.neumorphic-badge .badge-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 
    2px 2px 4px #b8bec7, 
    -2px -2px 4px #ffffff;
}

/* 拟态加载器 */
.neumorphic-loader {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #e0e5ec;
  border-top: 3px solid #165DFF;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 拟态通知 */
.neumorphic-notification {
  background: #e0e5ec;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 
    8px 8px 16px #b8bec7, 
    -8px -8px 16px #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}

.neumorphic-notification.success {
  border-left: 4px solid #52c41a;
}

.neumorphic-notification.error {
  border-left: 4px solid #ff4d4f;
}

.neumorphic-notification.warning {
  border-left: 4px solid #faad14;
}

.neumorphic-notification.info {
  border-left: 4px solid #165DFF;
}

.neumorphic-notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #e0e5ec;
  box-shadow: 
    4px 4px 8px #b8bec7, 
    -4px -4px 8px #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* 拟态滑动开关 */
.neumorphic-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.neumorphic-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.neumorphic-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e0e5ec;
  border-radius: 30px;
  box-shadow: 
    inset 4px 4px 8px #b8bec7, 
    inset -4px -4px 8px #ffffff;
  transition: .4s;
}

.neumorphic-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 
    2px 2px 4px #b8bec7, 
    -2px -2px 4px #ffffff;
  transition: .4s;
}

.neumorphic-toggle input:checked + .neumorphic-toggle-slider {
  background: #165DFF;
  box-shadow: 
    inset 2px 2px 4px #134bc9, 
    inset -2px -2px 4px #1969ff;
}

.neumorphic-toggle input:checked + .neumorphic-toggle-slider:before {
  transform: translateX(30px);
  box-shadow: 
    2px 2px 4px #134bc9, 
    -2px -2px 4px #1969ff;
}

/* 暗色模式高级组件 */
[data-theme="dark"] .neumorphic-gauge {
  background: #1e293b;
  box-shadow: 
    inset 8px 8px 16px #1a2332, 
    inset -8px -8px 16px #222f45;
}

[data-theme="dark"] .neumorphic-gauge .gauge-center {
  background: #1e293b;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-counter {
  background: #1e293b;
  box-shadow: 
    inset 6px 6px 12px #1a2332, 
    inset -6px -6px 12px #222f45;
}

[data-theme="dark"] .neumorphic-counter-btn {
  background: #1e293b;
  box-shadow: 
    4px 4px 8px #1a2332, 
    -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-counter-value {
  color: #e2e8f0;
}

[data-theme="dark"] .neumorphic-tabs {
  background: #1e293b;
  box-shadow: 
    inset 6px 6px 12px #1a2332, 
    inset -6px -6px 12px #222f45;
}

[data-theme="dark"] .neumorphic-tab {
  color: #cbd5e1;
}

[data-theme="dark"] .neumorphic-tab.active {
  background: #1e293b;
  box-shadow: 
    4px 4px 8px #1a2332, 
    -4px -4px 8px #222f45;
  color: #60a5fa;
}

[data-theme="dark"] .neumorphic-dropdown-btn {
  background: #1e293b;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
  color: #e2e8f0;
}

[data-theme="dark"] .neumorphic-dropdown-content {
  background: #1e293b;
  box-shadow: 
    6px 6px 12px #1a2332, 
    -6px -6px 12px #222f45;
}

[data-theme="dark"] .neumorphic-dropdown-item {
  color: #e2e8f0;
}

[data-theme="dark"] .neumorphic-dropdown-item:hover {
  background: #2d3748;
}

[data-theme="dark"] .neumorphic-search {
  background: #1e293b;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-search input {
  color: #e2e8f0;
}

[data-theme="dark"] .neumorphic-search-btn {
  background: #1e293b;
  box-shadow: 
    4px 4px 8px #1a2332, 
    -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-tooltip .tooltip-text {
  background: #1e293b;
  box-shadow: 
    4px 4px 8px #1a2332, 
    -4px -4px 8px #222f45;
  color: #e2e8f0;
}

[data-theme="dark"] .tooltip-text::after {
  border-color: #1e293b transparent transparent transparent;
}

[data-theme="dark"] .neumorphic-loader {
  border-color: #1e293b;
  border-top-color: #60a5fa;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-notification {
  background: #1e293b;
  box-shadow: 
    8px 8px 16px #1a2332, 
    -8px -8px 16px #222f45;
}

[data-theme="dark"] .neumorphic-notification-close {
  background: #1e293b;
  box-shadow: 
    4px 4px 8px #1a2332, 
    -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-toggle-slider {
  background: #1e293b;
  box-shadow: 
    inset 4px 4px 8px #1a2332, 
    inset -4px -4px 8px #222f45;
}

[data-theme="dark"] .neumorphic-toggle-slider:before {
  background: #334155;
  box-shadow: 
    2px 2px 4px #1a2332, 
    -2px -2px 4px #222f45;
}

[data-theme="dark"] .neumorphic-toggle input:checked + .neumorphic-toggle-slider {
  background: #60a5fa;
  box-shadow: 
    inset 2px 2px 4px #4f91d1, 
    inset -2px -2px 4px #71b9ff;
}