/* 字体与全局设定 */
body {
  font-family: "Inter","PingFang SC",sans-serif;
  background: #ffffff;
  color: #222;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* 隐藏 WordPress 管理栏 */
#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* 头部样式 */
.modou-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin: 0;
  padding: 0;
  width: 100%;
}

.modou-header-container {
  width: 100%;
  margin: 0;
  padding: 0 32px;
  box-sizing: border-box;
}

/* 顶部行 - 已移除搜索框与导航菜单之间的分割线 */
.modou-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.modou-header-bottom {
  background: #fff;
}

.modou-header-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

/* Logo */
.modou-logo {
  flex-shrink: 0;
}

.modou-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #111827;
}

.modou-logo-link svg {
  display: block;
}

.modou-logo-img {
  height: 24px;
  width: auto;
  display: block;
}

/* 搜索栏（居中，大尺寸） */
.modou-search-wrapper {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 0;
}

.modou-search-form-inline {
  position: relative;
  display: flex;
  align-items: center;
}

.modou-search-card {
  width: 100%;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  position: relative;
}

.modou-search-card:focus-within {
  border-color: #10b981;
  box-shadow: 0 22px 45px rgba(16, 185, 129, 0.18);
}

.modou-search-input-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

.modou-search-input-inline {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #111827;
  outline: none;
  padding: 0;

  /* 隐藏 Safari 自带的清除按钮 */
  -webkit-appearance: none;
  background-clip: padding-box;
}

.modou-search-input-inline::-webkit-search-decoration,
.modou-search-input-inline::-webkit-search-cancel-button,
.modou-search-input-inline::-webkit-search-results-button,
.modou-search-input-inline::-webkit-search-results-decoration {
  display: none;
}

.modou-search-input-inline::placeholder {
  color: #9ca3af;
}

.modou-search-icon-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.modou-search-icon-btn:hover {
  color: #0f172a;
  background: rgba(16, 185, 129, 0.12);
}

.modou-search-icon-divider {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 22px;
  background: rgba(148, 163, 184, 0.5);
}

.modou-search-clear-btn {
  position: absolute;
  right: 61px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.modou-search-clear-btn:hover {
  color: #64748b;
  background: rgba(226, 232, 240, 0.5);
}

.modou-search-hot-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 18px;
  box-shadow: 0 24px 45px -22px rgba(15, 23, 42, 0.28);
  padding: 16px 20px;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}

/* 导航菜单（底部行） */
.modou-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.modou-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}

.modou-menu li {
  margin: 0;
  padding: 0;
  position: relative;
}

.modou-menu a {
  color: #374151;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 16px 0;
  transition: color 0.2s;
  display: block;
  position: relative;
}

.modou-menu a:hover {
  color: #111827;
}

.modou-menu .current-menu-item > a,
.modou-menu .current_page_item > a {
  color: #111827;
}

.modou-menu .current-menu-item > a::after,
.modou-menu .current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
}

/* 头部操作区（顶部行右侧） */
.modou-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-right: 0;
  padding-right: 0;
}

/* 确保最后一个按钮组距离容器右边缘正好32px */
.modou-header-top .modou-header-container {
  padding-right: 32px !important;
  padding-left: 32px !important;
}

.modou-header-top {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.modou-action-link {
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
  white-space: nowrap;
}

.modou-action-link:hover {
  color: #111827;
}

/* 登录按钮（黄色） */
.modou-btn-login {
  background: #fbbf24;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background-color 0.2s;
  display: inline-block;
  white-space: nowrap;
}

.modou-btn-login:hover {
  background: #f59e0b;
  color: #fff;
}

/* 用户下拉菜单 */
.modou-user-dropdown {
  position: relative;
}

.modou-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
  position: relative;
}

.modou-user-trigger:hover {
  background: #f3f4f6;
}

.modou-user-avatar-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.modou-avatar-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modou-avatar-wrapper .modou-user-avatar {
  display: block;
  border-radius: 50%;
}

.modou-avatar-crown {
  position: absolute;
  top: -6px;
  right: -3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.18);
  color: #f59e0b;
}

.modou-avatar-crown svg {
  width: 14px;
  height: 14px;
}

.modou-avatar-crown--svip {
  color: #a855f7;
}

.modou-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.modou-dropdown-arrow-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s;
}

.modou-dropdown-arrow-btn:hover {
  color: #374151;
}

.modou-dropdown-arrow {
  color: inherit;
  transition: transform 0.2s;
}

.modou-user-dropdown.active .modou-dropdown-arrow {
  transform: rotate(180deg);
}

.modou-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
}

.modou-user-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.modou-user-dropdown.active .modou-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modou-user-dropdown.active .modou-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modou-user-menu-info {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.modou-user-menu-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.modou-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1.2;
}

.modou-status-badge--vip {
  background: #fef3c7;
  color: #b45309;
}

.modou-status-badge--svip {
  background: #ede9fe;
  color: #6d28d9;
}

.modou-user-menu-id {
  font-size: 13px;
  color: #6b7280;
  display: block;
}

.modou-user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f3f4f6;
}

.modou-user-menu-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.modou-user-menu-item:hover {
  background: #f9fafb;
  color: #111827;
}

.modou-user-menu-item svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
  flex-shrink: 0;
}

.modou-user-menu-item:hover svg {
  color: #111827;
}

.modou-user-menu-logout {
  color: #ef4444;
}

.modou-user-menu-logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

.modou-user-menu-logout svg {
  color: #ef4444;
}

.modou-user-menu-logout:hover svg {
  color: #dc2626;
}

/* 注册按钮（白色边框） */
.modou-btn-register {
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  transition: all 0.2s;
  display: inline-block;
  white-space: nowrap;
}

.modou-btn-register:hover {
  border-color: #374151;
  color: #111827;
}

/* 图标按钮 */
.modou-icon-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color 0.2s;
}

.modou-icon-btn:hover {
  color: #111827;
}

.modou-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* 通知徽章 */
.modou-badge-notification {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* 促销按钮（底部行右侧） */
.modou-btn-promo {
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.modou-btn-promo:hover {
  opacity: 0.9;
  color: #fff;
}

.modou-btn-promo svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* 响应式 */
@media (max-width: 1024px) {
  .modou-header-container {
    padding: 0 32px;
  }
  
  .modou-header-top-inner {
    gap: 16px;
  }
  
  .modou-search-wrapper {
    max-width: 400px;
  }
  
  .modou-menu {
    gap: 20px;
  }
  
  .modou-action-link {
    display: none;
  }
}

@media (max-width: 768px) {
  .modou-header-top-inner {
    height: 64px;
    gap: 12px;
  }
  
  .modou-search-wrapper {
    max-width: 200px;
  }
  
  .modou-search-input-inline {
    padding: 8px 40px 8px 12px;
    font-size: 13px;
  }
  
  .modou-header-actions {
    gap: 12px;
  }
  
  .modou-btn-login {
    padding: 6px 16px;
    font-size: 13px;
  }
  
  .modou-icon-btn {
    padding: 6px;
  }
  
  .modou-header-bottom {
    display: none;
  }
  
  .modou-btn-promo {
    display: none;
  }
}

@media (max-width: 480px) {
  .modou-search-wrapper {
    display: none;
  }
  
  .modou-header-actions {
    gap: 8px;
  }
  
  .modou-btn-login {
    padding: 6px 12px;
    font-size: 12px;
  }
}

.modou-container {
  width: 100%;
  margin: 0;
  padding: 2rem 32px;
  box-sizing: border-box;
}

/* 网格与卡片（首页） */
.modou-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
  gap: 1.5rem;
  padding: 0;
}

.modou-card {
  background: #fff;
  border-radius: 0.35rem 0.35rem 0.15rem 0.15rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}

.modou-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.modou-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
  position: relative;
  display: block;
}

.modou-thumb img, .no-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f0f0f0;
  display: block;
}

