/* ============================================
   VIVID CARTOON THEME - User Center
   活力卡通风 - 用户中心
   ============================================ */

.v-user-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--v-space-xl);
  min-height: calc(100vh - 68px - 200px);
  padding: var(--v-space-xl) 0;
}

/* --- User Sidebar --- */
.v-user-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

.v-user-profile {
  background: var(--v-bg-card);
  border-radius: var(--v-radius-md);
  box-shadow: var(--v-shadow-sm);
  padding: var(--v-space-xl);
  text-align: center;
  margin-bottom: var(--v-space-lg);
}

.v-user-profile__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--v-space-md);
  overflow: hidden;
  border: 3px solid var(--v-coral-light);
}

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

.v-user-profile__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--v-text);
  margin-bottom: var(--v-space-xs);
}

.v-user-profile__vip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--v-radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.v-user-profile__vip--active {
  background: var(--v-vip-gradient);
  color: #fff;
}

.v-user-profile__vip--inactive {
  background: var(--v-bg-section);
  color: var(--v-text-muted);
}

.v-user-profile__stats {
  display: flex;
  justify-content: space-around;
  margin-top: var(--v-space-lg);
  padding-top: var(--v-space-lg);
  border-top: 1px solid var(--v-border-light);
}

.v-user-profile__stat {
  text-align: center;
}

.v-user-profile__stat-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--v-coral);
}

.v-user-profile__stat-label {
  font-size: 12px;
  color: var(--v-text-muted);
}

.v-user-nav {
  background: var(--v-bg-card);
  border-radius: var(--v-radius-md);
  box-shadow: var(--v-shadow-sm);
  overflow: hidden;
}

.v-user-nav__item {
  display: flex;
  align-items: center;
  gap: var(--v-space-sm);
  padding: 12px var(--v-space-lg);
  font-size: 14px;
  color: var(--v-text);
  transition: all var(--v-duration-fast);
  border-left: 3px solid transparent;
}

.v-user-nav__item:hover {
  background: rgba(255, 107, 107, 0.04);
  color: var(--v-coral);
}

.v-user-nav__item--active {
  background: rgba(255, 107, 107, 0.06);
  color: var(--v-coral);
  border-left-color: var(--v-coral);
  font-weight: 600;
}

.v-user-nav__item .v-icon {
  color: var(--v-text-muted);
}

.v-user-nav__item--active .v-icon {
  color: var(--v-coral);
}

.v-user-nav__item--logout {
  color: #999;
}

.v-user-nav__item--logout:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

.v-user-nav__divider {
  height: 1px;
  background: var(--v-border-light);
  margin: var(--v-space-sm) 0;
}

/* --- User Content --- */
.v-user-content {
  min-width: 0;
}

.v-user-content__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--v-space-lg);
}

.v-user-content__title {
  font-size: 22px;
  font-weight: 700;
}

/* User comic list */
.v-user-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v-space-lg);
}

/* User info form */
.v-user-form {
  background: var(--v-bg-card);
  border-radius: var(--v-radius-md);
  box-shadow: var(--v-shadow-sm);
  padding: var(--v-space-xl);
}

.v-user-form__row {
  display: flex;
  align-items: center;
  padding: var(--v-space-md) 0;
  border-bottom: 1px solid var(--v-border-light);
}

.v-user-form__row:last-child {
  border-bottom: none;
}

.v-user-form__label {
  width: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--v-text);
  flex-shrink: 0;
}

.v-user-form__field {
  flex: 1;
}

.v-user-form__field input,
.v-user-form__field input.v-user-form__input,
.v-user-form__field select,
.v-user-form__field select.v-user-form__select,
.v-user-form__field textarea,
.v-user-form__field textarea.v-user-form__textarea {
  width: 100%;
  max-width: 400px;
  padding: 8px 14px;
  border-radius: var(--v-radius-sm);
  border: 2px solid var(--v-border);
  font-size: 14px;
  color: var(--v-text);
  background: var(--v-bg);
  transition: border-color var(--v-duration-fast);
  outline: none;
}

.v-user-form__field input.v-user-form__input:focus,
.v-user-form__field select.v-user-form__select:focus,
.v-user-form__field textarea.v-user-form__textarea:focus {
  border-color: var(--v-coral);
}

.v-user-form__field select.v-user-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.v-user-form__field textarea.v-user-form__textarea {
  width: 100%;
  max-width: 500px;
  min-height: 80px;
  resize: vertical;
}

.v-user-form__btn {
  display: inline-block;
  padding: 10px 32px;
  border: none;
  border-radius: var(--v-radius-sm);
  background: var(--v-coral);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--v-duration-fast);
}

.v-user-form__btn:hover {
  background: var(--v-coral-dark);
}

.v-user-form__btn--sm {
  padding: 6px 16px;
  font-size: 13px;
  margin-left: 8px;
}

/* Renzheng type switcher */
.v-user-form__person-btn,
.v-user-form__company-btn {
  display: inline-block;
  padding: 6px 20px;
  border: 2px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  font-size: 14px;
  color: var(--v-text-secondary);
  cursor: pointer;
  transition: all var(--v-duration-fast);
  margin-right: 8px;
  text-decoration: none;
}

.v-user-form__person-btn:hover,
.v-user-form__company-btn:hover {
  border-color: var(--v-coral);
  color: var(--v-coral);
}

.v-user-form__subject-on {
  border-color: var(--v-coral);
  background: var(--v-coral);
  color: #fff;
}

/* Payment cards */
.v-user-pay-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--v-space-lg);
}

.v-user-pay-card {
  background: var(--v-bg-card);
  border-radius: var(--v-radius-md);
  box-shadow: var(--v-shadow-sm);
  padding: var(--v-space-xl);
  text-align: center;
  transition: all var(--v-duration-normal) var(--v-ease-bounce);
  border: 2px solid transparent;
}

.v-user-pay-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v-shadow-hover);
}

.v-user-pay-card--active {
  border-color: var(--v-coral);
  background: #FFF5F5;
  box-shadow: var(--v-shadow-hover);
  transform: translateY(-4px);
}

.v-user-pay-card--popular {
  border-color: var(--v-coral);
  position: relative;
}

.v-user-pay-card--popular::before {
  content: 'Popular';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 12px;
  border-radius: var(--v-radius-pill);
  background: var(--v-coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.v-user-pay-card__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--v-space-sm);
}

.v-user-pay-card__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--v-coral);
  margin-bottom: var(--v-space-sm);
}

.v-user-pay-card__price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--v-text-muted);
}

.v-user-pay-card__desc {
  font-size: 13px;
  color: var(--v-text-secondary);
}

.v-user-pay-card__btn {
  margin-top: var(--v-space-lg);
}

/* Responsive */
@media (max-width: 992px) {
  .v-user-layout { grid-template-columns: 1fr; }
  .v-user-sidebar { position: static; }
  .v-user-nav { display: flex; overflow-x: auto; }
  .v-user-nav__item { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .v-user-nav__item--active { border-bottom-color: var(--v-coral); border-left-color: transparent; }
  .v-user-nav__divider { display: none; }
  .v-user-list { grid-template-columns: repeat(3, 1fr); }
  .v-user-pay-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .v-user-list { grid-template-columns: repeat(2, 1fr); }
}
