/* ============================================================
   v2ray.cn — homepage-specific styles
   (tokens, header, nav, footer, language switcher live in site.css)
   ============================================================ */

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 640px 420px at 78% 10%, rgba(229,72,77,0.07), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(255,255,255,0.018) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,255,255,0.018) 47px 48px);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px; align-items: center;
}
.hero h1 {
  font-size: 52px; line-height: 1.15; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero h1 .n { color: var(--accent); }
.hero p.lead { font-size: 17px; color: var(--text-2); max-width: 480px; margin-bottom: 36px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-main {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 8px;
  transition: background .15s, transform .15s;
}
.btn-main:hover { background: #ec5d61; transform: translateY(-1px); }
.btn-main svg { width: 17px; height: 17px; }
.hero-meta {
  margin-top: 26px;
  font-family: var(--mono); font-size: 12.5px; color: var(--text-3);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.hero-meta span + span::before { content: "/"; margin-right: 10px; color: var(--line); }
[dir="rtl"] .hero-meta span + span::before { margin-left: 10px; margin-right: 0; }

.term {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  font-family: var(--mono); font-size: 12.5px; overflow: hidden;
  direction: ltr; text-align: left;
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term-bar i:first-child { background: #3a4149; }
.term-bar b { margin-left: 10px; color: var(--text-3); font-weight: 400; font-size: 11.5px; }
.term-body { padding: 18px 18px 22px; line-height: 2.05; color: var(--text-2); }
.term-body .dim { color: var(--text-3); }
.term-body .ok { color: var(--green); }
.term-body .hl { color: var(--text); }
.term-body .red { color: var(--accent); }

/* ---------- sections ---------- */
.hp section { padding: 84px 0; }
.hp section + section { border-top: 1px solid var(--line-soft); }
.sec-head { margin-bottom: 44px; }
.sec-head .kicker { margin-bottom: 14px; }
.sec-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head p { color: var(--text-2); margin-top: 10px; max-width: 620px; }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; padding: 26px 24px 24px;
  display: flex; flex-direction: column; transition: border-color .15s;
}
.dl-card:hover { border-color: #2f3843; }
.dl-card.primary { border-color: rgba(229,72,77,0.35); background: linear-gradient(180deg, rgba(229,72,77,0.05), var(--bg-card) 42%); }
.dl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dl-top svg { width: 26px; height: 26px; color: var(--text-2); }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 4px; background: var(--accent-dim); color: var(--accent); }
.dl-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 6px; }
.dl-card .plat { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.dl-card p { font-size: 14px; color: var(--text-2); flex: 1; margin-bottom: 20px; }
.dl-card .go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.dl-card .go::after { content: "→"; transition: transform .15s; }
[dir="rtl"] .dl-card .go::after { content: "←"; }
.dl-card:hover .go::after { transform: translateX(3px); }
[dir="rtl"] .dl-card:hover .go::after { transform: translateX(-3px); }
.dl-note {
  margin-top: 22px; padding: 16px 20px;
  border: 1px solid var(--line-soft); border-inline-start: 2px solid var(--amber);
  border-radius: 6px; font-size: 13.5px; color: var(--text-2);
}
.dl-note code { font-family: var(--mono); font-size: 12.5px; background: var(--bg-raise); border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 4px; color: var(--text); }

.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.hp table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.hp thead th {
  text-align: start; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--text-3); background: var(--bg-raise);
  padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.hp tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: top; }
.hp tbody tr:last-child td { border-bottom: none; }
.hp tbody tr { background: var(--bg-card); transition: background .12s; }
.hp tbody tr:hover { background: #171c23; }
td .name { color: var(--text); font-weight: 600; display: block; }
td .name a:hover { color: var(--accent); }
td .sub { font-size: 12.5px; color: var(--text-3); }
td.mono, .hp .mono { font-family: var(--mono); font-size: 12.5px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-inline-end: 8px; position: relative; top: -1px; }
.st-live .dot { background: var(--green); }
.st-slow .dot { background: var(--amber); }
.st-dead .dot { background: var(--text-3); }
.st-live { color: var(--green); }
.st-slow { color: var(--amber); }
.st-dead { color: var(--text-3); }
.st-live, .st-slow, .st-dead { white-space: nowrap; }
td a.repo { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--line); transition: color .15s, border-color .15s; white-space: nowrap; }
td a.repo:hover { color: var(--text); border-color: var(--text-3); }
.tbl-foot { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  font-size: 16px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .15s;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 22px; color: var(--text-2); font-size: 14.5px; max-width: 660px; }
.faq .ans code { font-family: var(--mono); font-size: 12.5px; background: var(--bg-raise); border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 4px; color: var(--text); }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .term { max-width: 480px; }
  .dl-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hp section { padding: 64px 0; }
}
