/* ===== CSS Variables ===== */
:root {
  --page-width: 1920px;
  --content-width: 1230px;
  --layout-width: 1230px;

  --color-primary: #007dff;
  --color-primary-dark: #0072cb;
  --color-accent: #33abc3;
  --color-text: #000000;
  --color-text-secondary: #606060;
  --color-text-muted: #bababa;
  --color-text-light: #a1a1a1;
  --color-highlight: #0f7e94;
  --color-bg-light: #f7faff;
  --color-bg-section: #f9fbff;
  --color-bg-card: #f4f8ff;
  --color-footer: #303243;
  --color-footer-nav: #353a48;
  --color-divider: #d7d7d7;
  --color-nav-active: #003f74;

  --font-base: PingFangSC-Regular, Roboto, "Helvetica Neue", Helvetica, Tahoma,
    Arial, "PingFang SC-Light", "Microsoft YaHei", sans-serif;
  --font-semibold: PingFangSC-Semibold, var(--font-base);
  --font-medium: PingFangSC-Medium, var(--font-base);
  --font-display: AlimamaShuHeiTi-Bold, var(--font-base);
  --font-number: DOUYINSANSBOLD-GB, var(--font-base);
  --font-banner: FZCSJW--GB1-0, var(--font-display);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

input {
  background-color: transparent;
  border: 0;
}

button {
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  outline: none;
  background-color: transparent;
  cursor: pointer;
}

button:active {
  opacity: 0.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== Layout Utilities ===== */
.page {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  overflow-x: hidden;
}

.container {
  width: var(--layout-width);
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 30px;
}

body[data-layout="wide"] {
  --layout-width: 1233px;
}

.container--full {
  width: 100%;
  max-width: var(--page-width);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ===== Category Sidebar (auth / coop / contact) ===== */
body[data-active-page="auth"] .page,
body[data-active-page="coop"] .page,
body[data-active-page="contact"] .page {
  overflow: visible;
}

body[data-active-page="contact"] .container {
  overflow: visible;
}

.auth-page__container {
  overflow: visible;
}

.auth-layout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-content {
  flex: 1;
  min-width: 0;
}

.auth-sidebar-wrap {
  position: relative;
  width: 227px;
  min-width: 227px;
  flex-shrink: 0;
  align-self: stretch;
}

.category-sidebar {
  width: 100%;
  padding-bottom: 24px;
  border-radius: 2px;
  background-color: #f7faff;
  background-image: url("../img/authorization/sidebar-bg.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 100% 30%;
  z-index: 2;
}

.category-sidebar--floating,
.category-sidebar--bottom {
  min-height: 0;
  height: auto;
}

.category-sidebar--floating {
  position: fixed;
  top: 24px;
  max-height: calc(100vh - 47px);
  overflow-y: auto;
}

.category-sidebar--bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 28px 12px;
}

.sidebar-accent {
  width: 3px;
  height: 36px;
  background: #007dff;
  border-radius: 2px;
  flex-shrink: 0;
}

.sidebar-header-logo {
  width: 100%;
  margin-left: 8px;
}

.category-item {
  padding: 0 13px;
  margin-top: 12px;
  cursor: pointer;
}

.category-item:first-of-type {
  margin-top: 24px;
}

.category-item span {
  display: block;
  height: 58px;
  font-size: 20px;
  font-family: "PingFang SC", "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
  color: #000;
  text-align: center;
  line-height: 58px;
  border-radius: 29px;
}

.category-item--active span,
.category-btn {
  background: #007dff !important;
  color: #fff !important;
  font-weight: 600;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.justify-between {
  display: flex;
  justify-content: space-between;
}

.align-center {
  display: flex;
  align-items: center;
}

/* ===== Section Title ===== */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title__decor {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title__decor img {
  width: 9px;
  flex-shrink: 0;
}

.section-title__cn {
  margin: 0;
  font-family: var(--font-semibold);
  font-size: 25px;
  font-weight: 600;
  line-height: 35px;
  color: var(--color-text);
}

.section-title__en {
  margin-top: 8px;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-text-muted);
}

/* ===== Page Tabs (新闻动态 / 游戏举报) ===== */
.news-tabs,
.report-tabs {
  display: flex;
  gap: 16px;
  align-items: center;
}

.news-tabs__item,
.report-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 50px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 22px;
  color: #747474;
  white-space: nowrap;
  cursor: pointer;
}

.news-tabs__item--active,
.report-tabs__item--active {
  min-width: 117px;
  padding: 0 20px;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
  color: #333;
  background: url('../img/news/tabs-active-bg.png') no-repeat center center;
  background-size: 100% 100%;
}

.news-tabs__line,
.report-tabs__line {
  width: 100%;
  height: 1px;
  background: var(--color-divider);
}

/* ===== Link Button ===== */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  line-height: 16px;
  color: var(--color-accent);
  cursor: pointer;
}

.link-btn__arrow {
  width: 8px;
  height: 3px;
  border: 1px solid var(--color-accent);
}

/* ===== Image Placeholder ===== */
.img-placeholder {
  background-color: #d8d8d8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== Hero Section (shared) ===== */
.hero {
  position: relative;
  width: 100%;
  background: linear-gradient(152deg, #dcf3ff 0%, #e4f6ff 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body:not([data-active-page="home"]) .hero {
  height: 585px;
  box-sizing: border-box;
}

.hero__inner {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
}

/* Header Nav */
.header-nav {
  display: flex;
  align-items: flex-start;
  margin: 0 auto;
  height: 76px;
  justify-content: center;
}

.header-nav__logo {
  height: 53px;
  margin-top: 24px;
  flex-shrink: 0;
}

.header-nav__logo img {
  width: auto;
  height: 100%;
}

.header-nav__menu {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 719px;
  height: 43px;
  margin: 30px 0 0 69px;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.36);
  border-radius: 21px;
  overflow: hidden;
}

.header-nav__item {
  display: block;
  height: 22px;
  margin-top: 10px;
  margin-left: 39px;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: var(--color-text);
  white-space: nowrap;
}

.header-nav__item--active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 98px;
  height: 43px;
  margin-top: 0;
  padding: 10px 0 0 17px;
  background-color: rgba(0, 139, 255, 0.31);
  border-radius: 21px;
  color: var(--color-nav-active);
  font-family: var(--font-semibold);
  font-weight: 600;
}

.header-nav__item--active:last-child {
  flex: 1;
  width: auto;
  min-width: 98px;
  margin-right: 0;
  border-radius: 21px 0 0 21px;
}

.header-nav__item:last-child:not(.header-nav__item--active) {
  margin-right: 24px;
}

.header-nav__text {
  display: block;
  font-size: 16px;
  line-height: 22px;
}

.header-nav__indicator {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0 0 22px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Hero Content */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 90px;
  font-weight: 700;
  line-height: 85px;
  text-align: center;
  background: linear-gradient(178deg, #007ce4 0%, #001427 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__divider {
  width: 550px;
  height: 0;
  margin-top: 27px;
  border-top: 2px solid var(--color-primary-dark);
}

.hero__subtitle {
  margin: 18px 0 0;
  font-family: var(--font-semibold);
  font-weight: 600;
  color: var(--color-primary-dark);
  text-align: center;
  background: url("../img/common/hero-title-bg.png") no-repeat center center;
  background-size: cover;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 650px;
  font-size: 38px;
}

.hero__ornament {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.hero__ornament-line {
  width: 230px;
  height: 0;
  border-top: 2px solid var(--color-primary-dark);
}

.hero__ornament-dot {
  border: 2px solid rgba(2, 117, 208, 0.55);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__ornament-dot--sm {
  width: 13px;
  height: 13px;
  margin: 0 3px 0 6px;
}

.hero__ornament-dot--lg {
  width: 22px;
  height: 22px;
  border-color: rgba(2, 117, 208, 1);
  margin: 0 4px;
}

/* ===== Site Links Footer ===== */
#site-footer {
  width: 100%;
  background-color: var(--color-footer-nav);
}

.site-links {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 43px 0;

}

.site-links__inner {
  display: flex;
  align-items: flex-start;
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
}

.site-links__col {
  display: flex;
  flex-direction: column;
  margin-left: 39px;
}

.site-links__col:first-child {
  margin-left: 0;
}

.site-links__title {
  font-size: 17px;
  line-height: 24px;
  color: #DDD;
  white-space: nowrap;
}

.site-links__title--solo {
  margin-left: 39px;
}

.site-links__link {
  margin-top: 16px;
  font-size: 15px;
  line-height: 17px;
  color: #999;
  white-space: nowrap;
}

.site-links__logo {
  width: 165px;
  height: 44px;
  margin-left: auto;
}

/* ===== Copyright Footer ===== */
.site-footer {
  width: 100%;
  margin: 0 auto;
  padding: 11px 0;
  background-color: var(--color-footer);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer__disclaimer {
  margin: 0;
  font-size: 13px;
  line-height: 17px;
  color: #ffffff;
  white-space: nowrap;
}

.site-footer__copyright {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 13px;
  color: #999;
  white-space: nowrap;
}

/* ===== Page-specific nav spacing ===== */
body[data-active-page="home"] .header-nav__item--active {
  margin: 0;
}

body[data-active-page="home"] .header-nav__item--active + .header-nav__item {
  margin-left: 22px;
}

body[data-active-page="about"] .header-nav__item--lead,
body[data-active-page="auth"] .header-nav__item--lead,
body[data-active-page="coop"] .header-nav__item--lead,
body[data-active-page="news"] .header-nav__item--lead,
body[data-active-page="report"] .header-nav__item--lead,
body[data-active-page="contact"] .header-nav__item--lead {
  margin-left: 17px;
}

body[data-active-page="about"] .header-nav__item--active,
body[data-active-page="auth"] .header-nav__item--active,
body[data-active-page="coop"] .header-nav__item--active,
body[data-active-page="news"] .header-nav__item--active,
body[data-active-page="report"] .header-nav__item--active,
body[data-active-page="contact"] .header-nav__item--active {
  margin-left: 22px;
}

body[data-active-page="about"] .header-nav__item--after-active,
body[data-active-page="auth"] .header-nav__item--after-active,
body[data-active-page="coop"] .header-nav__item--after-active,
body[data-active-page="news"] .header-nav__item--after-active,
body[data-active-page="report"] .header-nav__item--after-active {
  margin-left: 22px;
}
