:root {
  --ink: #17211f;
  --muted: #69736f;
  --paper: #f3f7f2;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --line: rgba(23, 33, 31, 0.12);
  --forest: #0f3b34;
  --forest-2: #173f33;
  --rust: #b94e36;
  --gold: #d89a35;
  --blue: #2f6178;
  --shadow: 0 14px 36px rgba(26, 44, 38, 0.12);
}

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

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(115deg, rgba(15, 59, 52, 0.98) 0%, rgba(15, 59, 52, 0.98) 24%, rgba(243, 247, 242, 0.96) 24%, rgba(243, 247, 242, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(47, 97, 120, 0.08) 0, rgba(47, 97, 120, 0.08) 1px, transparent 1px, transparent 28px);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18) 42%, rgba(15, 59, 52, 0.06)),
    repeating-linear-gradient(90deg, rgba(15, 59, 52, 0.06) 0, rgba(15, 59, 52, 0.06) 1px, transparent 1px, transparent 72px);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 54px;
}

.hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  isolation: isolate;
  padding: 34px;
  border-radius: 8px;
  background: var(--forest);
  box-shadow: 0 24px 70px rgba(12, 31, 27, 0.28);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(8, 30, 26, 0.94) 0%, rgba(8, 30, 26, 0.82) 42%, rgba(8, 30, 26, 0.32) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1px, transparent 1px, transparent 44px),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.34));
}

.hero-shade {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 9px;
  background: linear-gradient(90deg, var(--rust), var(--gold), var(--blue), var(--forest-2));
}

.hero-content {
  position: relative;
  max-width: 720px;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: 3.45rem;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  font-weight: 600;
}

.hero-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 118px;
  flex: 0 0 auto;
}

.hero-meta span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.worldcup-entry {
  position: relative;
  min-height: 108px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 22px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(185, 78, 54, 0.98) 0%, rgba(216, 154, 53, 0.96) 46%, rgba(47, 97, 120, 0.98) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 1px, transparent 1px, transparent 26px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(185, 78, 54, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.worldcup-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(90deg, rgba(15, 59, 52, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.worldcup-entry:hover {
  transform: translateY(-3px);
  filter: saturate(1.04);
  box-shadow: 0 24px 58px rgba(47, 97, 120, 0.26);
}

.worldcup-entry:focus-visible {
  outline: 3px solid rgba(255, 220, 132, 0.9);
  outline-offset: 3px;
}

.worldcup-entry > span {
  position: relative;
  z-index: 1;
}

.worldcup-entry-mark {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.worldcup-entry-mark::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.95) 45%, rgba(255, 255, 255, 0.95) 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.9) 55%, transparent 55%);
  box-shadow: 0 8px 18px rgba(15, 59, 52, 0.16);
}

.worldcup-entry-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.worldcup-entry-kicker {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(15, 59, 52, 0.24);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
}

.worldcup-entry strong {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
}

.worldcup-entry small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
  font-weight: 700;
}

.worldcup-entry-action {
  min-width: 96px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--forest);
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15, 59, 52, 0.14);
}

.nav-layout {
  display: grid;
  gap: 30px;
  margin-top: 32px;
}

