/* UNI Rhythmé 小程序样式 */

/* 颜色方案 */
:root {
  /* 主色调 */
  --primary-color: #8A2BE2; /* 紫色 */
  --primary-light: #BA55D3; /* 浅紫色 */
  --primary-dark: #6A0DAD; /* 深紫色 */
  
  /* 辅助色 */
  --accent-color: #FF69B4; /* 粉色 */
  --accent-light: #FFB6C1; /* 浅粉色 */
  
  /* 中性色 */
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --medium-gray: #E0E0E0;
  --dark-gray: #666666;
  --black: #333333;
  
  /* 状态色 */
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #F44336;
  --info: #2196F3;
}

/* 字体 */
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--black);
  background-color: var(--light-gray);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基础样式 */
* {
  box-sizing: border-box;
}

.container {
  width: 100%;
  margin: 0 auto;
  background-color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 页面通用样式 */
.page {
  padding: 16px;
  padding-bottom: 100px; /* 为底部导航栏留出空间 */
}

.page-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-accent:hover {
  background-color: #FF1493;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 卡片样式 */
.card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  margin-bottom: 16px;
}

/* 金色头部样式 */
.golden-header {
  background: linear-gradient(135deg, #F7D794 0%, #EAB04D 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  color: var(--black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.golden-header .user-info-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.golden-header .user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--white);
}

.golden-header .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.golden-header .user-details {
  flex: 1;
  margin: 0 16px;
}

.golden-header .user-nickname {
  font-size: 18px;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 4px;
}

.golden-header .user-level {
  display: flex;
  align-items: center;
  gap: 8px;
}

.golden-header .level-badge {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--black);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.golden-header .level-progress-text {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
}

.member-center-btn {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--black);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.member-center-btn:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* 用户积分信息 */
.user-points-section {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 16px;
}

.points-info {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.points-label {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 2px;
}

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

.expiry-info {
  display: flex;
  justify-content: flex-start;
}

.expiry-text {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
}

/* 顶部信息区域样式 */
.top-info-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-type {
  display: flex;
  justify-content: flex-start;
}

.card-type-badge {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.card-number, .register-phone {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label {
  font-size: 12px;
  color: var(--dark-gray);
}

.number, .phone {
  font-size: 16px;
  color: var(--black);
  font-weight: 500;
}

/* 用户信息区域样式 */
.user-info-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-nickname {
  font-size: 20px;
  font-weight: bold;
  color: var(--black);
}

.user-level {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.level-badge {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.level-progress-text {
  font-size: 12px;
  color: var(--dark-gray);
}

.level-progress {
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.user-points {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--accent-color);
  font-weight: 500;
}

.user-points i {
  font-size: 18px;
}

.points-value {
  font-size: 20px;
}

.points-label {
  font-size: 14px;
  color: var(--dark-gray);
  font-weight: normal;
}

/* 功能列表样式 */
.function-list {
  display: flex;
  flex-direction: column;
}

.function-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
  text-decoration: none;
  color: var(--black);
  transition: background-color 0.3s ease;
}

.function-item:last-child {
  border-bottom: none;
}

.function-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.function-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 20px;
  flex-shrink: 0;
}

.function-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.function-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

.function-desc {
  font-size: 14px;
  color: var(--dark-gray);
}

.function-arrow {
  color: var(--medium-gray);
  font-size: 14px;
}

/* 输入框样式 */
.input-group {
  margin-bottom: 16px;
}

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-gray);
}

.input-field {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 16px;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* 顶部Banner */
.banner {
  width: 100%;
  /* border-radius: 12px; */
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  font-weight: bold;
  /* overflow: hidden; */
}
.banner img{
  border-radius: 12px;
}

/* 快捷入口按钮组 */
.quick-access {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 24px;
}

.quick-access .quick-access-btn-large:nth-child(1) {
  grid-column: span 3;
}

.quick-access .quick-access-btn-large:nth-child(2) {
  grid-column: span 3;
}

.quick-access .quick-access-btn:not(.quick-access-btn-large) {
  grid-column: span 2;
}

.quick-access-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background-color: var(--light-gray);
  border-radius: 12px;
  text-decoration: none;
  color: var(--black);
  transition: all 0.3s ease;
}

.quick-access-btn:hover {
  background-color: var(--medium-gray);
  transform: translateY(-2px);
}

.quick-access-btn .icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 24px;
}

.quick-access-btn .text {
  font-size: 14px;
  font-weight: 500;
}

/* 放大的快捷入口按钮 */
.quick-access-btn-large {
  padding: 24px 16px;
}

.quick-access-btn-large .icon {
  width: 64px;
  height: 64px;
  font-size: 32px;
  margin-bottom: 12px;
}

.quick-access-btn-large .text {
  font-size: 18px;
  font-weight: bold;
}

/* 列表样式 */
.item-list {
  margin-bottom: 24px;
}

.item-list-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--black);
}

