/* ===== 全局重置 & 背景轮播 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

.slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background-color: #1a1a1a;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}
.slide.active { opacity: 1; }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255,255,255,0.4);
  z-index: 1;
  pointer-events: none;
}

.bg-indicator {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(3px);
  border-radius: 40px;
  pointer-events: none;
}
.bg-indicator span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.bg-indicator span.active-dot {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 10px white;
}

/* ===== 导航栏 ===== */
nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
nav a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 30px;
  transition: all 0.2s;
  font-size: 15px;
  white-space: nowrap;
}
nav a:hover,
nav a.active {
  background: #2563eb;
  color: white;
}
@media (max-width: 640px) {
  nav {
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    flex-wrap: wrap;
    max-width: calc(100% - 80px);
  }
  nav a {
    padding: 4px 10px;
    font-size: 13px;
  }
}

/* ===== Logo ===== */
.logo-fixed {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.logo-fixed img { width: 60px; height: auto; }
.logo-fixed span {
  color: black;
  font-weight: bold;          /* ✅ 改为粗体，移除斜体 */
  font-size: 16px;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

/* ===== 用户信息加粗 ===== */
#userNameDisplay {
  font-weight: bold;
}

/* ===== 主内容容器 ===== */
.main-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  background: transparent;
  padding-top: 80px;
}
@media (max-width: 640px) {
  .main-content { padding-top: 70px; }
}

/* ===== 通用卡片 ===== */
.card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.5);
}

