/* style.css - 统一的黑金 UI 风格 (Unified Black & Gold UI Style) */

:root {
  --vt-gold-bright: #FFD700;
  --vt-gold-std: #D4AF37;
  --vt-black-bg: #000000;
  --vt-input-bg: #050505;
  --vt-red: #FF4D4D;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background-color: var(--vt-black-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 20px;
  color: #FFFFFF;
}

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

input, select, button {
  font-family: inherit;
}

/* ---------------- 通用卡片与头部 ---------------- */
.vt-card {
  background-color: var(--vt-black-bg);
  width: 100%;
  max-width: 500px;
  padding: 45px 25px 35px;
  border-radius: 28px;
  border: 1.5px solid var(--vt-gold-std);
  box-shadow: 0 15px 50px rgba(0,0,0,0.8), 0 0 30px rgba(212, 175, 55, 0.10);
  position: relative;
}

.vt-brand-header {
  text-align: center;
  margin-bottom: 30px;
}

.vt-logo-main {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--vt-gold-bright);
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.vt-slogan-main {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--vt-gold-std);
  margin-top: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------------- 表单与按钮 ---------------- */
.vt-form-title {
  text-align: center;
  font-size: 18px;
  color: var(--vt-gold-bright);
  margin-bottom: 25px;
  font-weight: 700;
}

.vt-input-group {
  margin-bottom: 20px;
}

.vt-input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--vt-gold-std);
  text-transform: uppercase;
}

