:root {
  /* 黑白色简笔画风格配色 */
  --black: #000000;
  --white: #ffffff;
  --gray-dark: #1a1a1a;
  --gray-medium: #4a4a4a;
  --gray-light: #8a8a8a;
  --gray-lighter: #e0e0e0;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --border-subtle: #e0e0e0;
  --border-strong: #000000;
  --text-main: #000000;
  --text-muted: #4a4a4a;
  --text-light: #8a8a8a;
  --radius-lg: 8px;
  --radius-md: 6px;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", "Noto Sans SC", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.page {
  width: 100%;
  max-width: 1200px;
  margin: 18px auto;
  padding: 16px 18px 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  /* 确保所有内容都限制在这个宽度内 */
  overflow-x: hidden;
}

/* 强制所有子元素都受到.page的宽度限制（排除绝对定位的元素） */
.page > *,
.page > * > *,
.page > * > * > * {
  max-width: 100%;
  box-sizing: border-box;
}

.page section,
.page div:not([class*="modal"]):not([class*="overlay"]),
.page main,
.page header,
.page nav,
.page footer {
  max-width: 100%;
  box-sizing: border-box;
}

/* 通用按钮 - 简笔画风格 */
.btn {
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
  white-space: nowrap;
  background: var(--white);
  color: var(--black);
}

.btn.primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.btn.primary:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.btn.full-width {
  width: 100%;
}

.text-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  text-decoration: underline;
  text-decoration-style: dashed;
}

.text-link:hover {
  color: var(--text-main);
}

/* 品牌弹窗 - 封面风格 */
.brand-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 20;
}

.brand-modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 20px;
  text-align: center;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.brand-logo-wrapper {
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  max-width: 180px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: logoPop 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ip-character-wrapper {
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-height: 40vh;
}

.ip-character-img {
  max-width: 280px;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: logoPop 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 30px;
  letter-spacing: 0.1em;
  font-weight: 500;
  }

/* 进入按钮 - 特别设计 */
#brand-enter-btn {
  min-width: 160px;
  padding: 14px 32px;
  font-size: 16px;
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: btnFloat 3s ease-in-out infinite;
}

@keyframes btnFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 登录/注册遮罩 - 简笔画风格 */
.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-logo-img {
  max-width: 80px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.auth-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-logo .brand-main {
  font-size: 22px;
}

.auth-logo .brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.auth-tabs {
  display: inline-flex;
  background: var(--gray-lighter);
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 14px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--black);
  color: var(--white);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
textarea,
select {
  width: 100%;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-strong);
  background: var(--white);
  color: var(--text-main);
  font-size: 13px;
  padding: 8px 11px;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
textarea:focus,
select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.contact-group {
  display: none;
}

.contact-row {
  display: flex;
  gap: 8px;
}

.contact-row select {
  width: 36%;
}

.contact-row input {
  width: 64%;
}

.contact-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.delivery-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.auth-tip {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.auth-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--black);
  font-weight: 600;
}

/* 顶部导航 - 简笔画风格 */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--border-subtle);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo .brand-main {
  font-size: 20px;
}

.nav-logo .brand-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.nav-tagline {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 14px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-greeting {
  font-size: 13px;
  color: var(--text-muted);
}

/* 主导航菜单 */
.main-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
  flex-wrap: wrap;
}

/* 手机端导航优化 */
@media (max-width: 768px) {
  .main-nav {
    gap: 6px;
    padding-bottom: 10px;
  }
  
  .nav-tab {
    font-size: 13px;
    padding: 6px 12px;
    flex: 1 1 auto;
    min-width: calc(50% - 3px);
    text-align: center;
  }
  
  .nav-tab:nth-child(odd) {
    margin-right: 3px;
  }
  
  .nav-tab:nth-child(even) {
    margin-left: 3px;
  }
}

.nav-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  position: relative;
}

.nav-tab:hover {
  color: var(--text-main);
  background: var(--gray-lighter);
}

.nav-tab.active {
  color: var(--black);
  background: var(--black);
  color: var(--white);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--black);
}

