/*
Theme Name: Watermelon News（猛兽吃瓜）
Theme URI: https://example.com/watermelon-news
Description: 猛兽派对粉丝情报站——吃瓜、爆料、沙雕时刻一网打尽。活泼有趣的卡片式布局，支持用户爆料投稿与审核。
Version: 1.0.0
Author: Watermelon News Team
License: GPL-2.0-or-later
Text Domain: watermelon-news
*/

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

:root {
  --melon-rind: #2d8a4e;
  --melon-flesh: #ff4d4d;
  --melon-light: #ff6b6b;
  --melon-seed: #1a1a2e;
  --cream: #fff8f0;
  --warm-yellow: #ffe066;
  --soft-pink: #ffb3ba;
  --sky-blue: #a8d8ea;
  --lavender: #c3aed6;
  --coral: #ff8a65;
  --mint: #a3e4bc;
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-card: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-bounce: 0 8px 32px rgba(255,77,77,0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: var(--cream);
  color: #3d2c2c;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Decorative Background ===== */
body::before {
  content: '';
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,179,186,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,216,234,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,248,240,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(255,179,186,0.3);
  padding: 14px 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--melon-flesh);
  letter-spacing: -0.02em;
}
.nav-logo .logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--melon-flesh), var(--melon-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 4px 12px rgba(255,77,77,0.3);
  animation: logo-bounce 2s ease-in-out infinite;
}
@keyframes logo-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #5c4444;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--soft-pink);
  color: var(--melon-flesh);
}

/* ===== Hero Banner ===== */
.hero {
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--melon-flesh), var(--coral));
  color: #fff;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
  box-shadow: var(--shadow-bounce);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #2d1f1f;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.hero h1 .hl {
  background: linear-gradient(135deg, var(--melon-flesh), #ff8a65);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: #7a6565;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-tip-btn {
  display: inline-block;
  padding: 16px 48px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--melon-flesh), #ff8a65);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-bounce);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.hero-tip-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,77,77,0.35);
}
.hero-tip-btn:active {
  transform: translateY(0);
}

/* ===== Paw Print Divider ===== */
.paw-divider {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 30px;
  opacity: 0.5;
  font-size: 1.2rem;
  letter-spacing: 6px;
  color: var(--soft-pink);
}

