:root {
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --primary-light: #e8f0fe;
  --success: #0d8a59;
  --success-bg: #e6f4ea;
  --danger: #d93025;
  --danger-bg: #fce8e6;
  --warning: #e37400;
  --warning-bg: #fef7e0;
  --text-main: #202124;
  --text-muted: #5f6368;
  --border: #dadce0;
  --bg-page: #f8fafd;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 20px 60px;
  width: 100%;
}

.header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.12);
  border: 1px solid var(--border);
}

.brand-icon svg {
  width: 36px;
  height: 36px;
}

.title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.tabs {
  display: flex;
  background: #e9eef6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.main-card {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 28px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-label span.req {
  color: var(--danger);
  margin-left: 2px;
}

.input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.28);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alert-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-box.info {
  display: block;
  background: var(--primary-light);
  color: #174ea6;
  border: 1px solid #c2e0f9;
}

.alert-box.success {
  display: block;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #b7ebd3;
}

.alert-box.error {
  display: block;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #f9c7c7;
}

.alert-title {
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.notice-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px;
}

.notice-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-list {
  list-style: none;
}

.notice-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.notice-item:last-child {
  margin-bottom: 0;
}

.notice-item::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: bold;
  font-size: 16px;
}

.notice-item strong {
  color: var(--text-main);
}

.query-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: #f8fafd;
  border: 1px solid var(--border);
  font-size: 13px;
  display: none;
}

.query-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.query-row:last-child {
  border-bottom: none;
}

.query-row .label {
  color: var(--text-muted);
}

.query-row .val {
  font-weight: 600;
  color: var(--text-main);
}

.footer {
  margin-top: auto;
  text-align: center;
  padding: 24px 0 16px;
  font-size: 12px;
  color: #9aa0a6;
}

/* Guide / Usage Instruction Box */
.guide-box {
  background: #fff9f0;
  border: 1px solid #ffd591;
  border-left: 4px solid #fa8c16;
  border-radius: 12px;
  padding: 15px 18px;
  margin-bottom: 22px;
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ad4e00;
  margin-bottom: 6px;
}

.guide-icon {
  font-size: 16px;
}

.guide-body {
  font-size: 13.5px;
  color: #593b00;
  line-height: 1.6;
}

.guide-body p {
  margin-bottom: 8px;
}

.guide-body strong {
  color: #d4380d;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #ffbb96;
  color: #d4380d;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.guide-link:hover {
  background: #fff2e8;
  border-color: #ff7a45;
  color: #b32000;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .container {
    padding: 24px 16px 40px;
  }
  .title {
    font-size: 22px;
  }
  .main-card {
    padding: 20px 18px;
  }
}
