/* ============================================================
   易得共创 H5 专用样式表
   移动端适配 · 卡片 · 按钮 · 表单 · 列表 · 导航 · 弹窗
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1890ff;
  --primary-dark: #096dd9;
  --primary-light: #e6f7ff;
  --success: #52c41a;
  --success-light: #f6ffed;
  --warning: #fa8c16;
  --warning-light: #fff7e6;
  --danger: #ff4d4f;
  --danger-light: #fff2f0;
  --text: #333333;
  --text-secondary: #666666;
  --text-placeholder: #bfbfbf;
  --bg: #f5f5f5;
  --bg-white: #ffffff;
  --border: #f0f0f0;
  --border-input: #d9d9d9;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --nav-height: 56px;
  --header-height: 48px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
               'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Page Container ---------- */
.page-container {
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

.page-with-nav {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px);
}

.page-with-header {
  padding-top: var(--header-height);
}

/* ---------- Header / Title Bar ---------- */
.h5-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.h5-header .back-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 50%;
}

.h5-header .back-btn:active {
  background: var(--border);
}

.h5-header .header-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
}

/* ---------- Bottom Tab Navigation ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
}

.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #999;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-item.active {
  color: var(--primary);
}

.bottom-nav .nav-item .nav-icon {
  font-size: 22px;
  line-height: 1;
}

.bottom-nav .nav-item .nav-label {
  line-height: 1;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 16px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title .icon {
  font-size: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:disabled {
  background: #91caff;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-warning {
  background: var(--warning);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-outline {
  background: var(--bg-white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 17px;
}

/* ---------- Form Elements ---------- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg-white);
  color: var(--text);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
}

.form-input::placeholder {
  color: var(--text-placeholder);
}

.form-input-row {
  display: flex;
  gap: 10px;
}

.form-input-row .form-input {
  flex: 1;
}

.form-input-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  background: var(--bg-white);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ---------- Tags / Badges ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.tag-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.tag-success {
  background: var(--success-light);
  color: var(--success);
}

.tag-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.tag-danger {
  background: var(--danger-light);
  color: var(--danger);
}

/* ---------- List Items ---------- */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.list-item:active {
  background: #f9f9f9;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item .item-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.list-item .item-body {
  flex: 1;
  min-width: 0;
}

.list-item .item-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item .item-desc {
  font-size: 13px;
  color: #999;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item .item-arrow {
  color: #ccc;
  font-size: 14px;
  flex-shrink: 0;
}

.list-item .item-extra {
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
}

/* ---------- Menu Items (个人中心) ---------- */
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  opacity: 0.7;
}

.menu-item .menu-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item .menu-arrow {
  color: #ccc;
  font-size: 14px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  background: #f0f0f0;
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 12px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab.active {
  background: var(--bg-white);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ---------- Article Card ---------- */
.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  transition: box-shadow 0.2s;
}

.article-card:active {
  box-shadow: 0 2px 12px rgba(24,144,255,0.15);
}

.article-card .card-head {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.article-card .card-thumb {
  width: 90px;
  height: 68px;
  border-radius: var(--radius-sm);
  background: #eee;
  object-fit: cover;
  flex-shrink: 0;
}

.article-card .card-info {
  flex: 1;
  min-width: 0;
}

.article-card .card-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-card .card-info p {
  font-size: 13px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.copy-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-btn {
  flex: 1;
  min-width: 80px;
  padding: 8px 4px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-xs);
  background: var(--bg-white);
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.copy-btn:active {
  background: var(--primary);
  color: #fff;
}

.copy-btn.copied {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

/* ---------- Video Card ---------- */
.video-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.video-card .video-cover {
  position: relative;
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  background: #eee;
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
}

.video-card .video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card .video-cover .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.video-card .video-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-card .video-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-card .video-info .video-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Quota Card (首页) ---------- */
.quota-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 16px;
  margin: 12px 16px;
  box-shadow: 0 4px 16px rgba(24,144,255,0.3);
}

.quota-card .quota-title {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.quota-card .quota-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.quota-card .quota-item .quota-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.quota-card .quota-item .quota-label {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 4px;
}

/* ---------- User Header (个人中心) ---------- */
.user-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 28px 16px 20px;
  text-align: center;
}

.user-header .user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.user-header .user-name {
  font-size: 18px;
  font-weight: 600;
}

.user-header .user-phone {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 2px;
}

.user-header .user-status {
  display: inline-flex;
  gap: 8px;
  margin-top: 10px;
}

.user-header .status-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  background: rgba(255,255,255,0.2);
}

.user-header .status-badge.verified {
  background: rgba(82,196,26,0.3);
}

.user-header .status-badge.unverified {
  background: rgba(250,140,22,0.3);
}

/* ---------- Toast ---------- */
.h5-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s ease;
  text-align: center;
  max-width: 80%;
}

.h5-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.h5-toast.toast-success {
  background: rgba(82,196,26,0.9);
}

.h5-toast.toast-error {
  background: rgba(255,77,79,0.9);
}

.h5-toast.toast-warning {
  background: rgba(250,140,22,0.9);
}

/* ---------- Loading ---------- */
.h5-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.h5-loading.show {
  opacity: 1;
  pointer-events: auto;
}

.h5-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: h5-spin 0.8s linear infinite;
}