.page-content {
  display: block;
  width: 100%;
  min-height: 0;
  overflow: visible;
  /* 确保所有页面内容区域宽度一致，受.page的max-width限制 */
  max-width: 100%;
  box-sizing: border-box;
  /* 确保内容不会超出.page容器的宽度 */
  /* 强制限制宽度，防止内容溢出 */
  overflow-x: hidden;
}

/* 确保所有页面内容都严格限制在.page容器内 */
.page-content > *,
.page-content > * > *,
.page-content > * > * > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* 特别处理section和div元素 */
.page-content section,
.page-content div {
  max-width: 100%;
  box-sizing: border-box;
}

.page-content .card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* 确保所有页面的card样式一致 */
  /* 强制限制宽度，防止内容溢出 */
  overflow-x: hidden;
}

/* 确保所有页面card样式统一，除非特殊指定 */
.page-content .card:not(.game-card) {
  background: var(--card-bg);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
}

.btn.secondary {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.btn.secondary:hover {
  background: var(--gray-lighter);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn.secondary:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

/* 主布局 - 简笔画风格 */
.page-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card {
  background: var(--card-bg);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* 确保卡片宽度受父容器限制 */
  overflow-x: hidden;
  /* 防止内容溢出 */
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--border-subtle);
}

.card-header h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}

.order-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* 鸡尾酒卡片 - 简笔画风格 */
.cocktail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.cocktail-tile {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.cocktail-image {
  height: auto;
  min-height: 180px;
  aspect-ratio: 1 / 1;
  background: var(--gray-lighter);
  border-bottom: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cocktail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cocktail-image span {
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cocktail-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cocktail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cocktail-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.drink-flavor {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.drink-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.volume {
  font-size: 12px;
  color: var(--text-muted);
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}

.abv {
  font-size: 11px;
  color: var(--text-muted);
}

.ingredient-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.ingredient-tags li {
  padding: 4px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--white);
}

.tile-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.tile-qty label {
  font-size: 12px;
  color: var(--text-main);
  font-weight: 600;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  background: var(--white);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--black);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  padding: 0;
  line-height: 1;
}

.qty-btn:hover {
  background: var(--gray-medium);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-minus {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.qty-plus {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.qty-display {
  min-width: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  padding: 0 8px;
}

/* 订单表单 - 简笔画风格 */
.order-section {
  border-top: 2px dashed var(--border-subtle);
  padding-top: 10px;
  margin-top: 10px;
}

.order-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.order-section h3 {
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 700;
}

.order-summary-hint p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.checkout-summary {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--gray-lighter);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-main);
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 4px;
  font-weight: 700;
}

.order-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-drink-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.order-item {
  background: var(--gray-lighter);
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.order-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.order-item input[type="number"] {
  width: 64px;
  text-align: right;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 2px solid var(--black);
}

.combo-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.combo-radio {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 2px solid var(--black);
  cursor: pointer;
  transition: background 0.15s ease;
}

.combo-radio:hover {
  background: var(--gray-lighter);
}

.combo-radio input {
  margin-top: 4px;
}

.combo-radio div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.combo-radio strong {
  font-size: 13px;
  font-weight: 700;
}

.combo-radio span {
  font-size: 12px;
  color: var(--text-muted);
}

.cups-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.cups-row select {
  max-width: 150px;
  border: 2px solid var(--black);
}

textarea {
  resize: vertical;
  min-height: 60px;
  border: 2px solid var(--black);
}

.order-summary {
  margin: 10px 0 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--gray-lighter);
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-summary span {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
}

.order-summary strong {
  font-size: 18px;
  color: var(--black);
  font-weight: 700;
}

.order-summary-tip {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.order-feedback {
  margin-top: 8px;
  font-size: 12px;
  min-height: 16px;
}

.order-feedback.success {
  color: var(--black);
  font-weight: 600;
}

.order-feedback.error {
  color: var(--black);
  font-weight: 600;
}

/* 底部 - 简笔画风格 */
.footer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

/* 后台管理页面 - 限制宽度 */
.page-content .admin-card {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.admin-tabs-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.admin-tab:hover {
  color: var(--text-main);
  background: var(--gray-lighter);
}

.admin-tab.active {
  color: var(--black);
  background: var(--black);
  color: var(--white);
}

.admin-tab-content {
  display: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.admin-tab-content.active {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-subtle);
}

.admin-section-header h3 {
  margin: 0;
  font-size: 16px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 活动卡片 - 限制宽度并居中（提高权重以覆盖默认样式） */
.page-content .activities-card {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 活动列表 */
.activities-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 活动项样式 - 确保宽度与点单页面一致 */
.activity-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--card-bg);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s ease;
}

.activity-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.activity-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.activity-item-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.activity-content {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 8px;
}

.activity-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.activity-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--black);
}

.activity-badge.active {
  background: var(--black);
  color: var(--white);
}

.activity-badge.ended {
  background: var(--gray-lighter);
  color: var(--text-muted);
}

/* 订单列表卡片 - 限制宽度 */
.page-content .orders-list-card {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* 订单列表 */
.orders-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 空状态 */
.activity-empty,
.order-empty,
.admin-empty {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.admin-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.admin-item {
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-item-content {
  flex: 1;
}

.admin-item-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.admin-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
}

.admin-item-btn {
  padding: 6px 12px;
  font-size: 12px;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--border-subtle);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

/* 响应式 */
@media (max-width: 900px) {
  .page {
    padding: 12px 12px 20px;
  }

  .card {
    padding: 14px;
  }

  .card-header h2 {
    font-size: 17px;
  }

  .cocktail-grid {
    grid-template-columns: 1fr;
  }

  .order-field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .order-drink-grid {
    grid-template-columns: 1fr;
  }

  .brand-modal-content {
    padding: 32px 24px 24px;
  }

  .brand-logo-img {
    max-width: 130px;
    max-height: 130px;
  }

  .ip-character-img {
    max-width: 150px;
    max-height: 150px;
  }
}

/* 订单状态样式 */
.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--black);
}

.status-pending {
  background: var(--white);
  color: var(--black);
}

.status-picked {
  background: var(--black);
  color: var(--white);
}

.status-delivering {
  background: var(--gray-medium);
  color: var(--white);
}

.status-delivered {
  background: var(--gray-light);
  color: var(--white);
  border-color: var(--gray-light);
}

.order-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.order-item-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.order-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
}

.admin-select {
  padding: 6px 10px;
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 12px;
  cursor: pointer;
}

.admin-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--gray-lighter);
}

/* 活动详情样式 */
.activity-detail-modal {
  max-width: 1200px;
}

.activity-detail-content {
  padding: 20px 0;
}

.activity-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--border-subtle);
}