.vt-input-group input, .vt-input-group select {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  background: var(--vt-input-bg);
  border: 1.5px solid var(--vt-gold-std);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.vt-input-group input:focus, .vt-input-group select:focus {
  border-color: var(--vt-gold-bright);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.pwd-strength-container {
  margin-top: 5px;
  width: 100%;
}

.pwd-strength-bar-bg {
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.pwd-strength-bar {
  height: 100%;
  width: 0%;
  background: transparent;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.pwd-strength-text {
  font-size: 12px;
  color: #888;
}

.vt-btn-main {
  width: 100%;
  height: 55px;
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 15px;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vt-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.vt-btn-main:active {
  transform: translateY(0);
}

.vt-alert {
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.vt-alert.error {
  background: rgba(255, 77, 77, 0.1);
  color: var(--vt-red);
  border: 1px solid var(--vt-red);
}

.vt-alert.success {
  background: rgba(212, 175, 55, 0.1);
  color: var(--vt-gold-bright);
  border: 1px solid var(--vt-gold-std);
}

.vt-form-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.vt-form-footer a {
  color: var(--vt-gold-bright);
  font-weight: 700;
  margin-left: 5px;
  transition: color 0.3s;
}

.vt-form-footer a:hover {
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* ---------------- 配比器专属 ---------------- */
.vt-utils-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  position: absolute;
  top: 18px;
  right: 20px;
  left: 20px;
  z-index: 10;
}

.vt-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: bold;
  color: var(--vt-gold-bright);
}

.vt-logout-btn {
  background: transparent;
  color: var(--vt-gold-bright);
  border: 1px solid var(--vt-gold-bright);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
}

.vt-logout-btn:hover {
  background: rgba(255, 215, 0, 0.1);
}

.vt-lang-btn {
  background: transparent;
  color: var(--vt-gold-bright);
  border: 1.2px solid var(--vt-gold-bright);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.vt-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.vt-mode-toggle {
  background: #111;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--vt-gold-std);
  display: flex;
  width: 100%;
}

.vt-tab {
  flex: 1;
  padding: 10px 5px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
  text-align: center;
}

.vt-tab.active {
  background: var(--vt-gold-bright);
  color: #000;
}

.vt-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.vt-span-all {
  grid-column: span 2;
}

.vt-hide-node {
  display: none !important;
}

.vt-input-grid label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--vt-gold-std);
  text-transform: uppercase;
}

.vt-input-grid select, 
.vt-input-grid input[type="number"] {
  width: 100%;
  height: 50px;
  padding: 0 12px;
  background: var(--vt-input-bg);
  border: 1.5px solid var(--vt-gold-std);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
}

.vt-slider-wrap {
  width: 100%;
  padding: 10px 0;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 5px;
  outline: none;
  margin: 15px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--vt-gold-bright);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.vt-footer-terms {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #222;
}

.vt-terms-link {
  color: #555;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}

.vt-terms-link:hover {
  color: var(--vt-gold-std);
}

/* Modal */
.vt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.96);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  backdrop-filter: blur(12px);
  padding: 20px;
}

.vt-modal {
  background: #000;
  width: 100%;
  max-width: 400px;
  padding: 35px 25px;
  border-radius: 30px;
  border: 1.5px solid var(--vt-gold-bright);
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.vt-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
}

.vt-icon-circle.success { background-color: var(--vt-gold-bright); }
.vt-icon-circle.error { background-color: var(--vt-red); }

.vt-icon-circle svg {
  width: 35px;
  height: 35px;
  fill: #000;
}

.vt-res-display-box {
  background: #050505;
  padding: 18px;
  border-radius: 18px;
  margin: 15px 0;
  border: 1.5px solid var(--vt-gold-std);
  text-align: left;
}

.vt-res-line {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 14px;
  color: #FFF;
}

.vt-res-gold-ans {
  color: var(--vt-gold-bright);
  font-weight: 900;
  font-size: 17px;
}

.vt-btn-done {
  width: 100%;
  padding: 15px;
  background: #111;
  color: var(--vt-gold-bright);
  border: 1.5px solid var(--vt-gold-bright);
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.vt-btn-done:hover {
  background: var(--vt-gold-bright);
  color: #000;
}

.vt-res-header-combo {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
}

.vt-terms-content-area {
  text-align: left;
  color: #BBB;
  font-size: 12px;
  line-height: 1.6;
  max-height: 350px;
  overflow-y: auto;
  margin: 20px 0;
  padding-right: 10px;
}

.vt-terms-content-area b {
  color: var(--vt-gold-std);
  display: block;
  margin-top: 10px;
}

/* ---------------- 后台管理样式 (Admin Dashboard) ---------------- */
.vt-admin-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.vt-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.vt-admin-title {
  color: var(--vt-gold-bright);
  margin: 0;
}

.vt-table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: var(--vt-black-bg);
  border: 1px solid var(--vt-gold-std);
  border-radius: 12px;
  padding: 10px;
}

.vt-table {
  width: 100%;
  border-collapse: collapse;
  color: #FFF;
  font-size: 13px;
  min-width: 700px;
}

.vt-table th, .vt-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #222;
}

.vt-table th {
  color: var(--vt-gold-std);
  font-weight: bold;
  text-transform: uppercase;
}

.vt-table tr:last-child td {
  border-bottom: none;
}

.vt-table tr:hover td {
  background: rgba(255, 215, 0, 0.05);
}

.vt-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  background: #333;
  color: #CCC;
}

.vt-badge.role-administrator { background: #5a0000; color: #ff9999; }
.vt-badge.role-admin { background: #003366; color: #99ccff; }
.vt-badge.role-staff { background: #004d00; color: #99ff99; }
.vt-badge.role-saloon-owner { background: #4d4d00; color: #ffff99; }
.vt-badge.role-client { background: #333; color: #FFF; }

.vt-action-btn {
  background: transparent;
  color: var(--vt-gold-bright);
  border: 1px solid var(--vt-gold-bright);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  transition: 0.3s;
}

.vt-action-btn:hover {
  background: var(--vt-gold-bright);
  color: #000;
}

/* ---------------- 响应式隐藏 ---------------- */
@media (max-width: 768px) {
  .vt-hide-mobile {
    display: none !important;
  }
}

