/* 会员中心样式 */
.member-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  background: #f7f5f0;
  min-height: calc(100vh - 60px);
}

/* 会员头部信息 */
.member-header {
  background: linear-gradient(135deg, #bf2c24 0%, #d4534b 100%);
  border-radius: 20px;
  padding: 40px;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(191, 44, 36, 0.25);
  position: relative;
  overflow: hidden;
}

.member-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.member-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  flex-shrink: 0;
}

.member-details {
  flex: 1;
}

.member-details h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
}

.member-details .member-email {
  margin: 0 0 12px 0;
  opacity: 0.85;
  font-size: 14px;
}

.member-vip-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-header .vip-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #333;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
}

.vip-expire {
  font-size: 13px;
  opacity: 0.85;
}

.member-stats {
  display: flex;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  min-width: 100px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

/* 标签页导航 */
.member-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: white;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  color: #666;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tab-btn:hover {
  background: #f5f5f5;
  color: #bf2c24;
}

.tab-btn.active {
  background: linear-gradient(135deg, #bf2c24, #d4534b);
  color: white;
  box-shadow: 0 4px 15px rgba(191, 44, 36, 0.3);
}

/* 标签页内容 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tab-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

/* 书籍列表 */
.book-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.book-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}

.book-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.book-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.book-info {
  padding: 16px;
}

.book-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-author {
  font-size: 13px;
  color: #888;
  margin: 0 0 10px 0;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.book-time {
  font-size: 12px;
  color: #aaa;
}

.book-vip-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #333;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.book-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.book-actions .btn {
  flex: 1;
  font-size: 13px;
  padding: 8px;
  border-radius: 8px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 16px;
}

.empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state p {
  color: #999;
  font-size: 15px;
}

/* 充值中心 */
.vip-intro {
  background: linear-gradient(135deg, #bf2c24 0%, #d4534b 100%);
  border-radius: 20px;
  padding: 40px;
  color: white;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(191, 44, 36, 0.25);
  position: relative;
  overflow: hidden;
}

.vip-intro::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.4;
}

.vip-hero {
  position: relative;
  z-index: 1;
}

.vip-hero h2 {
  margin: 0 0 12px 0;
  font-size: 32px;
  font-weight: 700;
}

.vip-hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

.vip-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
}

.benefit-icon {
  font-size: 20px;
}

.vip-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.vip-plan {
  background: white;
  border: 2px solid #eee;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.vip-plan:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.vip-plan.featured {
  border-color: #bf2c24;
  box-shadow: 0 8px 30px rgba(191, 44, 36, 0.2);
  transform: scale(1.02);
}

.vip-plan.featured:hover {
  transform: scale(1.02) translateY(-8px);
}

.plan-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #bf2c24, #d4534b);
  color: white;
  padding: 6px 20px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(191, 44, 36, 0.3);
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.plan-price {
  font-size: 42px;
  font-weight: 700;
  color: #bf2c24;
  margin-bottom: 24px;
}

.plan-price span {
  font-size: 15px;
  color: #999;
  font-weight: normal;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  text-align: left;
}

.plan-features li {
  padding: 10px 0;
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: #4caf50;
  font-weight: bold;
}

.btn-vip {
  width: 100%;
  background: linear-gradient(135deg, #bf2c24, #d4534b);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(191, 44, 36, 0.3);
}

.btn-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191, 44, 36, 0.4);
}

.vip-note {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 12px;
}

/* 账号设置 */
.account-form {
  max-width: 500px;
  background: white;
  padding: 36px;
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  margin: 0 auto;
}

.account-form .form-group {
  margin-bottom: 24px;
}

.account-form .form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.account-form .form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.account-form .form-group input:focus {
  outline: none;
  border-color: #bf2c24;
  box-shadow: 0 0 0 4px rgba(191, 44, 36, 0.1);
}

.account-form .form-group input:disabled {
  background: #f8f8f8;
  color: #999;
  border-color: #eee;
}

.account-form .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  margin-top: 12px;
}

/* 加载状态 */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 15px;
}

/* 通知提示 */
.notification {
  position: fixed;
  top: 80px;
  right: 24px;
  background: #333;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  display: none;
  z-index: 3000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: slideInRight 0.3s ease;
}

.notification.success {
  background: #4caf50;
}

.notification.error {
  background: #f44336;
}

.notification.info {
  background: #2196f3;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 响应式 */
@media (max-width: 900px) {
  .vip-plans {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vip-plan.featured {
    transform: none;
  }

  .vip-plan.featured:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .member-container {
    padding: 20px 16px 40px;
  }

  .member-header {
    padding: 28px 20px;
  }

  .member-info {
    flex-direction: column;
    text-align: center;
  }

  .member-avatar {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }

  .member-details h2 {
    font-size: 24px;
  }

  .member-stats {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .stat-item {
    padding: 12px 20px;
    min-width: 80px;
  }

  .stat-value {
    font-size: 26px;
  }

  .member-tabs {
    flex-wrap: wrap;
    padding: 6px;
    gap: 6px;
  }

  .tab-btn {
    flex: 1;
    min-width: calc(50% - 6px);
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
  }

  .book-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .vip-intro {
    padding: 28px 20px;
  }

  .vip-hero h2 {
    font-size: 26px;
  }

  .vip-benefits {
    gap: 12px;
  }

  .benefit-item {
    padding: 8px 16px;
    font-size: 13px;
  }

  .account-form {
    padding: 24px;
  }

  .history-item {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .history-item .history-cover {
    width: 64px;
    height: 88px;
  }

  .history-item .history-info h4 {
    font-size: 14px;
  }

  .history-item .history-info p {
    font-size: 12px;
  }

  .history-item .history-progress {
    font-size: 11px;
  }

  .favorites-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .favorites-section .section-header .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .member-container {
    padding: 12px 10px 30px;
  }

  .member-header {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .member-avatar {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .member-details h2 {
    font-size: 20px;
  }

  .member-details p {
    font-size: 13px;
  }

  .stat-item {
    padding: 10px 14px;
    min-width: 70px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-label {
    font-size: 11px;
  }

  .member-tabs {
    gap: 4px;
  }

  .tab-btn {
    min-width: calc(50% - 4px);
    padding: 8px 12px;
    font-size: 13px;
  }

  .book-list {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .vip-hero h2 {
    font-size: 22px;
  }

  .vip-hero p {
    font-size: 14px;
  }

  .vip-plan {
    padding: 20px 16px;
  }

  .vip-plan h3 {
    font-size: 18px;
  }

  .vip-plan .price {
    font-size: 28px;
  }

  .vip-plan .btn {
    padding: 10px;
    font-size: 14px;
  }

  .account-form {
    padding: 16px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 14px;
  }
}