* {
  box-sizing: border-box;
}

:root {
  --black: #070707;
  --red: #b91120;
  --red-dark: #830914;
  --gold: #d8a534;
  --gold-bright: #ffd86a;
  --gold-soft: #fff2cf;
  --ink: #111111;
  --muted: #5f5a52;
  --line: #ecd299;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.62;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.qq88-page {
  overflow-x: hidden;
  background: #ffffff;
}

.qq88-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.qq88-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #ece7dd;
  box-shadow: 0 14px 30px rgba(20, 17, 15, .08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.qq88-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  color: #111;
  font-size: 35px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-bright), var(--red) 62%, #070707);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(185, 17, 32, .22);
}

.qq88-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.qq88-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 8px;
  color: #111;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.qq88-nav a:hover,
.qq88-nav a.is-active {
  color: var(--red);
  background: #fff7e7;
}

.header-actions,
.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.qq88-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid rgba(20, 17, 15, .18);
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.qq88-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(20, 17, 15, .12);
}

.qq88-btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), #d41d2c);
  box-shadow: 0 14px 28px rgba(185, 17, 32, .24);
}

.qq88-btn.dark {
  color: #fff;
  border-color: rgba(255, 216, 106, .55);
  background: rgba(7, 7, 7, .42);
}

.qq88-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .72) 36%, rgba(0, 0, 0, .18) 70%, rgba(0, 0, 0, .03) 100%),
    #050505 url("qq88-hero-bg.png") center / cover no-repeat;
}

.home-hero {
  min-height: 560px;
}

.article-hero {
  min-height: 420px;
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero-content > * {
  max-width: 700px;
}

.qq88-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .55);
}

.qq88-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 20px;
  line-height: 1.58;
  text-shadow: 0 6px 18px rgba(0, 0, 0, .55);
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 34px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  padding: 62px 0 82px;
}

.article-card,
.article-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 17, 15, .07);
}

.article-card {
  padding: 38px;
}

.article-meta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 18px;
  border-radius: 6px;
  color: #111;
  background: var(--gold-soft);
  font-size: 13px;
  font-weight: 950;
}

.article-card > h1 {
  margin: 0 0 18px;
  color: #111;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.qq88-article-body {
  color: #26313b;
  font-size: 17px;
  line-height: 1.82;
}

.qq88-article-body h2,
.qq88-article-body h3 {
  color: #111;
  line-height: 1.22;
  font-weight: 950;
}

.qq88-article-body h2 {
  margin: 22px 0 14px;
  font-size: 25px;
}

.qq88-article-body h3 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.qq88-article-body p {
  margin: 0 0 16px;
}

.qq88-article-body ul,
.qq88-article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.qq88-article-body li {
  margin: 8px 0;
  line-height: 1.72;
}

.qq88-article-body a {
  color: var(--red);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 98px;
  padding: 24px;
}

.article-aside h2 {
  margin: 0 0 16px;
  color: #050505;
  font-size: 23px;
  line-height: 1.24;
  font-weight: 950;
}

.aside-links,
.template-related {
  display: grid;
  gap: 12px;
}

.template-related {
  margin-top: 12px;
}

.aside-links a,
.template-related a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111;
  background: #fff;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.aside-links a:hover,
.template-related a:hover {
  color: var(--red);
  border-color: var(--red);
}

.article-nav {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--red);
  font-weight: 900;
}

.qq88-pagination ul,
.qq88-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.qq88-pagination a,
.qq88-pagination span,
.qq88-pagination li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-weight: 800;
  list-style: none;
}

.qq88-pagination a:hover,
.qq88-pagination .thisclass {
  color: #fff;
  border-color: transparent;
  background: var(--red);
}

.home-section {
  padding: 70px 0 76px;
  background: #fff;
}

.home-section.muted {
  border-top: 1px solid #eee5d3;
  background: #fffdf8;
}

.section-title {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-title h2 {
  margin: 0 0 10px;
  color: #111;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  font-weight: 950;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card,
.news-card,
.list-item {
  display: block;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 17, 15, .07);
}

.category-card span,
.news-card span,
.list-item span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #111;
  background: var(--gold-soft);
  font-size: 13px;
  font-weight: 950;
}

.category-card h3,
.news-card h3,
.list-item h2 {
  margin: 0 0 10px;
  color: #111;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 950;
}

.category-card p,
.news-card p,
.list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.category-card:hover,
.news-card:hover,
.list-item:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

.news-grid,
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.list-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

@media (max-width: 1080px) {
  .header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .qq88-nav {
    order: 3;
    width: 100%;
  }

  .article-layout,
  .list-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .qq88-wrap,
  .hero-content {
    width: calc(100% - 28px);
    max-width: 1180px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 0;
  }

  .qq88-brand {
    justify-self: start;
    font-size: 30px;
  }

  .brand-mark {
    width: 48px;
    height: 38px;
    font-size: 20px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    flex: 1 1 100%;
    gap: 10px;
    width: 100%;
  }

  .header-actions .qq88-btn {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
  }

  .qq88-nav {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow-x: visible;
  }

  .qq88-nav a {
    min-width: 0;
    padding: 0 8px;
    white-space: normal;
    text-align: center;
  }

  .qq88-hero {
    min-height: 560px;
    background-position: 62% center;
  }

  .article-hero {
    min-height: 390px;
  }

  .hero-content {
    padding: 52px 0 58px;
  }

  .qq88-hero h1 {
    font-size: 42px;
  }

  .qq88-hero p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .article-card {
    padding: 26px;
  }

  .category-grid,
  .news-grid,
  .list-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .qq88-hero h1 {
    font-size: 37px;
  }

  .qq88-btn {
    min-height: 44px;
    font-size: 13px;
  }

  .qq88-nav a {
    padding: 0 10px;
  }
}

.qq88-footer {
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(185, 17, 32, .34), transparent 34%),
    linear-gradient(135deg, #090808 0%, #160b0b 50%, #2b080d 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 56px 0;
}

.footer-brand .qq88-brand {
  margin-bottom: 12px;
  color: #fff;
}

.footer-brand p,
.footer-col a,
.footer-col p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.footer-brand a:not(.qq88-brand) {
  color: var(--gold-bright);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h3 {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .64);
  text-align: center;
  font-size: 13px;
}
