* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, 'PingFang SC', 'Helvetica Neue', 'SF Pro Display', Arial, sans-serif;
  background: #FFFFFF;
  min-height: 100vh;
}

/* state-switcher removed */

.phone {
  width: 100%; height: 100vh;
  background: #FFFFFF;
  position: relative; display: flex; flex-direction: column;
  max-width: 480px; margin: 0 auto;
  overflow: hidden;
}

.nav-bar {
  height: 50px; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.nav-bar .brand-group {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.nav-bar .logo {
  font-size: 20px; font-weight: 700; color: #1C1C1E;
  letter-spacing: 4px;
  flex-shrink: 0;
}
.nav-bar .logo span { color: #C9A0CE; }
.nav-bar .points-badge {
  font-size: 13px; font-weight: 600; color: #D497DD;
  display: flex; align-items: center; gap: 4px;
  background: #F5E6F7; padding: 4px 10px; border-radius: 12px;
  flex-shrink: 0;
}
.nav-bar .points-badge svg { width: 14px; height: 14px; }
.nav-bar .language-toggle {
  height: 30px; min-width: 44px; padding: 0 10px;
  border: 1px solid #E5E5EA; border-radius: 15px;
  background: #FFFFFF; color: #8E8E93;
  font-size: 13px; font-weight: 600; line-height: 1;
  cursor: pointer;
}
.nav-bar .language-toggle:active { background: #F5F5F7; }

.content { flex: 1; overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none; }
.content::-webkit-scrollbar { display: none; }

.tryon-page {
  display: flex; height: 100%; flex-direction: column;
}

/* ========== 模特信息栏 ========== */
.model-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: #F8F8FA; cursor: pointer;
  flex-shrink: 0; border-bottom: 0.5px solid #E5E5EA;
}
.model-bar:active { background: #EFEFF1; }
.model-info {
  display: flex; align-items: center; gap: 6px; color: #1C1C1E; font-size: 13px;
}
.model-name { font-weight: 500; }
.model-detail { color: #8E8E93; font-size: 12px; }

/* ========== 模特管理弹窗 ========== */
.model-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3); z-index: 70;
  justify-content: center; align-items: flex-end;
}
.model-overlay.active { display: flex; }
.model-sheet {
  width: 100%; background: white; border-radius: 16px 16px 0 0;
  padding: 20px 16px 30px; max-height: 80%; overflow-y: auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.model-sheet::-webkit-scrollbar { display: none; }
.model-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; border-radius: 10px; cursor: pointer; margin-bottom: 6px;
  border: 1px solid #E5E5EA; transition: all 0.15s;
}
.model-item:active { background: #F8F8FA; }
.model-item.selected { border-color: #1C1C1E; background: #F8F8FA; }
.model-item-left { display: flex; align-items: center; gap: 10px; }
.model-item-icon {
  width: 36px; height: 36px; border-radius: 50%; background: #F2F2F7;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.model-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.model-item-icon svg { width: 18px; height: 18px; color: #8E8E93; }
.model-item-info .mi-name { font-size: 14px; font-weight: 500; color: #1C1C1E; }
.model-item-info .mi-detail { font-size: 11px; color: #8E8E93; margin-top: 2px; }
.model-item-actions { display: flex; gap: 6px; }
.model-item-actions button {
  width: 28px; height: 28px; border-radius: 14px; border: none;
  background: #F2F2F7; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.model-item-actions button:active { background: #E5E5EA; }
.model-item-actions button svg { width: 14px; height: 14px; color: #8E8E93; }

/* ========== 页面通用 ========== */
.page { height: 100%; overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none; }
.page::-webkit-scrollbar { display: none; }
.page-inner { padding: 16px; }

/* ========== 发现页 ========== */
.discover-header { margin-bottom: 16px; }
.discover-title-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.discover-title-row h2 { font-size: 24px; font-weight: 700; color: #1C1C1E; margin: 0; }
.discover-title-row p { font-size: 13px; color: #8E8E93; margin: 0; }
.discover-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.discover-card {
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); position: relative;
  cursor: pointer;
}
.discover-card .card-img {
  width: 100%; aspect-ratio: 3/4; position: relative; overflow: hidden;
}
.discover-card .card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.discover-card .card-fav {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #D497DD 0%, #B87BC6 100%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: all 0.2s;
  border: none; padding: 0;
}
.discover-card .card-fav:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.discover-card .card-fav:active { transform: scale(0.9); }
.discover-card .card-fav svg { width: 15px; height: 15px; fill: none; stroke: #FFFFFF; }
.discover-card .card-fav.faved {
  background: linear-gradient(135deg, #FF4757 0%, #E03E4E 100%);
}
.discover-card .card-fav.faved svg { fill: #FFFFFF; stroke: #FFFFFF; }
.discover-card .card-info {
  padding: 10px 12px;
}
.discover-card .card-user {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.discover-card .card-avatar {
  width: 18px; height: 18px; border-radius: 50%; background: #F2F2F7;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; color: #8E8E93; flex-shrink: 0;
}
.discover-card .card-username {
  font-size: 11px; color: #8E8E93; font-weight: 400;
}
.discover-card .card-tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
}
.discover-card .card-tag {
  font-size: 10px; color: #A047B4; font-weight: 600;
  background: rgba(160, 71, 180, 0.1); padding: 2px 6px; border-radius: 6px;
  flex-shrink: 0; cursor: pointer;
}
.discover-card .card-tag:hover {
  background: rgba(160, 71, 180, 0.15);
}
.discover-card .card-items-row {
  display: flex; gap: 4px; margin-top: 6px;
  overflow-x: auto; padding-bottom: 4px;
}
.discover-card .card-items-row::-webkit-scrollbar { display: none; }
.discover-card .card-item-thumb {
  width: 40px; height: 50px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
  background: #F5F5F7; cursor: pointer;
}
.discover-card .card-item-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.discover-card .card-title {
  font-size: 12px; font-weight: 500;
  color: #1C1C1E; margin-top: 6px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.discover-card .card-tryon-btn {
  position: absolute; top: 8px; left: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(212, 151, 221, 0.9); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; border: none;
}
.discover-card .card-tryon-btn svg {
  width: 14px; height: 14px;
  color: #FFFFFF;
}
.card-tryon-btn {
  flex-shrink: 0; width: 32px; height: 48px; border-radius: 8px;
  background: #D497DD; display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer;
  color: white; font-size: 10px; font-weight: 600; letter-spacing: 2px;
  line-height: 1.2; border: none;
}
.card-tryon-btn:active { transform: scale(0.92); }
.card-items-scroll {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.card-items-scroll::-webkit-scrollbar { display: none; }
.card-item-thumb {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 8px;
  overflow: hidden; position: relative; background: #F2F2F7;
}
.card-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-item-thumb .item-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.5); color: white; font-size: 8px;
  text-align: center; padding: 1px 0; line-height: 1.2;
}

/* ========== 我的页面 ========== */
.profile-section { margin: 0 16px 20px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-header-with-actions {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.section-header-with-actions .section-title {
  flex-shrink: 0;
}
.section-header-with-actions .header-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.section-title { font-size: 16px; font-weight: 600; color: #1C1C1E; }
.section-count {
  font-size: 13px; color: #8E8E93; background: #F5F5F7;
  padding: 2px 8px; border-radius: 10px;
}

/* 上传按钮 */
.add-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: #D452A8; border: none;
  border-radius: 8px; cursor: pointer;
  transition: all 0.2s;
}
.add-btn:hover { opacity: 0.9; transform: scale(1.05); }
.add-btn:active { transform: scale(0.95); }
.add-btn svg { width: 16px; height: 16px; stroke: white; }

/* Settings 齿轮按钮 */
.settings-gear-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  border-radius: 50%; cursor: pointer;
  margin-left: auto;
  color: #636366;
  transition: all 0.2s;
}
.settings-gear-btn:hover { background: #F5F5F7; color: #1C1C1E; }
.settings-gear-btn svg { width: 22px; height: 22px; }

/* 设置页 */
.settings-page { background: #F2F2F7; min-height: calc(100vh - 110px); }
.settings-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; margin-bottom: 4px;
  background: #fff;
}
.settings-header .back-btn { flex-shrink: 0; }
.settings-title { font-size: 17px; font-weight: 600; color: #1C1C1E; }
.settings-groups { padding-bottom: 24px; }
.settings-group { margin-top: 20px; }
.settings-group-label {
  font-size: 13px; color: #8E8E93; font-weight: 500;
  padding: 0 16px 6px; text-transform: uppercase;
}
.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; background: #fff;
  font-size: 15px; color: #1C1C1E; cursor: pointer;
  transition: background 0.15s;
}
.settings-item:hover { background: #F5F5F7; }
.settings-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-left: 8px; }
.settings-item.danger span { color: #FF3B30; }
.version-row span:last-child { color: #8E8E93; font-size: 14px; }
.version-number { color: #8E8E93 !important; }
.settings-footer {
  text-align: center; padding: 32px 0 16px;
  font-size: 13px; color: #C7C7CC; letter-spacing: 0.5px;
}

/* 协议页面 */
.legal-page { background: #fff; min-height: calc(100vh - 110px); }
.legal-content {
  padding: 4px 0;
  font-size: 14px; line-height: 1.8; color: #333;
}
.legal-content p { margin: 0 0 12px; }
.legal-content h3 {
  font-size: 16px; font-weight: 600; color: #1C1C1E;
  margin: 20px 0 8px;
}
.legal-content a { color: #D452A8; text-decoration: none; }

/* 客服支持页面 */
.support-email-row {
  display: flex; align-items: center; gap: 10px;
  background: #F2F2F7; border-radius: 10px;
  padding: 12px 14px; margin-top: 8px;
}
.support-email-text {
  flex: 1; font-size: 15px; color: #1C1C1E;
  word-break: break-all; font-family: monospace;
}
.copy-btn {
  width: 36px; height: 36px; border: none; border-radius: 8px;
  background: #fff; display: flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: all 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.copy-btn:hover { background: #D452A8; }
.copy-btn:hover svg { stroke: #fff; }
.copy-btn svg { width: 18px; height: 18px; stroke: #636366; }

/* 试穿历史网格 */
.tryon-history-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.history-card {
  border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer; position: relative; transition: transform 0.15s, box-shadow 0.15s;
}
.history-card:active { transform: scale(0.97); }
.history-card.selected {
  outline: 2px solid #D497DD; outline-offset: -2px;
}
.history-card.selected::before {
  content: '';
  position: absolute; top: 6px; left: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #D497DD;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.history-card-img-wrap {
  width: 100%; aspect-ratio: 3/4; overflow: hidden;
  position: relative; background: #f0eef2;
}
.history-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.history-card-items {
  display: flex; gap: 4px; padding: 6px 8px 8px; overflow-x: auto;
}
.history-card-thumb {
  width: 36px; height: 36px; border-radius: 6px; overflow: hidden;
  flex-shrink: 0; background: #F2F2F7; border: 1px solid #E5E5EA;
}
.history-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-card-time {
  position: absolute; bottom: 44px; left: 8px;
  background: rgba(0,0,0,0.55); color: white;
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* 筛选标签 */
.filter-tabs {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.filter-tab {
  padding: 6px 14px;
  background: #F5F5F7; border: none;
  border-radius: 16px; font-size: 13px;
  color: #8E8E93; cursor: pointer;
  transition: all 0.2s;
}
.filter-tab.active {
  background: #D497DD; color: white;
}
.filter-tab:hover { opacity: 0.9; }

/* 多选时分组小标题 */
.filter-section-label {
  font-size: 12px; font-weight: 600; color: #8E8E93;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 8px 0 6px; padding-left: 4px;
}

/* 折叠面板箭头 */
.collapse-toggle {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  border-radius: 50%; cursor: pointer;
  color: #8E8E93;
  transition: all 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}
.collapse-toggle:hover { background: #F5F5F7; color: #1C1C1E; }
.collapse-toggle svg {
  width: 16px; height: 16px;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.collapse-toggle.expanded svg {
  transform: rotate(180deg);
}

/* 折叠内容容器 */
.collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.collapsible-body.expanded {
  max-height: 2000px;
}

/* 管理栏 */
.manage-bar {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid #F0F0F0;
  margin-top: 8px;
}
.manage-btn, .delete-btn {
  padding: 8px 16px;
  border: none; border-radius: 8px;
  font-size: 14px; cursor: pointer;
  transition: all 0.2s;
}
.manage-btn {
  background: #F5F5F7; color: #8E8E93;
}
.manage-btn:hover { background: #E5E5EA; }
.filter-tabs .manage-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
}
.delete-btn {
  background: #FF3B30; color: white;
}
.delete-btn:hover { opacity: 0.9; }
.delete-btn:disabled {
  background: #C7C7CC; cursor: not-allowed;
}

/* 我的套装和单品网格 */
.my-items-outfits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* 我的收藏网格 */
.my-favourites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* 统一卡片样式：单品/套装/收藏 均使用相同大小（4列紧凑版） */
.card-item {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card-item .card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F5F5F7;
}
.card-item .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-item .card-info {
  padding: 6px 7px 8px;
}
.card-item .card-name {
  font-size: 11px; font-weight: 600; color: #1C1C1E;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-item .card-category {
  font-size: 10px; color: #8E8E93; margin-top: 1px;
}
}
.card-item .card-tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
}
.card-item .card-tags .tag {
  font-size: 10px; padding: 2px 6px; background: #F5F5F7;
  border-radius: 8px; color: #8E8E93; white-space: nowrap;
}

/* 卡片选中状态 */
.card-item.selectable {
  position: relative;
  cursor: pointer;
}
.card-item.selectable .select-checkbox {
  position: absolute; top: 8px; left: 8px;
  width: 20px; height: 20px;
  border: 2px solid white; border-radius: 50%;
  background: rgba(0,0,0,0.3);
  display: none; z-index: 10;
  transition: all 0.2s;
}
.card-item.selectable.selected .select-checkbox {
  display: flex; align-items: center; justify-content: center;
  background: #D497DD; border-color: #D497DD;
}
.card-item.selectable.selected .select-checkbox::after {
  content: '✓'; color: white; font-size: 12px;
}
.card-item.selectable .card-image { cursor: pointer; }
.card-item.selectable .card-actions { display: none; }
.my-items-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.my-items-grid .item-card {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: #F5F5F7; position: relative; cursor: pointer;
}
.my-items-grid .item-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.my-items-grid .item-card .item-cat {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: white; font-size: 10px; padding: 12px 6px 4px; text-align: center;
}
.my-items-grid .item-card .item-remove {
  position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: white;
  display: none; align-items: center; justify-content: center; cursor: pointer;
}
.my-items-grid .item-card .item-actions {
  position: absolute; top: 4px; right: 4px;
  display: none; gap: 3px;
}
.my-items-grid .item-card .item-actions > div {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: white;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.my-items-grid .item-card:active .item-actions,
.my-items-grid .item-card:hover .item-actions { display: flex; }
.my-items-grid .add-item-card {
  aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed #D1D1D6;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; cursor: pointer;
  color: #8E8E93; transition: all 0.15s;
}
.my-items-grid .add-item-card:active { background: #F5F5F7; }
.my-items-grid .add-item-card svg { width: 24px; height: 24px; }
.my-items-grid .add-item-card span { font-size: 10px; }

/* 添加单品弹窗 */
.add-item-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3); z-index: 50;
  justify-content: center; align-items: flex-end;
}
.add-item-overlay.active { display: flex; }
.add-item-sheet {
  width: 100%; background: white; border-radius: 16px 16px 0 0;
  padding: 20px 16px 30px;
}
.add-item-sheet h4 { font-size: 16px; font-weight: 600; color: #1C1C1E; margin-bottom: 16px; text-align: center; }
.add-item-options { display: flex; flex-direction: column; gap: 0; }
.add-item-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px; border-bottom: 0.5px solid #F2F2F7;
  cursor: pointer; font-size: 15px; color: #1C1C1E;
}
.add-item-option:last-child { border-bottom: none; }
.add-item-option svg { width: 22px; height: 22px; color: #C9A0CE; flex-shrink: 0; }
.add-item-option .opt-desc { font-size: 12px; color: #8E8E93; margin-top: 2px; }
.add-item-cancel {
  margin-top: 12px; width: 100%; height: 44px;
  background: #F2F2F7; border: none; border-radius: 12px;
  font-size: 15px; color: #8E8E93; cursor: pointer;
}

/* 套装标签弹窗 */
.outfit-tag-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3); z-index: 70;
  justify-content: center; align-items: flex-end;
}
.outfit-tag-overlay.active { display: flex; }
.outfit-tag-sheet {
  width: 100%; background: white; border-radius: 16px 16px 0 0;
  padding: 20px; max-height: 70%; overflow-y: auto;
}
.outfit-tag-sheet h4 {
  text-align: center; font-size: 16px; font-weight: 600;
  margin: 0 0 4px; color: #1C1C1E;
}
.outfit-tag-sheet .tag-subtitle {
  text-align: center; font-size: 12px; color: #8E8E93; margin-bottom: 16px;
}
.tag-section { margin-bottom: 16px; }
.tag-section-label {
  font-size: 13px; font-weight: 500; color: #1C1C1E;
  margin-bottom: 8px;
}
.tag-group {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag-opt {
  padding: 6px 14px; border: 1px solid #E5E5EA; border-radius: 16px;
  font-size: 13px; color: #8E8E93; cursor: pointer; transition: all 0.15s;
  user-select: none;
}
.tag-opt.selected {
  background: #1C1C1E; color: white; border-color: #1C1C1E;
}
.tag-actions {
  display: flex; gap: 10px; margin-top: 20px;
}
.tag-actions button {
  flex: 1; height: 44px; border-radius: 12px;
  font-size: 15px; border: none; cursor: pointer;
}
.tag-actions .tag-cancel { background: #F2F2F7; color: #8E8E93; }
.tag-actions .tag-confirm { background: #D497DD; color: white; font-weight: 500; }

.my-outfits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.my-outfits-grid .outfit-card {
  aspect-ratio: 3/4; border-radius: 10px; overflow: hidden;
  background: #F5F5F7; position: relative; cursor: pointer;
}
.my-outfits-grid .outfit-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.my-outfits-grid .outfit-card .outfit-items {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: white; font-size: 10px; padding: 14px 6px 4px;
  display: flex; gap: 3px; justify-content: center;
}
.my-outfits-grid .outfit-card .outfit-items span {
  background: rgba(255,255,255,0.25); padding: 1px 5px; border-radius: 4px;
}
.my-outfits-grid .outfit-card .outfit-actions {
  position: absolute; top: 4px; right: 4px;
  display: none; gap: 3px; z-index: 2;
}
.my-outfits-grid .outfit-card .outfit-actions > div {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: white;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.my-outfits-grid .outfit-card:active .outfit-actions,
.my-outfits-grid .outfit-card:hover .outfit-actions { display: flex; }
.empty-hint {
  grid-column: 1 / -1; text-align: center; padding: 24px 16px;
  font-size: 13px; color: #C7C7CC; line-height: 1.6;
}
.profile-header {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 24px; border-bottom: 0.5px solid #E5E5EA;
  margin-bottom: 16px;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: #F2F2F7; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; overflow: hidden;
}
.profile-avatar svg { width: 32px; height: 32px; }
.profile-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.profile-avatar-large {
  width: 60px; height: 60px; margin: 0 auto 10px;
}
.profile-info h3 { font-size: 18px; font-weight: 600; color: #1C1C1E; margin: 0; }
.profile-info p { font-size: 13px; color: #8E8E93; margin: 4px 0 0; }
.profile-edit-form {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.profile-edit-avatar {
  width: 82px; height: 82px; border-radius: 50%;
  background: #F2F2F7; display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer;
}
.profile-edit-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.profile-edit-avatar svg {
  width: 38px; height: 38px;
}
.profile-edit-link {
  border: none; background: transparent; color: #D497DD;
  font-size: 13px; cursor: pointer; font-family: inherit;
}
.profile-edit-link.muted { color: #8E8E93; }
.profile-edit-label {
  width: 100%; font-size: 12px; color: #8E8E93; margin-top: 4px;
}
.profile-edit-form .auth-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid #E5E5EA; border-radius: 10px;
  font-size: 14px; color: #1C1C1E;
  outline: none; transition: border-color 0.2s;
}
.profile-edit-form .auth-input:focus {
  border-color: #D497DD;
}
.profile-edit-form .auth-input::placeholder {
  color: #C7C7CC;
}
.profile-edit-hint {
  width: 100%; font-size: 11px; color: #C7C7CC; line-height: 1.4; margin-top: -4px;
}
.profile-edit-email {
  font-size: 12px; color: #C7C7CC; width: 100%; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-edit-actions {
  width: 100%; display: flex; gap: 10px; margin-top: 6px;
}
.profile-edit-actions .add-item-cancel,
.profile-edit-actions .auth-btn {
  flex: 1; height: 44px; margin-top: 0;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.profile-edit-actions .add-item-cancel {
  background: #F2F2F7; color: #8E8E93;
}
.profile-edit-actions .auth-btn {
  background: #D497DD; color: white;
}
.profile-edit-actions .auth-btn:disabled {
  opacity: 0.65; cursor: wait;
}
.profile-menu { display: flex; flex-direction: column; }
.menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 0.5px solid #F2F2F7;
  cursor: pointer;
}
.menu-item svg { width: 20px; height: 20px; color: #1C1C1E; flex-shrink: 0; }
.menu-item span { flex: 1; font-size: 15px; color: #1C1C1E; font-weight: 400; }
.menu-arrow { width: 16px; height: 16px; flex-shrink: 0; }

.tryon-main {
  flex: 1; display: flex; padding: 0; gap: 0;
  min-height: 0;
}

/* 左：用户照片区 */
.photo-area {
  flex: 1; background: #F5F5F7; border-radius: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  cursor: pointer; transition: background 0.2s;
  min-height: 0;
}
.photo-area:hover { background: #EFEFF1; }
.photo-area .upload-hint {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.photo-area .upload-hint svg { width: 40px; height: 40px; color: #D497DD; }
.photo-area .upload-hint .text {
  font-size: 13px; color: #D497DD; font-weight: 400;
}
.photo-area .photo-uploaded {
  display: none; flex-direction: column;
  align-items: center; width: 100%; height: 100%;
}
.photo-area .photo-uploaded .photo-img {
  width: 100%; flex: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.photo-area .photo-uploaded .photo-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-area .photo-uploaded .photo-img svg { width: 64px; height: 64px; color: #B8A8BC; display: none; }
.photo-area .photo-uploaded .change-btn {
  width: 100%; height: 36px; background: rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #8E8E93; font-weight: 400; cursor: pointer;
  transition: background 0.2s;
}
.photo-area .photo-uploaded .change-btn:hover { background: rgba(0,0,0,0.08); }
.photo-area .fullscreen-btn {
  position: absolute; bottom: 46px; left: 10px;
  width: 32px; height: 32px; background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer; z-index: 5;
  color: white; transition: background 0.2s;
}
.photo-area .fullscreen-btn:hover { background: rgba(0,0,0,0.65); }
.photo-area .fullscreen-btn svg { width: 18px; height: 18px; }

.photo-area .badge {
  position: absolute; top: 10px; left: 10px;
  background: #1C1C1E; color: white;
  font-size: 11px; padding: 3px 10px; border-radius: 10px;
  font-weight: 500; display: none; letter-spacing: 0.3px;
}


/* 加载动画 */
.loading-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 11;
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.loading-overlay.active { display: flex; }
.loading-spinner {
  width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.2);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay .loading-text {
  color: white; font-size: 13px; font-weight: 400; letter-spacing: 0.3px;
}

/* 右：品类竖排 — 圆角正方形 */
.category-panel {
  flex: 0 0 80px; display: flex; flex-direction: column;
  border-left: 0.5px solid #E5E5EA;
  padding: 8px 8px; gap: 0;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.category-panel::-webkit-scrollbar { display: none; }
.category-grid {
  display: flex; flex-direction: column;
  gap: 6px; flex: 1;
}
.category-item {
  width: 100%; aspect-ratio: 1/1;
  border-radius: 12px; cursor: pointer;
  position: relative; overflow: hidden; transition: all 0.15s;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; flex-shrink: 0;
}
/* 空状态 */
.category-item:not(.has-item) {
  background: #F5F5F7; border: 1px solid #E5E5EA;
}
.category-item:not(.has-item):hover {
  background: #EFEFF1; border-color: #D1D1D6;
}
.category-item .cat-icon {
  width: 24px; height: 24px; color: #D497DD;
}
.category-item .cat-name {
  font-size: 9px; color: #D497DD; font-weight: 400;
  letter-spacing: 0.3px; line-height: 1.2;
}
/* 已上传状态 */
.category-item.has-item {
  border: 1.5px solid #C9A0CE;
}
.category-item .item-thumb-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: none; border-radius: 11px; overflow: hidden;
}
.category-item .item-thumb-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.category-item.has-item .item-thumb-img { display: block; }
.category-item.has-item .cat-icon { display: none; }
.category-item.has-item .cat-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: white; font-size: 9px; font-weight: 500;
  padding: 10px 3px 3px; text-align: center;
  letter-spacing: 0.3px;
}
.category-item .remove-btn {
  position: absolute; top: 3px; right: 3px;
  width: 16px; height: 16px; border-radius: 8px;
  background: rgba(0,0,0,0.4); color: white;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; font-size: 9px; z-index: 2;
}
.category-item.has-item .remove-btn { display: flex; }
.category-item .remove-btn:hover { background: rgba(0,0,0,0.65); }
.category-item.outfit-reference {
  border-color: #D497DD;
  box-shadow: inset 0 0 0 1px rgba(212,151,221,0.35);
}
.category-item.outfit-reference .cat-name {
  color: #D497DD; font-size: 9px; font-weight: 400;
  letter-spacing: 0.3px; line-height: 1.25; text-align: center;
}
.category-item.outfit-reference.has-item .cat-name {
  color: white; font-size: 9px; font-weight: 500;
}

/* 提示词输入栏 */
.prompt-bar {
  padding: 8px 16px 0; flex-shrink: 0;
  border-top: 0.5px solid #E5E5EA;
}
.prompt-input {
  width: 100%; height: 34px; border: 1px solid #E5E5EA;
  border-radius: 8px; padding: 0 12px; font-size: 13px;
  color: #1C1C1E; outline: none; background: #F8F8FA;
  transition: border-color 0.2s;
}
.prompt-input::placeholder { color: #C7C7CC; }
.prompt-input:focus { border-color: #C9A0CE; background: #FFFFFF; }

/* 底部操作栏 */
.action-bar {
  display: flex; gap: 10px; padding: 10px 16px;
  align-items: center;
  flex-shrink: 0;
}
.list-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid #E5E5EA; background: white;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.15s; position: relative;
}
.list-btn svg { width: 20px; height: 20px; color: #1C1C1E; }
.list-btn:hover { border-color: #C9A0CE; }
.list-btn .count-badge {
  position: absolute; top: -4px; right: -4px;
  background: #C9A0CE; color: white; font-size: 10px;
  font-weight: 600; width: 18px; height: 18px; border-radius: 9px;
  display: none; align-items: center; justify-content: center;
}
.generate-btn {
  flex: 1; height: 46px; border-radius: 12px; border: none;
  font-size: 15px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s; letter-spacing: 0.3px;
}
.generate-btn.disabled { background: #F2F2F7; color: #C7C7CC; cursor: not-allowed; }
.generate-btn.enabled { background: #D497DD; color: white; }
.generate-btn.enabled:hover { background: #C48AC8; }
.generate-btn svg { width: 18px; height: 18px; }

.tab-bar {
  height: 76px; padding-bottom: 20px;
  display: flex; align-items: center; justify-content: space-around;
  flex-shrink: 0;
  border-top: 0.5px solid #E5E5EA;
}
.tab-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; cursor: pointer; color: #8E8E93; transition: color 0.15s;
}
.tab-item.active { color: #1C1C1E; }
.tab-item svg { width: 22px; height: 22px; }
.tab-item .tab-label { font-size: 10px; font-weight: 500; letter-spacing: 0.3px; }

.overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3); z-index: 50;
  justify-content: center; align-items: flex-end;
}
.overlay.active { display: flex; }

.sheet {
  width: 100%; background: white;
  border-radius: 16px 16px 0 0; padding: 20px;
  max-height: 70%; overflow-y: auto;
}
.sheet-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.sheet-header h3 { font-size: 17px; font-weight: 600; color: #1C1C1E; }
.sheet-header .close {
  width: 28px; height: 28px; border-radius: 14px;
  background: #F2F2F7; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
}
.sheet-header .close svg { width: 14px; height: 14px; color: #8E8E93; }
.sheet-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 0.5px solid #F2F2F7;
}
.sheet-item .thumb {
  width: 52px; height: 52px; border-radius: 10px; background: #F5F5F7;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sheet-item .thumb svg { width: 24px; height: 24px; color: #C9A0CE; }
.sheet-item .info { flex: 1; }
.sheet-item .info .name { font-size: 14px; font-weight: 500; color: #1C1C1E; margin-bottom: 3px; }
.sheet-item .info .price { font-size: 12px; color: #8E8E93; }
.sheet-item .buy-link {
  font-size: 12px; color: #C9A0CE; cursor: pointer; font-weight: 400;
  align-self: center; white-space: nowrap; font-family: inherit;
}
.sheet-item .buy-link.disabled {
  color: #C7C7CC; cursor: default;
}
.sheet-total {
  padding: 16px 0 0; text-align: right;
  font-size: 14px; color: #8E8E93; font-weight: 400;
}
.sheet-total span { color: #1C1C1E; font-size: 17px; font-weight: 600; }
.sheet-empty {
  text-align: center; padding: 40px 0; color: #C7C7CC; font-size: 14px;
  line-height: 1.6;
}

.upload-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3); z-index: 60;
  justify-content: center; align-items: center;
}
.upload-overlay.active { display: flex; }
.upload-modal {
  width: 280px; background: white; border-radius: 16px;
  padding: 24px; text-align: center;
}
.upload-modal h4 { font-size: 16px; font-weight: 600; color: #1C1C1E; margin-bottom: 20px; }
.upload-area {
  width: 100%; height: 120px;
  border: 1.5px dashed #D1D1D6; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; transition: all 0.2s; background: #FAFAFA;
  position: relative; overflow: hidden;
}
.upload-area:hover { border-color: #C9A0CE; background: #FDF8FE; }
.upload-area svg { width: 28px; height: 28px; color: #D497DD; }
.upload-area .upload-text { font-size: 13px; color: #D497DD; }
.upload-area .upload-hint { font-size: 11px; color: #B07BB5; }
.upload-area .preview-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain; display: none;
}
.upload-area.has-preview svg,
.upload-area.has-preview .upload-text,
.upload-area.has-preview .upload-hint { display: none; }
.upload-area.has-preview .preview-img { display: block; }
.upload-actions { display: flex; gap: 10px; margin-top: 20px; }
.upload-actions button {
  flex: 1; height: 40px; border-radius: 10px; font-size: 14px;
  font-weight: 500; cursor: pointer; border: none;
}
.upload-actions .cancel-btn { background: #F2F2F7; color: #8E8E93; }
.upload-actions .confirm-btn { background: #D497DD; color: white; }


.fullscreen-view {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000; z-index: 200;
  align-items: center; justify-content: center;
  flex-direction: column;
}
.fullscreen-view.active { display: flex; }
.fullscreen-view img {
  max-width: 100%; max-height: 90vh; object-fit: contain;
}
.fullscreen-view .exit-fullscreen-btn {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; color: white;
  transition: background 0.2s;
}
.fullscreen-view .exit-fullscreen-btn:hover { background: rgba(255,255,255,0.3); }
.fullscreen-view .exit-fullscreen-btn svg { width: 20px; height: 20px; }

.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #1C1C1E; color: white;
  padding: 10px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 400; z-index: 200;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
  max-width: 80%; text-align: center; line-height: 1.4;
}
.toast.show { opacity: 1; }

.error-toast {
  background: #FF3B30;
}

/* 登录弹窗 */
.auth-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3); z-index: 100;
  justify-content: center; align-items: center;
}
.auth-overlay.active { display: flex; }
.auth-modal {
  width: 320px; background: white; border-radius: 20px;
  padding: 24px; margin: 20px;
}
.auth-modal .auth-header {
  text-align: center; margin-bottom: 24px;
}
.auth-modal .auth-header h3 {
  font-size: 20px; font-weight: 600; color: #1C1C1E;
  margin: 0 0 4px;
}
.auth-modal .auth-header p {
  font-size: 13px; color: #8E8E93; margin: 0;
}
.auth-modal .auth-form {
  display: flex; flex-direction: column; gap: 16px;
}
.auth-modal .auth-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid #E5E5EA; border-radius: 10px;
  font-size: 14px; color: #1C1C1E;
  outline: none; transition: border-color 0.2s;
}
.auth-modal .auth-input:focus {
  border-color: #D497DD;
}
.auth-modal .auth-input::placeholder {
  color: #C7C7CC;
}
.auth-modal .auth-btn {
  width: 100%; padding: 13px;
  background: #D497DD; color: white;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.auth-modal .auth-btn:hover {
  background: #C9A0CE;
}
.auth-modal .auth-btn:active {
  transform: scale(0.98);
}
.auth-modal .auth-divider {
  display: flex; align-items: center; gap: 10px;
  color: #C7C7CC; font-size: 12px;
}
.auth-modal .auth-divider::before,
.auth-modal .auth-divider::after {
  content: ""; flex: 1; height: 1px;
  background: #E5E5EA;
}
.auth-modal .auth-oauth-btn {
  width: 100%; height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #FFFFFF; color: #1C1C1E;
  border: 1px solid #E5E5EA; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.auth-modal .auth-oauth-btn:hover {
  border-color: #D497DD; background: #FCF8FD;
}
.auth-modal .auth-oauth-btn:active {
  transform: scale(0.98);
}
.auth-modal .google-mark {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #FFFFFF;
  color: #4285F4; font-weight: 700; font-size: 16px;
  font-family: Arial, sans-serif;
}
.auth-modal .auth-switch {
  text-align: center; font-size: 13px;
  color: #6F6F78; margin-top: 16px;
  padding: 10px 12px;
  background: #FCF8FD;
  border: 1px solid #F0D8F4;
  border-radius: 12px;
}
.auth-modal .auth-switch span {
  color: #A047B4; cursor: pointer;
  font-weight: 700;
  margin-left: 4px;
}
.auth-modal .auth-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: #F2F2F7;
  border-radius: 50%; cursor: pointer;
}

/* 搜索栏样式 */
.search-bar {
  display: flex; align-items: center;
  background: #F5F5F7;
  border-radius: 16px;
  padding: 12px 16px;
  margin-top: 12px;
}
.search-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-right: 12px;
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: #1C1C1E;
}
.search-bar input::placeholder {
  color: #8E8E93;
}
.search-clear {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: #E5E5EA;
  border-radius: 50%;
  font-size: 12px;
  color: #8E8E93;
  cursor: pointer;
}

/* 标签样式 */
.tags-container {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag {
  padding: 4px 10px;
  background: #F5E6F7;
  color: #A047B4;
  font-size: 12px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.tag:hover {
  background: #E8D1EC;
}

/* 套装卡片标签样式 */
.outfit-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.outfit-card-tag {
  padding: 3px 8px;
  background: rgba(160, 71, 180, 0.1);
  color: #A047B4;
  font-size: 11px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* 试穿按钮和购买按钮 */
.action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  background: linear-gradient(135deg, #D497DD 0%, #B87BC6 100%);
  color: #FFFFFF;
}
.action-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.action-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.action-btn.disabled:hover {
  opacity: 0.4;
  transform: none;
}
.favorite-btn {
  padding: 8px;
  border-radius: 50%;
}
.favorite-btn.active {
  background: linear-gradient(135deg, #FF4757 0%, #E03E4E 100%);
}

/* 套装详情页样式 */
.outfit-detail-page {
  padding-bottom: 0;
}
.outfit-detail-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #F2F2F7;
}
.back-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #F5F5F7;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.back-btn svg {
  width: 20px; height: 20px;
  color: #1C1C1E;
}
.outfit-detail-info {
  flex: 1;
}
.outfit-detail-title {
  font-size: 18px; font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 4px;
}
.outfit-detail-author {
  font-size: 13px;
  color: #8E8E93;
}
.outfit-detail-content {
  padding: 16px;
}
.outfit-detail-tags {
  margin-bottom: 16px;
}
.outfit-detail-items {
  display: flex; flex-direction: column; gap: 12px;
}
.outfit-detail-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: #F9F9FB;
  border-radius: 12px;
}
.outfit-detail-item-image {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}
.outfit-detail-item-info {
  flex: 1;
  min-width: 0;
}
.outfit-detail-item-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.outfit-detail-item-row .item-name {
  font-size: 14px; font-weight: 500;
  color: #1C1C1E;
  flex-shrink: 0;
}
.outfit-detail-item-row .item-category,
.outfit-detail-item-row .item-price,
.outfit-detail-item-row .item-purchase-time {
  font-size: 12px;
  color: #8E8E93;
  padding: 2px 6px;
  background: #F2F2F7;
  border-radius: 6px;
  flex-shrink: 0;
}
.outfit-detail-item-actions {
  display: flex; gap: 6px;
}
.outfit-detail-item-actions .action-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
}
.outfit-detail-item-actions .action-btn svg {
  width: 16px;
  height: 16px;
}
.outfit-detail-item-actions .buy-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 搜索页样式 */
.search-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.search-page-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #F2F2F7;
  position: sticky; top: 0; z-index: 10;
}
.search-keyword {
  flex: 1;
  font-size: 16px; font-weight: 600;
  color: #1C1C1E;
}
.search-results {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.search-results-empty {
  text-align: center;
  padding: 40px 20px;
  color: #8E8E93;
  grid-column: 1 / -1;
}

/* 单品信息弹窗样式 */
.item-info-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center;
  justify-content: center;
  z-index: 100;
}
.item-info-modal {
  width: 85%;
  max-width: 360px;
  background: #FFFFFF;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

/* 顶部按钮区域 */
.item-info-header {
  position: absolute; top: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.item-info-header-right {
  display: flex; gap: 8px;
}
.item-info-tryon-btn,
.item-info-fav-btn,
.item-info-modal .close-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #D497DD 0%, #B87BC6 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}
.item-info-tryon-btn:hover,
.item-info-fav-btn:hover,
.item-info-modal .close-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.item-info-tryon-btn svg,
.item-info-fav-btn svg,
.item-info-modal .close-btn svg {
  width: 18px; height: 18px;
}
.item-info-image {
  width: 100%;
  height: 280px;
  background: #F5F5F7;
}
.item-info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-info-content {
  padding: 16px;
}

/* 单品信息详情样式 */
.item-info-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.item-info-detail-tag {
  font-size: 13px;
  color: #1C1C1E;
  padding: 6px 10px;
  background: #F5F5F7;
  border-radius: 8px;
}

/* 旧样式兼容 */
.item-info-name {
  font-size: 18px; font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 8px;
}
.item-info-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.item-info-meta-item {
  font-size: 13px;
  color: #8E8E93;
  padding: 4px 8px;
  background: #F5F5F7;
  border-radius: 8px;
}
.item-info-description {
  font-size: 14px;
  color: #636366;
  line-height: 1.5;
}
.item-info-actions {
  display: flex; gap: 12px;
  padding: 16px;
  padding-top: 0;
}
.item-info-actions .action-btn {
  flex: 1;
  height: 48px;
}

/* 首次试穿原则弹窗 */
.guidelines-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.32); z-index: 130;
  justify-content: center; align-items: center;
  padding: 20px;
}
.guidelines-overlay.active { display: flex; }
.guidelines-modal {
  width: 100%; max-width: 360px;
  background: white; border-radius: 20px;
  padding: 22px; box-shadow: 0 12px 36px rgba(0,0,0,0.16);
}
.guidelines-modal h3 {
  font-size: 18px; font-weight: 650; color: #1C1C1E;
  margin: 0 0 10px; letter-spacing: 0;
}
.guidelines-modal p {
  margin: 0 0 12px; font-size: 13px; line-height: 1.65; color: #636366;
}
.guidelines-modal ul {
  margin: 0 0 18px; padding-left: 18px;
  color: #636366; font-size: 13px; line-height: 1.65;
}
.guidelines-modal button {
  width: 100%; height: 44px; border: none; border-radius: 12px;
  background: #D497DD; color: white; font-size: 15px; font-weight: 600;
  cursor: pointer;
}

/* ========== 充值页面样式 ========== */
.recharge-balance {
  margin: 0 16px 16px;
  padding: 20px;
  background: linear-gradient(135deg, #D497DD 0%, #B87BC6 100%);
  border-radius: 16px;
  color: white;
  text-align: center;
}
.recharge-balance-label {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 4px;
}
.recharge-balance-value {
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.recharge-plan {
  display: flex;
  align-items: center;
  padding: 16px;
  margin: 0 16px 8px;
  background: #F9F9FB;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  position: relative;
}
.recharge-plan:hover {
  background: #F3EEF7;
}
.recharge-plan.selected {
  border-color: #D497DD;
  background: #FDF8FE;
}
.recharge-plan-left {
  flex: 1;
}
.recharge-plan-name {
  font-size: 16px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 2px;
}
.recharge-plan-desc {
  font-size: 13px;
  color: #8E8E93;
}
.recharge-plan-right {
  text-align: right;
}
.recharge-plan-price {
  font-size: 20px;
  font-weight: 700;
  color: #D497DD;
  margin-bottom: 2px;
}
.recharge-plan-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #D1D1D6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.recharge-plan.selected .recharge-plan-check {
  background: #D497DD;
  border-color: #D497DD;
}
.recharge-plan.selected .recharge-plan-check::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.recharge-plan-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: #FF9500;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
}
.recharge-btn-primary {
  display: block;
  margin: 20px 16px 8px;
  width: calc(100% - 32px);
  height: 50px;
  background: linear-gradient(135deg, #D497DD 0%, #B87BC6 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.recharge-btn-primary:hover:not(:disabled) {
  opacity: 0.92;
  transform: scale(1.01);
}
.recharge-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.recharge-disclaimer {
  text-align: center;
  font-size: 12px;
  color: #8E8E93;
  margin: 8px 16px 0;
  line-height: 1.5;
}
.recharge-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  color: #8E8E93;
  font-size: 14px;
  cursor: pointer;
}
.recharge-back svg {
  width: 16px;
  height: 16px;
}
.recharge-loading {
  text-align: center;
  padding: 40px;
  color: #8E8E93;
  font-size: 14px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