/* ===== Main Layout ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding-bottom: 80px;
}

/* ===== Section Title ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.section-title h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2d1f1f;
}
.section-title .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.section-title .icon.watermelon {
  background: linear-gradient(135deg, var(--melon-flesh), var(--melon-light));
}
.section-title .icon.fire {
  background: linear-gradient(135deg, var(--coral), var(--warm-yellow));
}
.section-title .icon.star {
  background: linear-gradient(135deg, var(--warm-yellow), #ffd700);
}

/* ===== News Cards ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.news-card:active {
  transform: translateY(-2px);
}
.card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.card-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.05));
}
.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--melon-flesh);
  z-index: 2;
}
.card-body {
  padding: 20px;
}
.card-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2d1f1f;
  line-height: 1.4;
}
.card-body h3 a {
  color: inherit;
  text-decoration: none;
}
.card-body h3 a:hover {
  color: var(--melon-flesh);
}
.card-body p {
  font-size: 0.88rem;
  color: #8a7575;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: #b5a0a0;
}
.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Card image backgrounds ===== */
.bg-coral { background: linear-gradient(135deg, #ffe0d5, #ffccbc); }
.bg-sky { background: linear-gradient(135deg, #d4edf7, #b3e0f2); }
.bg-mint { background: linear-gradient(135deg, #d4f0e0, #b7e4cf); }
.bg-lavender { background: linear-gradient(135deg, #e8dff5, #d5c8e8); }
.bg-yellow { background: linear-gradient(135deg, #fff3cd, #ffe69c); }
.bg-pink { background: linear-gradient(135deg, #ffe0ec, #ffccd5); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.sidebar-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2d1f1f;
}

/* Hot Topics */
.hot-list { list-style: none; }
.hot-list li { counter-increment: hot; }
.hot-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f5ecec;
  text-decoration: none;
  color: #3d2c2c;
  transition: color 0.15s;
  font-size: 0.9rem;
  font-weight: 600;
}
.hot-list a:hover { color: var(--melon-flesh); }
.hot-list a::before {
  content: counter(hot);
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--soft-pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hot-list li:first-child a::before { background: var(--melon-flesh); }
.hot-list li:nth-child(2) a::before { background: var(--coral); }
.hot-list li:nth-child(3) a::before { background: var(--warm-yellow); color: #5c4444; }

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.tag:hover { transform: scale(1.06); }
.tag:active { transform: scale(0.97); }
.tag.active {
  transform: scale(1.06);
  filter: brightness(0.85);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}
.tag-pink { background: #ffe0ec; color: #d44a6a; }
.tag-orange { background: #ffe8d5; color: #e06a3a; }
.tag-blue { background: #d4edf7; color: #3a8abf; }
.tag-green { background: #d4f0e0; color: #3a8a5c; }
.tag-purple { background: #e8dff5; color: #7a5cbf; }
.tag-yellow { background: #fff3cd; color: #b8860b; }

/* WeChat / Subscribe */
.subscribe-box {
  background: linear-gradient(135deg, var(--soft-pink), #ffccd5);
}
.subscribe-box h3 { color: #6b2d3a; }
.subscribe-box p {
  font-size: 0.88rem;
  color: #6b2d3a;
  margin-bottom: 16px;
  opacity: 0.85;
}
.sub-btn {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  background: var(--melon-flesh);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255,77,77,0.3);
}
.sub-btn:hover {
  background: #e04444;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,77,77,0.4);
}
.sub-btn:active { transform: translateY(0); }

/* ===== Footer ===== */
.footer {
  background: #2d1f1f;
  color: #c4b0b0;
  padding: 48px 0 32px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--melon-light);
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  color: #a89090;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--soft-pink); }
.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 28px;
  font-size: 0.8rem;
  color: #6b5a5a;
}



/* ===== Floating Decorative Elements ===== */
.float-paw {
  position: fixed;
  pointer-events: none;
  opacity: 0.12;
  font-size: 2rem;
  z-index: 0;
  animation: drift 20s linear infinite;
}
.float-paw:nth-child(1) { top: 15%; left: 5%; animation-delay: 0s; }
.float-paw:nth-child(2) { top: 35%; right: 3%; animation-delay: -5s; font-size: 1.5rem; }
.float-paw:nth-child(3) { top: 65%; left: 8%; animation-delay: -10s; font-size: 1.8rem; }
.float-paw:nth-child(4) { top: 80%; right: 6%; animation-delay: -15s; }

@keyframes drift {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
  75% { transform: translateY(-40px) rotate(4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ===== Single Article Page ===== */
.article-header {
  margin-bottom: 28px;
}
.article-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.article-tag.tag-hot { background: #ffe0ec; color: var(--melon-flesh); }
.article-tag.tag-update { background: #d4edf7; color: #3a8abf; }
.article-tag.tag-event { background: #d4f0e0; color: #3a8a5c; }
.article-tag.tag-skin { background: #e8dff5; color: #7a5cbf; }
.article-tag.tag-funny { background: #fff3cd; color: #b8860b; }
.article-tag.tag-gossip { background: #ffe0ec; color: #d44a6a; }
.article-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #2d1f1f;
  line-height: 1.35;
  margin-bottom: 14px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.85rem;
  color: #9a8585;
  flex-wrap: wrap;
}
.article-meta-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.article-cover {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body {
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.9;
  color: #3d2c2c;
}
.article-body p {
  margin-bottom: 18px;
}
.article-body h2, .article-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2d1f1f;
  margin: 32px 0 12px;
}
.article-body blockquote {
  border-left: 4px solid var(--soft-pink);
  padding: 14px 20px;
  margin: 20px 0;
  background: #fef6f8;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #6b4a4a;
  font-style: italic;
}

/* ===== Comments ===== */
.comment-section {
  max-width: 720px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #f5ecec;
}
.comment-section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #2d1f1f;
}
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #f5ecec;
}
.comment-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: #ffe0ec;
}
.comment-body { flex: 1; }
.comment-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #2d1f1f;
  margin-bottom: 4px;
}
.comment-text {
  font-size: 0.9rem;
  color: #5c4444;
  line-height: 1.6;
}
.comment-time {
  font-size: 0.78rem;
  color: #b5a0a0;
  margin-top: 6px;
}

/* ===== Comment Form ===== */
.comment-form {
  margin-bottom: 28px;
}
.comment-form-flex {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.comment-form-flex input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #f0e4e4;
  border-radius: 50px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #3d2c2c;
  background: #fefcf9;
  outline: none;
  transition: border-color 0.2s;
}
.comment-form-flex input[type="text"]:focus {
  border-color: var(--soft-pink);
}
.comment-submit {
  padding: 12px 22px;
  border-radius: 50px;
  border: none;
  background: var(--melon-flesh);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.comment-submit:hover {
  background: #e04444;
  transform: translateY(-1px);
}

/* ===== Related Posts ===== */
.related-section {
  max-width: 720px;
  margin-top: 48px;
}
.related-section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #2d1f1f;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: #3d2c2c;
  transition: all 0.2s ease;
  cursor: pointer;
}
.related-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
  color: var(--melon-flesh);
}
.related-item .related-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.related-item .related-info {
  flex: 1;
}
.related-item .related-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.related-item .related-meta {
  font-size: 0.78rem;
  color: #b5a0a0;
  margin-top: 2px;
}

/* ===== Tip Page ===== */
.tip-page {
  max-width: 560px;
  margin: 60px auto;
}
.tip-page .tip-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.tip-page h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2d1f1f;
  margin-bottom: 6px;
}
.tip-page .tip-subtitle {
  font-size: 0.85rem;
  color: #9a8585;
  margin-bottom: 24px;
}
.tip-form-group {
  margin-bottom: 18px;
}
.tip-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #5c4444;
  margin-bottom: 6px;
}
.tip-form-group input,
.tip-form-group textarea,
.tip-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #f0e4e4;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: #3d2c2c;
  background: #fefcf9;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}
.tip-form-group input:focus,
.tip-form-group textarea:focus,
.tip-form-group select:focus {
  border-color: var(--soft-pink);
}
.tip-form-group textarea { min-height: 120px; }
.tip-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, var(--melon-flesh), var(--coral));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255,77,77,0.25);
  margin-top: 8px;
}
.tip-submit-btn:hover {
  background: linear-gradient(135deg, #e04444, #f57842);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,77,77,0.35);
}
.tip-submit-btn:active { transform: translateY(0); }

/* ===== Archive / Search ===== */
.archive-header {
  text-align: center;
  padding: 40px 0 20px;
}
.archive-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2d1f1f;
}
.archive-header p {
  font-size: 0.95rem;
  color: #7a6565;
  margin-top: 8px;
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--melon-flesh);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-bounce);
  z-index: 99;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: #e04444;
  transform: translateY(-3px);
}
.scroll-top:active { transform: translateY(0); }

/* ===== WordPress Alignment ===== */
.aligncenter, .aligncenter img { margin: 0 auto; display: block; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: #9a8585; text-align: center; margin-top: 8px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .sidebar-card {
    flex: 1 1 260px;
    min-width: 240px;
  }
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .article-cover { height: 180px; font-size: 3.5rem; }
  .article-body { font-size: 0.95rem; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #5c4444;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}
.pagination .page-numbers:hover {
  background: var(--soft-pink);
  color: var(--melon-flesh);
}
.pagination .page-numbers.current {
  background: var(--melon-flesh);
  color: #fff;
}

/* ===== Tip Overlay Modal ===== */
.tip-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}
.tip-overlay.active { display: flex; }
.tip-overlay .tip-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.tip-overlay .tip-modal h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2d1f1f;
  margin-bottom: 6px;
}
.tip-overlay .tip-modal .tip-subtitle {
  font-size: 0.85rem;
  color: #9a8585;
  margin-bottom: 24px;
}
.tip-overlay .article-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #8a7575;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
  z-index: 10;
}
.tip-overlay .article-close:hover {
  background: var(--soft-pink);
  color: var(--melon-flesh);
  transform: rotate(90deg);
}