/* 全局基础层：reset、盒模型、默认排版。
   由 tokens.css 提供变量；页面样式在其后加载，可继续覆盖。 */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.df-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.15em;
}

body {
  margin: 0;
  min-width: 1100px;
  background: var(--df-color-bg);
  color: var(--df-color-text);
  font: var(--df-font-size-md) var(--df-font-family);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

input::placeholder, textarea::placeholder { color: var(--df-color-text-placeholder); opacity: 1; }

/* 全站主题入口，窄屏隐藏辅助标签以保留顶栏空间。 */
.df-theme-control { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--df-color-text-secondary); font: var(--df-font-size-sm) var(--df-font-family); }
.df-theme-control select { max-width: 100px; padding: 5px 6px; border: 1px solid var(--df-color-border); border-radius: var(--df-radius-sm); background: var(--df-color-surface); color: var(--df-color-text); font: inherit; cursor: pointer; color-scheme: inherit; }
.df-theme-control select:focus-visible { outline: 2px solid var(--df-color-focus-ring); outline-offset: 2px; }
.df-theme-control--standalone { position: fixed; right: 16px; top: 16px; z-index: 100; padding: 6px; background: var(--df-color-surface); border-radius: var(--df-radius-sm); }
@media (max-width: 1280px) { .df-theme-control > span { display: none; } .df-theme-control select { max-width: 86px; } }

