.ac-page { min-height: 65vh; color: var(--text, #1f2329); background: #fff; font: 14px/1.6 var(--font, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Arial, sans-serif); }
.ac-page * { box-sizing: border-box; }
.ac-page button, .ac-page input, .ac-page select { font: inherit; }
.ac-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ac-hero { position: relative; overflow: hidden; padding: 74px 0 72px; background: radial-gradient(520px 310px at 75% 5%, rgba(96, 140, 255, .2), transparent 70%), linear-gradient(180deg, #f5f8ff, #fff); }
.ac-hero-inner { position: relative; text-align: center; }
.ac-kicker { color: var(--brand, #2f6bff); font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.ac-hero h1 { margin: 12px 0 12px; font-size: clamp(34px, 4vw, 48px); line-height: 1.2; letter-spacing: -1.2px; }
.ac-hero p { max-width: 650px; margin: 0 auto; color: var(--muted, #6b7280); font-size: 16px; line-height: 1.8; }
.ac-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ac-button { min-height: 40px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.ac-button:hover { transform: translateY(-1px); }
.ac-button:disabled { opacity: .55; cursor: default; transform: none; }
.ac-primary { color: #fff !important; background: var(--brand, #2f6bff); box-shadow: 0 12px 28px -14px rgba(47, 107, 255, .7); }
.ac-primary:hover { background: var(--brand-hover, #1f57e6); }
.ac-outline { color: var(--text, #1f2329) !important; background: #fff; border-color: #dce4f2; }
.ac-outline:hover { background: #f7f9ff; }
.ac-section { padding: 76px 0; scroll-margin-top: 86px; }
.ac-soft { background: linear-gradient(180deg, #f7f9fe, #fff); }
.ac-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.ac-section-heading h2 { margin: 6px 0 7px; font-size: clamp(27px, 3vw, 36px); line-height: 1.25; letter-spacing: -.8px; }
.ac-section-heading p { margin: 0; color: var(--muted, #6b7280); font-size: 15px; }
.ac-alert { margin-top: 22px; padding: 12px 16px; border: 1px solid #cae9d9; border-radius: 12px; background: #f0fbf5; color: #137d4a; }
.ac-alert[hidden] { display: none; }
.ac-alert.ac-error { border-color: #f3d1d3; background: #fff4f4; color: #c0323b; }
.ac-card { background: #fff; border: 1px solid #e8edf5; border-radius: 20px; box-shadow: 0 12px 35px -29px rgba(23, 43, 99, .3); }
.ac-auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; max-width: 950px; }
.ac-auth-card { padding: 28px 32px 30px; }
.ac-auth-card > .ac-kicker { display: block; margin-bottom: 8px; }
.ac-qq-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; border: 0; border-radius: 14px; background: linear-gradient(120deg, #12b7f5, #2f6bff); box-shadow: 0 13px 25px -15px rgba(47, 107, 255, .7); color: #fff; font-size: 16px; cursor: pointer; }
.ac-qq-button:hover:not(:disabled) { filter: brightness(.98); transform: translateY(-1px); }
.ac-qq-button:disabled { background: #dce5f2; box-shadow: none; color: #66768d; cursor: not-allowed; }
.ac-qq-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #ffffff36; color: inherit; font-size: 18px; font-weight: 800; }
.ac-qq-button:disabled .ac-qq-mark { background: #cbd7e8; }
.ac-qq-status { min-height: 18px; margin: 9px 0 0 !important; color: #8c96a5 !important; font-size: 12px; text-align: center; }
.ac-qq-status.available { color: #138956 !important; }
.ac-auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: #a1aab8; font-size: 12px; }
.ac-auth-divider::before, .ac-auth-divider::after { content: ''; height: 1px; flex: 1; background: #e8edf5; }
.ac-local-toggle { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 15px; border: 1px solid #e0e7f2; border-radius: 11px; background: #fff; color: #52627a; font-weight: 600; cursor: pointer; }
.ac-local-toggle:hover { background: #f8faff; border-color: #cbd9f3; }
.ac-local-toggle > span:last-child { color: var(--brand, #2f6bff); font-size: 21px; line-height: 1; }
.ac-local-panel { padding-top: 18px; }
.ac-auth-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 25px; border-radius: 999px; background: #f3f6fb; }
.ac-auth-tabs button { flex: 1; padding: 8px 15px; border: 0; border-radius: 999px; background: transparent; color: var(--muted, #6b7280); cursor: pointer; }
.ac-auth-tabs button.active { color: var(--brand, #2f6bff); background: #fff; box-shadow: 0 2px 10px #10182812; font-weight: 700; }
.ac-auth-card h2 { margin: 0 0 4px; font-size: 27px; letter-spacing: -.5px; }
.ac-auth-card > p { margin: 0 0 24px; color: var(--muted, #6b7280); }
.ac-field { display: grid; gap: 6px; min-width: 0; margin-bottom: 15px; color: #465164; font-size: 13px; font-weight: 600; }
.ac-field input, .ac-rank-filters select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dfe5ef; border-radius: 11px; background: #fff; color: var(--text, #1f2329); outline: 0; font-weight: 400; }
.ac-field input:focus, .ac-rank-filters select:focus { border-color: var(--brand, #2f6bff); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.ac-auth-submit { width: 100%; margin-top: 8px; }
.ac-qq-backdrop { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(12, 20, 38, .58); backdrop-filter: blur(5px); }
.ac-qq-dialog { position: relative; width: min(100%, 430px); padding: 30px; border: 1px solid #e3eaf6; border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 30px 90px rgba(12, 20, 38, .28); }
.ac-qq-dialog h2 { margin: 7px 0 6px; font-size: 23px; }
.ac-qq-dialog > p { margin: 0; color: var(--muted, #6b7280); font-size: 13px; }
.ac-qq-dialog img { display: block; width: min(100%, 220px); aspect-ratio: 1; margin: 22px auto 12px; padding: 7px; border: 1px solid #e6ebf3; border-radius: 14px; object-fit: contain; }
.ac-qq-dialog .ac-qq-session-status { margin: 0 0 18px; color: #52627a; }
.ac-qq-dialog .ac-qq-session-status.ac-error { color: #c83b44; }
.ac-qq-dialog .ac-button { width: 100%; }
.ac-qq-close { position: absolute; top: 11px; right: 13px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: #9ca5b2; font-size: 25px; cursor: pointer; }
.ac-qq-close:hover { background: #eef3ff; color: #304264; }
.ac-fine { margin: 16px 0 0; color: #8992a2; font-size: 12px; line-height: 1.6; }
.ac-auth-aside { display: flex; flex-direction: column; justify-content: center; padding: 38px; border: 1px solid #dfe8fc; border-radius: 20px; background: radial-gradient(280px 200px at 85% 4%, #ffffffad, transparent), linear-gradient(145deg, #eff4ff, #e4edff); }
.ac-aside-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: var(--brand, #2f6bff); background: #fff; font-size: 27px; font-weight: 600; box-shadow: 0 13px 28px #2f6bff18; }
.ac-auth-aside h2 { margin: 20px 0 8px; font-size: 27px; }
.ac-auth-aside p { margin: 0; color: #596985; font-size: 15px; line-height: 1.8; }
.ac-auth-aside ul { display: grid; gap: 10px; margin: 23px 0 0; padding: 0; list-style: none; color: #365783; }
.ac-auth-aside li::before { content: '✓'; margin-right: 9px; color: #16b364; font-weight: 800; }
.ac-profile { display: flex; align-items: center; gap: 15px; padding: 18px 21px; margin-bottom: 19px; border: 1px solid #e8edf5; border-radius: 17px; background: #fff; }
.ac-avatar { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 14px; background: linear-gradient(135deg, #2f6bff, #74a2ff); color: #fff; font-size: 20px; font-weight: 700; }
.ac-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.ac-charm-avatar { position: relative; width: 48px; height: 48px; display: inline-grid; place-items: center; flex: none; overflow: visible; vertical-align: middle; }
.ac-charm-avatar.rank { width: 30px; height: 30px; }
.ac-charm-base { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #2f6bff, #74a2ff); color: #fff; font-size: 20px; font-weight: 700; }
.ac-charm-avatar.rank .ac-charm-base { border-radius: 9px; font-size: 13px; }
.ac-charm-base img { width: 100%; height: 100%; object-fit: cover; }
.ac-charm-overlay { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transform: translate(var(--ac-charm-x, 0%), var(--ac-charm-y, 0%)) scale(var(--ac-charm-scale, 1.2)); transform-origin: center; }
.ac-profile strong, .ac-profile small { display: block; }
.ac-profile strong { font-size: 17px; }
.ac-profile small { color: #9aa1ab; font-size: 12px; }
.ac-profile-points { margin-left: auto; color: var(--brand, #2f6bff); font-size: 23px; font-weight: 700; white-space: nowrap; }
.ac-profile-points span { color: var(--muted, #6b7280); font-size: 12px; font-weight: 500; }
.ac-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.ac-stat { padding: 22px; border: 1px solid #e8edf5; border-radius: 17px; background: #fff; }
.ac-stat small, .ac-stat span { display: block; color: #929aaa; font-size: 12px; }
.ac-stat strong { display: block; margin: 7px 0 3px; font-size: 23px; line-height: 1.3; overflow-wrap: anywhere; }
.ac-checkin { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; padding: 20px 22px; border-radius: 17px; background: linear-gradient(120deg, #edf3ff, #f8faff); }
.ac-checkin strong { font-size: 16px; }
.ac-checkin p { margin: 3px 0 0; color: var(--muted, #6b7280); font-size: 13px; }
.ac-node-list { display: grid; gap: 12px; }
.ac-node-card { padding: 20px; border: 1px solid #e8edf5; border-radius: 17px; background: #fff; }
.ac-node-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.ac-node-card-head strong { font-size: 15px; }
.ac-text-button { padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--brand, #2f6bff); cursor: pointer; }
.ac-text-button:hover { background: #eef3ff; }
.ac-text-button.ac-danger { color: #d9474f; }
.ac-text-button.ac-danger:hover { background: #fff0f0; }
.ac-node-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.ac-node-fields .ac-wide { grid-column: 1 / -1; }
.ac-node-enabled { display: inline-flex; align-items: center; gap: 8px; color: #536074; font-size: 13px; cursor: pointer; }
.ac-node-enabled input { width: 17px; height: 17px; accent-color: var(--brand, #2f6bff); }
.ac-node-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 16px; }
.ac-node-footer p { margin: 0; color: var(--muted, #6b7280); font-size: 12px; }
.ac-empty { padding: 44px 20px; border: 1px dashed #d9e1ef; border-radius: 16px; color: var(--muted, #6b7280); text-align: center; }
.ac-empty.ac-error { color: #d33b43; }
.ac-count { padding: 5px 11px; border-radius: 999px; background: #eef3ff; color: var(--brand, #2f6bff); font-size: 12px; white-space: nowrap; }
.ac-table-scroll { overflow-x: auto; border: 1px solid #e8edf5; border-radius: 17px; background: #fff; }
.ac-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.ac-table th { padding: 14px 18px; border-bottom: 1px solid #e8edf5; background: #fafbfe; color: #8d97a7; font-size: 12px; font-weight: 600; }
.ac-table td { padding: 16px 18px; border-bottom: 1px solid #f0f2f7; color: #38465a; }
.ac-table tbody tr:last-child td { border-bottom: 0; }
.ac-table tbody tr:hover { background: #fbfcff; }
.ac-table-empty { padding: 38px !important; color: #9aa1ab !important; text-align: center; }
.ac-rank-table td:nth-child(3) strong { color: var(--brand, #2f6bff); }
.ac-rank-number { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #687386; background: #f2f4f8; font-weight: 700; }
.ac-rank-number.top { color: var(--brand, #2f6bff); background: #eaf0ff; }
.ac-rank-user { display: inline-flex; align-items: center; gap: 9px; }
.ac-rank-user .ac-charm-avatar { margin-right: 1px; }
.ac-rank-note { margin-top: 11px; }
.ac-rank-filters { display: flex; gap: 10px; }
.ac-rank-filters label { display: grid; gap: 4px; min-width: 132px; color: var(--muted, #6b7280); font-size: 12px; }
.ac-rank-filters select { height: 38px; font-size: 13px; }
.ac-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 15px; color: var(--muted, #6b7280); font-size: 13px; }
.ac-loading { padding-top: 90px; padding-bottom: 90px; color: var(--muted, #6b7280); text-align: center; }
@media (max-width: 850px) {
  .ac-auth-layout { grid-template-columns: 1fr; }
  .ac-auth-aside { padding: 26px; }
  .ac-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ac-wrap { padding: 0 16px; }
  .ac-hero { padding: 52px 0 56px; }
  .ac-hero h1 { font-size: 34px; }
  .ac-hero p { font-size: 14px; }
  .ac-hero-actions .ac-button { flex: 1 1 100%; }
  .ac-section { padding: 60px 0; }
  .ac-section-heading { align-items: flex-start; flex-direction: column; }
  .ac-section-heading h2 { font-size: 27px; }
  .ac-auth-card { padding: 23px 20px; }
  .ac-qq-dialog { padding: 26px 20px; }
  .ac-auth-aside { display: none; }
  .ac-profile { padding: 15px; }
  .ac-profile-points { font-size: 18px; }
  .ac-stat-grid { gap: 9px; }
  .ac-stat { padding: 16px; }
  .ac-stat strong { font-size: 19px; }
  .ac-checkin { align-items: stretch; flex-direction: column; }
  .ac-node-fields { grid-template-columns: 1fr; }
  .ac-node-fields .ac-wide { grid-column: auto; }
  .ac-node-footer { align-items: stretch; flex-direction: column; }
  .ac-node-footer .ac-button { width: 100%; }
  .ac-rank-filters { width: 100%; }
  .ac-rank-filters label { flex: 1; min-width: 0; }
  .ac-pager { justify-content: center; }
}
