/* ==========================================================================
   V2Ray测评 — home.css(首页专属)
   ========================================================================== */

/* Hero:左文案右装饰 */
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero__center {
  max-width: 620px;
  margin: 0;
  padding: 0;
  text-align: left;
  justify-self: center;
}

.hero__desc {
  margin: 0;
  text-align: left;
  max-width: 560px;
}

.hero__cta {
  justify-content: flex-start;
}

.plat-badges {
  justify-content: flex-start;
}

/* Hero 右侧视觉装置 */
.hero-visual {
  position: relative;
  min-height: 540px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.hero-visual .fc-protocol {
  left: 0;
  top: 36px;
  width: 224px;
}

.hero-visual .fc-sub {
  left: 16px;
  bottom: 36px;
  width: 248px;
}

.hero-visual .fc-route {
  right: 0;
  top: 108px;
  width: 284px;
}

.hero-visual .fc-core {
  right: 10%;
  top: 356px;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-9px) rotate(var(--tilt, 0deg)); }
}

.hero-visual .float-card {
  animation: float-y 7s ease-in-out infinite;
}

.hero-visual .float-card:nth-child(2) { animation-delay: 1.1s; }
.hero-visual .float-card:nth-child(3) { animation-delay: 2.2s; }
.hero-visual .float-card:nth-child(4) { animation-delay: 3.3s; }

.hero-visual .float-card:hover {
  animation-play-state: paused;
}

/* 状态栏装饰条 */
.statusbar {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.statusbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 14px var(--gutter);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.statusbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.statusbar__item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.45;
  flex-shrink: 0;
}

/* 特性区 tab 面板内的对象卡网格 */
.features-section {
  padding: 72px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card--wide {
  grid-column: 1 / -1;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
}

.feature-card__icon--mint { background: var(--tint-mint); color: var(--success); }
.feature-card__icon--sky { background: var(--tint-sky); color: var(--text); }
.feature-card__icon--lilac { background: var(--tint-lilac); color: var(--text); }
.feature-card__icon--apricot { background: var(--tint-apricot); color: var(--text); }

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

.feature-card__ref {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* 下载入口区 */
.dl-entry {
  padding: 72px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dl-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dl-platform {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.dl-platform:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.dl-platform__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.dl-platform__icon svg {
  width: 22px;
  height: 22px;
}

.dl-platform__name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.dl-platform__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.dl-platform__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dl-entry__more {
  margin-top: 28px;
  text-align: center;
}

.dl-entry__more a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.12s ease;
}

.dl-entry__more a:hover {
  color: var(--ink-deep);
}

/* 信任背书区 */
.trust-section {
  padding: 72px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.trust-copy h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 8px;
}

.trust-copy h3:first-child {
  margin-top: 0;
}

.trust-copy p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 14px;
}

.trust-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-fact {
  background: var(--bg-panel2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 22px;
}

.trust-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.trust-fact p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* 博客预览区 */
.blog-section {
  padding: 72px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-section__more {
  margin-top: 28px;
  text-align: center;
}

.blog-section__more a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.12s ease;
}

.blog-section__more a:hover {
  color: var(--ink-deep);
}

/* FAQ 精选 */
.faq-preview {
  padding: 72px 0;
}

.faq-preview__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.faq-preview__item {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-preview__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--text-muted);
}

.faq-preview__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.faq-preview__item span {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 1120px) {
  .hero {
    min-height: auto;
    padding: 56px 0 48px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero__center {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }

  .hero__desc {
    margin: 0 auto;
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }

  .plat-badges {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    grid-column: auto;
  }

  .dl-platforms {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .faq-preview__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .statusbar__inner {
    gap: 16px;
    font-size: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .statusbar__inner::-webkit-scrollbar {
    display: none;
  }

  .dl-platforms {
    grid-template-columns: 1fr;
  }
}