@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;500;700&display=swap');

/* ============================================================
   基础变量 & 重置
   ============================================================ */
:root {
  --c-white: #ffffff;
  --c-gray: #f5f5f5;
  --c-dark: #1f1f1f;
  --c-mid: #3a3a3a;
  --c-muted: #6b6b6b;
  --c-border: #e0e0e0;
  --c-accent: #c8102e;

  --shadow-sm: 0 1px 3px rgba(31,31,31,.12), 0 1px 2px rgba(31,31,31,.08);
  --shadow-md: 0 4px 12px rgba(31,31,31,.14), 0 2px 6px rgba(31,31,31,.10);
  --shadow-lg: 0 8px 24px rgba(31,31,31,.16), 0 4px 10px rgba(31,31,31,.12);
  --shadow-xl: 0 16px 40px rgba(31,31,31,.20), 0 8px 16px rgba(31,31,31,.14);

  --radius: 4px;
  --nav-h: 64px;
  --content-w: 960px;
  --wide-w: 1200px;
  --font: 'Noto Sans Hebrew', 'Noto Sans SC', system-ui, sans-serif;

  --z-base: 1;
  --z-card: 2;
  --z-float: 3;
  --z-nav: 4;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-gray);
  color: var(--c-dark);
  line-height: 1.65;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ============================================================
   导航：header > nav > a×n
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--c-dark);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-h);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  padding: 12px 20px 12px 0;
  border-right: 1px solid rgba(255,255,255,.15);
  margin-right: 12px;
  min-height: 40px;
  flex-shrink: 0;
}
.nav-logo { width: 28px; height: 28px; object-fit: contain; }
.brand-text { letter-spacing: .04em; }

.nav-link {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  font-weight: 400;
  white-space: nowrap;
  padding: 12px 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color .2s;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.nav-link:hover,
.nav-link--active { color: var(--c-white); text-decoration: none; }
.nav-link--active { font-weight: 700; }

/* ============================================================
   页面容器：div > main > article
   ============================================================ */
.page-wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ============================================================
   Hero（首页）
   ============================================================ */
.hero-block {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 70vh;
  background: var(--c-dark);
  overflow: hidden;
  margin: 0 -20px 0;
  padding: 0 20px;
}

.hero-media {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.hero-collage {
  position: absolute;
  inset: 0;
}

.hero-img {
  position: absolute;
  object-fit: cover;
}
.hero-img--back {
  width: 75%;
  height: 80%;
  top: 10%;
  left: 0;
  z-index: var(--z-base);
  box-shadow: var(--shadow-lg);
  filter: brightness(.85);
}
.hero-img--front {
  width: 60%;
  height: 65%;
  top: 25%;
  left: 30%;
  z-index: var(--z-card);
  box-shadow: var(--shadow-xl);
}

.hero-stripe {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 130%;
  background: var(--c-accent);
  transform: skewX(-8deg);
  z-index: var(--z-float);
  opacity: .18;
}

.hero-content {
  position: relative;
  z-index: var(--z-float);
  padding: 48px 20px 48px 32px;
  text-align: right;
  color: var(--c-white);
}

.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}

.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  opacity: .82;
  margin-bottom: 28px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--c-white);
  color: var(--c-dark);
  font-weight: 700;
  font-size: .92rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  letter-spacing: .04em;
  box-shadow: var(--shadow-md);
  transition: transform .2s, box-shadow .2s;
  min-height: 44px;
  line-height: 1.4;
}
.btn-primary:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

/* ============================================================
   页面横幅（ranking/compare/faq）
   ============================================================ */
.page-banner {
  position: relative;
  background: var(--c-dark);
  color: var(--c-white);
  padding: 48px 32px 48px;
  margin: 0 -20px 40px;
  overflow: hidden;
}

.banner-stripe {
  position: absolute;
  bottom: -20%;
  right: 0;
  width: 35%;
  height: 160%;
  background: rgba(255,255,255,.04);
  transform: skewX(-10deg);
}

.banner-content {
  position: relative;
  z-index: var(--z-card);
  max-width: var(--content-w);
}

.banner-content h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin: 8px 0 12px;
}

.banner-desc { opacity: .8; font-weight: 300; }
.banner-date { display: block; margin-top: 12px; font-size: .85rem; opacity: .65; }