/* ===== 首页 (index) ===== */
.container { max-width:1200px; margin:0 auto 3rem; padding:0 1.5rem; text-align:center; }
.title { font-size:3rem; font-weight:700; color:#1e293b; margin-bottom:1rem; }
.subtitle { font-size:1.2rem; color:#334155; margin-bottom:2rem; }
.features {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap:2rem;
  margin-top:2rem;
}
.feature-card {
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(12px);
  border-radius:24px;
  padding:1.5rem;
  box-shadow:0 10px 30px rgba(0,0,0,0.1);
  border:1px solid rgba(255,255,255,0.5);
  transition: transform 0.3s;
}
.feature-card:hover { transform:scale(1.02); }
.feature-icon { font-size:3rem; margin-bottom:0.5rem; color:#2563eb; }
.feature-title { font-size:1.3rem; font-weight:700; color:#1e293b; margin-bottom:0.5rem; }
.feature-desc { color:#475569; font-size:0.95rem; line-height:1.5; }

.rules-section {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  margin-top:3rem;
  text-align:left;
}
.rule-card {
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(12px);
  border-radius:20px;
  padding:1.5rem;
  border:1px solid rgba(255,255,255,0.5);
  box-shadow:0 10px 30px rgba(0,0,0,0.1);
}
.rule-card h3 {
  font-size:1.3rem;
  font-weight:700;
  color:#1e293b;
  margin-bottom:0.5rem;
  display:flex;
  align-items:center;
  gap:0.5rem;
}
.rule-card ul {
  list-style:decimal;
  padding-left:1.5rem;
  color:#475569;
  line-height:1.8;
}
.rule-card ul li { margin-bottom:0.3rem; }
@media (max-width:768px) { .rules-section { grid-template-columns:1fr; } }

/* ===== 联系我们 (contact) ===== */
.contact-card { max-width:700px; margin:1rem auto 3rem; }
.contact-title { font-size:2.5rem; font-weight:700; color:#1e293b; text-align:center; margin-bottom:2rem; }
.contact-item {
  display:flex;
  align-items:center;
  gap:1rem;
  padding:1rem 0;
  border-bottom:1px solid rgba(0,0,0,0.1);
}
.contact-item:last-child { border-bottom:none; }
.contact-icon {
  width:48px; height:48px;
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:1.5rem;
  flex-shrink:0;
}
.contact-content {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0.5rem 1rem;
  font-size:1.2rem;
  color:#334155;
}
.contact-label { font-weight:600; color:#2563eb; min-width:80px; }
.contact-value { color:#1e293b; }
.contact-link {
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  color:white;
  padding:0.3rem 1rem;
  border-radius:30px;
  font-size:0.9rem;
  text-decoration:none;
  font-weight:500;
  transition:0.2s;
}
.contact-link:hover { transform:translateY(-2px); box-shadow:0 4px 10px rgba(59,130,246,0.3); }
.contact-note { text-align:center; margin-top:2rem; color:#475569; }

/* ===== 精彩活动 (activity) ===== */
.activity-card { max-width:800px; margin:1rem auto 3rem; }
.activity-title { font-size:2.5rem; font-weight:700; color:#1e293b; text-align:center; margin-bottom:2rem; }
.activity-list { list-style:none; padding:0; }
.activity-item {
  display:flex;
  align-items:flex-start;
  gap:1rem;
  padding:1.2rem 0;
  border-bottom:1px solid rgba(0,0,0,0.1);
}
.activity-item:last-child { border-bottom:none; }
.activity-icon {
  flex-shrink:0;
  width:48px; height:48px;
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:1.5rem;
  font-weight:bold;
}
.activity-content {
  flex:1;
  font-size:1.1rem;
  line-height:1.6;
  color:#334155;
}
.highlight { color:#2563eb; font-weight:600; }
.activity-note { text-align:center; margin-top:2rem; color:#475569; }

/* ===== 赞助 (sponsor) ===== */
.sponsor-card { max-width:900px; margin:1rem auto 3rem; text-align:center; }
.sponsor-title { font-size:2.5rem; font-weight:700; color:#1e293b; margin-bottom:1rem; }
.sponsor-subtitle { font-size:1.2rem; color:#334155; margin-bottom:2.5rem; }
.payment-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  margin-top:2rem;
}
.payment-item {
  background:rgba(255,255,255,0.6);
  border-radius:20px;
  padding:1.5rem;
  transition:transform 0.2s;
}
.payment-item:hover { transform:translateY(-4px); }
.payment-icon { font-size:3rem; margin-bottom:0.5rem; }
.wx-icon { color:#07C160; }
.zfb-icon { color:#1677FF; }
.payment-title { font-size:1.5rem; font-weight:600; color:#1e293b; margin-bottom:1rem; }
.qr-image {
  width:207px;
  margin:1rem auto;
  border-radius:16px;
  overflow:hidden;
  border:2px solid #fff;
  box-shadow:0 8px 20px rgba(0,0,0,0.1);
}
.qr-image img { width:100%; height:auto; display:block; }
.qr-wechat { height:281px; }
.qr-alipay { height:310px; }
.payment-note { font-size:0.95rem; color:#64748b; margin-top:0.5rem; }
.thank-note {
  margin-top:2.5rem;
  padding-top:1.5rem;
  border-top:1px solid rgba(0,0,0,0.1);
  font-size:1.1rem;
  color:#475569;
}
@media (max-width:640px) {
  .payment-grid { grid-template-columns:1fr; }
  .qr-image { width:180px; }
  .qr-wechat { height:244px; }
  .qr-alipay { height:269px; }
}

/* ===== 商店 (shop) ===== */
.shop-container { max-width:1200px; margin:0 auto 3rem; padding:0 1.5rem; }
.shop-header { text-align:center; margin-bottom:2.5rem; }
.shop-header h1 { font-size:2.5rem; font-weight:700; color:#1e293b; margin-bottom:0.5rem; }
.shop-header p { font-size:1.1rem; color:#334155; }
.products-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
}
.product-card {
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(12px);
  border-radius:24px;
  padding:1.5rem;
  box-shadow:0 10px 30px rgba(0,0,0,0.1);
  border:1px solid rgba(255,255,255,0.5);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.product-card:hover {
  transform:scale(1.03);
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}
.product-image {
  width:120px; height:120px;
  margin-bottom:1rem;
  background:rgba(0,0,0,0.05);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0.5rem;
}
.product-image img {
  max-width:100%;
  max-height:100%;
  image-rendering:pixelated;
}
.product-name { font-size:1.4rem; font-weight:700; color:#1e293b; margin-bottom:0.5rem; }
.product-desc { font-size:0.95rem; color:#475569; margin-bottom:1rem; line-height:1.4; }
.product-price { font-size:1.3rem; font-weight:700; color:#2563eb; margin-bottom:0.5rem; }
.product-price::before { content:"💰 "; font-size:1rem; }
.product-notice {
  font-size:0.8rem;
  color:#64748b;
  background:rgba(0,0,0,0.05);
  padding:0.3rem 0.6rem;
  border-radius:30px;
  margin-bottom:1rem;
  display:inline-block;
}
.buy-btn {
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  color:white;
  padding:0.6rem 1.5rem;
  border-radius:40px;
  text-decoration:none;
  font-weight:600;
  transition:all 0.2s;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  border:none;
  cursor:pointer;
  font-size:1rem;
  margin-top:0.5rem;
}
.buy-btn:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(59,130,246,0.3);
}
@media (max-width:900px) {
  .products-grid { grid-template-columns:repeat(2,1fr); gap:1.5rem; }
}
@media (max-width:600px) {
  .products-grid { grid-template-columns:1fr; }
}

/* ===== 登录 / 注册 (auth) ===== */
.auth-card {
  max-width:420px;
  margin:1rem auto 3rem;
}
.auth-title { font-size:2rem; font-weight:700; color:#1e293b; text-align:center; margin-bottom:1.5rem; }
.input-group { margin-bottom:1.2rem; }
.input-group label {
  display:block;
  font-weight:500;
  color:#334155;
  margin-bottom:0.3rem;
}
.input-group input {
  width:100%;
  padding:0.7rem 1rem;
  border:1px solid #e2e8f0;
  border-radius:12px;
  font-size:1rem;
  transition:all 0.2s;
  background:rgba(255,255,255,0.8);
}
.input-group input:focus {
  outline:none;
  border-color:#3b82f6;
  box-shadow:0 0 0 3px rgba(59,130,246,0.1);
}
.submit-btn {
  width:100%;
  padding:0.8rem;
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  color:white;
  border:none;
  border-radius:12px;
  font-size:1.1rem;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s;
  margin-top:0.5rem;
}
.submit-btn:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(59,130,246,0.3);
}
.auth-footer {
  text-align:center;
  margin-top:1.5rem;
  color:#64748b;
}
.auth-footer a {
  color:#3b82f6;
  text-decoration:none;
  font-weight:500;
}
.auth-footer a:hover { text-decoration:underline; }
.error-msg { color:#ef4444; font-size:0.9rem; margin-top:0.5rem; display:none; }
.success-msg { color:#10b981; font-size:0.9rem; margin-top:0.5rem; display:none; }

/* ===== 用户信息加粗（已在顶部定义） ===== */
#userNameDisplay {
  font-weight: bold;
}
/* 确保左上角所有可交互元素可点击 */
.logo-fixed a,
.logo-fixed #userInfo a {
  pointer-events: auto !important;
}