.item {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--black);
}

.item-image {
  width: 100%;
  height: 150px;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--dark-gray);
}

.item-content {
  padding: 12px;
}

.item-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.item-description {
  font-size: 14px;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

.item-price {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-color);
}

/* 商品网格布局 */
.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 发现精彩页面样式 */
.discover-page {
    padding: 16px;
}

/* 筛选器行布局 */
.filter-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.filter-group {
    flex: 1;
    margin-bottom: 0;
}

/* 下拉选择框样式 */
.filter-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--white);
    color: var(--black);
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.filter-select option {
    padding: 12px;
    font-size: 16px;
}

/* 活动详情页面样式 */
.event-detail-page {
    padding: 0;
}

/* 核心信息部分样式 */
.core-info {
    padding: 16px;
}

.event-detail-page .event-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 16px;
    padding: 0 16px;
}

.event-detail-page .event-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 16px;
}

.event-detail-page .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dark-gray);
}

.event-detail-page .meta-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.event-detail-page .speaker-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin: 0 16px 16px;
}

.event-detail-page .speaker-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.event-detail-page .speaker-details {
    flex: 1;
}

.event-detail-page .speaker-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 4px;
}

.event-detail-page .speaker-intro {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* 画廊容器样式 */
.gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    height: 250px;
    display: none;
}

.gallery-slide.active {
    display: block;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 画廊导航点 */
.gallery-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background-color: var(--white);
    width: 12px;
    height: 12px;
}

/* 详细介绍部分样式 */
.detailed-info {
    padding: 16px;
    margin: 0 16px 16px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light-gray);
}

.rich-content {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
}

.rich-content p {
    margin-bottom: 12px;
}

.rich-content ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.rich-content li {
    margin-bottom: 8px;
    list-style-type: disc;
}

/* 购票须知部分样式 */
.ticket-info {
    padding: 16px;
    margin: 0 16px 16px;
}

.policy-section {
    margin-bottom: 20px;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h4 {
    font-size: 16px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 12px;
}

.policy-section ul {
    margin-left: 20px;
}

.policy-section li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.5;
    list-style-type: disc;
}

/* 行动按钮样式 */
.action-button-container {
    padding: 16px;
    margin: 0 16px 16px;
}

.action-button-container .btn {
    width: 100%;
    font-size: 16px;
    padding: 14px;
}

/* page16 活动关键信息和结算部分样式 */
.page16-section {
    padding: 16px;
    margin: 0 16px 16px;
}

.event-key-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.key-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.key-info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: var(--dark-gray);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

/* 结算部分样式 */
.checkout-section {
    padding: 16px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--medium-gray);
}

.total-label {
    font-size: 16px;
    font-weight: bold;
    color: var(--dark-gray);
}

.total-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.checkout-section .btn {
    width: 100%;
    font-size: 16px;
    padding: 14px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.event-content {
    padding: 16px;
}

.event-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 12px;
}

.event-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--dark-gray);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.speaker-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.speaker-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.speaker-details {
    display: flex;
    flex-direction: column;
}

.speaker-name {
    font-weight: 500;
    color: var(--black);
}

.speaker-intro {
    font-size: 12px;
    color: var(--dark-gray);
}

.event-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--dark-gray);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 积分结算页面样式 */
.points-checkout-section {
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.product-details {
  padding: 16px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-image {
  width: 80px;
  height: 80px;
  background-color: var(--light-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-color);
}

.product-content {
  flex: 1;
}

.product-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.product-type {
  margin-bottom: 8px;
}

.product-description {
  font-size: 14px;
  color: var(--dark-gray);
}

.points-info {
  padding: 16px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.points-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
}

.points-row:last-child {
  border-bottom: none;
}

.points-row.total {
  font-weight: bold;
}

.points-row .label {
  font-size: 16px;
  color: var(--dark-gray);
}

.points-row .value {
  font-size: 18px;
  font-weight: 500;
}

.points-row .value.required {
  color: var(--primary-color);
}

.points-row .value.available {
  color: var(--success);
}

.points-row .value.remaining {
  color: var(--dark-gray);
}

.exchange-notes {
  padding: 16px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background-color: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 8px;
}

.note-item:last-child {
  margin-bottom: 0;
}

.note-item i {
  font-size: 20px;
  color: var(--info);
  margin-top: 2px;
}

.note-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.empty-state, .error-state {
  text-align: center;
  padding: 40px 0;
  color: var(--dark-gray);
}

.empty-state i, .error-state i {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-state i {
  color: var(--error);
}

/* Tab导航样式 */
.tab-nav {
  display: flex;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
  overflow: hidden;
}

.tab-item {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 16px;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--white);
}

.tab-item:hover {
  background-color: var(--light-gray);
}

.tab-item.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 设置界面样式 */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--white);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.setting-item:hover {
  background-color: var(--light-gray);
}

.setting-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.setting-text {
  flex: 1;
  font-size: 16px;
  color: var(--black);
}

.setting-value {
  font-size: 14px;
  color: var(--dark-gray);
}

.setting-arrow {
  color: var(--medium-gray);
  font-size: 14px;
}

/* 退出登录按钮 */
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background-color: transparent;
  border: 2px solid var(--error);
  color: var(--error);
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background-color: var(--error);
  color: var(--white);
  font-weight: 500;
}