.app-desktop {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-section {
  min-width: 0;
}

.app-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.title-copy {
  min-width: 0;
}

.cat-main-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.cat-icon {
  flex: 0 0 auto;
}

.cat-sub-title {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.section-count {
  flex: 0 0 auto;
  min-width: 36px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e6eee8;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 900;
}

.app-grid,
ul.app-desktop {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

ul.app-desktop {
  margin-bottom: 30px;
}

ul.app-desktop .app-title {
  grid-column: 1 / -1;
}

ul.app-desktop .app-item {
  list-style: none;
}

.app-item {
  min-width: 0;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 12px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(19, 33, 29, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.app-item:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 78, 54, 0.42);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.app-item:focus-visible {
  outline: 3px solid rgba(216, 154, 53, 0.8);
  outline-offset: 3px;
}

.app-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(23, 33, 31, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.app-icon img,
.app-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  border-radius: 8px;
}

.app-name {
  width: 100%;
  min-height: 2.45em;
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.help-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 59, 52, 0.96), rgba(35, 69, 58, 0.94)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 24px);
  color: #fff;
  box-shadow: 0 16px 42px rgba(12, 31, 27, 0.18);
}

.help-title {
  color: #f5d38c;
  font-size: 1.05rem;
  font-weight: 900;
}

.help-text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 600;
}

.help-text a {
  color: #ffd06b;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 208, 107, 0.5);
}

.help-text a:hover {
  color: #fff1c6;
}

.float-app-download {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 1200;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 68px;
  min-height: 76px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  filter: drop-shadow(0 10px 18px rgba(12, 31, 27, 0.28));
}

.float-app-download img {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(15, 59, 52, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-app-download span {
  min-width: 58px;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b94e36, #d89a35);
  box-shadow: 0 8px 18px rgba(185, 78, 54, 0.24);
  line-height: 1.15;
  white-space: nowrap;
}

.float-app-download:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 34px rgba(15, 59, 52, 0.34);
}

@media (min-width: 1280px) {
  .site-shell {
    width: min(1260px, calc(100% - 40px));
  }

  .app-grid,
  ul.app-desktop {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body {
    background:
      linear-gradient(150deg, rgba(15, 59, 52, 0.98) 0%, rgba(15, 59, 52, 0.98) 18%, rgba(243, 247, 242, 0.97) 18%, rgba(243, 247, 242, 0.97) 100%),
      repeating-linear-gradient(135deg, rgba(47, 97, 120, 0.08) 0, rgba(47, 97, 120, 0.08) 1px, transparent 1px, transparent 28px);
  }

  .hero {
    min-height: 290px;
    align-items: flex-end;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .app-grid,
  ul.app-desktop {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(680px, calc(100% - 20px));
    padding: 12px 0 34px;
  }

  .hero {
    min-height: 265px;
    display: grid;
    gap: 18px;
    padding: 24px 18px 18px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-meta {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worldcup-entry {
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin-top: 14px;
    padding: 16px;
  }

  .worldcup-entry-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .nav-layout {
    gap: 24px;
    margin-top: 24px;
  }

  .app-title {
    align-items: center;
    margin-bottom: 12px;
  }

  .cat-main-title {
    font-size: 1.08rem;
  }

  .cat-sub-title {
    font-size: 0.82rem;
  }

  .app-grid,
  ul.app-desktop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .app-item {
    min-height: 108px;
    padding: 12px 8px 10px;
  }

  .app-icon {
    width: 46px;
    height: 46px;
  }

  .app-name {
    font-size: 0.82rem;
  }

  .help-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 26px;
    padding: 18px;
  }

  .float-app-download {
    right: 12px;
    bottom: 14px;
    width: 58px;
    min-height: 64px;
    font-size: 10px;
  }

  .float-app-download img {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .float-app-download span {
    min-width: 50px;
    padding: 2px 6px;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: min(460px, calc(100% - 14px));
  }

  .hero {
    min-height: 242px;
    padding: 20px 14px 14px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-eyebrow {
    font-size: 0.78rem;
  }

  .hero-meta span {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .worldcup-entry {
    min-height: 98px;
    padding: 14px;
  }

  .worldcup-entry-mark {
    width: 52px;
    height: 52px;
  }

  .worldcup-entry-mark::before {
    width: 31px;
    height: 31px;
    border-width: 2px;
  }

  .worldcup-entry strong {
    font-size: 1.08rem;
  }

  .worldcup-entry small {
    font-size: 0.82rem;
  }

  .worldcup-entry-kicker,
  .worldcup-entry-action {
    font-size: 0.8rem;
  }

  .app-grid,
  ul.app-desktop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .app-item {
    min-height: 100px;
    padding: 10px 6px;
  }

  .app-icon {
    width: 42px;
    height: 42px;
  }

  .app-icon img,
  .app-icon svg {
    padding: 4px;
  }

  .app-name {
    margin-top: 8px;
    font-size: 0.76rem;
  }
}
