/* ================================================================
   home.css — 仅首页 (index.html) 使用
================================================================ */

/* ── 英雄区 ── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  background: url('../pics/hero-main-bg.webp') center / cover no-repeat;
  background-color: #1e2820;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,15,10,0.85) 0%,
    rgba(8,15,10,0.65) 35%,
    rgba(8,15,10,0.20) 58%,
    rgba(8,15,10,0.00) 100%
  );
  z-index: 1; pointer-events: none;
}
.hero-intro {
  display: flex; flex-direction: column; justify-content: center;
  padding: 52px 6% 52px 18%;
  position: relative; z-index: 2;
  background: none;
}
.hero-label {
  font-size: 0.8rem; letter-spacing: 0.28em;
  color: rgba(255,255,255,0.5); font-weight: 300;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.hero-label::before {
  content: ''; display: inline-block;
  width: 24px; height: 1px; background: rgba(255,255,255,0.4);
}
.welcome-title {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  line-height: 1.15; color: var(--white);
  margin: 0 0 10px; letter-spacing: 0.1em;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.welcome-title .char {
  display: inline-block;
  opacity: 0; filter: blur(12px); transform: translateY(6px);
  animation: inkReveal 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes inkReveal {
  0%   { opacity: 0; filter: blur(12px); transform: translateY(6px); }
  40%  { opacity: 0.7; filter: blur(3px); transform: translateY(1px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}
.hero-sub {
  font-size: 0.8rem; letter-spacing: 0.32em;
  color: rgba(255,255,255,0.4); font-weight: 300; margin-bottom: 22px;
}
.hero-divider { width: 32px; height: 1px; background: rgba(255,255,255,0.25); margin: 0 0 22px; }
.hero-desc {
  font-size: 0.9rem; color: rgba(255,255,255,0.65); font-weight: 300;
  line-height: 1.95; max-width: 360px; margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-pill {
  padding: 9px 24px; border-radius: 999px; font-size: 0.75rem;
  font-family: 'Noto Serif SC', serif; letter-spacing: 0.1em;
  cursor: none; transition: 0.25s; display: inline-flex;
  align-items: center; gap: 6px; white-space: nowrap;
}
.btn-pill-solid {
  background: var(--morandi-green); color: var(--white);
  border: 1.5px solid var(--morandi-green);
}
.btn-pill-solid:hover { background: var(--morandi-green-dark); border-color: var(--morandi-green-dark); }
.btn-pill-outline {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-pill-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.75); }
.btn-text-link {
  color: rgba(255,255,255,0.55); font-size: 0.72rem;
  letter-spacing: 0.12em; font-family: 'Noto Serif SC', serif;
  font-weight: 300; border: none; background: none;
  padding: 0; position: relative; display: inline-block;
  transition: color 0.2s;
}
.btn-text-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.4);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.btn-text-link:hover { color: rgba(255,255,255,0.9); }
.btn-text-link:hover::after { transform: scaleX(1); }
.hero-right {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 18% 40px 2%;
}
.hero-slider {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10),
    0 16px 48px rgba(0,0,0,0.55),
    0 3px 12px rgba(0,0,0,0.35);
}
.hero-slides {
  display: flex;
  width: 300%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
  width: 33.33%;
  position: relative;
  display: block;
  overflow: hidden;
}
.slide-bg {
  width: 100%;
  padding-bottom: 75%;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.55);
  position: relative; z-index: 1;
}
.slide-img {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  transition: transform 0.45s ease;
}
.hero-slide:hover .slide-img { transform: scale(1.04); }
.hero-dots {
  display: flex; gap: 8px;
  margin-top: 14px;
  position: relative; z-index: 3;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.40);
  border: none; padding: 0; cursor: none;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.active { background: rgba(255,255,255,0.95); transform: scale(1.4); }

/* ── 区块包装器 ── */
.section-wrap  { padding: 60px 8%; border-top: 1px solid var(--subtle-gray); background: var(--bg-base); }
.support-area  { padding: 70px 8%; border-top: 1px solid var(--subtle-gray); background: var(--bg-alt); }
.news-section  { padding: 70px 8%; border-top: 1px solid var(--subtle-gray); background: var(--bg-base); }
.section-header { margin-bottom: 36px; display: flex; align-items: center; gap: 20px; }
.section-header h2 { font-size: 1.4rem; letter-spacing: 0.06em; font-weight: 500; white-space: nowrap; }
.section-header::after { content: ''; flex: 1; height: 1px; background: var(--subtle-gray); }

