/* 天上人间 tsxj 壳层 — 对照 996090.com /template/domain1/css/style.css */
* {
  margin: 0;
  padding: 0;
  font-size: 100%;
}

html {
  background: url(/template/frontends/tsxj/assets/img/bg.jpg) top center no-repeat #fff;
  background-size: cover;
  background-attachment: fixed;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  line-height: 1.5;
  font-size: 14px;
  font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
  word-break: break-all;
  word-wrap: break-word;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  vertical-align: middle;
  border: 0;
}

a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.box {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 5px;
}

/* —— 源站 domain1 顶栏：logo-bar（锚点之上）+ 本站 nav2（锚点样式保留）—— */
.header {
  width: 100%;
  max-width: 720px;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
  background: #CC3300;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 99;
}

.header .logo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 10px 0 0;
  position: relative;
}

.header .logo-bar .logo img {
  height: 60px;
  width: auto;
  max-width: none;
  display: block;
}

.header .logo-bar .quan {
  width: 60px;
  height: 60px;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
}

.header .logo-bar .quan img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 20px #000;
  -webkit-animation: z 5s linear 0s infinite;
  animation: z 5s linear 0s infinite;
}

.header .logo-bar .home {
  line-height: 1;
  text-align: center;
  color: #fff;
  font-size: 12px;
}

.header .logo-bar .home a {
  color: #fff;
  text-decoration: none;
}

.header .logo-bar .home img {
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.header .logo-bar .home span {
  display: block;
}

@-webkit-keyframes z {
  from {
    -webkit-transform: rotateZ(0deg);
    transform: rotateZ(0deg);
  }
  to {
    -webkit-transform: rotateZ(360deg);
    transform: rotateZ(360deg);
  }
}

@keyframes z {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(360deg);
  }
}

.header-blank {
  height: 130px;
}

@media screen and (max-width: 720px) {
  .header .logo-bar {
    padding: 0 5px 0 0;
  }

  .header .logo-bar .quan {
    position: relative;
  }
}

/* 锚点：本站 nav2 圆钮，挂在朱红 header 内（不对齐源站 .nav 白条） */
.header #nav2.nav2,
.header .nav2 {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 2px;
  font-size: 13px;
  background: transparent;
  border-top: solid 1px #fff;
  border-bottom: solid 1px #fff;
}

.header .nav2 ul {
  padding: 2px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
}

.header .nav2 ul li {
  width: 100%;
  box-sizing: border-box;
  padding: 0 2px;
  list-style: none;
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}

.header .nav2 ul li a {
  display: block;
  padding: 3px 0;
  text-align: center;
  color: #fff;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header .nav2 ul li a:hover {
  background: var(--home-nav2-hover, #990000);
  text-decoration: none;
}

/* 顶栏已整体 fixed：关闭 nav2 单独吸顶占位 */
.header #nav2-stick,
.header .nav2-stick,
.header #nav2-spacer,
.header .nav2-spacer {
  display: none !important;
  height: 0 !important;
}

.header #nav2[data-fixed="fixed"],
.header .nav2[data-fixed="fixed"] {
  position: static !important;
  box-shadow: none !important;
}

@media screen and (min-width: 800px) {
  .header .nav2 {
    padding: 4px;
    font-size: 16px;
  }

  .header .nav2 ul {
    padding: 4px 0;
  }

  .header .nav2 ul li {
    padding: 0 4px;
  }

  .header .nav2 ul li a {
    padding: 5px 0;
  }
}

.lottery-shell {
  margin-top: 5px;
  background: #CC3300;
}

/* 源站 domain1 .footer */
.footer {
  padding: 5px 0;
  color: #fff;
  text-align: center;
  margin: 5px 0 40px;
  background: #CC3300;
}

.footer dl {
  padding: 0 10%;
  margin: 0;
}

.footer dl dd {
  padding: 5px 0;
  border-bottom: solid 1px #000;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.footer dl dd p {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.footer a:hover {
  color: #f00 !important;
}

.footer > div {
  padding: 5px 0;
}

.footer > div img {
  max-width: 100%;
  height: auto;
}

.tsxj-brand {
  color: #CC3300;
}

.cont.center {
  text-align: center;
}

.pad {
  padding: 4px;
}