.activity-detail-images {
  margin: 20px 0;
}

.activity-detail-image {
  width: 100%;
  max-width: 100%;
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}

.activity-detail-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-main);
}

.activity-detail-full-content {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--gray-lighter);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
  white-space: pre-wrap;
}

.activity-detail-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px dashed var(--border-subtle);
}

.activity-detail-section h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
}

/* 投票样式 */
.vote-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.vote-option-btn {
  padding: 12px 16px;
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.vote-option-btn:hover {
  background: var(--black);
  color: var(--white);
}

.vote-results {
  margin-top: 16px;
}

.vote-result-item {
  margin-bottom: 16px;
}

.vote-result-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.vote-result-bar {
  height: 24px;
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.vote-result-fill {
  height: 100%;
  background: var(--black);
  transition: width 0.3s ease;
}

/* 评论样式 */
.comments-list {
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.comments-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.comment-item {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--white);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-username {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.comment-date {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-wrap;
}

.comment-form {
  margin-top: 16px;
}

.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 10px;
  resize: vertical;
}

.comment-form button {
  width: 100%;
}

/* 中奖名单样式 */
.prize-list {
  margin-top: 12px;
}

.prize-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--white);
}

.prize-winner {
  font-weight: 600;
  color: var(--text-main);
}

.prize-name {
  color: var(--text-muted);
}

.prize-management textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

/* 游戏页面 - Three.js 3D骰子游戏（黑盒子风格） - 限制宽度 */
.page-content .game-card {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  box-sizing: border-box;
}

.dice-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.dice-canvas-wrapper {
  width: 100%;
  max-width: 100%;
  height: 500px;
  position: relative;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-sizing: border-box;
  /* 确保游戏页面内容宽度与点单页面一致 */
}

#dice-canvas-container {
  width: 100%;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

#dice-canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#dice-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.dice-ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 3D骰子容器 */
.dice-wrapper-3d {
  width: 60px;
  height: 60px;
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
}

/* 3D骰子 */
.dice-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

/* 3D骰子面 */
.dice-face-3d {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 6px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  box-sizing: border-box;
}

/* 3D骰子面的位置 */
.dice-face-3d[data-face="1"] {
  transform: rotateY(0deg) translateZ(30px);
}

.dice-face-3d[data-face="2"] {
  transform: rotateY(90deg) translateZ(30px);
}

.dice-face-3d[data-face="3"] {
  transform: rotateZ(90deg) translateZ(30px);
}

.dice-face-3d[data-face="4"] {
  transform: rotateZ(-90deg) translateZ(30px);
}

.dice-face-3d[data-face="5"] {
  transform: rotateY(-90deg) translateZ(30px);
}

.dice-face-3d[data-face="6"] {
  transform: rotateY(180deg) translateZ(30px);
}

/* 3D骰子点数 */
.dice-face-3d .dot {
  width: 10px;
  height: 10px;
  background: var(--black);
  border-radius: 50%;
  flex-shrink: 0;
}

/* 不同点数的布局 */
.dice-face-3d[data-face="1"] {
  justify-content: center;
  align-items: center;
}

.dice-face-3d[data-face="2"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
}

.dice-face-3d[data-face="2"] .dot:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
}

