/* 景深计算器样式 */
.dof-calc {
  position: fixed; right: 20px; bottom: 140px; z-index: 50;
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease;
}
.dof-calc:hover { background: var(--paper-2); border-color: var(--ink-2); }
.dof-calc svg { width: 22px; height: 22px; color: var(--ink); }
.dof-calc[aria-expanded="true"] { background: var(--ink); }
.dof-calc[aria-expanded="true"] svg { color: var(--paper); }

.dof-panel {
  position: fixed; right: 80px; bottom: 200px; z-index: 51;
  width: 320px; background: var(--paper); border: 1px solid var(--ink);
  border-radius: 8px; padding: 20px;
}
.dof-panel[hidden] { display: none; }

.dof-title {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}

.dof-eyebrow {
  font-size: 10px; letter-spacing: .2em; color: var(--ink-3);
  text-transform: uppercase;
}

.dof-inputs {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px;
}

.dof-input-row {
  display: flex; align-items: center; gap: 8px;
}

.dof-label {
  flex: 0 0 70px; font-size: 13px; color: var(--ink-2);
}

.dof-input {
  flex: 1; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); font-family: var(--num);
  font-size: 13px;
}
.dof-input:focus { outline: none; border-color: var(--ink); }

.dof-select {
  flex: 1; height: 32px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); font-size: 13px;
  cursor: pointer;
}
.dof-select:focus { outline: none; border-color: var(--ink); }

.dof-result {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 14px;
}

.dof-result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.dof-result-row:last-child { border-bottom: none; }

.dof-result-label {
  font-size: 12px; color: var(--ink-3);
}

.dof-result-value {
  font-family: var(--num); font-size: 15px; font-weight: 600;
  color: var(--ink);
}

.dof-hint {
  margin-top: 10px; padding: 10px; background: var(--paper-2);
  border-left: 2px solid var(--ink); font-size: 11px;
  line-height: 1.5; color: var(--ink-3);
}

@media (orientation: portrait) and (max-width: 900px) {
  .dof-calc { width: 40px; height: 40px; right: 12px; bottom: 112px; }
  .dof-calc svg { width: 20px; height: 20px; }
  .dof-panel {
    right: 12px;
    bottom: 162px;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100vh - 180px);
    overflow-y: auto;
  }
}
