/* =============================================
   搞笑段子 - 独立样式
   ============================================= */

/* ===== Hero ===== */
.j-hero {
  text-align: center;
  padding: 64px 16px 48px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
}

.j-hero-title {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 700;
}

.j-hero-desc {
  font-size: 16px;
  opacity: .85;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ===== Category Tabs ===== */
.j-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.j-tab {
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
}

.j-tab:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-1px);
}

.j-tab.active {
  background: #fff;
  color: #ee5a24;
  font-weight: 600;
}

/* ===== Main Section ===== */
.j-section {
  padding: 48px 0;
  background: #fef9f7;
  min-height: 400px;
}

.j-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Joke Cards Grid ===== */
.j-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* ===== Single Card ===== */
.j-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px 20px;
  box-shadow: 0 2px 12px rgba(238,90,36,.08);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(238,90,36,.06);
}

.j-card:hover {
  transform: translateY(-4px) rotate(-.3deg);
  box-shadow: 0 12px 32px rgba(238,90,36,.15);
}

/* 分类微色调 */
.j-card-cat-暧昧期 {
  border-left: 4px solid #ff6b6b;
}

.j-card-cat-热恋期 {
  border-left: 4px solid #fd79a8;
}

.j-card-cat-老夫老妻 {
  border-left: 4px solid #fdcb6e;
}

.j-card-cat-单身自嘲 {
  border-left: 4px solid #74b9ff;
}

/* ===== Card Content ===== */
.j-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.j-card-setup {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  flex: 1;
  transition: opacity .3s;
}

.j-card-punchline {
  font-size: 16px;
  line-height: 1.7;
  color: #ee5a24;
  font-weight: 700;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px dashed rgba(238,90,36,.15);
  display: none;
  animation: jReveal .4s ease;
}

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

.j-card.flipped .j-card-setup {
  opacity: .6;
}

.j-card.flipped .j-card-punchline {
  display: block;
}

/* 点击提示 */
.j-card-hint {
  font-size: 11px;
  color: #ccc;
  text-align: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  transition: opacity .3s;
}

.j-card.flipped .j-card-hint {
  opacity: 0;
}

/* ===== Card Footer ===== */
.j-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.j-card-tag {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
  color: #888;
  background: rgba(0,0,0,.04);
}

.j-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.j-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s;
  background: transparent;
  color: #999;
}

.j-card-btn:hover {
  background: #f0f0f0;
}

.j-card-btn-copy {
  color: #666;
}

.j-card-btn-copy:hover {
  background: #e8f0fe;
  color: #1a73e8;
}

.j-card-btn-like {
  color: #ff6b6b;
}

.j-card-btn-like:hover {
  background: #ffe0e0;
}

.j-card-btn-like.liked {
  color: #ee5a24;
}

.j-card-like-count {
  font-size: 12px;
  min-width: 12px;
}

/* ===== Load More ===== */
.j-load-more-wrap {
  text-align: center;
  padding: 20px 0 8px;
}

.j-load-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 40px;
  font-size: 15px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  font-weight: 500;
}

.j-load-more:hover {
  opacity: .9;
  transform: translateY(-2px);
}

.j-load-more:disabled {
  opacity: .5;
  cursor: default;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .j-hero-title { font-size: 26px; }
  .j-grid { grid-template-columns: 1fr; }
  .j-tabs { gap: 6px; }
  .j-tab { font-size: 13px; padding: 6px 14px; }
}

@media (max-width: 480px) {
  .j-hero { padding: 48px 16px 36px; }
  .j-section { padding: 32px 0; }
  .j-card { padding: 20px 16px; }
}
