:root {
  /* 活力粉色主题 - Energetic Pink Theme */
  --primary: #db2777; /* Pink 600 */
  --primary-hover: #be185d; /* Pink 700 */
  --primary-light: #fce7f3; /* Pink 100 */
  
  --secondary: #8b5cf6; /* Violet 500 */
  
  --bg-body: #fff1f2; /* Rose 50 - 暖色调背景 */
  --bg-surface: #ffffff;
  --bg-subtle: #ffe4e6; /* Rose 100 */
  
  --text-main: #4c0519; /* Rose 950 - 深红/褐色文字，比纯黑更柔和 */
  --text-muted: #9f1239; /* Rose 800 */
  --text-light: #be123c; /* Rose 700 */
  
  --border-color: #fbcfe8; /* Pink 200 */
  
  --shadow-sm: 0 2px 4px rgba(219, 39, 119, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(219, 39, 119, 0.1), 0 2px 4px -1px rgba(219, 39, 119, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(219, 39, 119, 0.1), 0 4px 6px -2px rgba(219, 39, 119, 0.05);
  --shadow-glow: 0 0 15px rgba(219, 39, 119, 0.3);
  
  --radius-sm: 0.5rem;
  --radius-md: 1rem;     /* 更圆润 */
  --radius-lg: 1.5rem;   /* 非常圆润 */
  
  --font-sans: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(#fecdd3 1px, transparent 1px);
  background-size: 20px 20px; /* 点阵背景图案 */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 500px; /* User requirement */
  object-fit: cover;
  border-radius: var(--radius-md);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

/* Layout */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1100px; /* 稍微窄一点，更精致 */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
  color: var(--text-main);
  font-weight: 800;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Header */
.header {
  position: sticky;
  top: 1rem;
  margin: 0 1rem;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px; /* 胶囊型导航栏 */
  height: 4rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 50%;
  background: var(--primary-light);
  padding: 4px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.nav-links a:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: 20px 20px 0 var(--primary-light), var(--shadow-lg); /* 偏移装饰风格 */
  max-height: 500px;
  width: auto;
  transform: rotate(2deg);
  transition: transform 0.3s;
  border: 4px solid white;
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 50px; /* 胶囊按钮 */
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.btn:not(.ghost) {
  background: linear-gradient(135deg, var(--primary) 0%, #be185d 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(219, 39, 119, 0.4);
}

.btn:not(.ghost):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(219, 39, 119, 0.5);
}

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

.btn.ghost:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}



/* Features & Common Sections */
.features, .posts, .promotions, .comments, .gallery, .article {
  padding: 5rem 0;
}

.feature-grid, .comment-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card, .comment-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover, .comment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-title, .comment-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.feature-desc, .comment-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Gallery */
.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.gallery-img {
  width: 100%;
  height: 500px; /* User requirement: limit height to 500px */
  border-radius: var(--radius-md);
  object-fit: cover;
  transition: transform 0.3s;
  box-shadow: var(--shadow-sm);
}

.gallery-img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

/* Posts - Card Style */
.carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

.carousel-btn { display: none; }

.post-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  padding: 0; /* Remove padding to let image/header stretch if needed, adding back in children */
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.post-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 1.5rem 1.5rem 0.5rem;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0 1.5rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-summary {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 1.5rem 1.5rem;
  flex-grow: 1;
  line-height: 1.7;
}

.post-link {
  display: block;
  text-align: center;
  background: var(--bg-subtle);
  color: var(--primary);
  font-weight: 700;
  padding: 1rem;
  margin-top: auto;
  transition: background 0.2s;
}

.post-link:hover {
  background: var(--primary-light);
}

/* Promotions */
.promotions .carousel-track {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.promotion-card {
  display: flex;
  flex-direction: column; /* Stack vertically for cn site */
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.promotion-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.promotion-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background-color: var(--bg-subtle);
  padding: 0.5rem;
}

.promotion-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* CTA */
.cta {
  padding: 5rem 0;
}

.cta-card {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  border-radius: 3rem; /* 大圆角 */
  padding: 5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

/* 装饰性圆圈 */
.cta-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 900;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  max-width: 500px;
  font-weight: 500;
}

.cta-buttons .btn {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-buttons .btn:hover {
  background: var(--bg-subtle);
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: white;
  padding: 4rem 0;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

/* Article */
.article-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.article-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--primary);
}

.article-meta {
  color: var(--text-light);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px dashed var(--border-color);
  font-weight: 600;
}

.article-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-main);
}

.article-content h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  background: var(--primary-light);
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 10px;
  transform: rotate(-1deg);
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-actions {
    justify-content: center;
  }
  
  .nav-links {
    display: none; 
  }
  
  .cta-card {
    padding: 3rem 2rem;
    flex-direction: column;
    text-align: center;
    border-radius: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .article-card {
    padding: 2rem 1.5rem;
  }
  
  .header {
    border-radius: 0;
    margin: 0;
    top: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .hero-image {
    transform: none;
    box-shadow: var(--shadow-lg);
  }
}