/* ── 模组筛选与卡片 ── */
.mod-filter { margin-bottom: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 24px; border-radius: 999px;
  border: 1.5px solid #ccc; background: transparent;
  cursor: none; transition: 0.25s; font-size: 0.85rem;
  font-family: inherit; color: #666; letter-spacing: 0.05em;
}
.filter-btn:hover  { border-color: var(--morandi-green); color: var(--morandi-green); }
.filter-btn.active { background: var(--morandi-green); border-color: var(--morandi-green); color: var(--white); }
.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mod-card {
  position: relative; height: 460px;
  overflow: hidden;
  border: 1px solid var(--subtle-gray); cursor: none;
  transition: box-shadow 0.3s ease;
}
.mod-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.mod-card:hover img {
  transform: scale(1.04);
  filter: grayscale(80%) sepia(25%) brightness(1.08) contrast(1.05);
}
.mod-card:hover { box-shadow: 0 12px 40px rgba(110,130,114,0.18); }
.mod-card-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 24px;
  background: rgba(247, 244, 240, 0.95);
  border-top: 1px solid var(--subtle-gray);
  display: flex; align-items: center; justify-content: space-between;
  transition: opacity 0.3s ease;
}
.mod-card:hover .mod-card-footer { opacity: 0; }
.mod-card-footer h3  { font-size: 0.95rem; font-weight: 500; margin: 0; color: var(--black); }
.mod-card-tag {
  font-size: 0.7rem; color: var(--morandi-green);
  letter-spacing: 0.1em; font-weight: 300;
  white-space: nowrap; margin-left: 12px;
}
.mod-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 24px 24px;
  background: rgba(247, 244, 240, 0.97);
  border-top: 2px solid var(--morandi-green);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mod-card:hover .mod-card-info { opacity: 1; transform: translateY(0); }
.mod-card-info h3 { font-size: 1rem; margin: 0 0 8px; }
.mod-card-info p  { font-size: 0.82rem; color: #666; margin: 0; line-height: 1.7; font-weight: 300; }
.no-results {
  display: none; grid-column: 1 / -1; text-align: center;
  padding: 60px 0; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.1em;
}

/* ── 支持创作区 ── */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support-tile {
  padding: 44px 28px; text-align: center;
  border: 1px solid var(--subtle-gray); background: var(--bg-card);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.support-tile:hover {
  border-color: var(--morandi-green);
  box-shadow: 0 4px 20px rgba(141,161,145,0.12);
  transform: translateY(-3px);
}
.support-tile h3 { font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 0.06em; }
.support-tile p  { font-size: 0.82rem; color: #777; font-weight: 300; line-height: 1.8; }
.support-btn {
  display: inline-block; margin-top: 20px; padding: 9px 28px;
  background: var(--morandi-green); color: var(--white);
  border-radius: 999px; font-size: 0.82rem; letter-spacing: 0.1em;
  font-family: 'Noto Serif SC', serif; border: none;
  transition: background 0.2s; cursor: pointer;
  font-weight: 400; line-height: 1.5;
}
.support-btn:hover { background: var(--morandi-green-dark); }

/* ── 动态新闻区 ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-box {
  background: var(--bg-card); padding: 32px;
  border: 1px solid var(--subtle-gray);
  border-top: 2px solid var(--morandi-green);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-box:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.news-box h3   { font-size: 1rem; margin: 0 0 12px; letter-spacing: 0.04em; }
.news-box p    { font-size: 0.82rem; color: #666; font-weight: 300; line-height: 1.8; margin: 0; }
.news-date     { font-size: 0.72rem; color: var(--text-muted); display: block; margin-top: 18px; letter-spacing: 0.08em; }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .hero              { grid-template-columns: 1fr; }
  .hero-right        { padding: 12px 8% 36px; }
  .welcome-title     { font-size: 2rem; white-space: normal; }
  .mod-grid          { grid-template-columns: 1fr; }
  .support-grid      { grid-template-columns: 1fr; }
  .news-grid         { grid-template-columns: 1fr; }
}
