/* Reset + base — 全站共用 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  min-width: 0;
  overflow-x: hidden;
}

@media (min-width: 1280px) {
  body:not(.page-workbench):not(.page-auth) {
    /* 桌面公网站保持原视觉宽度习惯，但不强制横向滚动 */
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

/* 日期框可点；整框打开日历由 tp-chrome.js showPicker 处理 */
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"] {
  cursor: pointer;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

.container {
  width: var(--layout-content);
  max-width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--font-size-section);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
}

.section-subtitle {
  margin-top: 16px;
  font-size: var(--font-size-md);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.5;
}

/* ThinkPHP 调试条：避免 width:100% 的 fixed 容器误挡页面点击 */
#think_page_trace {
  width: auto !important;
  pointer-events: none !important;
}
#think_page_trace_tab,
#think_page_trace_open,
#think_page_trace_close {
  pointer-events: auto !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  transition: background var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--ghost {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--prepaid {
  position: relative;
  width: 88px;
  background: var(--gradient-prepaid);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--prepaid .badge {
  position: absolute;
  top: -8px;
  right: -12px;
  height: 12px;
  padding: 0 6px;
  border-radius: 25px 250px 250px 0;
  background: var(--gradient-badge);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  line-height: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.35);
}

.btn--lg {
  height: 42px;
  min-width: 160px;
  padding: 0 24px;
}

.icon-circle {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-icon-border);
  background: var(--gradient-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.icon-circle img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
