/* ============================================
 * main.css - 主样式文件
 * 粉色主题：#ff69b4
 * ============================================ */

/* ===== CSS 变量 ===== */
:root {
  --primary-color: #ff69b4;
  --primary-light: #ff8dc7;
  --primary-dark: #ff4da6;
  --primary-bg: #fff7fb;
  --primary-border: #ffcce0;

  --text-color: #333;
  --text-secondary: #666;
  --text-light: #999;

  --bg-color: #fafafa;
  --bg-white: #fff;

  --border-color: #eee;
  --border-radius: 8px;

  --header-height: 80px;
  --section-width: 1600px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --bg-white: #2a2a2a;
    --text-color: #e0e0e0;
    --text-secondary: #aaa;
    --text-light: #777;
    --border-color: #3a3a3a;
  }
}

/* ===== 通用工具类 ===== */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  gap: 4px;
}

.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }
.btn:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* 键盘焦点样式 (focus-visible) */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 移除默认焦点框，保持键盘可访问性 */
:focus:not(:focus-visible) {
  outline: none;
}

/* 可点击元素的键盘焦点样式 */
.city-tag:focus-visible,
.filter-item:focus-visible,
.hot-tab:focus-visible,
.nav-menu li:focus-visible,
.function-item:focus-visible,
.publish-tab:focus-visible,
.avatar-item:focus-visible,
.page-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.2);
}

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

.btn-default {
  background-color: var(--bg-white);
  color: var(--text-color);
  border-color: var(--border-color);
}

.btn-block {
  width: 100%;
  padding: 12px 16px;
}

/* ===== 全局布局 ===== */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
}

.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  padding-top: calc(var(--header-height) + 20px);
}

/* ===== 顶部导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-content {
  max-width: var(--section-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 20px;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
}

.logo-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: 4px;
}

.logo-img,
.site-logo {
  /* 原有样式：
  height: 45px;
  max-width: 180px;
  */
  height: 90px;
  max-width: 360px;
  object-fit: contain;
}

/* ===== 导航菜单 ===== */
.nav-menu {
  flex: 1;
}

.nav-menu ul {
  display: flex;
  gap: 8px;
}

.nav-menu li {
  padding: 10px 18px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 14px;
  white-space: nowrap;
}

.nav-menu li:hover {
  color: var(--primary-color);
  background-color: var(--primary-bg);
}

.nav-menu li.active {
  color: var(--primary-color);
  background-color: var(--primary-bg);
  font-weight: 500;
}

/* ===== 搜索框 ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.search-box {
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--bg-color);
}

.search-input {
  border: none;
  outline: none;
  padding: 10px 14px;
  background: transparent;
  font-size: 14px;
  width: 200px;
  color: var(--text-color);
}

.search-btn {
  width: 40px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
}

/* ===== 用户区域 ===== */
.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-btn {
  background-color: #409eff;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  min-height: 32px;
}

.login-btn:hover {
  background-color: #66b1ff;
}

.register-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  min-height: 32px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
}

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

.username {
  font-size: 14px;
  color: var(--text-color);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-tag {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.user-dropdown-wrapper {
  position: relative;
}

.user-dropdown {
  display: flex;
  align-items: center;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  padding: 6px 0;
}

.dropdown-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--primary-bg);
  color: var(--primary-color);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 6px 0;
}

/* ===== 通用区块 ===== */
.section-container {
  max-width: var(--section-width);
  margin: 0 auto 20px auto;
  padding: 0 20px;
}

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

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #ff69b4;
}



/* ===== 快捷功能 ===== */
.quick-functions {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  background-color: var(--bg-white);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.function-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px 8px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.function-item:hover {
  background-color: var(--primary-bg);
  transform: translateY(-2px);
}

.function-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
}