/* Tab内容区域 */
.tab-content {
  width: 100%;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* 底部导航栏 */
.bottom-nav {
  position: static;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--white);
  border-top: 1px solid var(--medium-gray);
  padding: 8px 0;
  width: 100%;
  margin: 0 auto;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--dark-gray);
  font-size: 12px;
  padding: 4px;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item .icon {
  font-size: 24px;
  margin-bottom: 4px;
}

/* 会员卡号导航项突出样式 */
.nav-item.membership-card {
  transform: translateY(-10px);
}

.nav-item.membership-card .icon {
  font-size: 32px;
  background-color: var(--primary-color);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(233, 107, 104, 0.4);
  margin-bottom: 8px;
}

.nav-item.membership-card.active .icon {
  background-color: var(--primary-color);
}

/* 弹窗样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  background-color: var(--white);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 320px;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark-gray);
}

/* 开屏引导 */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 300;
}

.splash-logo {
  font-size: 48px;
  margin-bottom: 24px;
}

.splash-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
}

.splash-subtitle {
  font-size: 16px;
  margin-bottom: 32px;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .container {
    max-width: 100%;
  }
}

/* 搜索和筛选区域 */
.search-filter-section {
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    font-size: 14px;
    background-color: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    background-color: var(--white);
    color: var(--dark-gray);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* 购物车样式 */
.cart-icon-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 150;
}

.cart-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 购物车模态框 */
.cart-modal {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--black);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background-color: var(--light-gray);
    color: var(--black);
}

/* 购物车商品列表 */
.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
}

/* 会员卡号页面样式 */
.membership-card-page {
    padding: 20px;
    background-color: var(--light-gray);
    min-height: 100vh;
    padding-bottom: 120px; /* 为底部导航栏留出空间 */
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 16px;
}

.page-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--black);
    margin: 0;
}

/* 用户信息区域 */
.user-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--black);
    margin: 0;
}

/* 卡片信息区域 */
.card-info-section {
    margin-bottom: 24px;
}

/* 会员卡样式 - 参考星巴克卡片设计 */
.membership-card {
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); */
    /* border-radius: 16px; */
    /* padding: 24px; */
    /* color: var(--white); */
    /* box-shadow: 0 4px 16px rgba(138, 43, 226, 0.4); */
    position: relative;
    /* overflow: hidden; */
    width: 50px;
}
.membership-card .box{
  position: absolute;
  top: -40px;
}


/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.card-type {
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

/* 卡片主体 */
.card-body {
    position: relative;
    z-index: 2;
}

/* 条形码区域 */
.barcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.barcode {
    display: flex;
    align-items: end;
    height: 40px;
    margin-bottom: 8px;
    gap: 2px;
}

.barcode-line {
    background-color: var(--white);
    border-radius: 2px;
}

.barcode-number {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 2px;
}

/* 卡号信息 */
.card-details {
    margin-bottom: 24px;
}

.card-number-section {
    margin-bottom: 20px;
}

.detail-label {
    font-size: 12px;
    /* color: rgba(255, 255, 255, 0.8); */
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-number {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

/* 卡片信息网格 */
.card-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.detail-value.balance {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
}

/* 二维码区域 */
.qrcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode {
    margin-bottom: 8px;
}

.qrcode-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* 卡片底部 */
.card-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background-color: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
    color: var(--dark-gray);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    color: var(--black);
}

.cart-item-type {
    font-size: 12px;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background-color: var(--light-gray);
    color: var(--error);
}

/* 空购物车状态 */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: var(--dark-gray);
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--medium-gray);
}

.empty-cart p {
    margin: 0;
    font-size: 16px;
}

/* 购物车底部 */
.cart-footer {
    padding-top: 16px;
    border-top: 2px solid var(--light-gray);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: bold;
}

.cart-total span:first-child {
    color: var(--dark-gray);
}

.cart-total span:last-child {
    color: var(--accent-color);
    font-size: 20px;
}

#checkout-btn {
    width: 100%;
}

