/* @base — reset, variables, global layout */

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

:root {
  --primary: #ec4899;
  --text-primary: #262626;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;
  --text-pagination: #656565;
  --border: #f0f0f0;
  --border-input: #d9d9d9;
  --bg-page: #f5f5f5;
  --bg-card: #fff;
  --container-max: 1130px;
  --shadow-sm: 0 1px 2px -1px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-pagination: 0 1px 2px rgba(0, 0, 0, 0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --font-sans: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-h5: #f5f5f7;
  --tag-bg: #fce7f3;
  --tag-red: #be185d;
  --text-title: #1f1f1f;
  --text-placeholder: #9ca3af;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: var(--bg-page);
  line-height: 1.5;
  min-height: 100vh;
}

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

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

ul,
ol {
  list-style: none;
}

/* 内容区最大宽度 1130px，水平居中 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.page-main {
  padding-top: 24px;
  padding-bottom: 40px;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* PC 弹窗整体略缩小（设计稿偏大），H5 不受影响 */
@media (min-width: 768px) {
  .login-modal__dialog,
  .apt-tip-modal__dialog,
  .apt-vip-modal__dialog,
  .apt-report-modal__dialog,
  .apt-contact-pay-modal__dialog,
  .vip-pay-notice-modal__dialog,
  .vip-success-modal__dialog,
  .mine-info-delete-modal__dialog,
  .recharge-success-modal__dialog,
  .vip-order-success-modal__dialog,
  .ad-pop__panel,
  .nine-grid-ad-pop__panel {
    transform: scale(0.8);
    transform-origin: center center;
  }
}