.dice-face-3d[data-face="2"] .dot:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
}

.dice-face-3d[data-face="3"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
}

.dice-face-3d[data-face="3"] .dot:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
}

.dice-face-3d[data-face="3"] .dot:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
}

.dice-face-3d[data-face="3"] .dot:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
}

.dice-face-3d[data-face="4"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
}

.dice-face-3d[data-face="4"] .dot:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
}

.dice-face-3d[data-face="4"] .dot:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.dice-face-3d[data-face="4"] .dot:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: end;
}

.dice-face-3d[data-face="4"] .dot:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
}

.dice-face-3d[data-face="5"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0;
  position: relative;
}

.dice-face-3d[data-face="5"] .dot:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
}

.dice-face-3d[data-face="5"] .dot:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.dice-face-3d[data-face="5"] .dot:nth-child(3) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dice-face-3d[data-face="5"] .dot:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  align-self: end;
}

.dice-face-3d[data-face="5"] .dot:nth-child(5) {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;
}

.dice-face-3d[data-face="6"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0;
}

.dice-face-3d[data-face="6"] .dot:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
}

.dice-face-3d[data-face="6"] .dot:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.dice-face-3d[data-face="6"] .dot:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: center;
}

.dice-face-3d[data-face="6"] .dot:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: center;
}

.dice-face-3d[data-face="6"] .dot:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  align-self: end;
}

.dice-face-3d[data-face="6"] .dot:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;
}

/* 结果显示区域 - 黑盒子风格 */
.dice-score-board {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s;
  opacity: 0;
  width: 100%;
  max-width: 600px;
}

.dice-results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.dice-result-item {
  text-align: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dice-result-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.dice-result-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.dice-total {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dice-total-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.dice-total-value {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

/* 摇骰子按钮 */
.dice-roll-btn {
  pointer-events: auto;
  background: #e74c3c;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
  font-weight: bold;
  transition: transform 0.1s, box-shadow 0.1s;
  margin-top: 20px;
}

.dice-roll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

.dice-roll-btn:active {
  transform: scale(0.95);
}

.dice-roll-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
/* 后台管理 - 工作�?*/
.admin-date {
  font-size: 14px;
  color: var(--text-muted);
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
}

.stat-value.warning {
  color: #e74c3c;
}

.dashboard-section {
  background: var(--gray-lighter);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.dashboard-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
}

.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 订单管理 - 过滤�?*/
.admin-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-filter-btn {
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--white);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.admin-filter-btn:hover:not(.active) {
  background: var(--gray-lighter);
}

.volume-large {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--black);
}

.image-disclaimer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
  padding: 4px 0;
  border-top: 1px solid var(--border-subtle);
}

