/*
  版本号: 3.1.0
  修改日期: 2025-09-11 15:52 +07
  作者: Jordan in Pattaya
  修改内容:
    - 3.0.3: 初始版本，提供页面、导航、模态框样式，包含 .auth-modal、.menu、.hero 等 (2025-09-05).
    - 3.0.4: 添加 .form-group select 样式，与 input 一致，移除浏览器默认下拉样式；调整 .auth-content 宽度从 300px 增至 400px，优化登录成功弹窗显示空间；保留 .close-btn 白色（#ffffff !important）、菜单间距 10px、滑动菜单功能 (2025-09-11).
    - 3.0.5: 添加 .btn-success 样式，统一登录成功弹窗中“关于GeekLabX”和“确定”按钮大小（height: 44px, padding: 0 18px, font-size: 14.5px），按钮水平排列，间距 14px (2025-09-11).
    - 3.0.6: 增强 .btn-success 样式优先级，添加 !important 确保按钮大小一致；添加 .success-buttons 容器样式，强制水平排列；清理潜在 CSS 覆盖 (2025-09-11).
    - 3.0.7: 优化 .btn-success 样式，确保高度（44px）、内边距（0 18px）、字体大小（14.5px）一致，宽度自适应字数；添加 min-width: 100px 防止过窄；调整 .success-buttons gap: 14px 确保间距统一 (2025-09-11).
    - 3.0.8: 修正 script.js 中的按钮类名，从 .btn-primary 改为 .btn-success；移除 .btn-error 支持（未定义）；确保 .btn-success 样式完全控制“关于GeekLabX”和“确定”按钮大小一致（height: 44px, padding: 0 18px, font-size: 14.5px，min-width: 120px），宽度自适应字数 (2025-09-11).
    - 3.0.9: 调整 .btn-success min-width 从 120px 增至 140px，匹配“关于GeekLabX”的宽度，确保“确定”按钮与“关于GeekLabX”大小一致（height: 44px, padding: 0 18px, font-size: 14.5px）；统一按钮在 .success-buttons 中水平排列，间距 14px (2025-09-11).
    - 3.1.0: 统一 index.php 和 login.php 的安全问题下拉菜单样式，移除 login.php 内联 .form-group select 样式，依赖 styles.css 的 .form-group select（font-size: 16px，appearance: none），确保一致性 (2025-09-11 15:52 +07).
*/
: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: none; 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);
  z-index: 100;
}
.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; }
#navContainer {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  z-index: 101; /* 提高层级，确保菜单可交互 */
}
.menu {
  display: flex;
  align-items: center;
  position: static;
}
.menu-list {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-item {
  position: relative;
}
.menu-item-spacer {
  width: 0.5px; /* 调整一级菜单间距，从 20px 减小到 10px */
}
.menu-link {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #c9d3dc;
  white-space: nowrap;
  cursor: pointer; /* 添加手型光标 */
}
.has-submenu:hover .submenu {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 10px 0;
  background: rgba(20, 23, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  min-width: 200px;
  z-index: 102; /* 子菜单更高层级 */
  border-radius: 10px;
}
.submenu .menu-item {
  display: block;
}
.submenu .menu-link {
  padding: 12px 16px;
  color: #d7dee5;
  cursor: pointer; /* 子菜单链接也添加手型光标 */
}
.submenu .menu-link:hover {
  background: rgba(26, 35, 48, 0.7);
}
.spacer { flex: 1; }
.auth { display: flex; gap: 18px; font-size: 14px; z-index: 101; }
.auth a, .auth button { color: #c9d3dc; text-decoration: none; opacity: .85; cursor: pointer; }
.auth a:hover, .auth button:hover { opacity: 1; }
.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);
}
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;
  line-height: 1;
}
.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; }
.btn-success {
  height: 44px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)) !important;
  color: #0a1014 !important;
  box-shadow: 0 8px 22px #12b76a52, inset 0 0 0 1px #ffffff38 !important;
  margin: 0 7px !important;
  min-width: 140px !important; /* 匹配"关于GeekLabX"宽度 */
  line-height: 1 !important;
}

/* 全局按钮line-height强制规则 */
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
input[type="button"],
input[type="submit"] {
    line-height: 1 !important;
}
.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; }
.btn-success {
  height: 44px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)) !important;
  color: #0a1014 !important;
  box-shadow: 0 8px 22px #12b76a52, inset 0 0 0 1px #ffffff38 !important;
  margin: 0 7px !important;
  min-width: 140px !important; /* 匹配"关于GeekLabX"宽度 */
}
.success-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.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: 118px; rotate: -6deg; z-index: 3; }
.card-2 { right: 80px; top: 220px; rotate: 6deg; z-index: 2; }
.card-3 { right: 130px; top: 320px; 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;
}
.dashed-sep {
  border-top: 3px dashed #ffffffcc;
  margin: 0 56px;
}
.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 { margin: 0 0 18px; font-size: 22px; 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 .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 1.2s cubic-bezier(.22,.61,.36,1);
}
.sheet-overlay.open .sheet { width: clamp(320px, 66vw, var(--sheet-max)); }
.sheet-content { opacity: 0; transform: translateX(-6px); padding: var(--sheet-pad); transition: opacity .5s ease .4s, transform .5s ease .4s; 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: 100000;
  justify-content: center;
  align-items: center;
}
.auth-modal.open {
  display: flex;
}
.auth-content {
  background: var(--panel);
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: left;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}
.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;
  font-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
#toggleAuth {
  color: #a5b1c2;
  cursor: pointer;
}
#toggleAuth span {
  color: var(--brand);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }
  .visuals {
    min-height: 260px;
    transform: none;
    margin-top: 20px;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 20px;
  }
  #navContainer {
    width: 100%;
    justify-content: flex-start;
  }
  .menu {
    width: 100%;
  }
  .menu-list {
    flex-direction: column;
    display: none;
  }
  .menu.open .menu-list {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 23, 29, 0.9);
    z-index: 101;
  }
  .menu-item-spacer {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .close-btn {
    display: block;
    color: #fff;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  h1 { font-size: 28px; }
  .subtitle { font-size: 14px; }
}
.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;
}
.counter.show-counter { display: flex; }
.counter b { font-weight: 800; }

/* Footer 宽度对齐修复 - 与 .shell 保持一致 */
footer, .footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto !important;
  padding: 20px 28px; /* 匹配 nav 侧边距 */
  text-align: center !important; /* 确保内部内容居中对齐 */
  display: block;
  box-sizing: border-box;
  clear: both;
  float: none !important;
  position: relative;
  left: auto !important;
  right: auto !important;
}
.footer-copyright, .footer-version {
  color: #888 !important;
  text-align: center !important;
  display: block;
  margin: 0 auto;
  width: 100%;
  clear: both;
  line-height: 1.5;
  float: none !important;
  position: relative;
  left: auto !important;
  right: auto !important;
}