/* 
  版本号: 3.0.3
  修改日期: 2025-09-03
  作者: Jordan in Pattaya
  修改内容:
    - 1.0.0: 初始版本，包含全局样式、导航栏居中、计数器隐藏（?admin=1 除外）、登录/注册/找回密码弹窗样式、移动端适配 (2025-09-03)。
*/
:root {
  --bg: #0f1115;
  --panel: #14171d;
  --text: #e7ecef;
  --brand: #1dd983;
  --brand-2: #12b76a;
  --sheet-max: 860px;
  --sheet-pad: 28px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial;
  color: var(--text);
  background: radial-gradient(1200px 600px at 70% -10%, #1a1f27 0%, transparent 60%), var(--bg);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  font-weight: 800; letter-spacing: .06em;
  font-size: 20vw; color: #ffffff10;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8vh; pointer-events: none; user-select: none;
}
.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 48px auto 64px;
  border: 2.5px solid #fff; border-radius: 28px; overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px #00000066, inset 0 0 0 1px #ffffff0d;
}
.nav {
  height: 74px; display: flex; align-items: center; padding: 0 28px; gap: 18px;
  border-bottom: 1px solid #ffffff14; background: linear-gradient(180deg, #161a22, #12161c);
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo { width: 32px; height: 32px; }
.brand span { opacity: .8; font-weight: 600; }
.brand b { font-weight: 800; }
.menu-container {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}
.menu { margin-left: 0; display: flex; gap: 24px; font-size: 14px; }
.menu a, .auth a { color: #c9d3dc; text-decoration: none; opacity: .85; cursor: pointer; }
.menu a:hover, .auth a:hover { opacity: 1; }
.spacer { flex: 0; }
.auth { display: flex; gap: 18px; font-size: 14px; align-items: center; }
.menu-item { position: relative; display: inline-block; }
.submenu {
  position: absolute;
  background: rgba(20, 23, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 200px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  z-index: 1;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  backdrop-filter: blur(8px);
  border-radius: 10px;
}
.menu-item:hover .submenu, .menu-item.active .submenu {
  display: block;
  opacity: 1;
  max-height: 500px;
}
.submenu a {
  color: #d7dee5;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}
.submenu a:hover {
  background: rgba(26, 35, 48, 0.7);
}
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 24px; padding: 64px 56px 48px;
  position: relative;
  background: radial-gradient(800px 300px at 80% 10%, #1a2330 0%, transparent 60%), var(--panel);
}
.forgot-password, .messages {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 74px - 64px);
  padding: 20px;
}
h1 { font-size: 40px; line-height: 1.1; margin: 0 0 18px; }
.subtitle { font-size: 16px; color: #a5b1c2; margin: 0 0 18px; line-height: 1.6; }
.cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn {
  height: 44px; border-radius: 999px; padding: 0 18px; display: inline-flex; gap: 10px;
  align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: 14.5px;
  cursor: pointer !important;
}
.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #0a1014; box-shadow: 0 8px 22px #12b76a52, inset 0 0 0 1px #ffffff38;
}
.btn-primary .chip {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: #0d151a; outline: 1px solid #ffffff3a;
}
.btn-secondary {
  background: #192028; color: #d7dee5; border: 1px solid #ffffff1f;
  cursor: pointer !important;
}
.confirm-btn, .about-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #0a1014;
  box-shadow: 0 8px 22px #12b76a52, inset 0 0 0 1px #ffffff38;
}
.button-group {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.button-group .confirm-btn, .button-group .about-btn {
  flex: 1;
}
@media (min-width: 769px) {
  .menu-toggle { display: none; }
  .menu { display: flex !important; }
}
.visuals { position: relative; min-height: 380px; transform: translateY(-50px); }
.card {
  position: absolute; width: 300px; height: 180px;
  backdrop-filter: blur(4px);
  background: linear-gradient(180deg, #0f141a, #0b1015);
  border: 1px solid #ffffff1c; border-radius: 16px;
  box-shadow: 0 20px 60px #00000070, inset 0 0 0 1px #ffffff0c;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.card:hover {
  transform: scale(1.08); z-index: 6; box-shadow: 0 26px 80px #00000088, inset 0 0 0 1px #ffffff12;
}
.card-content { display: flex; align-items: center; gap: 12px; }
.card-content img { height: 48px; }
.card-content span {
  font-size: 20px; font-weight: 700; color: #1dd983;
  text-shadow: 0 0 8px rgba(29, 217, 131, 0.8), 0 0 16px rgba(29, 217, 131, 0.6);
}
.card-1 { right: 30px; top: 18px; rotate: -6deg; z-index: 3; }
.card-2 { right: 80px; top: 120px; rotate: 6deg; z-index: 2; }
.card-3 { right: 130px; top: 220px; rotate: -4deg; z-index: 1; }
.sep {
  height: 22px;
  background: linear-gradient(180deg, #12161c, #131a21);
  border-top: 1px solid #ffffff12;
  border-bottom: 1px solid #00000080;
  margin-top: -40px;
}
.howto { padding: 48px 56px; background: #14171d; border-bottom: 1px solid #00000080; }
.howto h3 { font-size: 22px; margin: 0 0 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step h4 { margin: 0 0 8px; font-size: 18px; color: #1dd983; }
.step p { margin: 0; color: #a5b1c2; font-size: 15px; line-height: 1.6; }
.providers { background: #fff; color: #0c1116; padding: 34px 40px 42px; }
.providers h3 { font-size: 22px; margin: 0 0 18px; letter-spacing: .01em; }
.logos { display: flex; flex-wrap: wrap; gap: 34px 54px; align-items: center; opacity: .9; }
.logo-word {
  font-weight: 800; letter-spacing: .08em; color: #0e1620;
  filter: grayscale(1) contrast(1.2) opacity(.85);
}
.logo-word b { font-weight: 900; }
.logo-word.small { font-weight: 700; letter-spacing: .04em; opacity: .8; }
.sheet-overlay { position: fixed; inset: 0; z-index: 999; pointer-events: none; }
.sheet-overlay::before {
  content: ""; position: absolute; inset: 0;
  background: #00000080; opacity: 0; transition: opacity 0.5s ease;
}
.sheet-overlay.open { pointer-events: auto; }
.sheet-overlay.open::before { opacity: 1; }
.sheet {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  margin: 40px 0 40px 40px;
  width: 0;
  background: linear-gradient(180deg, #ffffff12, #ffffff08);
  border: 1px solid #ffffff2a;
  border-right: 1px solid #ffffff45;
  border-radius: 18px 60px 60px 18px;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 30px 80px #0000008c, inset 0 0 0 1px #ffffff14;
  transition: width 0.5s ease;
}
.sheet-overlay.open .sheet {
  width: clamp(320px, 66vw, var(--sheet-max));
}
.sheet-content {
  opacity: 0; transform: translateX(-6px); padding: var(--sheet-pad);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
  height: 100%; display: flex; flex-direction: column;
}
.sheet-overlay.open .sheet-content { opacity: 1; transform: none; }
.sheet-header {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px dashed #ffffff2b; padding-bottom: 12px; margin-bottom: 16px;
}
.sheet-title { font-size: 18px; font-weight: 700; }
.sheet-close {
  margin-left: auto; width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid #ffffff2d; background: #0f1418cc;
}
.sheet-close:hover { background: #141a20ee; }
.sheet-body { overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.sheet-body h4 { margin: 14px 0 8px; font-size: 16px; color: #dbe6ef; }
.sheet-body p, .sheet-body li { color: #c4cfdb; }
.sheet-body code {
  background: #0a0f14; padding: .2em .45em; border-radius: 6px;
  border: 1px solid #ffffff1a; color: #e7f1ff;
}
.auth-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.auth-modal.open { display: flex; }
.auth-content {
  background: var(--panel);
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}
.auth-content.custom-alert {
  width: 400px;
  text-align: left;
  padding: 30px;
}
.welcome-message {
  color: #e7ecef;
  line-height: 1.6;
}
.welcome-message h2 {
  margin: 0 0 15px;
  font-size: 24px;
  color: var(--brand);
}
.welcome-message p {
  margin: 0 0 10px;
  font-size: 16px;
  color: #c9d3dc;
}
.close-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #c9d3dc;
  cursor: pointer;
}
#authTitle { margin: 0 0 20px; color: #e7ecef; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; color: #a5b1c2; margin-bottom: 5px; }
.form-group input, .form-group select {
  width: 100%; padding: 8px;
  border: 1px solid #ffffff1f; border-radius: 5px;
  background: #192028; color: #d7dee5;
}
.auth-modal #toggleAuth, .auth-modal #toggleAuth span {
  cursor: pointer !important;
  color: #a5b1c2;
}
.auth-modal #toggleAuth span {
  color: var(--brand);
  text-decoration: underline;
}
.auth-modal #toggleAuth span:hover {
  color: var(--brand-2);
  text-decoration: none;
}
.counter {
  display: none;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px dashed #0c111633;
  border-radius: 12px;
  font-size: 14px;
  color: #0c1116cc;
  align-items: center;
  gap: 10px;
}
.show-counter .counter { display: flex; }
.counter b { font-weight: 800; }
.manage { padding: 48px 56px; background: #14171d; }
.manage h2 { font-size: 28px; margin: 0 0 24px; color: #e7ecef; }
.manage-content { display: grid; gap: 24px; }
#userList { max-height: 400px; overflow-y: auto; }
#userList table { width: 100%; border-collapse: collapse; }
#userList th, #userList td { padding: 12px; border: 1px solid #ffffff1f; text-align: left; }
#userList th { background: #192028; font-weight: 700; }
#userList td { color: #c9d3dc; }
#userList button { background: #ff4d4f; border: none; color: #fff; padding: 6px 12px; border-radius: 5px; cursor: pointer; }
#userList button.edit { background: #1dd983; margin-right: 8px; }
@media (max-width: 768px) {
  .hero, .forgot-password, .messages { grid-template-columns: 1fr; padding: 32px 20px; }
  .visuals { min-height: 260px; transform: none; margin-top: 20px; }
  .nav { flex-wrap: wrap; gap: 10px; height: auto; padding: 10px 20px; }
  .menu-container { justify-content: flex-start; }
  .menu { flex-wrap: wrap; gap: 12px; margin-left: 0; display: none; flex-direction: column; position: absolute; top: 74px; left: 0; width: 100%; background: var(--panel); z-index: 10; }
  .menu.open { display: flex; }
  h1 { font-size: 28px; }
  .subtitle { font-size: 14px; }
  .sheet { margin: 20px; border-radius: 12px; }
  .sheet-overlay.open .sheet { width: calc(100vw - 40px); }
  .menu-toggle { display: block; cursor: pointer; font-size: 24px; }
  .submenu { position: static; width: 100%; opacity: 1; max-height: none; transition: none; }
  .manage { padding: 32px 20px; }
  .auth-content.custom-alert { width: 90vw; padding: 20px; }
  .button-group { flex-direction: column; gap: 10px; }
}