/* ============================================================
   Emby 2.0 Homepage — assets/home/home.css
   手机端优先 / 稳定高速卖点版
   ============================================================ */

/* ---- Reset & Base ---- */
.emby-homepage {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #f4f6fb;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Hero ---- */
.emby-homepage__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 480px;
}

.emby-homepage__hero,
.emby-homepage__section,
.emby-homepage__section-head,
.emby-homepage__feature-copy,
.emby-homepage__notice-item,
.emby-homepage__article-card,
.emby-homepage__faq-list,
.emby-homepage__product-card {
  color: #f4f6fb;
}

.emby-homepage__hero-copy {
  flex: 1;
  max-width: 560px;
}

.emby-homepage__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  margin-bottom: 0.8rem;
}

.emby-homepage__hero-copy h1 {
  font-size: clamp(2rem, 5.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 0.9rem;
  color: #f8faff;
}

.emby-homepage__lead {
  font-size: 1.12rem;
  color: rgba(244, 246, 251, 0.84);
  margin: 0 0 1.3rem;
  line-height: 1.72;
}

.emby-homepage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.emby-homepage__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.emby-homepage__button--primary {
  background: linear-gradient(135deg, #7464ff 0%, #5e50e6 100%);
  color: #fff;
}
.emby-homepage__button--primary:hover {
  background: linear-gradient(135deg, #6a59f2 0%, #5446d6 100%);
  transform: translateY(-1px);
}

.emby-homepage__button--ghost {
  background: rgba(255,255,255,0.06);
  color: #f4f6fb;
  border: 1px solid rgba(255,255,255,0.14);
}
.emby-homepage__button--ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.emby-homepage__button--soft {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f6fb;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.emby-homepage__button--soft:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.emby-homepage__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.emby-homepage__tags li {
  font-size: 0.74rem;
  color: rgba(243,245,251,0.88);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

.emby-homepage__hero-media {
  flex: 1;
  max-width: 440px;
  text-align: center;
}
.emby-homepage__hero-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.18);
}

/* ---- Section (generic) ---- */
.emby-homepage__section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.emby-homepage__section-head {
  text-align: center;
  margin-bottom: 2rem;
}
.emby-homepage__section-head h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.05rem);
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: #f8faff;
}
.emby-homepage__section-head p {
  color: rgba(244, 246, 251, 0.72);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.68;
}

/* ---- 核心卖点 Feature Cards ---- */
.emby-homepage__feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.emby-homepage__feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 0.9rem;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.emby-homepage__feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.2);
}
.emby-homepage__feature-card-icon {
  display: none;
}
.emby-homepage__feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #f8faff;
  margin: 0 0 0.4rem;
}
.emby-homepage__feature-card p {
  font-size: 0.92rem;
  color: rgba(244, 246, 251, 0.76);
  margin: 0;
  line-height: 1.72;
}

/* ---- Card ---- */
.emby-homepage__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.05rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.emby-homepage__card:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.emby-homepage__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: #f8faff;
}

.emby-homepage__card p {
  font-size: 0.98rem;
  color: rgba(244,246,251,0.78);
  margin: 0.45rem 0;
  line-height: 1.72;
}

.emby-homepage__meta {
  font-size: 0.73rem;
  color: rgba(244,246,251,0.48);
  margin-bottom: 0.35rem;
}

.emby-homepage__text-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #a99cff;
  text-decoration: none;
  font-weight: 600;
}
.emby-homepage__text-link:hover {
  text-decoration: underline;
}

/* ---- Product Grid ---- */
.emby-homepage__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.emby-homepage__product-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 100%;
}
.emby-homepage__product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(116,100,255,0.08) 0%, rgba(255,255,255,0) 38%);
  pointer-events: none;
}
.emby-homepage__product-top {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 90px;
}
.emby-homepage__product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d9d4ff;
  background: rgba(116,100,255,0.16);
  border: 1px solid rgba(116,100,255,0.22);
  margin-bottom: 0.8rem;
}
.emby-homepage__product-card h3 {
  flex: 1;
  font-size: 1.14rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.22rem;
}
.emby-homepage__product-subtitle {
  margin: 0;
  font-size: 0.94rem;
  color: rgba(244,246,251,0.78);
  line-height: 1.5;
}
.emby-homepage__product-description {
  margin: 0.8rem 0 0.95rem;
  font-size: 0.94rem;
  color: rgba(244,246,251,0.74);
  line-height: 1.72;
  min-height: 98px;
}
.emby-homepage__price {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin: 0.2rem 0 0.95rem;
  position: relative;
  z-index: 1;
  min-height: 72px;
}
.emby-homepage__price-regular {
  display: block;
  font-size: 1.04rem;
  color: rgba(244,246,251,0.62);
  text-decoration: line-through;
  margin-bottom: 0.28rem;
  font-weight: 700;
}
.emby-homepage__price-current {
  display: block;
  font-size: 1.34rem;
  font-weight: 800;
  color: #8d7dff;
  letter-spacing: 0.01em;
}
.emby-homepage__product-cta {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

/* ---- 多端支持（降级·更小） ---- */
/* ---- Feature Split ---- */
.emby-homepage__feature {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.emby-homepage__feature--split {
  flex-direction: row;
}
.emby-homepage__feature--highlight {
  flex-direction: row-reverse;
}

.emby-homepage__feature-media {
  flex: 1;
  max-width: 440px;
}
.emby-homepage__feature-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.emby-homepage__feature-copy {
  flex: 1;
}
.emby-homepage__feature-copy h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: #f8faff;
}
.emby-homepage__feature-copy p {
  color: rgba(244, 246, 251, 0.8);
  margin: 0 0 0.8rem;
  line-height: 1.65;
}
.emby-homepage__feature-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.emby-homepage__feature-copy ul li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: rgba(244, 246, 251, 0.8);
}
.emby-homepage__feature-copy ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #6c5ce7;
  font-weight: 700;
}