.function-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== 最新地址横幅 ===== */
.new-address-banner {
  background: linear-gradient(135deg, #fff7fb, #ffe8f1);
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.address-label {
  color: var(--primary-color);
  font-weight: 500;
}

.address-text {
  color: var(--text-secondary);
}



/* ===== 筛选区域 ===== */
.filter-section {
  background-color: var(--bg-white);
  padding: 10px 14px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border-color);
}

.filter-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-label {
  color: var(--text-secondary);
  font-size: 13px;
  flex-shrink: 0;
  padding-top: 3px;
  width: 44px;
}

.filter-list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-item {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-item:hover {
  color: var(--primary-color);
}

.filter-item.active {
  color: var(--primary-color);
  background-color: var(--primary-bg);
}

/* ===== 热门推荐 Tab ===== */
.hot-tabs {
  display: flex;
  gap: 4px;
  background-color: var(--bg-white);
  padding: 8px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.hot-tab {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.hot-tab:hover {
  color: var(--primary-color);
}

.hot-tab.active {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 500;
}

/* ===== 信息卡片网格 ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 200px; /* 固定高度 */
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.info-image-wrapper {
  width: 40%;
  min-width: 200px;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
  flex-shrink: 0;
}

.info-image-wrapper img,
.info-image-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  color: #ccc;
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active {
  color: var(--primary-color);
}

/* 商家卡片标签角标 */
.merchant-card-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  z-index: 10;
}

.merchant-card-tag-excellent {
  background-color: #ff69b4;
}

.merchant-card-tag-premium {
  background-color: #409eff;
}

.merchant-card-tag-top {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.merchant-card-tag-default {
  background-color: #909399;
}

.info-content {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  background-color: #fff;
}

.info-header {
  margin-bottom: 10px;
}

.info-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  line-height: 1.4;
  /* PC端标题最多显示2行，溢出显示省略号 */
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.info-top-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
}

.info-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  flex: 1;
  text-overflow: ellipsis;
}

.info-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 13px;
  color: var(--primary-color);
}

.info-city {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.info-views {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ===== 骨架屏 ===== */
.info-skeleton {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 12px;
}

/* ===== 弹窗通用样式 ===== */
.dialog-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.dialog {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  width: 440px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.dialog-small {
  width: 360px;
}

.dialog-large {
  width: 800px;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.dialog-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.dialog-close:hover {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.dialog-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 表单 ===== */
.form-item {
  margin-bottom: 16px;
}

.form-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-item input[type="text"],
.form-item input[type="password"],
.form-item input[type="email"],
.form-item select,
.form-item textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--bg-white);
  color: var(--text-color);
  transition: var(--transition);
  outline: none;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  border-color: var(--primary-color);
}

.form-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

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

.link:hover {
  text-decoration: underline;
}

.form-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.contact-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.contact-input-group select {
  width: 100px;
  padding: 10px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-white);
  color: var(--text-color);
}

/* ===== 底部 ===== */
.footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 24px 20px;
  margin-top: 40px;
}

.footer-content {
  max-width: var(--section-width);
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  color: var(--text-light);
  font-size: 12px;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 60px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 10px 20px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

.toast.hide {
  opacity: 0;
}

.toast-success { background-color: #67c23a; }
.toast-error { background-color: #f56c6c; }
.toast-warning { background-color: #e6a23c; }
.toast-info { background-color: #909399; }

/* ===== Confirm 确认框 ===== */
.confirm-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.confirm-mask.show {
  opacity: 1;
}

.confirm-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  width: 360px;
  padding: 20px;
  animation: slideUp 0.3s ease;
}

.confirm-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

.confirm-content {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ===== 全局 Loading ===== */
.global-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

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

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

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

/* ===== VIP 套餐 ===== */
.vip-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vip-plan {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.vip-plan.featured {
  border-color: var(--primary-color);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #fff;
  font-size: 12px;
  padding: 2px 12px;
  border-radius: 10px;
}

.plan-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
}

.plan-price {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.plan-price span {
  font-size: 13px;
  font-weight: normal;
  color: var(--text-light);
}

.plan-features {
  text-align: left;
  margin-bottom: 16px;
  min-height: 100px;
}

.plan-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #67c23a;
}

/* ===== APP 下载 ===== */
.app-download-content {
  text-align: center;
}

.app-qrcode {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: 8px;
  background-color: #f5f5f5;
}

.app-version {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-btn {
  justify-content: center;
}

/* ===== 帮助中心 ===== */
.help-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.help-question {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  background-color: var(--bg-color);
  cursor: pointer;
}

.help-answer {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 个人中心 ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-change-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--bg-white);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.profile-info {
  flex: 1;
}

.profile-username {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.profile-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background-color: var(--bg-color);
  color: var(--text-secondary);
}

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

.profile-register-time {
  font-size: 12px;
  color: var(--text-light);
}

.profile-stats {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  padding: 16px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
}

.profile-section {
  margin-bottom: 20px;
}

.profile-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.integral-log-list {
  max-height: 200px;
  overflow-y: auto;
}

.integral-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

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

.log-type {
  font-weight: 500;
  color: var(--text-color);
  min-width: 80px;
}

.log-remark {
  flex: 1;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 12px;
}

.log-value {
  font-weight: bold;
  min-width: 60px;
  text-align: right;
}

.log-value.positive {
  color: #67c23a;
}

.log-value.negative {
  color: #f56c6c;
}

.log-time {
  color: var(--text-light);
  min-width: 80px;
  text-align: right;
  margin-left: 12px;
}

/* ===== 头像选择 ===== */
.avatar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.avatar-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.avatar-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 500;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.avatar-item {
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 5px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.avatar-item:hover {
  border-color: #409eff;
}

.avatar-item.active {
  border-color: #409eff;
  background-color: #ecf5ff;
}

.avatar-item img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-color);
}

.avatar-upload {
  text-align: center;
}

.upload-area {
  display: block;
  padding: 40px 20px;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}

.upload-area:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-bg);
}

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

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

.upload-tip {
  font-size: 12px !important;
  color: var(--text-light) !important;
}

.upload-preview {
  text-align: center;
}

.upload-preview img {
  max-width: 150px;
  max-height: 150px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ===== 我的收藏 / 发布 ===== */
.favorite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 0;
  min-height: 400px;
}

.favorite-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.favorite-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.favorite-card-img {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.favorite-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.favorite-remove-btn:hover {
  background: #ff69b4;
  color: #fff;
}

.favorite-card-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.favorite-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.favorite-card-location,
.favorite-card-time {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 收藏分页 */
.favorite-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.favorite-pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.favorite-pagination-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.favorite-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.favorite-pagination-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.publish-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.publish-tab {
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.publish-tab:hover {
  color: var(--primary-color);
}

.publish-tab.active {
  background-color: var(--primary-color);
  color: #fff;
}

.publish-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.publish-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.publish-thumb {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background-color: var(--bg-color);
  overflow: hidden;
  flex-shrink: 0;
}

.publish-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.publish-title {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 6px;
  font-weight: 500;
}

.publish-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.publish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.publish-time {
  font-size: 12px;
  color: var(--text-light);
}

.status-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-approved { background-color: #f0f9eb; color: #67c23a; }
.status-pending { background-color: #fdf6ec; color: #e6a23c; }
.status-rejected { background-color: #fef0f0; color: #f56c6c; }

.publish-actions {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.publish-delete {
  color: #f56c6c;
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: none;
}

/* ===== 空状态 ===== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

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

.empty-state p {
  font-size: 14px;
  margin-bottom: 4px;
}

.empty-tip {
  font-size: 12px !important;
  color: var(--text-light);
}

/* ===== 图片预览 ===== */
.image-viewer-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

/* ===== 搜索结果 ===== */
.search-results-container {
  max-width: var(--section-width);
  margin: 0 auto;
  padding: 20px;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.search-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--text-color);
}

.search-stats {
  display: flex;
  gap: 10px;
  flex: 1;
  margin: 0 20px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--primary-bg);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.btn-clear-search {
  padding: 8px 16px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-search:hover {
  background: var(--primary-dark);
}

.search-section {
  margin-bottom: 32px;
}

.search-section .section-title {
  margin-bottom: 16px;
  padding-left: 8px;
}

.search-section .section-title h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-color);
  font-weight: 600;
}

/* ===== 图片预览 ===== */
.viewer-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

.viewer-prev,
.viewer-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.viewer-prev:hover,
.viewer-next:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.viewer-prev { left: 30px; }
.viewer-next { right: 30px; }

.viewer-image-wrapper {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-image-wrapper img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.viewer-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
}

/* ===== 视频预览 ===== */
.viewer-video-wrapper {
  width: 80vw;
  max-width: 900px;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#videoViewerVideo {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background-color: #000;
  border-radius: 4px;
}

/* ===== 详情页 ===== */
.detail-body {
  display: flex;
  gap: 24px;
}

.detail-images {
  width: 340px;
  flex-shrink: 0;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #f5f5f5;
  cursor: pointer;
  position: relative;
}

.detail-main-image img,
.detail-main-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.detail-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.detail-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.detail-tag {
  padding: 3px 10px;
  border-radius: 4px;
  background-color: var(--primary-bg);
  color: var(--primary-color);
  font-size: 12px;
}

/* 商家标签样式 */
.merchant-tag-excellent {
  background-color: #ff69b4 !important;
  color: #fff !important;
}

.merchant-tag-premium {
  background-color: #409eff !important;
  color: #fff !important;
}

.merchant-tag-top {
  background-color: linear-gradient(135deg, #ffd700, #ff8c00) !important;
  background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
  color: #fff !important;
}

.merchant-tag-default {
  background-color: #909399 !important;
  color: #fff !important;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
}

.detail-meta-item {
  display: flex;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-meta-label {
  width: 60px;
  flex-shrink: 0;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.detail-price {
  font-size: 20px;
  font-weight: 600;
  color: #ff69b4;
  margin-bottom: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #fff7fb, #ffe8f1);
  border-radius: var(--border-radius);
  display: inline-block;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.detail-album {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.detail-album-item {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: var(--transition);
}

.detail-album-item:hover {
  transform: scale(1.02);
}

.detail-album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.detail-video-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: var(--transition);
}

.detail-video-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.detail-video-cover {
  position: relative;
  aspect-ratio: 4 / 3;
}

.detail-video-cover img,
.detail-video-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.detail-video-name {
  padding: 8px;
  font-size: 13px;
  color: var(--text-color);
  text-align: center;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

/* ===== 联系方式弹窗 ===== */
.contact-content {
  text-align: center;
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff69b4, #ff8dc7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}

.contact-label {
  color: var(--text-light);
  font-size: 14px;
  margin: 0 0 15px 0;
}

.contact-list {
  text-align: left;
  margin-bottom: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--bg-color);
  border-radius: 8px;
  margin-bottom: 8px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-type {
  width: 70px;
  color: var(--text-secondary);
  font-size: 13px;
}

.contact-value {
  flex: 1;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
}

.contact-tip {
  color: #ff9800;
  font-size: 12px;
  margin: 0;
  padding: 10px;
  background-color: #fff7e6;
  border-radius: 6px;
  text-align: left;
}

/* ===== 响应式 ===== */
@media (max-width: 1400px) {
  .info-grid,
  .favorite-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-image-wrapper {
    min-width: 160px;
  }

  .info-content {
    padding: 12px 16px;
  }

  .info-title {
    font-size: 16px;
  }

  .info-desc {
    font-size: 13px;
    -webkit-line-clamp: 4;
    display: -webkit-box;
    display: box;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-width: 100%;
  }

  .quick-functions {
    grid-template-columns: repeat(6, 1fr);
  }

  .info-grid,
  .favorite-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-menu ul {
    gap: 4px;
  }

  .nav-menu li {
    padding: 8px 10px;
    font-size: 13px;
  }

  .search-input {
    width: 140px;
  }

  .info-title {
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .info-desc {
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px) {
  .header-content {
    gap: 10px;
    padding: 0 12px;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-sub {
    display: none;
  }

  .nav-menu {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu ul {
    flex-wrap: nowrap;
  }

  .quick-functions {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px;
  }

  .function-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .function-item span {
    font-size: 12px;
  }

  .info-grid,
  .favorite-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card {
    flex-direction: row;
    min-height: 160px;
    height: auto;
  }

  .info-image-wrapper {
    width: 140px;
    min-width: 140px;
    height: 160px;
  }

  .info-content {
    padding: 12px 16px;
    justify-content: flex-start;
  }

  .info-title {
    font-size: 16px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .info-desc {
    font-size: 13px;
    -webkit-line-clamp: unset;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: normal;
    overflow: visible;
    display: block;
    text-overflow: clip;
  }

  .info-top-meta,
  .info-meta {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .section-container {
    padding: 0 12px;
  }

  .vip-plans {
    grid-template-columns: 1fr;
  }

  .dialog {
    width: 92vw;
  }

  .detail-body {
    flex-direction: column;
  }

  .detail-images {
    width: 100%;
  }

  .detail-album {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-videos {
    grid-template-columns: 1fr;
  }

  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .back-to-top {
    right: 15px;
    bottom: 40px;
    width: 40px;
    height: 40px;
  }

  .viewer-prev { left: 10px; }
  .viewer-next { right: 10px; }
}

@media (max-width: 480px) {
  .quick-functions {
    grid-template-columns: repeat(4, 1fr);
  }

  .info-grid,
  .favorite-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card {
    flex-direction: row;
    min-height: 160px;
    height: auto;
  }

  .info-image-wrapper {
    width: 120px;
    min-width: 120px;
    height: 160px;
    aspect-ratio: auto;
  }

  .info-content {
    padding: 12px;
    justify-content: flex-start;
  }

  .info-title {
    font-size: 14px;
    margin-bottom: 6px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .info-top-meta {
    font-size: 12px;
    gap: 10px;
    margin-bottom: 6px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .info-desc {
    font-size: 12px;
    -webkit-line-clamp: unset;
    margin-bottom: 8px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: normal;
    overflow: visible;
    display: block;
    text-overflow: clip;
  }

  .info-meta {
    font-size: 12px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .section-title {
    font-size: 17px;
  }

  .hot-tabs {
    overflow-x: auto;
  }
}
