* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -moz-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #6366f1 100%);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  padding:0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 深色模式 */
body.dark-mode {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: #e2e8f0;
}

body.dark-mode a {
  color: #60a5fa;
}

body.dark-mode a:hover {
  color: #3b82f6;
}

body.dark-mode .input {
  background-color: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-mode .input:focus {
  border-color: #3b82f6;
  outline-color: rgba(59, 130, 246, 0.5);
}

body.dark-mode .button {
  background-color: #3b82f6;
  color: #ffffff;
}

body.dark-mode .button:hover {
  background-color: #2563eb;
}

body.dark-mode .button:active {
  background-color: #1d4ed8;
}

body.dark-mode .button:disabled {
  background-color: #475569;
}

body::selection,
body ::selection {
  background-color: #c2f5f5;
  color: #1f1f1f;
}

body::-moz-selection,
body ::-moz-selection {
  background-color: #c2f5f5;
  color: #1f1f1f;
}

a {
  color: #3b82f6;
  outline: 3px solid transparent;
  outline-offset: 4px;
  transition: all 190ms ease;
}

a:hover {
  color: #2563eb;
  text-decoration: underline;
}

a:focus {
  outline-color: #93c5fd;
}

a:focus:not(:focus-visible) {
  outline-color: transparent;
}

a:focus-visible {
  outline-color: #93c5fd;
}

button {
  align-items: center;
  appearance: button;
  background-color: transparent;
  border: none;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: inherit;
  justify-content: center;
  line-height: inherit;
  margin: 0;
  outline: 3px solid transparent;
  padding: 0;
  transition: all 190ms ease;
  -moz-appearance: button;
  -webkit-appearance: button;
}

button:focus {
  outline-color: #5ee8e8;
}

button:focus:not(:focus-visible) {
  outline-color: transparent;
}

button:focus-visible {
  outline-color: #5ee8e8;
}

.input {
  background-color: #ffffff;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  height: 48px;
  line-height: 1.5;
  outline: 3px solid transparent;
  outline-offset: 0;
  padding: 8px 16px;
  transition: all 190ms ease;
  width: 100%;
}

.input::placeholder {
  color: #757575;
}

.input:hover {
  border-color: #19cccc;
}

.input:focus {
  border-color: #19cccc;
  outline-color: #5ee8e8;
}

.input:focus:not(:focus-visible) {
  outline-color: transparent;
}

.input:focus-visible {
  outline-color: #5ee8e8;
}

.button {
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  height: 48px;
  line-height: 1.5;
  padding-left: 16px;
  padding-right: 16px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.button:hover {
  background-color: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.button:active {
  background-color: #1d4ed8;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.button:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}