/* ---- Article Grid ---- */
/* ---- Compact modules ---- */
.emby-homepage__compact-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.emby-homepage__compact-card {
  padding: 1.15rem;
}
.emby-homepage__compact-card h3 {
  margin-bottom: 0.85rem;
}
.emby-homepage__simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.emby-homepage__simple-list li {
  color: rgba(244,246,251,0.78);
  font-size: 1rem;
  line-height: 1.72;
}
.emby-homepage__simple-list li a {
  color: #f8faff;
  text-decoration: none;
  font-weight: 600;
}
.emby-homepage__simple-list li a:hover {
  color: #a99cff;
}

/* ---- CTA Section ---- */
.emby-homepage__cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 1.6rem;
  margin-bottom: 0;
}
.emby-homepage__cta-copy {
  flex: 1;
  max-width: 560px;
}
.emby-homepage__cta-copy h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: #fff;
}
.emby-homepage__cta-copy p {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.emby-homepage__cta .emby-homepage__button--primary {
  background: linear-gradient(135deg, #7464ff 0%, #5e50e6 100%);
  color: #fff;
}
.emby-homepage__cta .emby-homepage__button--primary:hover {
  background: linear-gradient(135deg, #6a59f2 0%, #5446d6 100%);
}
.emby-homepage__cta .emby-homepage__button--ghost {
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}
.emby-homepage__cta .emby-homepage__button--ghost:hover {
  background: rgba(255,255,255,0.12);
}
.emby-homepage__cta .emby-homepage__button--soft {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.emby-homepage__cta .emby-homepage__button--soft:hover {
  background: rgba(255,255,255,0.12);
}

.emby-homepage__cta-media {
  max-width: 160px;
  flex-shrink: 0;
}
.emby-homepage__cta-media img {
  width: 100%;
  height: auto;
}

/* ---- Empty state ---- */
.emby-homepage__empty {
  color: rgba(244, 246, 251, 0.6);
  font-size: 0.88rem;
  text-align: center;
  padding: 1.5rem 0;
}

/* =============================================
   手机端优先响应式（max-width: 767px）
   ============================================= */
@media (max-width: 767px) {

  /* Hero — 媒体在上，文字在下，更短 */
  .emby-homepage__hero {
    flex-direction: column-reverse;
    padding: 1.2rem 0 1.6rem;
    min-height: auto;
    text-align: center;
    gap: 1rem;
  }
  .emby-homepage__hero-copy {
    max-width: 100%;
    padding: 0 0.95rem;
  }
  .emby-homepage__hero-media {
    max-width: 100%;
    width: 100%;
  }
  .emby-homepage__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  .emby-homepage__button {
    width: 100%;
    max-width: 280px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .emby-homepage__hero-media img {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  .emby-homepage__tags {
    justify-content: center;
  }

  /* Section — 更紧凑 */
  .emby-homepage__section {
    padding: 1.45rem 0.95rem;
    margin-bottom: 0.9rem;
  }
  .emby-homepage__section-head {
    margin-bottom: 1.5rem;
  }

  /* 核心卖点 — 手机端双列 */
  .emby-homepage__feature-cards {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .emby-homepage__feature-card {
    padding: 1rem 0.75rem;
  }
  .emby-homepage__feature-card-icon {
    font-size: 1.6rem;
  }
  .emby-homepage__feature-card h3 {
    font-size: 0.96rem;
  }
  .emby-homepage__feature-card p {
    font-size: 0.84rem;
  }

  /* Product Grid — 更少列 */
  .emby-homepage__product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .emby-homepage__product-card {
    padding: 1rem;
  }
  .emby-homepage__product-top {
    min-height: 82px;
  }
  .emby-homepage__product-badge {
    margin-bottom: 0.6rem;
  }
  .emby-homepage__product-subtitle {
    font-size: 0.84rem;
  }
  .emby-homepage__product-description {
    font-size: 0.84rem;
    margin: 0.65rem 0 0.8rem;
    min-height: 92px;
  }
  .emby-homepage__price-regular {
    font-size: 0.92rem;
  }
  .emby-homepage__price-current {
    font-size: 1.12rem;
  }
  .emby-homepage__price {
    min-height: 66px;
  }

  /* Feature — 垂直堆叠 */
  .emby-homepage__feature,
  .emby-homepage__feature--highlight {
    flex-direction: column;
    gap: 1.25rem;
  }
  .emby-homepage__feature-media {
    max-width: 100%;
  }

  /* 多端支持 — 垂直 */
  /* 紧凑模块 */
  .emby-homepage__compact-modules {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  /* CTA */
  .emby-homepage__cta {
    flex-direction: column;
    text-align: center;
    padding: 1.4rem 1rem;
    gap: 0.8rem;
  }
  .emby-homepage__cta-media {
    display: none;
  }
  .emby-homepage__cta .emby-homepage__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .emby-homepage__cta .emby-homepage__button {
    width: auto;
    max-width: none;
    flex: 1;
    min-width: 120px;
  }
}