@keyframes h5-spin {
  to { transform: rotate(360deg); }
}

.inline-loading {
  text-align: center;
  padding: 32px 0;
  color: #999;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: #bbb;
  font-size: 14px;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ---------- Modal / Dialog ---------- */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: flex-end;
}

.modal-mask.show {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  width: 100%;
  max-width: 750px;
  border-radius: 16px 16px 0 0;
  padding: 20px 16px;
  padding-bottom: calc(20px + var(--safe-bottom));
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-content .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-content .modal-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.modal-content .modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 50%;
}

.modal-content .modal-close:active {
  background: var(--border);
}

/* ---------- Quota Alert Dialog ---------- */
.quota-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  display: none;
  justify-content: center;
  align-items: center;
}

.quota-alert.show {
  display: flex;
}

.quota-alert .alert-box {
  background: var(--bg-white);
  width: calc(100% - 64px);
  max-width: 320px;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.quota-alert .alert-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.quota-alert .alert-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.quota-alert .alert-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.quota-alert .alert-btns {
  display: flex;
  gap: 12px;
}

.quota-alert .alert-btns .btn {
  flex: 1;
}

/* ---------- Upload Area ---------- */
.upload-area {
  border: 2px dashed var(--border-input);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.upload-area:active {
  border-color: var(--primary);
}

.upload-area .upload-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.upload-area .upload-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.upload-preview {
  margin-top: 10px;
}

.upload-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ---------- Article Detail Content ---------- */
.article-content {
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  margin: 12px 16px;
  box-shadow: var(--shadow);
}

.article-content .article-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text);
}

.article-content .article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  word-break: break-all;
}

.article-content .article-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}

.article-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.article-images img {
  width: calc(33.3% - 6px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ---------- Video Player ---------- */
.video-player {
  width: 100%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 16px;
}

.video-player video {
  width: 100%;
  display: block;
}

/* ---------- Contract Content ---------- */
.contract-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  white-space: pre-wrap;
  max-height: 55vh;
  overflow-y: auto;
}

.contract-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.contract-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* ---------- Purchase Card ---------- */
.package-card {
  background: linear-gradient(135deg, #fff8e1, #fff3e0);
  border: 2px solid #ffe082;
  border-radius: var(--radius);
  padding: 24px 16px;
  margin: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.package-card .package-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 0 0 0 12px;
}

.package-card .package-price {
  font-size: 40px;
  font-weight: 700;
  color: var(--danger);
}

.package-card .package-price .unit {
  font-size: 18px;
}

.package-card .package-name {
  font-size: 17px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.package-card .package-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.package-card .package-quota {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.package-card .package-quota .q-item {
  text-align: center;
}

.package-card .package-quota .q-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.package-card .package-quota .q-label {
  font-size: 12px;
  color: #999;
}

/* 选中状态 */
.package-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.2);
}

/* 代理费入驻卡片（特殊样式） */
.package-card-agent {
  background: linear-gradient(135deg, #e6f7ff, #bae7ff);
  border-color: #91d5ff;
}
.package-card-agent .package-price {
  color: var(--primary);
}
.package-card-agent.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.2);
}

/* ---------- Pay Method ---------- */
.pay-method {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin: 12px 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.pay-method .pay-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pay-method .pay-item:last-child {
  border-bottom: none;
}

.pay-method .pay-item .pay-icon {
  font-size: 24px;
}

.pay-method .pay-item .pay-name {
  flex: 1;
  font-size: 15px;
}

.pay-method .pay-item .pay-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  position: relative;
}

.pay-method .pay-item.selected .pay-radio {
  border-color: var(--primary);
}

.pay-method .pay-item.selected .pay-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Published List Item ---------- */
.published-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.published-item .p-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.published-item .p-title {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 8px;
}

.published-item .p-time {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

.published-item .p-link {
  font-size: 13px;
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* ---------- Pull Refresh ---------- */
.pull-refresh {
  position: relative;
  overflow: hidden;
}

.pull-refresh .pull-indicator {
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  color: #999;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: #999; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-8 { padding-top: 8px; padding-bottom: 8px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ---------- Copy Images Grid ---------- */
.copy-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.copy-img-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.copy-img-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
  background: #f8f8f8;
}

.save-img-btn {
  padding: 3px 0;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font-size: 11px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.save-img-btn:active {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

/* ---------- Responsive ---------- */
@media screen and (min-width: 750px) {
  .page-container {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}
