/* 通用 panel/form/checkbox；按钮区见 style_forms_actions.css；学习盘/命盘见各自 style_* */

/* Panel：单一边框 + 留白分层，无悬停阴影动效 */
.panel {
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border, var(--panel-border));
  border-radius: var(--surface-radius-lg, 20px);
  box-shadow: none;
  overflow: hidden;
}

.tabBody {
  display: none;
  padding: 18px 20px;
  animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tabBody.isActive {
  display: block;
}

/* Forms Refinement */
.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.field.span2 {
  grid-column: span 2;
}

/* 出生页：双列勾选区右侧占位，与左侧 .label 等高对齐 */
.birth-form-labelSpacer {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

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

.inputWrapper:focus-within {
  transform: none;
}

input[type="text"],
input[type="datetime-local"],
textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 8px 36px 8px 12px;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  font-family: inherit;
}

/* 排除 .bazi-piece：input[type=text] 特异性高于裸 .wood/.fire…，会盖掉四柱格五行色（浅色见 style_store_note_light.css） */
input[type="text"]:not(.bazi-piece),
input[type="datetime-local"],
textarea {
  color: var(--text-main);
}

textarea {
  resize: none;
  line-height: 1.6;
  min-height: 100px;
  /* Ensure both textareas have same height */
  font-family: "PingFang SC", "Microsoft YaHei", monospace;
  /* Monospace for better alignment */
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  word-break: normal;
}

#bazi-input::placeholder {
  font-size: var(--birth-paste-font-size, calc(14px * var(--birth-scale, 1)));
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  opacity: 0.55;
  line-height: var(--birth-paste-line, 40px);
}

#bazi-input.bazi-paste--multiline::placeholder {
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--focus-ring-color);
  background: var(--input-bg);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus-ring-color) 18%, transparent);
}