/* ============================================================
   Compare 页头
   ============================================================ */
.compare-header {
  position: relative;
  background: var(--c-dark);
  color: var(--c-white);
  padding: 56px 32px;
  margin: 0 -20px 40px;
  overflow: hidden;
}

.compare-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-dark) 60%, #2e2e2e 100%);
}

.compare-header-content {
  position: relative;
  z-index: var(--z-card);
}
.compare-header-content h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin: 8px 0 12px;
}

/* ============================================================
   About 页头
   ============================================================ */
.about-header {
  position: relative;
  height: 280px;
  margin: 0 -20px 40px;
  overflow: hidden;
}

.about-header-layer {
  position: absolute;
  background: var(--c-dark);
}
.about-header-layer:first-child {
  inset: 0;
  z-index: 1;
}
.about-header-layer--mid {
  top: 40px;
  left: 30px;
  right: -20px;
  bottom: -20px;
  background: rgba(255,255,255,.05);
  transform: rotate(-1.5deg);
  z-index: 2;
}

.about-header-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  color: var(--c-white);
}
.about-header-content h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin: 8px 0 12px;
}

/* ============================================================
   FAQ / Privacy 页头
   ============================================================ */
.faq-header,
.privacy-header {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 48px 32px;
  margin: 0 -20px 40px;
}
.faq-header h1,
.privacy-header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin: 8px 0 12px;
}
.faq-header p,
.privacy-header p { opacity: .8; }

/* ============================================================
   Review 页
   ============================================================ */
.review-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  padding-top: 32px;
}

.review-hero-wrap {
  position: relative;
  z-index: var(--z-card);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius);
  overflow: hidden;
}
.review-hero-img { width: 100%; height: 280px; object-fit: cover; }

.review-meta { padding: 0 0 0 8px; }

.breadcrumb-link {
  display: inline-block;
  font-size: .82rem;
  color: var(--c-muted);
  margin-bottom: 12px;
  min-height: 40px;
  line-height: 40px;
}
.breadcrumb-link:hover { color: var(--c-dark); }

.review-meta h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin: 8px 0 12px;
}

.review-desc { color: var(--c-muted); margin-bottom: 16px; }

.review-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: var(--c-muted);
}

.review-gallery { margin: 40px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: translateZ(0);
  transition: transform .25s, box-shadow .25s;
}
.gallery-item:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-lg);
}
.review-gallery-img { width: 100%; height: 140px; object-fit: cover; }

/* ============================================================
   眉题 <small>
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  border-left: 3px solid var(--c-dark);
  padding-left: 8px;
  line-height: 1.2;
}

/* ============================================================
   区块
   ============================================================ */
.section-block {
  margin: 52px 0;
}

.section-block h2 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  margin: 10px 0 24px;
  line-height: 1.35;
}

/* ============================================================
   卡片列表：ul > li > article > h3/p
   ============================================================ */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card-list--compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* 纯色块无边框；圆角4px */
.rank-card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: var(--z-base);
  transform: translateZ(0);
  transition: transform .25s, box-shadow .25s;
}
.rank-card:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-card);
}

.rank-card--featured {
  background: var(--c-dark);
  color: var(--c-white);
}
.rank-card--featured h3 a { color: var(--c-white); }
.rank-card--featured p { opacity: .75; }

.card-thumb { overflow: hidden; }
.card-img { width: 100%; height: 160px; object-fit: cover; display: block; }

.card-body { padding: 16px; }
.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.card-body h3 a:hover { text-decoration: underline; }
.card-body p {
  font-size: .88rem;
  color: var(--c-muted);
  line-height: 1.6;
}
.rank-card--featured .card-body p { color: rgba(255,255,255,.65); }

.card-date {
  display: inline-block;
  margin-top: 10px;
  font-size: .78rem;
  color: var(--c-muted);
}

/* ============================================================
   排行列表（rank-card--row）
   ============================================================ */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-card--row {
  display: grid;
  grid-template-columns: 48px auto 1fr;
  align-items: center;
  gap: 0;
}

.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 72px;
  background: var(--c-dark);
  color: var(--c-white);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -.02em;
}

