:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5b6475;
  --line: #e4e8ef;
  --banner: #0b1f3a;
  --banner-2: #12325a;
  --accent: #ff5a1f;
  --accent-2: #ff8a3d;
  --soft: #fff1ea;
  --ok: #0f9f6e;
  --chip: #e8eef8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 31, 58, 0.08);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "Consolas", monospace;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef3fa 0%, var(--bg) 180px, var(--bg) 100%);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
}

.lang-switch button.active {
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}

.topic-banner {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 90, 31, 0.28), transparent 28%),
    linear-gradient(120deg, var(--banner) 0%, var(--banner-2) 55%, #1a4475 100%);
  color: #fff;
  padding: 54px 0 48px;
  position: relative;
  overflow: hidden;
}

.topic-banner::before {
  content: "CLASH DOWNLOAD";
  position: absolute;
  right: -20px;
  top: 18px;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0.06;
  white-space: nowrap;
  pointer-events: none;
}

.topic-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 28px,
    var(--accent-2) 28px 56px,
    #ffd166 56px 84px
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  animation: fadeUp 0.7s ease both;
}

.topic-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.25);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
}

.tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
}

.topic-banner h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  font-weight: 900;
  animation: fadeUp 0.8s ease 0.05s both;
}

.topic-banner h1 em {
  font-style: normal;
  color: #ffc08a;
}

.hero-lead {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  animation: fadeUp 0.85s ease 0.1s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  animation: fadeUp 0.9s ease 0.15s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 90, 31, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-dark {
  background: var(--banner);
  color: #fff;
}

.btn-line {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  animation: fadeUp 1s ease 0.12s both;
}

.banner-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  background: #0a1830;
}

.banner-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.banner-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.35), transparent);
}

.float-badge {
  position: absolute;
  left: -10px;
  bottom: 58px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 800;
  animation: bob 3.2s ease-in-out infinite;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #eef2f7;
}

.section-head {
  margin-bottom: 28px;
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  font-weight: 900;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.ops-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.ops-strip span {
  background: var(--chip);
  color: #274066;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.grid-5,
.grid-3,
.grid-2,
.grid-6,
.compat-grid,
.scene-grid {
  display: grid;
  gap: 14px;
}

.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }
.compat-grid { grid-template-columns: repeat(4, 1fr); }
.scene-grid { grid-template-columns: repeat(3, 1fr); }

.platform-card,
.feature-card,
.plan-card,
.step-card,
.scene-card,
.compat-item,
.faq-item,
.panel,
.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.platform-card:hover,
.feature-card:hover,
.plan-card:hover,
.scene-card:hover,
.dl-card:hover {
  transform: translateY(-3px);
  border-color: #ffc2a8;
  box-shadow: var(--shadow);
}

.platform-card h3,
.feature-card h3,
.plan-card h3,
.step-card h3,
.scene-card h3,
.dl-card h3,
.compat-item h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 900;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-line span:last-child {
  color: var(--ink);
  text-align: right;
  font-weight: 700;
}

.status { color: var(--ok) !important; }

.feature-card p,
.scene-card p,
.compat-item p,
.step-card p,
.plan-card p,
.dl-card p,
.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 900;
  font-size: 0.85rem;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.flow-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
}

.flow-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 900;
}

.flow-list h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-media { padding: 0; overflow: hidden; }

.panel-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.code-block {
  margin: 0;
  padding: 16px 18px;
  background: #0f172a;
  color: #d7deea;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-block .c { color: #8b95a8; }
.code-block .k { color: #ff9a6b; }
.code-block .v { color: #7ddeb4; }

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.capability-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: #2c466f;
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-card .btn,
.dl-card .btn {
  margin-top: 14px;
  width: 100%;
}

.step-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tips {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #ffd7b5;
  color: #8a4b16;
}

.tips strong { color: var(--accent); }

.faq-list { display: grid; gap: 10px; }

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta { padding: 20px 0 10px; }

.cta-panel {
  border-radius: 22px;
  padding: 42px 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 90, 31, 0.35), transparent 30%),
    linear-gradient(120deg, #0b1f3a, #163864 60%, #1d4b7c);
  border: 1px solid #234870;
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
}

.cta-panel p {
  margin: 10px auto 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0 28px;
  background: #0b1f3a;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover { color: #ffc08a; }

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.page-hero {
  padding: 42px 0 10px;
}

.page-hero .inner {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 90, 31, 0.2), transparent 28%),
    linear-gradient(120deg, var(--banner), var(--banner-2));
  color: #fff;
  border-radius: 22px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.page-hero .inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #ffd166);
}

.page-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
}

.page-hero p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
}

.media-strip {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.media-strip img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #fff;
}

.inline-shot {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.inline-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid,
  .how-grid,
  .grid-3,
  .grid-2,
  .grid-6,
  .scene-grid,
  .media-strip,
  .footer-grid { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .float-badge { display: none; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .grid-5,
  .compat-grid { grid-template-columns: 1fr; }
  .container { width: min(var(--max), calc(100% - 24px)); }
}
