/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 16px;
}

body {
  background-color: #F0F1F5;
  min-height: 100vh;
}
a{
      text-decoration: auto;
}
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 3.5rem;
}

/* 头部样式 */
.header {
  padding: 1rem;
  display: flex;
  align-items: center;
  position: fixed;
  height: 2.5rem;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: inherit;
}

.back-button {
  width: 1.5rem;
  height: 1.5rem;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 1rem;
}

.header-title {
  font-size: 1.25rem;
  font-weight: bold;
  flex: 1;
  text-align: center;
}

/* 会员中心特定样式 */
.top-section {
  background-color: #D2C4A5;
  background-image: url('../images/et.png');
  background-size: cover;
  background-position: center;
}

.user-info {
  padding: 1rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.avatar {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  z-index: 10;
}

.user-name {
  font-weight: 600;
  color: black;
  font-size: 1.125rem;
}

.expiration {
  color: black;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* 选项卡样式 */
.tabs {
  display: flex;
  overflow-x: auto;
  background-color: white;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 12px 16px;
  white-space: nowrap;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666666;
}

.tab.active {
  color: #B39B7B;
  border-bottom: 3px solid #B39B7B;
}

/* 会员卡片样式 */
.tab-content {
  display: none;
  padding: 1rem;
}

.tab-content.active {
  display: block;
}

.membership-card {
  background-color: #D2C4A5;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

.card-content {
  padding: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.duration {
  font-size: 1.25rem;
  color: #FF4D4F;
  font-weight: bold;
}

.status {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.benefit {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #333;
}

.red-text {
  color: #FF4D4F;
}

.tag {
  display: inline-block;
  background-color: #8B6E4E;
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.pricing {
  margin-top: 1.5rem;
  text-align: center;
}

.original-price {
  color: #666;
  font-size: 0.875rem;
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.special-price {
  background-color: #8B6E4E;
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
}

.disclaimer {
  text-align: center;
  color: #999;
  font-size: 0.75rem;
  padding: 1rem;
  margin-top: auto;
}

/* 设置中心特定样式 */
.settings-group {
  background-color: white;
  border-radius: 0.5rem;
  margin: 1rem;
  overflow: hidden;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #EEEEEE;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-left {
  display: flex;
  align-items: center;
}

.settings-title {
  font-size: 1rem;
  color: #333333;
}

.settings-right {
  display: flex;
  align-items: center;
  color: #999999;
}

.settings-value {
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

.arrow-icon {
  width: 0.5rem;
  height: 0.5rem;
  border-top: 1px solid #CCCCCC;
  border-right: 1px solid #CCCCCC;
  transform: rotate(45deg);
}

/* 轮播图样式 */
.swiper {
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 1rem;
}

.swiper-slide {
  width: 100%;
}

.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* 开关样式 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CCCCCC;
  transition: .4s;
  border-radius: 1.5rem;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.2rem;
  width: 1.2rem;
  left: 0.15rem;
  bottom: 0.15rem;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #CCCCCC;
}

input:checked + .slider:before {
  transform: translateX(1.5rem);
}

/* 主题颜色 */
.theme-red {
  background-color: #FF4D4F;
  color: white;
}

.theme-red .back-button {
  color: white;
}

.theme-gold {
  background-color: #D2C4A5;
  color: black;
}

.theme-gold .back-button {
  color: black;
}

/* 底部标签栏图标样式 */
.tab-icon img {
  width: 1.2rem;
  height: auto;
  display: block;
} 