/* 全局样式 */
:root {
  --primary-color: #4285f4;
  --primary-hover: #3367d6;
  --bg-color: #f8f9fc;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-radius: 8px;
  --transition: all 0.2s ease;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-primary);
}

/* 顶部导航 */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 1000;
  height: 64px;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { height: 36px; margin-right: 12px; }
.nav-title { font-size: 22px; font-weight: bold; color: #222; }
.nav-links a { color: #4285f4; margin-left: 24px; text-decoration: none; font-size: 16px; }

/* 主容器样式 */
.main-container {
  max-width: 1200px;
  margin: 96px auto 40px;
  padding: 0 24px;
}

/* 按钮样式 */
.primary-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.primary-btn:hover {
  background: var(--primary-hover);
}

.secondary-btn {
  background: #fff;
  color: #4285f4;
  border: 1px solid #4285f4;
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
}

.secondary-btn:hover {
  filter: brightness(1.08);
}

/* 样式选择按钮 */
.style-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--border-radius);
  font-size: 16px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  cursor: pointer;
}

.style-btn.selected {
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
}

/* 删除所有这些hover相关样式！ */
.style-btn:hover,
.style-btn.selected:hover,
.style-btn:hover:not(.selected) {
  /* 删除所有hover样式 */
}

.container { max-width: 600px; margin: 60px auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px #eee; padding: 32px; }
.qr-box {
  margin-top: 32px;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  overflow: hidden;
}
.qr-box svg {
  display: block;
  margin: auto;
  /* transform和transform-origin由JS动态设置 */
}
input { width: 100%; font-size: 18px; padding: 8px; border-radius: 6px; border: 1px solid #ccc; }
button { margin-top: 16px; width: 100%; font-size: 18px; padding: 10px; border-radius: 6px; background: #005cff; color: #fff; border: none; cursor: pointer; }
.style-btn.selected { background: #1677ff; color: #fff; border: none; }
.style-btn:not(.selected):hover { background: #e6f0ff; }
.ant-input { font-size:16px; border-radius:8px; }
.ant-btn { border-radius:8px; }
.header-bar {
  width: 100vw;
  background: linear-gradient(90deg, #1677ff 0%, #25f4ee 50%, #fe2c55 100%);
  box-shadow: 0 2px 8px #e0e0e0;
  padding: 0;
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 32px;
}
.header-logo {
  height: 32px;
  margin-right: 16px;
}
.header-title {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
}
.header-extra {
  flex: 1;
  text-align: right;
}
.dy-gradient-btn {
  width: 200px;
  height: 40px;
  font-size: 16px;
  margin: 24px auto 0;
  display: block;
  border: none;
  border-radius: 24px;
  background: linear-gradient(90deg, #1677ff 0%, #25f4ee 50%, #fe2c55 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px #e0e0e0;
  cursor: pointer;
  transition: filter .2s;
}
.dy-gradient-btn:hover {
  filter: brightness(1.08);
}
.modal-mask {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.25); z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.modal-dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px #0002;
  width: 340px;
  padding: 0 0 24px 0;
  animation: modalIn .25s;
}
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: none !important; /* 确保没有背景色 */
  border-bottom: 1px solid #eee;
  position: relative;
}
.modal-close {
  background: none; border: none; color: #fff; font-size: 22px; cursor: pointer;
}
.modal-body {
  padding: 24px 24px 0 24px;
  text-align: center;
}
.modal-qr {
  width: 120px; height: 120px; border-radius: 12px; box-shadow: 0 2px 8px #eee;
}
.modal-info { margin-top: 8px; }

.content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.left-panel, .right-panel {
  flex: 1;
}

/* 样式选择按钮 */
.style-buttons {
  display: flex;
  gap: 12px;
}

@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }
body {
	padding: 2rem;
	font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
}

h1 {
	font-size: 16px;
	margin-top: 0;
}

p {
	color: rgb(107, 114, 128);
	font-size: 15px;
	margin-bottom: 10px;
	margin-top: 5px;
}

.card {
	max-width: 620px;
	margin: 0 auto;
	padding: 16px;
	border: 1px solid lightgray;
	border-radius: 16px;
}

.card p:last-child {
	margin-bottom: 0;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #e6f0fa;
  border: none;
  color: #0071e3;
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn:hover {
  background: #d0e7fa;
  color: #005bb5;
}

.close-btn-mac {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #1765d8;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(23,101,216,0.08);
  transition: background 0.2s;
  z-index: 10;
}
.close-btn-mac:hover {
  background: #1554b2;
}

main, .main-content {
  padding-top: 64px; /* 与导航高度一致 */
}

.nav-btn {
  white-space: nowrap;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  background: #1765d8;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-btn:hover {
  background: #1554b2;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding: 20px;
  z-index: 10002;
  min-width: 300px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

/* 联系客服按钮 - 使用更高特异性 */
.contact-btn {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 20px !important;
  background: #1677ff !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 14px !important;
  box-shadow: 0 2px 12px rgba(22, 119, 255, 0.3) !important;
  z-index: 9999 !important;
  width: unset !important;
  min-width: unset !important;
  max-width: unset !important;
}

.contact-btn:hover {
  background: #0958d9 !important;
  box-shadow: 0 4px 16px rgba(22, 119, 255, 0.4) !important;
}

.contact-btn svg {
  width: 18px !important;
  height: 18px !important;
  margin-right: 4px !important;
}

/* 修改动画持续时间和延迟 */
.animate__bounce {
  --animate-duration: 2s;
  animation-delay: 1s;
}

/* 点击效果 */
.contact-btn:active {
  transform: scale(0.95);
}

/* 模态框样式优化 */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* 显示模态框的类 */
.contact-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.window-controls {
  display: flex;
  gap: 6px;
  position: absolute;
  left: 0;
  top: 0;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.control.close {
  background: #ff5f57;
}

.control.minimize {
  background: #febc2e;
}

.control.maximize {
  background: #28c840;
}

/* 标题居中 */
.modal-header h3 {
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 16px;
  color: #333;
}

.modal-body {
  padding: 24px;
}

.qr-container {
  text-align: center;
  margin-bottom: 24px;
}

.qr-code {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qr-title {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.qr-id {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.service-time {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
}

.service-time h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
}

.time-icon {
  color: #1677ff;
}

.time-slots p {
  margin: 8px 0;
  font-size: 14px;
  color: #666;
}

.time-slots .note {
  color: #999;
  font-size: 13px;
  margin-top: 12px;
}

/* Loading动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  border: 4px solid #e0e0e0;
  border-top: 4px solid #0071e3;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* 如果有 footer，确保它紧贴内容 */
footer {
  margin: 0;
  padding: 0;
}

/* 主要内容区域 */
main {
  flex: 1;
  padding-bottom: 0; /* 移除底部内边距 */
}

/* 确保最后一个元素没有底部边距 */
main > *:last-child {
  margin-bottom: 0;
}

.header-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #1677ff;
  color: white;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-login:hover {
  background: #0958d9;
}

.btn-register {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border: none;
  border-radius: 4px;
  background: #1677ff;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-register:hover {
  background: #0958d9;
}

/* 图标样式 */
.btn-login i,
.btn-register i {
  font-size: 14px;
}

/* 导航栏右侧按钮容器 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 登录按钮 */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #1677ff;
  color: white;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-login:hover {
  background: #0958d9;
}

/* 注册按钮 */
.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #1677ff;
  color: white;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-register:hover {
  background: #0958d9;
}

/* 图标样式 */
.btn-login i,
.btn-register i {
  font-size: 14px;
}

/* 确保图标和文字对齐 */
.btn-login i,
.btn-register i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 汉堡按钮样式 */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #1677ff;
  margin-left: 8px;
  cursor: pointer;
}

/* 侧边栏抽屉 */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; width: 100vw; height: 100vh;
}
.mobile-nav-drawer.active {
  display: block;
}
.drawer-overlay {
  position: absolute;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
}
.drawer-content {
  position: absolute;
  top: 0; left: 0;
  width: 70vw; max-width: 320px; height: 100vh;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  animation: slideInLeft 0.2s;
}
@keyframes slideInLeft {
  from { transform: translateX(-100%);}
  to { transform: translateX(0);}
}
.drawer-content a {
  margin: 12px 0;
  color: #1677ff;
  font-size: 16px;
  text-decoration: none;
  font-weight: 500;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
}

/* 响应式：移动端显示汉堡按钮，隐藏右侧按钮 */
@media (max-width: 768px) {
  .nav-right > .btn-login,
  .nav-right > .btn-register {
    display: none !important;
  }
  .nav-hamburger {
    display: inline-flex !important;
    align-items: center;
  }
  .nav-links {
    display: none !important;
  }
}

/* 汉堡菜单下按钮样式 */
.drawer-content .btn-login,
.drawer-content .btn-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 16px 0 0 0;
  padding: 10px 0;
  background: #1677ff;
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.drawer-content .btn-login:hover,
.drawer-content .btn-register:hover {
  background: #0958d9;
  color: #fff !important;
}

.drawer-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #1677ff;
  margin: 24px 0 24px 0;
  letter-spacing: 2px;
}

.logo-upload-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
#logoPreview {
  margin-left: 0;
  background: #fff;
}

.vip-card .badge { 
  position: absolute; 
  top: 13px; /* 上移5px */
  left: 50%; 
  transform: translateX(-50%); 
  background: #296fff; 
  color: #fff; 
  border-radius: 12px; 
  padding: 2px 12px; 
  font-size: 13px;
}
