* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f5f5f7;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Page system */
.page {
  display: none;
}
.page.active {
  display: block;
}

/* ========== Banner ========== */
.banner {
  background: linear-gradient(135deg, #1a0a3e 0%, #2d1b69 40%, #4a2c8a 100%);
  padding: 30px 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: 60px;
  width: 80px;
  height: 80px;
  background: rgba(255, 180, 0, 0.6);
  border-radius: 50%;
}

.banner::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  background: rgba(255, 180, 0, 0.4);
  border-radius: 50%;
}

.banner-content h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.banner-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.banner-icon {
  font-size: 50px;
  z-index: 1;
}

/* ========== Tabs ========== */
.tabs {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}
.tab.active {
  background: linear-gradient(135deg, #ff4757, #ff6348);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* ========== Tab Content ========== */
.tab-content {
  display: none;
  padding-bottom: 80px;
}
.tab-content.active {
  display: block;
}

/* ========== Card Grid ========== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.card:active {
  transform: scale(0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.icon-target { background: linear-gradient(145deg, #ffcdd2, #ef9a9a); }
.icon-lightning { background: linear-gradient(145deg, #d1c4e9, #b39ddb); }
.icon-product { background: linear-gradient(145deg, #f8bbd0, #f48fb1); }
.icon-product-max { background: linear-gradient(145deg, #bbdefb, #90caf9); }
.icon-note { background: linear-gradient(145deg, #ffe0b2, #ffcc80); }
.icon-cover { background: linear-gradient(145deg, #c8e6c9, #a5d6a7); }
.icon-image { background: linear-gradient(145deg, #d1c4e9, #b39ddb); }
.icon-detail { background: linear-gradient(145deg, #b3e5fc, #81d4fa); }

.card-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.max-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1a1a2e, #333);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ========== Detail Page ========== */
.detail-page {
  min-height: 100vh;
  background: #f5f5f7;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.back-btn:active {
  background: #e8e8e8;
}

.detail-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-body {
  padding: 16px;
}

/* ========== Form Elements ========== */
.form-section {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.form-icon {
  font-size: 20px;
}

.form-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.history-btn {
  border: none;
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: #ff4757;
}
.form-input::placeholder {
  color: #bbb;
}

.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  outline: none;
  resize: none;
  min-height: 100px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-textarea:focus {
  border-color: #ff4757;
}
.form-textarea::placeholder {
  color: #bbb;
}

.form-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

/* ========== Tags ========== */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
  background: #f5f5f5;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.tag.active {
  background: #fff3e0;
  color: #ff8c00;
  border-color: #ff8c00;
  font-weight: 600;
}

/* ========== Ratio Tags ========== */
.ratio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ratio-tag {
  width: 44px;
  height: 36px;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.ratio-tag.active {
  background: #ff4757;
  color: #fff;
  font-weight: 600;
}

/* ========== Upload Area ========== */
.upload-area {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.upload-area:active {
  border-color: #ff4757;
}

.upload-placeholder {
  font-size: 14px;
  color: #bbb;
  line-height: 1.8;
}

/* ========== Submit Button ========== */
.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #333, #1a1a2e);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 8px 0 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.submit-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ========== Tips ========== */
.tips-section {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
}

.tips-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.tip-item {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  padding: 2px 0;
}
.tip-item.warn {
  color: #e67e22;
  margin-top: 4px;
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 14px;
}

/* ========== Bottom Navigation ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0,0,0,0.06);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 12px;
}

.nav-icon {
  font-size: 24px;
}

.nav-label {
  font-size: 11px;
  color: #999;
}
.nav-item.active .nav-label {
  color: #ff4757;
  font-weight: 600;
}

/* ========== Sub Tabs ========== */
.sub-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.sub-tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.sub-tab.active {
  background: linear-gradient(135deg, #ff6b81, #ff4757);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255,71,87,0.25);
}

/* ========== Upload Area Pink ========== */
.upload-area-pink {
  background: linear-gradient(135deg, #fff0f3, #fce4ec, #f3e5f5);
  border: 2px dashed #f8bbd0;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-area-pink:active {
  border-color: #ff4757;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0, #e1bee7);
}

.upload-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffcdd2, #f8bbd0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}

.upload-text-main {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.upload-text-sub {
  font-size: 12px;
  color: #999;
}

/* ========== Required / Optional Tags ========== */
.required-tag {
  font-size: 11px;
  color: #ff4757;
  background: #fff0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.optional-tag {
  font-size: 11px;
  color: #999;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========== Ratio Pill (Round Style) ========== */
.ratio-group-round {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ratio-pill {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
  background: #f5f5f5;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}

.ratio-pill.active {
  background: #ff4757;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255,71,87,0.3);
}

/* ========== Submit Outline Button ========== */
.submit-btn-outline {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 8px 0;
  transition: all 0.2s;
}
.submit-btn-outline:active {
  background: #f5f5f5;
}

.submit-hint {
  text-align: center;
  font-size: 12px;
  color: #1e90ff;
  margin-bottom: 16px;
}

/* ========== Tips Gray ========== */
.tips-gray {
  background: #f8f8fa;
}
.tip-main {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}
.tip-sub {
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}
.tip-sub.warn {
  color: #e67e22;
}

/* ========== Char Count ========== */
.char-count {
  text-align: right;
  font-size: 11px;
  color: #ccc;
  margin-top: 4px;
}

/* ========== Color Dots ========== */
.color-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.color-dot:active {
  transform: scale(0.9);
}
.color-dot[data-active="true"] {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ff4757;
}

/* ========== Search Bar ========== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px 14px;
}

.search-icon {
  font-size: 16px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  outline: none;
}
.search-input::placeholder {
  color: #bbb;
}

.empty-sub {
  font-size: 12px;
  color: #ccc;
  margin-top: 4px;
}

/* ========== Loading Overlay ========== */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  gap: 16px;
}

.loading-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.loading-progress {
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  font-weight: 700;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 1000;
  pointer-events: none;
  animation: scaleIn 0.25s ease;
}

/* ========== Result Section (New) ========== */
.result-section {
  margin: 16px 0;
}

.result-banner {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.result-banner-icon { font-size: 28px; }
.result-banner-text { font-size: 17px; font-weight: 700; color: #fff; }

/* 发布跳转区 */
.publish-bar {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  text-align: center;
}
.publish-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}
.publish-btn:active { opacity: 0.8; }
.publish-shortcuts {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.publish-shortcut {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s;
}
.publish-shortcut:active { transform: scale(0.9); }

/* 操作按钮 */
.result-actions {
  margin-bottom: 12px;
}
.copy-all-btn {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  font-weight: 500;
}
.copy-all-btn:active { background: #f5f5f5; }

/* 结果卡片 */
.result-card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.result-card-header {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-card-icon { font-size: 18px; }
.result-card-count {
  font-size: 11px;
  color: #999;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 400;
  margin-left: auto;
}
.result-card-body { padding: 12px 16px; }

/* 标题列表 */
.result-title-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  background: #fafbfc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 10px;
}
.result-title-item:active, .result-title-item.copied { background: #e8f5e9; }
.title-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b81, #ff4757);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.title-text { flex: 1; font-size: 14px; color: #333; line-height: 1.5; }
.copy-icon { font-size: 14px; color: #ccc; flex-shrink: 0; }

/* 正文内容卡片 */
.result-content-card {
  background: #fafbfc;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.result-content-card.copied { background: #e8f5e9; }
.content-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.content-style-badge {
  font-size: 12px;
  font-weight: 600;
  color: #ff4757;
  background: #fff0f0;
  padding: 3px 10px;
  border-radius: 10px;
}
.content-copy-btn {
  font-size: 12px;
  color: #1e90ff;
  background: #e8f4fd;
  border: none;
  padding: 4px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.content-copy-btn:active { background: #d0e8f7; }
.content-text {
  padding: 14px;
  font-size: 13.5px;
  color: #444;
  line-height: 1.9;
}
.text-highlight {
  color: #ff4757;
  font-weight: 600;
}
.text-quote {
  color: #1e90ff;
}

/* 标签网格 */
.result-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.result-tag-chip {
  padding: 6px 14px;
  background: linear-gradient(135deg, #fff8e1, #fff3e0);
  color: #ff8c00;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #ffe0b2;
}
.result-tag-chip:active { background: #ffe0b2; }

/* 热榜列表 */
.hot-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f8f8f8;
  gap: 10px;
}
.hot-rank {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #999;
  flex-shrink: 0;
}
.hot-rank-top {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
}
.hot-title { flex: 1; font-size: 14px; color: #333; }
.hot-value {
  font-size: 12px;
  color: #ff4757;
  background: #fff0f0;
  padding: 2px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ========== Result Images ========== */
.result-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.result-img {
  width: calc(50% - 4px);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  object-fit: cover;
}
.result-img:active { transform: scale(0.97); }

/* ========== Photo Suggestions ========== */
.photo-suggestion {
  background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid #667eea;
}
.photo-suggestion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.photo-suggestion-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #667eea;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-suggestion-style {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.photo-suggestion-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

/* ========== Generated Images ========== */
.gen-images-tip {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #f8f9ff;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}
.gen-image-wrap {
  width: calc(50% - 4px);
  position: relative;
}
.gen-img {
  width: 100%;
  border: 2px solid #667eea;
}
.gen-img-download {
  display: block;
  text-align: center;
  padding: 6px;
  background: #667eea;
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-size: 12px;
  text-decoration: none;
  margin-top: -4px;
}
.gen-img-download:active { opacity: 0.8; }

.img-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

/* ========== Agent Page ========== */
.agent-banner {
  background: linear-gradient(135deg, #e8d5f5, #d4e8ff, #e0f0ff);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.agent-banner::before {
  content: '';
  position: absolute;
  top: -20px; right: 40px;
  width: 60px; height: 60px;
  background: rgba(255,180,0,0.3);
  border-radius: 50%;
}
.agent-banner-content h1 {
  font-size: 26px;
  font-weight: 900;
  color: #333;
  margin-bottom: 6px;
}
.agent-banner-tag {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.agent-banner-icon { font-size: 40px; z-index: 1; }

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 14px;
  padding-bottom: 90px;
}

.agent-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.agent-card:active { transform: scale(0.92); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.agent-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.agent-name {
  font-size: 12px;
  color: #333;
  font-weight: 500;
  text-align: center;
}

/* ========== Chat UI (AI助理) ========== */
.chat-container {
  min-height: 300px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px 0;
}
.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}
.chat-bubble.bot {
  background: #f5f5f5;
  color: #333;
  border-bottom-left-radius: 4px;
  margin-right: auto;
}
.chat-bubble.user {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  position: sticky;
  bottom: 0;
  background: #f5f5f7;
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #eee;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  resize: none;
  font-family: inherit;
  background: #fff;
}
.chat-input:focus { border-color: #667eea; }
.chat-send-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send-btn:active { opacity: 0.8; }

/* ========== Auth Page ========== */
.auth-page {
  padding: 40px 24px;
  text-align: center;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f9ff 0%, #f5f5f7 100%);
}
.auth-logo { font-size: 56px; margin-bottom: 12px; }
.auth-title { font-size: 22px; font-weight: 700; color: #333; margin-bottom: 6px; }
.auth-subtitle { font-size: 13px; color: #999; margin-bottom: 24px; }
.auth-tabs { display: flex; background: #fff; border-radius: 12px; padding: 4px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.auth-tab { flex: 1; padding: 10px; border-radius: 8px; font-size: 14px; color: #666; cursor: pointer; transition: all 0.3s; }
.auth-tab.active { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-weight: 600; }
.auth-form { text-align: left; }
.auth-field { margin-bottom: 12px; }
.auth-input { width: 100%; padding: 14px 16px; border: 1.5px solid #e8e8e8; border-radius: 12px; font-size: 15px; outline: none; background: #fff; transition: border-color 0.2s; }
.auth-input:focus { border-color: #667eea; }
.auth-btn { width: 100%; padding: 14px; border: none; border-radius: 12px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.auth-btn:active { opacity: 0.85; }
.auth-footer { font-size: 11px; color: #ccc; margin-top: 20px; }
.auth-footer a { color: #667eea; text-decoration: none; }

/* ========== Mine Page ========== */
.mine-page { padding: 0 0 90px; }
.mine-header { background: linear-gradient(135deg, #667eea, #764ba2); padding: 30px 20px 24px; display: flex; align-items: center; gap: 14px; }
.mine-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #ff6b81, #ffa502); display: flex; align-items: center; justify-content: center; font-size: 28px; border: 3px solid rgba(255,255,255,0.3); }
.mine-info { flex: 1; }
.mine-name { font-size: 18px; font-weight: 700; color: #fff; }
.mine-role { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.mine-edit-btn { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; cursor: pointer; }
.mine-section-title { padding: 16px 20px 8px; font-size: 14px; font-weight: 600; color: #666; }
.mine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.mine-item { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #333; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.04); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mine-item:active { transform: scale(0.95); }
.mine-dot { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.mine-stats { text-align: center; padding: 24px; font-size: 13px; color: #999; }
.mine-stats span { font-size: 22px; font-weight: 700; color: #667eea; }
.mine-logout-btn { display: block; width: calc(100% - 32px); margin: 0 auto; padding: 12px; border: 1.5px solid #ff4757; border-radius: 12px; background: #fff; color: #ff4757; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ========== Template Page ========== */
.tpl-banner { background: linear-gradient(135deg, #e8d5f5, #d4e8ff); padding: 16px; }
.tpl-banner-tabs { display: flex; gap: 0; background: #fff; border-radius: 20px; padding: 3px; margin-bottom: 12px; width: fit-content; }
.tpl-banner-tab { padding: 6px 16px; border-radius: 18px; font-size: 13px; color: #666; cursor: pointer; }
.tpl-banner-tab.active { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-weight: 600; }
.tpl-desc { font-size: 12px; color: #555; line-height: 1.8; text-align: center; }
.tpl-highlight { color: #667eea; font-weight: 600; }
.tab-count { font-size: 11px; color: #999; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; padding-bottom: 90px; }
.tpl-card { background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.tpl-card:active { transform: scale(0.98); }
.tpl-card-img { height: 180px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tpl-card-img img { width: 100%; height: 100%; object-fit: cover; }
.tpl-card-placeholder { font-size: 40px; color: #ddd; }
.tpl-card-title { padding: 10px 12px; font-size: 13px; color: #333; font-weight: 500; text-align: center; }

/* ========== Change Password Modal ========== */
.pwd-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwd-modal {
  width: 90%;
  max-width: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.pwd-modal-header {
  background: linear-gradient(135deg, #ffa502, #ff8c00);
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
}
.pwd-modal-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.pwd-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(255,255,255,0.3);
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
}
.pwd-modal-header h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 4px;
}
.pwd-modal-header p {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}
.pwd-modal-body {
  padding: 20px;
}
.pwd-field {
  position: relative;
  margin-bottom: 12px;
}
.pwd-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 1.5px solid #eee;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  background: #fafafa;
}
.pwd-input:focus { border-color: #ffa502; }
.pwd-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.5;
}
.pwd-tip {
  background: #fff9e6;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: #996600;
  margin-bottom: 16px;
}
.pwd-btns {
  display: flex;
  gap: 10px;
}
.pwd-btn-cancel {
  flex: 1;
  padding: 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: #666;
  cursor: pointer;
}
.pwd-btn-confirm {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pwd-btn-confirm:active { opacity: 0.85; }

/* ========== 全局动画 ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 卡片逐个入场 */
.card, .agent-card, .tpl-card, .mine-item {
  opacity: 0;
  animation: scaleIn 0.4s ease forwards;
}
.card:nth-child(1), .agent-card:nth-child(1), .tpl-card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2), .agent-card:nth-child(2), .tpl-card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3), .agent-card:nth-child(3), .tpl-card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4), .agent-card:nth-child(4), .tpl-card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5), .agent-card:nth-child(5), .tpl-card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6), .agent-card:nth-child(6), .tpl-card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7), .agent-card:nth-child(7), .tpl-card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8), .agent-card:nth-child(8), .tpl-card:nth-child(8) { animation-delay: 0.4s; }
.agent-card:nth-child(9) { animation-delay: 0.45s; }
.agent-card:nth-child(10) { animation-delay: 0.5s; }
.agent-card:nth-child(11) { animation-delay: 0.55s; }
.agent-card:nth-child(12) { animation-delay: 0.6s; }
.agent-card:nth-child(13) { animation-delay: 0.65s; }
.agent-card:nth-child(14) { animation-delay: 0.7s; }
.agent-card:nth-child(15) { animation-delay: 0.75s; }
.agent-card:nth-child(16) { animation-delay: 0.8s; }
.agent-card:nth-child(17) { animation-delay: 0.85s; }
.agent-card:nth-child(18) { animation-delay: 0.9s; }
.agent-card:nth-child(19) { animation-delay: 0.95s; }

.mine-item:nth-child(1) { animation-delay: 0.05s; }
.mine-item:nth-child(2) { animation-delay: 0.08s; }
.mine-item:nth-child(3) { animation-delay: 0.11s; }
.mine-item:nth-child(4) { animation-delay: 0.14s; }
.mine-item:nth-child(5) { animation-delay: 0.17s; }
.mine-item:nth-child(6) { animation-delay: 0.2s; }
.mine-item:nth-child(7) { animation-delay: 0.23s; }
.mine-item:nth-child(8) { animation-delay: 0.26s; }
.mine-item:nth-child(9) { animation-delay: 0.29s; }
.mine-item:nth-child(10) { animation-delay: 0.32s; }
.mine-item:nth-child(11) { animation-delay: 0.35s; }

/* Banner动画 */
.banner, .agent-banner, .tpl-banner, .mine-header {
  animation: fadeIn 0.5s ease;
}

/* Tab动画 */
.tabs, .sub-tabs {
  animation: fadeInUp 0.4s ease 0.1s forwards;
  opacity: 0;
}

/* 详情页表单区域逐个入场 */
.detail-body .form-section {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}
.detail-body .form-section:nth-child(1) { animation-delay: 0.1s; }
.detail-body .form-section:nth-child(2) { animation-delay: 0.18s; }
.detail-body .form-section:nth-child(3) { animation-delay: 0.26s; }
.detail-body .form-section:nth-child(4) { animation-delay: 0.34s; }
.detail-body .form-section:nth-child(5) { animation-delay: 0.42s; }

.detail-body .sub-tabs {
  animation-delay: 0.05s;
}

.detail-body .submit-btn,
.detail-body .submit-btn-outline {
  opacity: 0;
  animation: fadeInUp 0.4s ease 0.5s forwards;
}

.detail-body .tips-section {
  opacity: 0;
  animation: fadeInUp 0.4s ease 0.55s forwards;
}

/* 结果区动画 */
.result-section {
  animation: fadeInUp 0.5s ease;
}
.result-card {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}
.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }
.result-card:nth-child(6) { animation-delay: 0.6s; }

/* 页面切换过渡 */
#page-container {
  animation: fadeIn 0.3s ease;
}

/* ========== PC Block Page ========== */
.pc-block-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pc-block-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.pc-block-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.pc-block-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.pc-block-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}
.pc-block-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.pc-block-tips {
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: left;
  margin-bottom: 20px;
}
.pc-block-tips-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.pc-block-tips p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 2;
}
.pc-block-info {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ========== New Login Page ========== */
.login-page-new {
  min-height: 100vh;
  background: linear-gradient(160deg, #0f0c29, #302b63, #24243e);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: scaleIn 0.4s ease;
}
.login-avatar {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(102,126,234,0.3);
}
.login-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.login-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}
.login-method-tabs {
  display: flex;
  gap: 0;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 20px;
}
.login-method {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}
.login-method.active {
  background: #fff;
  color: #333;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.login-form { text-align: left; }
.login-field {
  position: relative;
  margin-bottom: 14px;
}
.login-input {
  width: 100%;
  padding: 15px 44px 15px 16px;
  border: 1.5px solid #eee;
  border-radius: 14px;
  font-size: 15px;
  outline: none;
  background: #fafafa;
  transition: border-color 0.2s;
}
.login-input:focus { border-color: #667eea; background: #fff; }
.login-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.4;
}
.login-agree {
  margin-bottom: 16px;
  font-size: 12px;
  color: #999;
}
.login-agree label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.login-agree a {
  color: #667eea;
  text-decoration: none;
  cursor: pointer;
}
.login-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(102,126,234,0.35);
  transition: all 0.3s;
}
.login-submit-btn:active { transform: scale(0.97); }
.login-switch {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 16px;
}
.login-switch a {
  color: #667eea;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.login-code-btn {
  padding: 0 16px;
  border: 1.5px solid #667eea;
  border-radius: 14px;
  background: #fff;
  color: #667eea;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.register-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, #0f0c29, #302b63, #24243e);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

/* ========== Legal Content ========== */
.legal-content {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  font-size: 13px;
  color: #555;
  line-height: 1.9;
}
.legal-content h3 {
  font-size: 17px;
  color: #333;
  text-align: center;
  margin-bottom: 16px;
}
.legal-content h4 {
  font-size: 14px;
  color: #333;
  margin: 16px 0 8px;
  padding-left: 8px;
  border-left: 3px solid #667eea;
}
.legal-content p {
  margin-bottom: 8px;
  text-align: justify;
}
.legal-note {
  text-align: center;
  color: #667eea;
  font-weight: 600;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* ========== Selectable Items ========== */
.selectable-title, .selectable-content {
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.selectable-title.selected {
  border-color: #667eea;
  background: #f0f4ff;
}
.selectable-content.selected {
  border-color: #667eea;
}
.select-check {
  font-size: 18px;
  color: #ccc;
  flex-shrink: 0;
}
.selected .select-check {
  color: #667eea;
}

/* ========== Publish Bottom Bar ========== */
.publish-bottom-bar {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 99;
}
.publish-bottom-info {
  text-align: center;
  margin-bottom: 12px;
}
.publish-selected-title {
  font-size: 13px;
  color: #999;
}
.publish-bottom-btns {
  display: flex;
  gap: 8px;
}
.publish-go-btn {
  flex: 1;
  padding: 12px 8px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.publish-go-btn:active {
  transform: scale(0.95);
}

/* ========== Publish Preview ========== */
.publish-preview {
  background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
  border: 1.5px solid #d4e0ff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  animation: fadeInUp 0.3s ease;
}
.publish-preview-label {
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 6px;
}
.publish-preview-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.publish-preview-content {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}
.publish-tip {
  text-align: center;
  font-size: 11px;
  color: #bbb;
  margin-top: 10px;
}

/* ========== Content Style Tabs ========== */
.content-style-tabs {
  display: flex;
  gap: 0;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 12px;
}
.content-style-tab {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}
.content-style-tab.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}
.content-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.content-panel.active {
  display: block;
}
.selectable-content.selected {
  border-color: #667eea;
  background: #fafaff;
}