/* 结算页面样式 */
.checkout-page {
    padding: 16px;
    padding-bottom: 120px; /* 为底部固定支付栏留出空间 */
}

.page-header {
    text-align: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--black);
}

.checkout-section {
    margin-bottom: 16px;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header .count {
    font-size: 14px;
    color: var(--dark-gray);
}

/* 产品明细表样式 */
.checkout-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-product {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.checkout-product:last-child {
    border-bottom: none;
}

.product-image {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 24px;
    color: var(--white);
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 4px;
}

.product-type {
    font-size: 12px;
    color: var(--dark-gray);
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-color);
}

/* 支付金额样式 */
.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 16px;
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-row.label {
    color: var(--dark-gray);
}

.payment-row.value {
    color: var(--black);
}

.payment-row.discount {
    color: var(--primary-color);
}

.payment-row.total {
    font-weight: bold;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid var(--light-gray);
}

.payment-row.final {
    color: var(--accent-color);
    font-size: 20px;
}

/* 优惠券样式 */
.coupons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coupon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
}

.coupon.selected {
    border-color: var(--primary-color);
    background-color: rgba(138, 43, 226, 0.05);
}

.coupon-info {
    flex: 1;
}

.coupon-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 4px;
}

.coupon-desc {
    font-size: 12px;
    color: var(--dark-gray);
}

.coupon-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    margin-right: 12px;
}

.coupon-select {
    color: var(--medium-gray);
    font-size: 18px;
}

.coupon.selected .coupon-select {
    color: var(--primary-color);
}

/* 支付方式样式 */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background-color: rgba(138, 43, 226, 0.05);
}

.method-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.payment-method[data-method="wechat"] .method-icon {
    background-color: #07C160;
    color: var(--white);
}

.payment-method[data-method="balance"] .method-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.method-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--black);
}

.method-balance {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 4px;
}

.method-select {
    color: var(--medium-gray);
    font-size: 18px;
}

.payment-method.selected .method-select {
    color: var(--primary-color);
}

/* 底部固定支付栏样式 */
.checkout-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 375px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.footer-label {
    font-size: 16px;
    color: var(--dark-gray);
}

.footer-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.pay-btn {
    min-width: 120px;
    padding: 12px 24px;
}

/* 空状态样式 */
.empty-products,
.no-coupons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: var(--dark-gray);
}

.empty-products i,
.no-coupons i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--medium-gray);
}

.empty-products p,
.no-coupons p {
    margin: 0;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .checkout-page {
        padding-bottom: 100px;
    }
    
    .checkout-footer {
        padding: 12px;
    }
    
    .footer-value {
        font-size: 20px;
    }
    
    .pay-btn {
        min-width: 100px;
        padding: 10px 20px;
        font-size: 14px;
    }
}
/* 订单页面样式 */
/* 筛选器样式 */
.filter-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.filter-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--medium-gray);
    background-color: var(--white);
    border-radius: 16px;
    font-size: 14px;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

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

/* 订单列表样式 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 订单卡片链接样式 */
.order-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 订单详情页样式 */
.order-card-detail {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .order-card-detail {
        flex-direction: row;
        gap: 24px;
    }
    
    .order-card-detail .order-main-image {
        flex: 0 0 200px;
        height: auto;
    }
    
    .order-card-detail .order-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.info-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.info-group:last-child {
    border-bottom: none;
}

.info-group.highlight {
    background-color: var(--primary-light);
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
}

.info-label {
    font-size: 16px;
    color: var(--dark-gray);
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    color: var(--black);
    font-weight: 600;
}

/* 赠品样式 */
.gifts-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gift-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-type {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
}

.gift-physical {
    background-color: var(--primary-color);
}

.gift-virtual {
    background-color: var(--secondary-color);
}

.gift-name {
    font-size: 16px;
    color: var(--black);
}

/* 价格样式 */
.price-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px;
    color: var(--medium-gray);
    text-decoration: line-through;
}

.discount-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--warning);
}

.final-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.order-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.order-main-image {
    width: 100%;
    height: 180px;
    background-color: var(--light-gray);
}

.order-content {
    padding: 16px;
}

.order-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.order-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.order-status {
    margin-bottom: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
}

.status-upcoming {
    background-color: var(--primary-color);
}

.status-available {
    background-color: var(--warning);
}

.status-ended {
    background-color: var(--dark-gray);
}

.order-date {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.order-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .filter-container {
        padding: 12px;
    }
    
    .filter-options {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .order-main-image {
        height: 150px;
    }
    
    .order-content {
        padding: 12px;
    }
    
    .order-title {
        font-size: 16px;
    }
    
    .order-actions {
        gap: 8px;
    }
    
    .order-actions .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}
