/* SoCSS 2022 @ SOSHOW */
@charset "UTF-8";

/* CSS变量 : 定义统一样式 */
:root {
  --white: #fff;
  --silver: #f5f5f5;
  --steel: #eee;
  --gray: #ddd;
  --black: #222;
  --yellow: #ffc864;
  --yellow2: #ffc800;
  --red: #f22;
  --pink: #f36;
  --pink2: #ff1e3c;
  --purple: #84f;
  --purple2: #63f;
  --blue: #0af;
  --blue2: #09f;
  --radius: 6px;
  /* padding block left & right */
  --pdw: 5vh;
  /* padding / margin block before & after */
  --spacer: calc(20px + 2vh);
  --spacer2: calc(40px + 4vh);
  /* margin title before & after */
  --mgtt: 2vh;
  /* gradient color */
  --gdcolor: linear-gradient(to right, #ffc800, #ffb400);
  --gdcolor2: linear-gradient(to right, #ffb400, #ffc800);
  --gdcolor3: linear-gradient(to right, #ffb400, #ff9600);
  /* subtitle color */
  --tt2color: #666;
  --tt2color2: rgba(0, 0, 0, 0.6);
  --tt2color3: rgba(0, 0, 0, 0.1);
  --bdr: solid #eee 1px;
  --ratio: 1.618122977346278;
  --trans: all 0.3s ease-out;
  --blur: blur(10px);
  --blur2: blur(20px);
  --blurbig: blur(30px);
  --dot: calc(5px + 0.5vh);
  --h1: calc(34px + 1vh);
  --h2: calc(30px + 1vh);
  --h3: calc(26px + 1vh);
  --h4: calc(22px + 1vh);
  --h5: calc(18px + 1vh);
  --h6: calc(14px + 1vh);
  --h7: calc(14px + 0.5vh);
  --fonts: "PingFang SC", "Helvetica Neue", Helvetica, "Microsoft YaHei", sans-serif-thin, sans-serif-light, sans-serif, Arial, "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei";
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  border: none;
  font-weight: 400;
  font-style: normal;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden !important;
}

html {
  /* 设置移动设备上文字在不同宽度屏幕自动缩放 */
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  background: #fff;
  min-height: 100vh;
  color: var(--black);
  font-size: 1rem;
  line-height: var(--ratio);
  font-family: var(--fonts);
}

header, nav, main, footer, section, menu, article, cite, aside, details, figcaption, figure, hgroup, summary {
  display: block;
}

pre, code, address, caption, th, figcaption {
  font-style: normal;
}

fieldset, iframe, img {
  border: none;
}

b, strong {
  font-weight: bold;
}

sub, sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

h4 {
  font-size: var(--h4);
}

h5 {
  font-size: var(--h5);
}

h6 {
  font-size: var(--h6);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.5;
}

ul, li, dl, dt, dd, ol {
  list-style: none;
}

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

table tr:nth-child(2n), tbody tr:nth-child(2n), ul.nth li:nth-child(2n), dl.nth dd:nth-child(2n) {
  background: var(--silver);
}

th, td {
  padding: 10px;
  text-align: center;
}

caption, thead th, tbody th, tfoot th, th {
  font-weight: 400;
}

picture {
  display: block;
}

/* 图片自适应调整,并解决图片缩放的失真问题*/
img, svg, source, object, video, embed, canvas, audio, progress {
  display: block;
  border: none;
  object-fit: cover;
  object-position: center;
}

.ct {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

a img, a svg, a video, button img, button svg {
  transition: var(--trans);
}

a:hover img, button:hover img, button:hover svg {
  transform: scale(1.5);
}

/* 去除移动设备链接触摸高亮 */
a, button, input, i {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
  display: inline-block;
  outline: none;
  cursor: pointer;
  text-decoration: none;
}

a, a:link, a:visited {
  color: var(--black);
}

a:hover, a:active {
  color: var(--purple);
}

/* 设置被选中的文本样式 */
::selection {
  background: var(--red);
  color: #fff;
}

.show {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pdw);
}

@media (min-width: 1200px) {
  .show {
    padding: 0;
  }
}

.vw100 {
  width: 100vw;
}

.w100p {
  width: 100%;
}

.h100p {
  height: 100%;
}

.wh100p {
  width: 100%;
  height: 100%;
}

.vh100 {
  height: 100vh;
}

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

.fdc {
  flex-direction: column;
}

.fg1 {
  flex-grow: 1;
}

.jcsb {
  justify-content: space-between;
}

.dg {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 3vh;
}

.db {
  display: block;
}

.dib {
  display: inline-block;
}

.dn {
  display: none;
}

.bgf {
  background: #fff;
}

.oh {
  overflow: hidden;
}

.oa {
  overflow: auto;
}

.pr {
  position: relative;
}

.pa {
  position: absolute;
}

.pf {
  position: fixed;
}

.lh1 {
  line-height: 1;
}

.fw400 {
  font-weight: 400;
}

/* 单行文字超出显示省略号 */
.overs a {
  width: 100%;
  line-height: 1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tac {
  text-align: center;
}

/* 解决0.5像素边框 */
.bds {
  position: relative;
}

.bds::before {
  display: block;
  width: 200%;
  height: 200%;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border: var(--bdr);
  transform-origin: left top;
  transform: scale(0.5, 0.5);
}

hr.gray {
  width: 100%;
  height: 0;
  border: none;
  position: relative;
}

hr.gray::before {
  display: block;
  width: 200%;
  height: 1px;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background: var(--gray);
  transform-origin: left top;
  transform: scale(0.5, 0.5);
}

/* form */
button, input[type="text"], input[type="password"], input[type="file"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="search"], input[type="color"], input[type="button"], input[type="image"], input[type="reset"], input[type="submit"], select, textarea, label {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border-radius: var(--radius);
  display: inline-block;
  font-size: 1rem;
  color: var(--black);
  font-family: var(--fonts);
}

input[type="text"], input[type="password"], input[type="file"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="search"], input[type="color"], select {
  min-width: 200px;
  height: 44px;
  line-height: 44px;
  padding: 0 15px;
  background: var(--silver);
  caret-color: var(--red);
}

input[type="radio"], input[type="checkbox"] {
  margin-right: 10px;
}

textarea {
  min-width: 300px;
  height: 150px;
  overflow: auto;
  resize: none;
  padding: 10px 15px;
  vertical-align: middle;
  background: var(--silver);
  line-height: var(--ratio);
  caret-color: var(--red);
}

label {
  cursor: pointer;
}

input[type="text"]:hover, input[type="password"]:hover, input[type="file"]:hover, input[type="email"]:hover, input[type="url"]:hover, input[type="tel"]:hover, input[type="number"]:hover, input[type="range"]:hover, input[type="date"]:hover, input[type="month"]:hover, input[type="week"]:hover, input[type="time"]:hover, input[type="datetime"]:hover, input[type="datetime-local"]:hover, input[type="search"]:hover, input[type="color"]:hover, select:hover, textarea:hover {
  background-color: var(--steel);
}

input[type="text"]:focus, input[type="password"]:focus, input[type="file"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="tel"]:focus, input[type="number"]:focus, input[type="range"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="week"]:focus, input[type="time"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="search"]:focus, input[type="color"]:focus, select:focus, textarea:focus {
  outline: solid var(--black) 1px;
  outline-offset: -1px;
}

select, select:focus {
  border-radius: var(--radius);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 22'%3E%3Cpath d='M1 1h30M6 11h20M11 21h10' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 10px;
  padding-right: 40px;
}

select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 22'%3E%3Cpath d='M1 21h30M6 11h20M11 1h10' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 10px;
}

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: var(--tt2color2);
}

input:input-placeholder, textarea:input-placeholder {
  color: var(--tt2color2);
}

input::placeholder, textarea::placeholder {
  color: var(--tt2color2);
}

button::-moz-focus-inner, input::-moz-focus-inner {
  padding: 0;
  border: 0;
}

/* 去除数字框右边上下小箭头 */
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
  visibility: hidden;
}

/* button style start */
.btn, a.btn, button, input[type="button"], input[type="reset"], input[type="submit"] {
  display: inline-block;
  cursor: pointer;
  line-height: 1;
  padding: 15px 30px;
  background: var(--yellow);
  border-radius: var(--radius);
}

input[type="reset"] {
  background: var(--silver);
  margin-left: 40px;
}

.btn:hover, a.btn:hover, button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover {
  background: var(--yellow2);
  color: #fff;
}

button:focus, input:focus, select:focus, textarea:focus, label:focus, a:focus {
  outline: none;
}

button[disabled], html input[disabled] {
  cursor: not-allowed;
}

/* Grid Columns */
.gtc {
  grid-template-columns: 1fr;
}

.gtc2 {
  grid-template-columns: repeat(2, 1fr);
}

.gtc3 {
  grid-template-columns: repeat(3, 1fr);
}

.gtc4 {
  grid-template-columns: repeat(4, 1fr);
}

.gtc5 {
  grid-template-columns: repeat(5, 1fr);
}

.gtc6 {
  grid-template-columns: repeat(6, 1fr);
}

@media (min-width: 600px) {
  :root {
    --dot: 8px;
  }
}

@media (min-width: 900px) {}

@media (min-width: 1000px) {
  :root {
    --h1: 44px;
    --h2: 40px;
    --h3: 36px;
    --h4: 32px;
    --h5: 28px;
    --h6: 24px;
    --h7: 19px;
  }
}

@media (min-width: 1200px) {
  :root {
    --spacer: 44px;
    --spacer2: 88px;
  }
}

/* 模态框 */
.mod {
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 99;
  display: none;
}

.mod::before {
  display: block;
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: var(--blur2);
  backdrop-filter: var(--blur2);
}

.info {
  position: relative;
  white-space: nowrap;
}

.info::before {
  display: none;
  position: absolute;
  background: #fff;
  line-height: 1;
  padding: 10px;
  left: 50%;
  top: -45px;
  font-size: 14px;
  color: var(--black);
  border-radius: var(--radius);
  transform: translateX(-50%);
  box-shadow: 0 0 5px #ddd;
  z-index: 21;
}

.info:hover::before {
  display: inline-flex;
}

.info::after {
  display: none;
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 50%;
  top: -15px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  border-right: solid var(--steel) 1px;
  border-bottom: solid var(--steel) 1px;
  z-index: 21;
}

.info:hover::after {
  display: block;
}

/* padding block before & after */
.pdba {
  padding: var(--spacer) 0;
}

.pdba2 {
  padding: var(--spacer2) 0;
}

/* padding block before */
.pdb {
  padding-top: var(--spacer);
}

.pdb2 {
  padding-top: var(--spacer2);
}

/* padding block after */
.pda {
  padding-bottom: var(--spacer);
}

.pda2 {
  padding-bottom: var(--spacer2);
}

.block {
  position: relative;
  background: #fff;
}

.core {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 翻页标识 */
.indicator {
  right: var(--pdw);
  top: 50%;
  z-index: 30;
  transform: translateY(-50%);
}

.indicator li {
  width: var(--dot);
  height: var(--dot);
  margin: var(--dot) 0;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: 0 0 7px #fff;
  transition: var(--trans);
}

.indicator li.active {
  height: calc(var(--dot)*3);
}

@media (min-width: 1000px) {
  .indicator {
    right: 20px;
  }
}