.modou-card-title {
  font-size: 1.1rem;
  margin: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modou-badge { display: inline-block; margin-left: .5rem; padding: .15rem .5rem; border-radius: .5rem; font-size: .75rem; font-weight: 600; vertical-align: middle; }
.modou-badge-vip { background: #e6fffb; color: #00bfa5; border: 1px solid #00bfa5; }
.modou-badge-svip { background: #f3e8ff; color: #7c3aed; border: 1px solid #7c3aed; }
.modou-badge-bought { background: #ecfdf5; color: #047857; border: 1px solid #10b981; padding: .35rem .6rem; border-radius: .5rem; }

.modou-card-title a { color: inherit; text-decoration: none; }
.modou-card-title a:hover { text-decoration: underline; }

.modou-card-desc {
  flex: 1;
  font-size: .9rem;
  color: #555;
  margin: 0 1rem 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modou-card-footer {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modou-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 350;
}

.modou-card-date-icon {
  display: none;
}

.modou-card-systems {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modou-card-system {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.modou-card-system.system-windows {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzExMSI+PHBhdGggZD0iTTAgMy40NDlMOS43NSAyLjEwOHY4LjcxNUgwem0xMC41LTEuNDU1TDI0IDB2MTAuODc4SDEwLjV6bTAgMTEuNjFIMjRWMjRsLTEzLjUtMS44em0tMTAuNS4wOTNoOS43NXY4LjU3NEwwIDIwLjUwM3oiLz48L3N2Zz4=");
}

.modou-card-system.system-mac {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzExMSI+PHBhdGggZD0iTTE2IDEzLjVjLjAxMSAyLjU1IDIuMjg5IDMuNCAyLjMwMSAzLjQwNi0uMDE1LjA0Ny0uMzYgMS4yNDYtMS4xODkgMi40NjUtLjcxNiAxLjA1Ni0xLjQ2IDIuMTEtMi42MzYgMi4xMzQtMS4xNDEuMDIyLTEuNTA1LS42OTEtMi44MTItLjY5MS0xLjMwNiAwLTEuNzI1LjY2OC0yLjgxNy43MTMtMS4xMzEuMDQ0LTEuOTk5LTEuMTMyLTIuNzItMi4xODMtMS40OC0yLjE1My0yLjYyMS02LjA4Ny0xLjA5My04Ljc0Ljc1Mi0xLjMxMiAyLjA5Ni0yLjE0NSAzLjU0NS0yLjE2NyAxLjEwNy0uMDIxIDIuMTUxLjc1IDIuODEzLjc1LjY2MiAwIDEuOTMtLjkyNyAzLjI1Mi0uNzkxLjU1My4wMjMgMi4xMDUuMjI0IDMuMDk3IDEuNjg3LS4wOC4wNS0xLjg1NCAxLjExNi0xLjgzOSAzLjQxN3pNMTMuMjg0IDUuMjljLjU2Ny0uNjg4Ljk0OS0xLjY0NC44NDUtMi42LS44MTguMDMzLTEuODA2LjU0NC0yLjM5OSAxLjIzMi0uNTI3LjYxMS0uOTg2IDEuNTg4LS44NjMgMi41My45MTUuMDcxIDEuODQ5LS40NjUgMi40MTctMS4xNjJ6Ii8+PC9zdmc+");
}

.modou-card-system.system-linux {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzExMSI+PHBhdGggZD0iTTEyIDBDOS43OSAwIDggMS43OSA4IDR2Mkg3Yy0xLjY2IDAtMyAxLjM0LTMgM3YyYzAgMS4zMS44NCAyLjQyIDIgMi44M1YyMmMwIDEuMS45IDIgMiAyczItLjkgMi0ydi02aDJ2NmMwIDEuMS45IDIgMiAyczItLjkgMi0ydi04YzEuMTYtLjQxIDItMS41MiAyLTIuODNWOWMwLTEuNjYtMS4zNC0zLTMtM2gtMVY0YzAtMi4yMS0xLjc5LTQtNC00eiIvPjwvc3ZnPg==");
}

.modou-card-system.system-android {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzExMSI+PHBhdGggZD0iTTE3LjUyMyA0LjYxMWwxLjcwOS0zLjE0NS0uODg1LS40NjgtMS43IDMuMTI4QzE1LjU2NCAzLjQzIDE0LjI5OSAzIDEzIDNjLTEuMzAzIDAtMi41NjQuNDMzLTMuNjQ4IDEuMjM4TDcuNjU4IDEuMDA1bC0uODgzLjQ2OEw4LjQ2IDQuNjNBNi45OTQgNi45OTQgMCAwMDYgOWgxNGE2Ljk5IDYuOTkgMCAwMC0yLjQ3Ny00LjM4OXpNNiAxMHY3YzAgMS4xMDUuODk1IDIgMiAydjNjMCAuNTUyLjQ0NyAxIDEgMXMxLS40NDggMS0xdi0zaDR2M2MwIC41NTIuNDQ3IDEgMSAxczEtLjQ0OCAxLTF2LTNjMS4xMDUgMCAyLS44OTUgMi0ydi03SDZ6Ii8+PC9zdmc+");
}

.modou-card-system.system-web,
.modou-card-system.system-generic {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIvPjxwYXRoIGQ9Ik0zIDEyaDE4Ii8+PHBhdGggZD0iTTEyIDNhMTUgMTUgMCAwMTAgMTgiLz48cGF0aCBkPSJNMTIgM2ExNSAxNSAwIDAwMCAxOCIvPjwvc3ZnPg==");
}

/* 按钮 */
.modou-btn {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: .75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all .25s;
}

.modou-btn-free {
  background: #00bfa5;
  color: #fff;
}

.modou-btn-buy {
  background: #fff;
  color: #00bfa5;
  border: 2px solid #00bfa5;
}

.modou-btn-buy:hover {
  background: #00bfa5;
  color: #fff;
}

.modou-btn-primary {
  background: #00bfa5;
  color: #fff;
}

.modou-btn-primary:hover { filter: brightness(0.95); }

/* 详情页 */
.modou-single {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
}

/* 详情页标题区域 */
.modou-post-header { border-bottom: 1px solid #eee; padding-bottom: 1rem; margin-bottom: 1rem; }
.modou-title { margin: 0 0 .5rem; font-size: 1.75rem; }
.modou-meta { display: flex; gap: 1rem; color: #555; font-size: .95rem; flex-wrap: wrap; }
.modou-meta span { background: #f7f7f7; padding: .25rem .5rem; border-radius: .5rem; }

.modou-content { line-height: 1.8; color: #333; }
.modou-content img { max-width: 100%; height: auto; border-radius: .5rem; }

.modou-download-box { margin-top: 1.25rem; }
.modou-license-box { margin-top: 1rem; }

.license-owned {
  background: #e0f7f4;
  padding: 1rem;
  border-radius: .5rem;
  margin-top: 1rem;
  color: #00897b;
}

/* 响应式 */
@media (max-width: 1024px) {
  .modou-container { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 768px) {
  .modou-grid { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); }
}

@media (max-width: 480px) {
  .modou-grid { grid-template-columns: 1fr; }
}

/* 页脚样式 - 暗色系 */
.modou-footer {
  background: linear-gradient(180deg, #021515 0%, #000f0f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.modou-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 20%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 80%, 
    transparent 100%
  );
}

.modou-footer-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.modou-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.modou-footer-copyright {
  text-align: center;
  padding-bottom: 1rem;
  position: relative;
}

.modou-footer-copyright::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.modou-footer-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin: 0;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.modou-footer-licenses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.modou-footer-license-item {
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}

.modou-footer-license-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.modou-footer-license-link {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  position: relative;
}

.modou-footer-license-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease;
}

.modou-footer-license-link:hover {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}

.modou-footer-license-link:hover::before {
  width: 80%;
}

@media (max-width: 768px) {
  .modou-footer-container {
    padding: 0 1rem;
  }
  
  .modou-footer {
    margin-top: 2rem;
    padding: 2.5rem 0 1.75rem;
  }
  
  .modou-footer-content {
    gap: 1.25rem;
  }
  
  .modou-footer-copyright {
    padding-bottom: 0.75rem;
  }
  
  .modou-footer-text {
    font-size: 14px;
  }
  
  .modou-footer-licenses {
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.25rem;
  }
  
  .modou-footer-license-item {
    padding: 0.25rem 0;
  }
  
  .modou-footer-license-item:not(:last-child)::after {
    display: none;
  }
  
  .modou-footer-license-item:not(:last-child)::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
  }
  
  .modou-footer-license-link {
    font-size: 12px;
    padding: 0.35rem 0.75rem;
  }
}

/* 首页懒加载骨架屏样式 */
.modou-homepage-skeleton-wrapper {
  width: 100%;
}

.modou-homepage-skeleton-section {
  margin-bottom: 3rem;
}

.modou-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

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

.modou-skeleton-title {
  width: 200px;
  height: 28px;
  margin-bottom: 1rem;
}

.modou-skeleton-link {
  width: 80px;
  height: 20px;
  margin-left: auto;
}

.modou-skeleton-card {
  min-width: 280px;
  margin-right: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modou-skeleton-image {
  width: 100%;
  height: 160px;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.modou-skeleton-text {
  width: 100%;
  height: 16px;
  margin-bottom: 0.5rem;
}

.modou-skeleton-text-short {
  width: 70%;
}

.modou-skeleton-price {
  width: 100px;
  height: 20px;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .modou-skeleton-card {
    min-width: 240px;
  }
  
  .modou-skeleton-image {
    height: 140px;
  }
}

/* Category Archive Page Styles - AppSumo Inspired */
.modou-category-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 32px;
    background: #fff;
    min-height: calc(100vh - 200px);
    box-sizing: border-box;
}

.modou-category-layout {
    display: flex;
    gap: 32px;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

/* 顶部工具栏 */
.modou-category-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.modou-category-sort {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
}

.modou-category-sort form {
    display: inline;
}

.modou-category-sort label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* AppSumo风格自定义下拉 */
.modou-sort-dropdown {
    position: relative;
    display: inline-block;
}

.modou-sort-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 160px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    user-select: none;
}

.modou-sort-dropdown-button:hover {
    border-color: #9ca3af;
}

.modou-sort-dropdown-button.active {
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.modou-sort-dropdown-button-text {
    flex: 1;
    text-align: left;
}

.modou-sort-dropdown-arrow {
    width: 12px;
    height: 12px;
    margin-left: 8px;
    transition: transform 0.2s;
    color: #6b7280;
}

.modou-sort-dropdown-button.active .modou-sort-dropdown-arrow {
    transform: rotate(180deg);
}

.modou-sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    max-height: 300px;
    overflow-y: auto;
    min-width: 160px;
}

.modou-sort-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modou-sort-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-decoration: none;
}

.modou-sort-dropdown-item:hover {
    background-color: #f3f4f6;
}

.modou-sort-dropdown-item.active {
    background-color: #f0fdfa;
    color: #00b894;
    font-weight: 500;
}

.modou-sort-dropdown-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modou-sort-dropdown-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* 分类栏（左侧） - AppSumo 风格 */
.modou-category-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.modou-category-sidebar-wrapper {
    display: block;
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 和 Edge */
}

/* 隐藏 WebKit 浏览器的滚动条 */
.modou-category-sidebar-wrapper::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .modou-category-sidebar-wrapper {
        flex-grow: 1;
        overflow-y: scroll;
        padding: 1rem;
        /* 隐藏滚动条 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 和 Edge */
    }
    
    .modou-category-sidebar-wrapper::-webkit-scrollbar {
        display: none;
    }
}

/* 侧边栏区块 - AppSumo 风格 */
.modou-sidebar-section {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.modou-sidebar-section-title {
    padding-bottom: 0.5rem;
    font-family: var(--font-header, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    margin: 0;
}

.modou-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modou-sidebar-list-item {
    margin: 0.25rem 0;
}

.modou-sidebar-list-item-indent {
    padding-left: 1.25rem;
}

.modou-sidebar-sublist {
    margin-top: 0.25rem;
    padding-left: 0;
}

.modou-sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    text-decoration: none;
    font-family: var(--font-header, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.2s;
}

.modou-sidebar-link-text {
    flex-grow: 1;
}

.modou-sidebar-link:hover {
    color: #000;
    text-decoration: underline;
}

.modou-sidebar-link.active {
    color: #00b894;
    font-weight: 600;
    text-decoration: none;
}

.modou-sidebar-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
    flex-shrink: 0;
}

/* 复选框筛选项 */
.modou-sidebar-filter-checkbox {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: visible !important;
    position: relative;
}

.modou-sidebar-checkbox-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
}

.modou-sidebar-checkbox {
    height: 1.4rem;
    width: 1.4rem;
    cursor: pointer;
    border-radius: 0.25rem;
    border: 1px solid #000;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    flex-shrink: 0;
}

.modou-sidebar-checkbox:checked {
    background-color: #000;
    border-color: #000;
}

.modou-sidebar-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: bold;
}

.modou-sidebar-checkbox-label {
    margin-left: 0.5rem;
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    font-family: var(--font-header, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-weight: 600;
    font-size: 1rem;
}

.modou-sidebar-checkbox-label-text {
    flex-grow: 1;
}

.modou-sidebar-question-icon {
    flex-shrink: 0;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10000000;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin-left: 8px;
    margin-right: 0;
    padding: 2px;
    box-sizing: border-box;
    overflow: visible !important;
    order: 999;
}

.modou-sidebar-question-icon img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: block;
    object-fit: contain;
    overflow: visible !important;
    margin: 0;
    padding: 0;
}

/* AppSumo风格工具提示 */
.modou-tooltip {
    position: fixed !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 99999999 !important;
    white-space: normal;
    margin: 0 !important;
    padding: 0 !important;
}

.modou-tooltip-content {
    background: #1f2937;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 280px;
    white-space: normal;
    text-align: left;
}

/* 默认箭头在底部（tooltip 在图标上方时） */
.modou-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

/* 当 tooltip 在图标下方时，箭头在顶部 */
.modou-tooltip-content.arrow-top::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #1f2937;
}

/* 禁用原来的 hover 显示，因为现在用 JS 控制 */
.modou-sidebar-question-icon:hover .modou-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* 折叠按钮 */
.modou-sidebar-toggle-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-header, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-weight: 600;
    font-size: 1rem;
    color: #000;
}

.modou-sidebar-toggle-text {
    flex-grow: 1;
    text-align: left;
}

.modou-sidebar-chevron {
    display: inline-block;
    font-size: 0.875rem;
    transition: transform 0.3s ease-in-out;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.modou-sidebar-toggle-button[aria-expanded="true"] .modou-sidebar-chevron,
.modou-sidebar-toggle-button.active .modou-sidebar-chevron {
    transform: rotate(180deg);
}

.modou-sidebar-toggle-content {
    margin-top: 1rem;
    display: block;
}

.modou-sidebar-toggle-content[hidden] {
    display: none;
}

.modou-sidebar-checkbox-list {
    display: flex;
    flex-direction: column;
}

.modou-sidebar-checkbox-list .modou-sidebar-filter-checkbox {
    margin: 0.625rem 0;
}

.modou-sidebar-show-all,
.modou-sidebar-show-more {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    margin-top: 12px;
    cursor: pointer;
    color: #2563eb;
    text-decoration: underline;
    font-family: var(--font-header, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-size: 1rem;
    font-weight: 400;
    display: block;
    width: 100%;
    text-align: left;
}

.modou-sidebar-show-all:hover,
.modou-sidebar-show-more:hover {
    color: #1d4ed8;
}

/* 分类清除按钮 - 位于标题行右侧 */
.modou-category-clear {
    display: none;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #000;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: opacity 0.2s;
    margin: 0;
    padding: 0;
}

.modou-category-clear:hover {
    opacity: 0.7;
}

.modou-category-clear.show {
    display: flex;
}

.modou-category-clear-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modou-category-clear-icon svg {
    width: 100%;
    height: 100%;
}

.modou-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modou-category-list li {
    margin: 0 0 2px 0;
}

.modou-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    color: #000;
    text-decoration: none;
    border-radius: 0;
    transition: color 0.2s;
    font-size: 14px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modou-category-list a:hover {
    background: transparent;
    color: #000;
    text-decoration: underline;
}

.modou-category-list a.active {
    background-color: #f0fdfa;
    color: #00b894;
    font-weight: 600;
    border-left: 3px solid #00b894;
    padding-left: 9px;
    text-decoration: none;
}

.modou-category-count {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

.modou-category-list a.active .modou-category-count {
    color: #666;
}

/* 标签筛选区域 */
.modou-tag-filter {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.modou-tag-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    user-select: none;
}

.modou-tag-filter-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 折叠功能已移除 */

.modou-tag-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modou-tag-filter-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
}

.modou-tag-filter-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0 10px 0 0;
    cursor: pointer;
    accent-color: #00b894;
    flex-shrink: 0;
}

.modou-tag-filter-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: #000;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
}

.modou-tag-filter-count {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    margin-left: 8px;
}

.modou-tag-filter-show-all {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.modou-tag-filter-show-all a {
    font-size: 14px;
    color: #0066cc;
    text-decoration: underline;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modou-tag-filter-show-all a:hover {
    color: #004499;
}

/* 全部清除按钮 - 位于标题行右侧 */
.modou-tag-filter-clear {
    display: none;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #000;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: opacity 0.2s;
    margin: 0;
    padding: 0;
}

.modou-tag-filter-clear:hover {
    opacity: 0.7;
}

.modou-tag-filter-clear.show {
    display: flex;
}

.modou-tag-filter-clear-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modou-tag-filter-clear-icon svg {
    width: 100%;
    height: 100%;
}

/* 移动端分类栏 */
.modou-category-sidebar-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modou-category-sidebar-toggle:hover {
    background: #f9fafb;
}

.modou-category-sidebar-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.modou-category-sidebar-toggle.active svg {
    transform: rotate(180deg);
}

/* 主内容区域（右侧） */
.modou-category-main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.modou-category-header {
    flex: 1;
}

.modou-category-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modou-category-post-count {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
    margin-left: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modou-category-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 8px 0 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 文章网格 */
/* 分类页面网格布局 - 匹配 AppSumo */
.modou-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px; /* gap-4 */
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .modou-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
        gap: 20px; /* md:gap-5 */
    }
}

@media (min-width: 1280px) {
    .modou-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (min-width: 1536px) {
    .modou-category-grid {
        gap: 32px; /* 2xl:gap-8 */
    }
}

/* 分类卡片外层容器 */
.relative.h-full {
    position: relative;
    height: 100%;
}

/* 全卡片链接 */
.modou-category-card-link {
    position: absolute;
    height: 100%;
    width: 100%;
    font-size: 0;
    z-index: 1;
    text-decoration: none;
    top: 0;
    left: 0;
}

.modou-category-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 分类卡片 - 匹配 AppSumo 样式 */
/* [PICKED] 魔豆严选横幅样式 - 响应式比例缩放 */
.modou-card-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 使用 clamp() 和 em 单位实现响应式比例缩放 */
    padding: clamp(4px, 0.5em, 10px) clamp(8px, 1em, 18px);
    background: #0bb981;
    color: #ffffff;
    font-size: clamp(10px, 0.875em, 16px);
    font-weight: 500;
    position: absolute;
    top: 0;
    right: clamp(18px, 0.5em, 12px);
    width: auto;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(206, 243, 208, 0.5);
    /* 圆角：右上角无圆角，右下角和左下角有圆角 */
    border-radius: 0 0 clamp(8px, 0.375em, 12px) clamp(8px, 0.375em, 12px);
}

.modou-card-badge--verified {
    box-shadow: 0 2px 4px rgba(206, 243, 208, 0.5);
}

.modou-card-badge-label {
    line-height: 1.4;
    white-space: nowrap;
}

/* 搜索页横向卡片中的严选横幅 */
.modou-search-featured-image-wrapper .modou-card-badge {
    position: absolute;
    top: 0;
    right: clamp(4px, 0.5em, 12px);
    width: auto;
    /* 圆角：右上角无圆角，右下角和左下角有圆角 */
    border-radius: 0 0 clamp(8px, 0.375em, 12px) clamp(8px, 0.375em, 12px);
}

.modou-category-card {
    background: #fff;
    border-radius: 0.375rem; /* rounded */
    overflow: hidden;
    box-shadow: none; /* 移动端无阴影 */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

@media (min-width: 768px) {
    .modou-category-card {
        border: 1px solid #d1d5db; /* md:border md:border-gray-300 */
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* md:shadow-md */
    }
}

.modou-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .modou-category-card:hover {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
}

/* 图片区域 */
.modou-category-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
    /* 设置基准字体大小，用于徽章的 em 单位缩放 */
    font-size: clamp(12px, 1.5vw, 16px);
}

.modou-category-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.375rem 0.375rem 0 0; /* rounded-t */
}

/* aspect-sku-card 类 */
.aspect-sku-card {
    aspect-ratio: 16 / 9;
}

@media (max-width: 767px) {
    .modou-category-card-image-wrapper img {
        border-radius: 0.375rem; /* max-md:rounded */
    }
}

.modou-category-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem 0.375rem 0 0;
}

@media (max-width: 767px) {
    .modou-category-card-image-placeholder {
        border-radius: 0.375rem;
    }
}

.modou-category-card-placeholder-icon {
    font-size: 24px;
    color: #9ca3af;
}

/* 底部红色横幅 */
.modou-category-card-image-wrapper .bg-ready-red-dark-20 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem; /* text-xs */
    font-weight: 700;
    color: #fff;
    background-color: rgb(7 184 131); /* bg-ready-red-dark-20 */
    padding: 0.5rem 0;
    z-index: 2;
}

@media (min-width: 768px) {
    .modou-category-card-image-wrapper .bg-ready-red-dark-20 {
        font-size: 1rem; /* md:text-base */
    }
}

/* 左上角徽章 */
.modou-category-card-image-wrapper > div[style*="background: rgb(0, 0, 0)"] {
    z-index: 2;
}

/* 内容区域 */
.modou-category-card-content {
    padding: 0.5rem 0.25rem; /* pb-1 max-md:pt-2 */
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

@media (min-width: 768px) {
    .modou-category-card-content {
        padding: 1rem; /* md:p-4 */
        text-align: left; /* 保持左对齐 */
    }
}

/* 描述包装器 */
.modou-category-card-desc-wrapper {
    flex: 1;
}

@media (min-width: 768px) {
    .modou-category-card-desc-wrapper {
        flex-grow: 1;
    }
}

/* 标题 */
.modou-category-card-title {
    font-size: 0.75rem; /* max-md:text-xs */
    font-weight: 700; /* font-bold */
    color: #111827;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 显示两行 */
    -webkit-box-orient: vertical;
    text-align: left;
    min-height: 2.8em; /* 确保两行的高度 */
}

@media (min-width: 768px) {
    .modou-category-card-title {
        font-size: 1rem; /* md:text-base */
        text-align: left; /* 保持左对齐 */
        min-height: 2.8em;
    }
}

/* 分类链接 */
.modou-category-card-category {
    font-size: 0.75rem; /* max-md:text-xs */
    color: #6b7280;
    margin: 0.25rem 0;
    display: block;
    text-align: left;
}

@media (min-width: 768px) {
    .modou-category-card-category {
        text-align: left; /* 保持左对齐 */
    }
}

.modou-category-card-category-link {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.modou-category-card-category-link:hover {
    text-decoration: none;
}

/* 描述 */
.modou-category-card-desc {
    font-size: 0.75rem; /* max-md:text-xs */
    color: #6b7280;
    line-height: 1.5;
    margin: 0.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 显示两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
}

@media (min-width: 768px) {
    .modou-category-card-desc {
        font-size: 0.875rem; /* md:text-sm */
        text-align: left; /* 保持左对齐 */
    }
}

/* 价格 */
.modou-category-card-price {
    position: relative;
    margin-top: 0.5rem;
    text-align: left;
}

@media (min-width: 768px) {
    .modou-category-card-price {
        text-align: left; /* 保持左对齐 */
    }
}

.modou-category-card-price-container {
    font-weight: 500; /* font-medium */
    font-size: 1.25rem; /* md:text-2xl */
}

.modou-category-card-price-current {
    color: #111827;
    font-weight: 700;
}

.modou-category-card-price-suffix {
    font-size: 0.875rem; /* text-sm */
    font-weight: 400;
}

.modou-category-card-price-original {
    margin-left: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 400;
    text-decoration: line-through;
    color: #9ca3af; /* text-grace */
}

/* 空状态 */
.modou-category-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.modou-category-empty svg {
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.modou-category-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modou-category-empty p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 分页 */
.modou-category-pagination {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.modou-category-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.modou-category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modou-category-pagination .page-numbers:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.modou-category-pagination .page-numbers.current {
    background: #00b894;
    color: #fff;
    border-color: #00b894;
}

.modou-category-pagination .page-numbers.dots {
    border: none;
    cursor: default;
}

.modou-category-pagination .page-numbers.dots:hover {
    background: transparent;
}

/* 加载更多按钮 */
.modou-load-more-container {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.modou-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    height: 48px;
    padding: 0 24px;
    background: #00b894;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modou-load-more-btn:hover:not(:disabled) {
    background: #00a085;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.modou-load-more-btn:active:not(:disabled) {
    transform: translateY(0);
}

.modou-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modou-load-more-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modou-spinner {
    animation: modou-spin 1s linear infinite;
}

@keyframes modou-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.modou-load-more-loading-text {
    font-size: 16px;
    color: #fff;
}

/* 骨架屏样式 */
.modou-skeleton-card {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.modou-skeleton-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.375rem 0.375rem 0 0;
}

.modou-skeleton-title {
    height: 20px;
    width: 70%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.modou-skeleton-category {
    height: 14px;
    width: 40%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.modou-skeleton-desc {
    margin-bottom: 12px;
}

.modou-skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.modou-skeleton-line:first-child {
    width: 100%;
}

.modou-skeleton-line:last-child {
    width: 80%;
}

.modou-skeleton-price {
    height: 18px;
    width: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes modou-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.modou-real-content-container {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

/* 评论骨架屏样式 */
.modou-comment-skeleton {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.modou-skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
}

.modou-skeleton-author-name {
    width: 120px;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.modou-skeleton-time {
    width: 80px;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-left: 8px;
}

.modou-skeleton-action {
    width: 60px;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.modou-skeleton-text-line {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.modou-skeleton-text-line:first-child {
    width: 100%;
}

.modou-skeleton-text-line:nth-child(2) {
    width: 90%;
}

.modou-skeleton-text-line-short {
    width: 60%;
}

/* 交易记录骨架屏样式 */
.modou-transaction-skeleton {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.modou-transaction-skeleton td {
    padding: 12px !important;
}

.modou-transaction-skeleton-cell {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modou-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.modou-transaction-skeleton-cell.time {
    width: 140px;
}

.modou-transaction-skeleton-cell.type {
    width: 80px;
}

.modou-transaction-skeleton-cell.desc {
    width: 200px;
}

.modou-transaction-skeleton-cell.amount {
    width: 100px;
}

.modou-transaction-skeleton-cell.payment {
    width: 90px;
}

.modou-transaction-skeleton-cell.order {
    width: 120px;
}

.modou-transaction-skeleton-cell.status {
    width: 60px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .modou-category-page {
        padding: 24px;
    }
    
    /* Grid 样式已在顶部定义，此处移除避免冲突 */
    
    .modou-category-sidebar {
        width: 220px;
    }
    
    .modou-category-sidebar-wrapper h3 {
        font-size: 11px;
    }
    
    .modou-category-list a {
        font-size: 13px;
    }
    
    .modou-category-layout {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .modou-category-page {
        padding: 16px;
    }
    
    .modou-category-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .modou-category-sidebar {
        width: 100%;
    }
    
    .modou-category-sidebar-toggle {
        display: flex;
    }
    
    .modou-category-sidebar-wrapper {
        display: none !important; /* 移动端默认隐藏 */
        position: relative;
        top: 0;
        max-height: none;
        margin-top: 12px;
    }
    
    .modou-category-sidebar-wrapper.active {
        display: block !important; /* 移动端激活时显示 */
    }
    
    /* Grid 样式已在顶部定义，此处移除避免冲突 */
    
    .modou-category-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modou-category-sort {
        width: 100%;
        margin-top: 12px;
    }
    
    .modou-sort-dropdown {
        width: 100%;
    }
    
    .modou-sort-dropdown-button {
        width: 100%;
    }
    
    .modou-sort-dropdown-menu {
        width: 100%;
        right: 0;
    }
}

@media (max-width: 480px) {
    /* Grid 样式已在顶部定义，此处移除避免冲突 */
    
    .modou-category-header h1 {
        font-size: 24px;
    }
}

/* 覆盖：统一左侧 分类 与 标签 的字号/颜色/粗细，与AppSumo保持一致 */
.modou-category-sidebar-wrapper h3,
.modou-tag-filter-header h4 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.modou-category-list a {
    font-size: 16px !important;
    color: #5a5a5a !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    padding-left: 12px !important;
    border-left: 3px solid transparent !important;
    transition: all 0.2s !important;
}

.modou-tag-filter-item label,
.modou-tag-filter-item label span:first-child {
    font-size: 16px !important;
    color: #000 !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.modou-category-list a.active {
    font-weight: 600 !important;
    color: #00b894 !important;
    background-color: #f0fdfa !important;
    border-left: 3px solid #00b894 !important;
    padding-left: 9px !important;
}

.modou-category-count,
.modou-tag-filter-count {
    font-size: 17px !important;
    color: #666 !important;
    font-weight: 400 !important;
}

/* ============================================
   AppSumo 风格首页样式
   ============================================ */

.modou-homepage {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.modou-homepage-empty {
    text-align: center;
    padding: 80px 20px;
}

/* ============================================
   AppSumo 风格首页分类区块样式
   ============================================ */

/* Section 容器 */
.modou-homepage-section {
    margin: 2rem 0; /* my-4 */
}

.modou-homepage-section:last-child {
    margin-bottom: 0;
}

/* 主容器 */
.modou-homepage-section-container {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    padding-left: 1rem; /* pl-4 */
}

@media (min-width: 640px) {
    .modou-homepage-section-container {
        padding-left: 2rem; /* sm:pl-8 */
    }
}

/* 标题区域 */
.modou-homepage-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.1rem; /* mb-2 */
}

.modou-homepage-section-title {
    font-family: var(--font-header, inherit);
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    margin-bottom: 1rem; /* mb-4 */
    margin-top: 0;
    line-height: 1.2;
    color: #111827;
}

/* 去除包裹 h3 的 a 标签的下划线 */
.modou-homepage-section-header > a {
    text-decoration: none;
}

.modou-homepage-section-header > a:hover {
    text-decoration: none;
}

.modou-homepage-section-header > a .modou-homepage-section-title {
    text-decoration: none;
}

@media (min-width: 640px) {
    .modou-homepage-section-title {
        font-size: 1.5rem !important; /* !text-2xl */
    }
}

.modou-homepage-view-all {
    padding-right: 1rem; /* pr-4 */
    font-size: 0.875rem; /* text-sm */
    color: #2563eb; /* text-blue-600 */
    text-decoration: none !important;
}

.modou-homepage-view-all:hover {
    text-decoration: underline !important;
}

@media (min-width: 640px) {
    .modou-homepage-view-all {
        padding-right: 2rem; /* sm:pr-8 */
    }
}

/* 产品滚动容器 */
.modou-homepage-products-wrapper {
    position: relative;
}

.modou-homepage-products-scroll {
    overflow: hidden; /* viewport：隐藏溢出内容 */
    position: relative;
    user-select: none;
    -webkit-user-drag: none;
}

.modou-homepage-products-container {
    display: flex; /* 内部容器：flex 布局 */
    will-change: transform; /* 提示浏览器优化 transform */
}

.modou-homepage-products-scroll::-webkit-scrollbar {
    display: none;
}

/* 产品卡片 - 首页横向滚动容器 */
.modou-homepage-product-card {
    margin-right: 1.25rem; /* mr-5 */
    width: 300px; /* 固定宽度，与 AppSumo 一致 */
    min-width: 300px; /* 确保最小宽度 */
    max-width: 300px; /* 确保最大宽度 */
    padding-bottom: 0.5rem; /* pb-2 */
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .modou-homepage-product-card {
        width: 267px; /* max-sm:max-w-[267px] */
        min-width: 267px;
        max-width: 267px;
    }
}

/* 首页卡片内的统一卡片样式适配 */
.modou-homepage-product-card .modou-category-card {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: 0.375rem; /* rounded */
    background-color: #fff; /* bg-white */
}

@media (min-width: 768px) {
    .modou-homepage-product-card .modou-category-card {
        border: 1px solid #d1d5db; /* md:border md:border-gray-300 */
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* md:shadow-md */
    }
}

/* 首页卡片内的链接适配 */
.modou-homepage-product-card .modou-category-card-link {
    position: absolute;
    height: 100%;
    width: 100%;
    font-size: 0;
    z-index: 1;
}

.modou-homepage-product-card .modou-category-card-link::after {
    pointer-events: auto;
    position: absolute;
    inset: 0;
    z-index: 1;
    content: '';
}

/* 产品链接（覆盖整个卡片） */
.modou-homepage-product-link {
    position: absolute;
    height: 100%;
    width: 100%;
    font-size: 0;
    z-index: 1;
}

.modou-homepage-product-link::after {
    pointer-events: auto;
    position: absolute;
    inset: 0;
    z-index: 1;
    content: '';
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 首页卡片内的图片区域适配 */
.modou-homepage-product-card .modou-category-card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9; /* 固定16:9比例 */
    width: 100%;
    overflow: hidden;
}

.modou-homepage-product-card .modou-category-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem 0.375rem 0 0; /* rounded-t */
    display: block;
}

@media (max-width: 768px) {
    .modou-homepage-product-card .modou-category-card-image-wrapper img {
        border-radius: 0.375rem; /* max-md:rounded */
    }
}

.modou-homepage-product-card .modou-category-card-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem 0.375rem 0 0;
}

@media (max-width: 768px) {
    .modou-homepage-product-card .modou-category-card-image-placeholder {
        border-radius: 0.375rem;
    }
}

.modou-homepage-product-card .modou-category-card-placeholder-icon {
    font-size: 3rem;
    color: #9ca3af;
}

/* 首页卡片内的内容区域适配 */
.modou-homepage-product-card .modou-category-card-content {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    padding-bottom: 0.25rem; /* pb-1 */
    padding-top: 0.5rem; /* max-md:pt-2 */
    padding-left: 1rem; /* md:p-4 */
    padding-right: 1rem;
    text-align: left; /* max-md */
}

@media (min-width: 768px) {
    .modou-homepage-product-card .modou-category-card-content {
        padding: 1rem; /* md:p-4 */
        text-align: left; /* 保持左对齐 */
    }
}

/* AppSumo Select 标签（可选） */
.modou-homepage-product-select-badge {
    display: inline-flex;
    height: 20px;
    width: fit-content;
    max-width: 200px;
    border-radius: 0.25rem;
    background-color: #eef9f1; /* bg-[#eef9f1] */
    padding: 0.25rem 0.5rem;
    order: 1; /* max-md:order-1 */
    margin-top: 0.5rem; /* max-md:mt-2 */
    margin-bottom: 0.25rem; /* md:mb-1 */
    margin-left: auto; /* md:mx-auto */
    margin-right: auto;
}

@media (min-width: 768px) {
    .modou-homepage-product-select-badge {
        order: 0;
        margin-top: 0;
    }
}

/* 首页卡片内的标题适配 */
.modou-homepage-product-card .modou-category-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多显示2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    font-size: 0.75rem; /* max-md:text-xs */
    color: #111827;
    line-height: 1.4;
    margin: 0;
    min-height: 2.8em; /* 确保2行的高度 */
    text-align: left !important; /* 标题靠左显示 */
}

@media (min-width: 768px) {
    .modou-homepage-product-card .modou-category-card-title {
        font-size: 1rem;
        min-height: 2.8em;
        text-align: left !important; /* 标题靠左显示 */
    }
}

/* 首页卡片内的分类链接适配 */
.modou-homepage-product-card .modou-category-card-category {
    font-size: 0.75rem; /* max-md:text-xs */
    color: #6b7280;
    display: block;
    margin: 0.25rem 0;
}

.modou-homepage-product-card .modou-category-card-category-link {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.modou-homepage-product-card .modou-category-card-category-link:hover {
    text-decoration: none;
}

/* 首页卡片内的描述适配 */
.modou-homepage-product-card .modou-category-card-desc-wrapper {
    flex-grow: 1; /* md:grow */
    margin: 0.25rem 0; /* my-1 */
    width: 100%; /* 确保宽度为100% */
    min-width: 0; /* 允许flex子元素收缩 */
    max-width: 100%; /* 确保不超过容器宽度 */
}

.modou-homepage-product-card .modou-category-card-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* 最多显示2行 */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.75rem; /* max-md:text-xs */
    color: #6b7280;
    line-height: 1.5 !important;
    margin: 0;
    word-break: normal !important; /* 正常换行，只在单词边界换行 */
    overflow-wrap: break-word !important; /* 允许长单词在必要时换行 */
    hyphens: none !important; /* 禁用自动断字，让文本自然换行 */
    white-space: normal !important; /* 确保允许换行 */
    width: 100% !important; /* 确保宽度为100% */
    max-width: 100% !important; /* 确保不超过容器宽度 */
    box-sizing: border-box !important;
    text-align: left !important; /* 摘要靠左显示 */
    /* 确保有足够的高度显示2行 */
    min-height: 2.25rem; /* 0.75rem * 1.5 * 2 = 2.25rem */
}

@media (min-width: 768px) {
    .modou-homepage-product-card .modou-category-card-desc {
        font-size: 0.875rem;
        text-align: left !important; /* 摘要靠左显示 */
        min-height: 2.625rem; /* 0.875rem * 1.5 * 2 = 2.625rem */
    }
}

/* 首页卡片内的价格适配 */
.modou-homepage-product-card .modou-category-card-price {
    font-weight: 500; /* font-medium */
    font-size: 1.25rem; /* md:text-2xl */
    margin-top: 0.5rem;
    text-align: left;
}

@media (min-width: 768px) {
    .modou-homepage-product-card .modou-category-card-price {
        font-size: 1.5rem;
        text-align: left; /* 保持左对齐 */
    }
}

.modou-homepage-product-card .modou-category-card-price-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    justify-content: flex-start;
}

.modou-homepage-product-card .modou-category-card-price-current {
    color: #111827;
    font-weight: 700;
}

.modou-homepage-product-card .modou-category-card-price-suffix {
    font-size: 0.875rem; /* text-sm */
    font-weight: 400; /* font-normal */
    color: #6b7280;
}

.modou-homepage-product-card .modou-category-card-price-original {
    margin-left: 0.5rem; /* ml-2 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 400; /* font-normal */
    text-decoration: line-through; /* line-through */
    color: #9ca3af; /* text-grace */
}

/* 滚动按钮 */
.modou-homepage-scroll-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: none;
    height: 2.5rem; /* h-10 */
    width: 2.5rem;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 9999px; /* rounded-full */
    background-color: #021515; /* bg-midnight */
    color: #fff;
    border: none;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modou-homepage-scroll-btn-left {
    left: 1.25rem; /* left-5 */
}

.modou-homepage-scroll-btn-right {
    right: 1.25rem; /* right-5 */
}

@media (min-width: 768px) {
    .modou-homepage-scroll-btn {
        display: flex; /* md:flex */
    }
    
    /* 鼠标悬停在容器上时显示按钮 */
    .modou-homepage-section-container:hover .modou-homepage-scroll-btn {
        opacity: 1;
    }
}

.modou-homepage-scroll-btn-icon {
    width: 1rem;
    height: 1rem;
    color: #fff;
}

.modou-homepage-scroll-btn:hover:not(:disabled) {
    background-color: #1a2e2e;
}

.modou-homepage-scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .modou-homepage-section-container {
        padding-left: 1rem;
    }
    
    .modou-homepage-product-card {
        max-width: 267px;
    }
}

/* ============================================
   AppSumo 风格 Banner 样式
   ============================================ */

.modou-banner {
    width: 100%;
    background-color: #000000; /* AppSumo 使用黑色背景 */
    /* 背景图像通过内联样式和 JavaScript 动态设置 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden; /* AppSumo 使用 overflow-hidden */
    height: 686px; /* h-[686px] */
    padding: 16px 0; /* py-4 */
    position: relative;
}

@media (min-width: 640px) {
    .modou-banner {
        height: 778px; /* sm:h-[778px] */
    }
}

@media (min-width: 768px) {
    .modou-banner {
        height: 804px; /* md:h-[804px] */
        padding: 24px 0; /* md:py-6 */
    }
}

@media (min-width: 1024px) {
    .modou-banner {
        height: 470px; /* lg:h-[470px] */
    }
}

.modou-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px; /* gap-y-4 - AppSumo 使用 16px 垂直间距 */
    height: auto; /* h-auto */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (min-width: 640px) {
    .modou-banner-container {
        flex-direction: row;
        align-items: flex-start; /* sm:items-start */
        gap: 70px; /* sm:gap-x-[70px] - AppSumo 使用 70px 水平间距 */
        padding: 0 16px;
    }
}

@media (min-width: 1024px) {
    .modou-banner-container {
        margin-left: 100px; /* lg:ml-[100px] */
        padding: 0 16px;
        max-width: calc(100% - 100px);
        width: calc(100% - 100px);
        flex-direction: row; /* lg:flex-row */
        align-items: center;
    }
}

/* 左侧文字内容 - 完全匹配 AppSumo 样式 */
.modou-banner-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-shrink: 0;
    gap: 16px; /* gap-y-4 */
    padding: 0 16px; /* px-4 */
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* 确保文字在背景图像之上 */
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中（移动端） */
}

@media (min-width: 640px) {
    .modou-banner-content {
        width: auto;
        max-width: 512px; /* max-w-lg */
        text-align: left;
        align-items: flex-start; /* 小屏幕以上左对齐 */
    }
}

@media (min-width: 1024px) {
    .modou-banner-content {
        height: 100%;
        justify-content: center; /* lg:justify-center - 垂直居中 */
        align-items: flex-start; /* 左对齐 */
        padding: 0 16px; /* lg:px-4 */
    }
}

/* 标题区域（包含图片） */
.modou-banner-title-wrapper {
    font-family: var(--font-header, inherit);
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    /* line-clamp-3 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .modou-banner-title-wrapper {
        font-size: 40px;
        line-height: 52px;
    }
}

/* 标题图片容器 */
.modou-banner-title-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.25rem; /* pt-1 */
    padding-bottom: 0.5rem; /* pb-2 */
}

@media (min-width: 768px) {
    .modou-banner-title-image-container {
        display: block;
    }
}

/* 标题图片 */
.modou-banner-title-image {
    padding-top: 0;
}

.modou-banner-title-image-mobile {
    display: block;
}

@media (min-width: 768px) {
    .modou-banner-title-image-mobile {
        display: none;
    }
}

.modou-banner-title-image-desktop {
    display: none;
}

@media (min-width: 768px) {
    .modou-banner-title-image-desktop {
        display: block;
    }
}

.modou-banner-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    margin: 0;
    padding-top: 0;
    color: #fbbf24; /* AppSumo 黄色标题 */
}

@media (min-width: 640px) {
    .modou-banner-title {
        font-size: 40px;
        line-height: 52px;
    }
}

.modou-banner-title-highlight {
    color: #fbbf24; /* dollar color - 金色高亮 */
}

/* 副标题区域 */
.modou-banner-subtitle-wrapper {
    font-size: 16px;
    /* line-clamp-3 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .modou-banner-subtitle-wrapper {
        font-size: 18px; /* sm:text-lg */
    }
}

.modou-banner-subtitle {
    margin: 0;
    color: #FFFFFF;
}

/* 按钮区域 */
.modou-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 16px; /* gap-y-4 */
    text-align: left;
}

/* 按钮样式 - 完全匹配 AppSumo */
.modou-banner-button {
    display: inline-block;
    border: 2px solid transparent;
    background-color: #fbbf24; /* bg-dorado */
    color: #021515; /* text-midnight */
    padding: 8px 24px; /* px-6 py-2 */
    font-weight: 700;
    border-radius: 9999px; /* rounded-full */
    font-family: var(--font-header, inherit);
    text-decoration: none;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
}

.modou-banner-button:hover {
    border-color: #fde047; /* hover:border-lemon */
    background-color: #fde047; /* hover:bg-lemon */
}

.modou-banner-button:focus-visible {
    border-color: #000; /* focus-visible:border-black-pearl */
    background-color: #fde047; /* focus-visible:bg-lemon */
    outline: none;
}

.modou-banner-button:active {
    border-color: #f59e0b; /* active:border-sunset */
    background-color: #f59e0b; /* active:bg-sunset */
}

@media (min-width: 640px) {
    .modou-banner-button {
        width: auto; /* sm:w-fit */
    }
}

/* 右侧产品卡片轮播 */
.modou-banner-carousel-wrapper {
    width: 100%;
    padding-left: 16px; /* pl-4 */
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px; /* 增加高度：卡片380px + 按钮区域40px */
    overflow: visible; /* 允许显示所有卡片 */
    padding-bottom: 50px; /* 为底部按钮留出空间 */
}

@media (min-width: 640px) {
    .modou-banner-carousel-wrapper {
        width: auto;
        flex: 1;
        /* 移除宽度限制，允许显示所有卡片 */
        max-width: none; /* 不限制最大宽度 */
        min-width: 0; /* 允许收缩 */
    }
}

.modou-banner-carousel {
    overflow: hidden; /* viewport：隐藏溢出内容 */
    position: relative;
    user-select: none;
    -webkit-user-drag: none;
    flex: 1;
    width: 100%; /* 确保不超出容器 */
}

.modou-banner-carousel-container {
    display: flex; /* 内部容器：flex 布局 */
    gap: 0; /* 卡片之间没有 gap，使用 margin-right */
    will-change: transform; /* 提示浏览器优化 transform */
}

.modou-banner-carousel::-webkit-scrollbar {
    display: none;
}

/* 产品卡片 - 完全匹配 AppSumo 样式 */
.modou-banner-card {
    position: relative;
    flex: 0 0 300px; /* w-[300px] - AppSumo 卡片宽度 300px */
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 8px; /* gap-y-2 - AppSumo 使用 8px 垂直间距 */
    border-radius: 8px; /* rounded - AppSumo 圆角 */
    border-top: 4px solid #fbbf24; /* border-t-4 border-t-dollar - AppSumo 金色顶部边框 */
    background-color: #1a2e2e; /* bg-forest - AppSumo 深绿色背景 */
    padding: 16px; /* p-4 - AppSumo 使用 16px 内边距 */
    margin-right: 16px; /* mr-4 */
    color: #fff; /* text-white */
    box-sizing: border-box;
}

.modou-banner-card-link {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    font-size: 0;
    z-index: 1;
}

.modou-banner-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: auto;
    z-index: 1;
}

.modou-banner-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px; /* gap-y-2 - AppSumo 使用 8px 垂直间距 */
    flex-grow: 1;
    position: relative;
    z-index: 0;
    height: 100%;
    box-sizing: border-box;
}

.modou-banner-card-desc-wrapper {
    flex-grow: 1; /* grow - 占用可用空间 */
}

.modou-banner-card-desc {
    margin: 0;
    font-size: 14px; /* text-sm */
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* line-clamp-2 - 移动端显示 2 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* grow - 占用可用空间 */
    color: #fff; /* text-white */
    opacity: 0.9;
}

@media (min-width: 640px) {
    .modou-banner-card-desc {
        -webkit-line-clamp: 3; /* sm:line-clamp-3 - 桌面端显示 3 行 */
    }
}

.modou-banner-card-title {
    font-size: 14px; /* text-sm */
    font-weight: 700; /* font-bold */
    margin: 0;
    line-height: 1.4;
    color: #fff; /* text-white */
    font-family: var(--font-header, inherit); /* font-header */
    flex-grow: 0;
}

.modou-banner-card-price {
    display: flex;
    align-items: baseline;
    gap: 16px; /* gap-x-4 - AppSumo 使用 16px 水平间距 */
    flex-grow: 0;
    margin: 0;
}

.modou-banner-price-container {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.modou-banner-price-current {
    font-size: 16px; /* text-base - AppSumo 使用 16px */
    font-weight: 700; /* font-bold */
    color: #fbbf24; /* text-dollar - AppSumo 黄色价格 */
    line-height: 1.2; /* leading-tight */
}

.modou-banner-price-suffix {
    font-size: 14px; /* text-sm - AppSumo 使用 14px */
    font-weight: 400; /* font-normal */
    color: #fff; /* text-white */
    margin-left: 0; /* 移除额外 margin */
}

.modou-banner-price-original {
    font-size: 14px; /* text-sm */
    font-weight: 400; /* font-normal */
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 8px; /* ml-2 */
}

/* 倒计时标签 - bg-brick px-4 py-2 rounded-full text-white font-medium */
.modou-banner-card-countdown {
    display: flex;
    flex-grow: 0;
}

.modou-banner-countdown-badge {
    background-color: #dc2626; /* bg-brick - AppSumo 红色背景 */
    padding: 8px 16px; /* px-4 py-2 */
    border-radius: 9999px; /* rounded-full */
    color: #fff; /* text-white */
    font-weight: 500; /* font-medium */
}

.modou-banner-countdown-badge h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

/* 图片容器和徽章 */
.modou-banner-card-image-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-top: auto; /* 推到底部 */
}

.modou-banner-card-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* aspect-sku-card */
    overflow: hidden;
    position: relative;
}

.modou-banner-card-image-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.modou-banner-card-image img.aspect-sku-card {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* 移动端图片有圆角 */
@media (max-width: 767px) {
    .modou-banner-card-image img.aspect-sku-card {
        border-radius: 8px; /* max-md:rounded */
    }
}

/* 图片徽章 - absolute left-0 top-0 rounded-br rounded-tl */
.modou-banner-card-badge {
    position: absolute;
    left: 0;
    top: 0;
    border-bottom-right-radius: 8px; /* rounded-br */
    border-top-left-radius: 8px; /* rounded-tl */
    background-color: rgb(0, 0, 0); /* background: rgb(0, 0, 0) */
    z-index: 2;
    padding: 4px; /* m-1 */
}

.modou-banner-badge-img {
    width: 64px; /* w-16 */
    height: auto;
    display: block;
}

@media (min-width: 1024px) {
    .modou-banner-badge-img {
        width: 96px; /* lg:w-24 */
    }
}

/* 图片相关样式已在上方定义，删除重复 */

.modou-banner-card-image-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0; /* 默认无圆角 */
}

/* 移动端占位符有圆角，桌面端无圆角 */
@media (max-width: 767px) {
    .modou-banner-card-image-placeholder {
        border-radius: 8px;
    }
}

.modou-banner-card-placeholder-icon {
    font-size: 48px;
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.5);
}

/* 滚动箭头按钮 - mt-4 flex h-8 gap-2 max-sm:hidden flex-row */
.modou-banner-arrows {
    display: flex;
    margin-top: 16px; /* mt-4 */
    height: 32px; /* h-8 */
    gap: 8px; /* gap-2 */
    flex-direction: row; /* flex-row */
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    pointer-events: auto;
    z-index: 10;
}

/* 小屏幕隐藏箭头 - max-sm:hidden */
@media (max-width: 639px) {
    .modou-banner-arrows {
        display: none;
    }
}

.modou-banner-arrow {
    width: 32px; /* h-8 w-8 */
    height: 32px;
    border-radius: 50%; /* rounded-full */
    background-color: #fbbf24; /* bg-dollar - AppSumo 金色背景 */
    color: #021515; /* text-black-pearl - AppSumo 深色文字 */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.modou-banner-arrow:hover:not(:disabled) {
    background-color: #fde047; /* hover:bg-lemon - AppSumo 浅黄色悬停 */
    border-color: #fde047; /* hover:border-lemon */
}

.modou-banner-arrow:focus-visible {
    outline: none;
    border-color: #000; /* focus-visible:border-black-pearl */
    background-color: #fde047; /* focus-visible:bg-lemon */
}

.modou-banner-arrow:active:not(:disabled) {
    border-color: #f59e0b; /* active:border-sunset */
    background-color: #f59e0b; /* active:bg-sunset */
}

.modou-banner-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modou-banner-arrow svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: currentColor;
    display: block;
    pointer-events: none;
}

/* 屏幕阅读器专用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   搜索页第一个结果横向卡片样式（AppSumo风格）
   ============================================ */

.modou-search-featured-card {
    margin-bottom: 2rem; /* mb-8 */
}

.modou-search-featured-container {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #84cc16; /* border-lime */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}

@media (min-width: 640px) {
    .modou-search-featured-container {
        flex-direction: row; /* sm:flex-row */
    }
}

@media (min-width: 768px) {
    .modou-search-featured-container {
        align-items: center; /* md:items-center */
    }
}

/* 左侧图片区域 */
.modou-search-featured-image-section {
    display: flex;
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    flex-direction: column;
    position: relative;
}

@media (min-width: 640px) {
    .modou-search-featured-image-section {
        max-width: 250px; /* sm:max-w-[250px] */
    }
}

@media (min-width: 1024px) {
    .modou-search-featured-image-section {
        max-width: 450px; /* lg:max-w-[450px] */
    }
}

/* 倒计时横幅（浮在图片上层，显示在图片底部） */
.modou-search-featured-countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background-color: rgba(220, 38, 38, 0.8);
    z-index: 10;
    padding: 0.5rem 0;
}

@media (min-width: 768px) {
    .modou-search-featured-countdown {
        font-size: 1rem;
    }
}

/* AppSumo Select 和最佳匹配在同一行 */
.modou-search-featured-badges-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 最佳匹配徽章（右侧内容区域） */
.modou-search-featured-best-match {
    display: flex;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #6ad989;
    padding: 0.5rem;
    border-radius: 0.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #000;
    flex-shrink: 0;
}

.modou-search-featured-best-match img {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.modou-search-featured-best-match strong {
    font-weight: 700;
    vertical-align: middle;
}

/* 图片包装器 */
.modou-search-featured-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* 设置基准字体大小，用于徽章的 em 单位缩放 */
    font-size: clamp(12px, 1.5vw, 16px);
}

.modou-search-featured-image-link {
    position: absolute;
    height: 100%;
    width: 100%;
    font-size: 0;
    z-index: 1;
}

.modou-search-featured-image-link::after {
    pointer-events: auto;
    position: absolute;
    inset: 0;
    z-index: 1;
    content: '';
}

.modou-search-featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

@media (max-width: 768px) {
    .modou-search-featured-image-wrapper img {
        border-radius: 0.375rem;
    }
}

.modou-search-featured-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

@media (max-width: 768px) {
    .modou-search-featured-image-placeholder {
        border-radius: 0.375rem;
    }
}

.modou-search-featured-placeholder-icon {
    font-size: 3rem;
    color: #9ca3af;
}

/* 右侧内容区域 */
.modou-search-featured-content {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .modou-search-featured-content {
        gap: 0.5rem;
        padding: 1rem;
    }
}

/* AppSumo Select 标签（右侧内容区域） */
.modou-search-featured-select-badge {
    display: inline-flex;
    height: 20px;
    width: fit-content;
    max-width: 200px;
    border-radius: 0.25rem;
    background-color: #eef9f1;
    padding: 0.25rem 0.5rem;
    flex-shrink: 0;
}

.modou-search-featured-select-badge img {
    width: 128px;
    height: 12px;
    display: block;
}

/* 标题区域 */
.modou-search-featured-title-section {
    display: flex;
    flex-direction: column;
}

.modou-search-featured-title-link {
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.modou-search-featured-title-link:hover {
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .modou-search-featured-title-link {
        margin-right: 136px;
        font-size: 1.5rem;
    }
}

.modou-search-featured-title {
    display: inline-block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modou-search-featured-category {
    font-size: 0.75rem;
    color: #6b7280;
}

@media (min-width: 1024px) {
    .modou-search-featured-category {
        display: none; /* lg:hidden */
    }
}

.modou-search-featured-category-link {
    position: relative;
    z-index: 1;
    text-decoration: underline;
    color: inherit;
}

/* 描述 */
.modou-search-featured-desc {
    margin: 0.25rem 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .modou-search-featured-desc {
        font-size: 0.875rem;
    }
}

/* 价格 */
.modou-search-featured-price {
    font-size: 0.875rem;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .modou-search-featured-price {
        font-size: 1.5rem;
    }
}

.modou-search-featured-price-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modou-search-featured-price-current {
    color: #111827;
    font-weight: 700;
}

.modou-search-featured-price-suffix {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
}

.modou-search-featured-price-original {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: line-through;
}

/* 评分、评价和查看详情在同一行 */
.modou-search-featured-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

/* 评分和评价 */
.modou-search-featured-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.modou-search-featured-rating-stars {
    display: flex;
    align-items: center;
    height: 1.5rem;
}

.modou-search-featured-rating-stars span {
    font-size: 1.125rem;
    color: #fbbf24;
    line-height: 1;
}

.modou-search-featured-reviews-link {
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
    cursor: pointer;
    z-index: 2;
    white-space: nowrap;
}

.modou-search-featured-reviews-link:hover {
    text-decoration: underline;
}

/* 查看详情按钮 */
.modou-search-featured-actions {
    flex-shrink: 0;
}

.modou-search-featured-button {
    display: inline-block;
    border: 2px solid transparent;
    background-color: #fbbf24; /* bg-dorado */
    color: #021515; /* text-midnight */
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    border-radius: 9999px;
    font-family: var(--font-header, inherit);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.modou-search-featured-button:hover {
    border-color: #fde047; /* hover:border-lemon */
    background-color: #fde047; /* hover:bg-lemon */
}

.modou-search-featured-button:focus-visible {
    outline: none;
    border-color: #021515; /* focus-visible:border-black-pearl */
    background-color: #fde047; /* focus-visible:bg-lemon */
}

.modou-search-featured-button:active {
    border-color: #f59e0b; /* active:border-sunset */
    background-color: #f59e0b; /* active:bg-sunset */
}

@media (max-width: 1024px) {
    .modou-search-featured-button {
        display: none; /* max-lg:hidden */
    }
}

/* 视频文章区域样式（footer上方） */
.modou-videos-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    background: #fff;
}

/* 视频区域标题和描述 */
.modou-videos-header {
    width: 100%;
    background-color: #fff;
}

.modou-videos-header-content {
    margin: 0 auto;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    max-width: 672px;
}

@media (min-width: 640px) {
    .modou-videos-header-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.modou-videos-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modou-videos-header-title {
    font-family: var(--font-header, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-size: 1.625rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

.modou-videos-header-description {
    text-align: center;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .modou-videos-header-title {
        font-size: 2.25rem;
    }
}

.modou-videos-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .modou-videos-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1536px) {
    .modou-videos-container {
        padding-left: 2rem;
        padding-right: 0;
    }
}

.modou-videos-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
    margin: 0;
    padding: 0;
}

.modou-videos-camera {
    display: flex;
    gap: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    margin: 0;
    padding: 0;
}

.modou-video-card {
    flex-shrink: 0;
    margin-right: 1rem;
    max-width: 326px;
    padding-bottom: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 326px;
    position: relative;
}

@media (min-width: 768px) {
    .modou-video-card {
        margin-right: 2rem;
        max-width: 384px;
        width: 384px;
    }
}

.modou-video-card-inner {
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: background-color 0.2s;
}

.modou-video-card-inner:hover {
    background-color: inherit;
}

.modou-video-card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 326px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .modou-video-card-image-wrapper {
        max-width: 384px;
    }
}

.modou-video-card-image {
    position: absolute;
    inset: 0;
    aspect-ratio: 16 / 9;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.modou-video-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    min-height: 100px;
}

.modou-video-card-title {
    font-family: var(--font-header, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    margin-bottom: 0.25rem;
    color: #111827;
    min-height: 3.5rem;
    flex-shrink: 0;
}

.modou-video-card-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    text-align: left;
    flex-shrink: 0;
}

.modou-video-card-meta-item {
    display: flex;
    align-items: center;
    min-height: 1.5rem;
}

.modou-video-youtube-icon {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.modou-video-card-date {
    font-size: 0.875rem;
    color: #1f2937;
    line-height: 1.5rem;
}

.modou-videos-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.modou-videos-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #021515;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}

.modou-videos-nav-btn:hover {
    opacity: 0.9;
}

.modou-videos-nav-btn svg {
    width: 1rem;
    height: 1rem;
}

.modou-videos-nav-prev {
    left: 1.25rem;
}

.modou-videos-nav-next {
    right: 1.25rem;
}

@media (min-width: 768px) {
    .modou-videos-nav-btn {
        display: flex;
    }
    
    /* 鼠标悬停在容器上时显示按钮 */
    .modou-videos-container:hover .modou-videos-nav-btn {
        opacity: 1;
    }
}

@media (min-width: 1536px) {
    .modou-videos-nav-prev {
        left: 0.25rem;
    }
    
    .modou-videos-nav-next {
        right: 0.25rem;
    }
}

.modou-video-card-link {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    text-indent: -9999px;
    z-index: 1;
}