.rank-card--row .card-thumb { width: 100px; flex-shrink: 0; }
.rank-card--row .card-img { height: 72px; width: 100px; }
.rank-card--row .card-body { padding: 12px 16px; }

/* ============================================================
   正文 prose
   ============================================================ */
.content-body {
  margin: 36px 0;
}

.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-dark);
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2em 0 .75em;
  padding-top: .5em;
  border-top: 2px solid var(--c-border);
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5em 0 .5em;
}

.prose p { margin: .85em 0; }

.prose ul,
.prose ol {
  margin: .85em 0;
  padding-left: 1.5em;
}

.prose li { margin: .4em 0; list-style: disc; }
.prose ol li { list-style: decimal; }

.prose a { color: var(--c-dark); text-decoration: underline; }
.prose a:hover { opacity: .7; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .92rem;
}
.prose th,
.prose td {
  border: 1px solid var(--c-border);
  padding: 10px 14px;
  text-align: left;
}
.prose th { background: var(--c-dark); color: var(--c-white); font-weight: 700; }
.prose tr:nth-child(even) td { background: var(--c-gray); }

.prose blockquote {
  border-left: 4px solid var(--c-dark);
  margin: 1.5em 0;
  padding: 12px 20px;
  background: var(--c-gray);
  font-style: italic;
}

.prose time { font-size: .85rem; color: var(--c-muted); }

/* ============================================================
   页脚：footer 三列 dl
   ============================================================ */
.site-footer {
  background: var(--c-dark);
  color: var(--c-white);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-col dt {
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.footer-col dd {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-col dd a {
  color: rgba(255,255,255,.65);
  transition: color .2s;
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
}
.footer-col dd a:hover { color: var(--c-white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   Scroll Reveal 动效
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   elevation 辅助（--depth CSS 变量驱动）
   ============================================================ */
[style*="--depth:1"] { box-shadow: var(--shadow-sm); }
[style*="--depth:2"] { box-shadow: var(--shadow-md); }
[style*="--depth:3"] { box-shadow: var(--shadow-lg); }
[style*="--depth:4"] { box-shadow: var(--shadow-xl); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  .hero-block {
    grid-template-columns: 1fr;
    min-height: auto;
    margin: 0 -20px;
  }

  .hero-media {
    height: 240px;
  }

  .hero-content {
    padding: 32px 20px;
    text-align: left;
    background: var(--c-dark);
    color: var(--c-white);
  }

  .review-header {
    grid-template-columns: 1fr;
  }

  .review-hero-wrap { order: -1; }
  .review-meta { padding: 0; }

  .rank-card--row {
    grid-template-columns: 40px auto 1fr;
  }
  .rank-card--row .card-thumb { width: 80px; }
  .rank-card--row .card-img { width: 80px; height: 60px; }
  .rank-num { width: 40px; min-height: 60px; font-size: .9rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 20px 24px;
  }

  .card-list--grid { grid-template-columns: 1fr; }
  .card-list--compact { grid-template-columns: 1fr; }

  .page-banner,
  .faq-header,
  .privacy-header,
  .compare-header {
    padding: 36px 20px;
    margin: 0 -20px 28px;
  }

  .about-header { height: 220px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 56px; }

  .site-nav { padding: 0 12px; }
  .nav-brand { padding: 10px 14px 10px 0; margin-right: 8px; }
  .nav-link { padding: 10px 10px; font-size: .82rem; }

  .page-wrap { padding: 0 12px 40px; }

  .hero-title { font-size: 1.5rem; }
  .hero-content { padding: 24px 12px; }
  .hero-media { height: 200px; }

  .section-block { margin: 36px 0; }

  .footer-bottom p { font-size: .75rem; }
}

/* ============================================================
   about 链接块
   ============================================================ */
.about-links { margin-top: 48px; }
.faq-nav-block { margin-top: 48px; }

/* ============================================================
   首页 article
   ============================================================ */
.home-article,
.ranking-article,
.review-article,
.compare-article,
.faq-article,
.about-article,
.privacy-article {
  padding-top: 0;
}

/* 首页 hero 紧贴导航 */
.page-home .page-wrap {
  padding-top: 0;
}
.page-home .hero-block {
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: 48px;
}
