/* ==================
       初始化样式
 ==================== */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
  margin: auto;
}
/* 定义主题变量 */
:root {
  /* 亮色主题 */
  --light-primary: #36c084;
  --light-secondary: #39a531;
  --light-background: #ffffff;
  --light-text: #333333;

  /* 暗色主题 */
  --dark-primary: #4dabf7;
  --dark-secondary: #adb5bd;
  --dark-background: #1a1a1a;
  --dark-text: #ffffff;

  /* 默认使用亮色主题 */
  --color-primary: var(--light-primary);
  --color-secondary: var(--light-secondary);
  --color-background: var(--light-background);
  --color-text: var(--light-text);
}

/* 重置a元素 */
a {
  text-decoration: none;
}
a:hover {
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.4s;
  -moz-transition: color 0.4s;
  -webkit-transition: color 0.4s;
  -o-transition: color 0.4s;
}
/* 重置图片 */
img {
  font-size: 0;
  border: none;
}

/* ==================
          图片
 ==================== */

/* 铺满全部 */
.s-img img {
  width: 100%;
  height: 100%;
  display: block;
}
.s-pic img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: auto;
}

/* ==================
          动画
 ==================== */

.s-transform {
  transition: all 0.6s ease 0s;
}

/* ==================
        清除浮动
 ==================== */

.s-clear,
.s-clearfix {
  zoom: 1;
}
.s-clear:before,
.s-clearfix:before {
  display: table;
  content: " ";
}
.s-clear:after,
.s-clearfix:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  float: none;
  margin: 0;
}

/* ==================
        辅助
 ==================== */

/* 单行文字省略 */
.s-ellipsis-one {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  word-break: break-all;
}
/* 两行文字省略 */
.s-ellipsis-two {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  word-break: break-all;
}
/* 三行文字省略 */
.s-ellipsis-three {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  word-break: break-all;
}

.s-hide {
  display: none;
}
/* 编辑器图片 */
.s-editor {
  line-height: 220%;
  font-size: 16px;
}
.s-editor img,
.s-editor video {
  max-width: 100% !important;
  height: auto !important;
}

/* ==================
        表单
 ==================== */
/* form */
.s-form {
  padding: 5px 10px;
  font-size: 14px;
}
.s-form-item {
  display: flex;
  margin-bottom: 20px;
}
.s-form-item .s-form-title {
  padding-right: 20px;
  font-size: 14px;
  line-height: 38px;
  color: #606266;
}
.s-form-item input::placeholder {
  color: #d2d6df;
  opacity: 1;
}
.s-form-item.required .s-form-title::before {
  content: "*";
  color: #ff3030;
  margin-right: 4px;
}
.s-form-content {
  width: 100%;
  flex: 1;
}
/* 每行列 */
.s-flex {
  display: flex;
  flex-wrap: wrap;
}
.s-row1 {
  flex: 0 0 99%;
  margin: 0 0.5% 20px;
}
.s-row2 {
  flex: 0 0 49%;
  margin: 0 0.5% 20px;
}
.s-row3 {
  flex: 0 0 32.3333%;
  margin: 0 0.5% 20px;
}
.s-row4 {
  flex: 0 0 24%;
  margin: 0 0.5% 20px;
}
.s-row4_3 {
  flex: 0 0 74%;
  margin: 0 0.5% 20px;
}
/* 列 */
.s-form.s-form-column .s-form-title {
  line-height: 1;
}
.s-form.s-form-column .s-form-item {
  flex-direction: column;
  align-items: flex-start;
}
.s-form.s-form-column .s-form-content {
  margin: 10px 0 0;
}
/* 列-end */
.s-form-control {
  width: 100%;
  height: 32px;
  font-weight: 400;
  line-height: 1.5;
  padding: 6px 12px;
  border-radius: 6px;
  color: #555;
  border: 1px solid #dcdfe6;
  outline: 0;
  box-sizing: border-box;
}
.s-form-tip {
  background-color: #fdf6ec;
  color: #e6a23c;
  padding: 4px 14px;
  font-size: 12px;
  line-height: 20px;
  margin-top: 6px;
}
.s-form-control:focus {
  border: 1px solid var(--color-primary);
}
.s-form-content .s-form-city {
  display: flex;
}
.s-form-content .s-form-city select {
  margin-right: 10px;
}
.s-form-content .s-form-city select:last-child {
  margin-right: 0;
}
.s-form-content .s-form-city .item {
  margin-right: 10px;
}
.s-form-content .s-form-city .item:last-child {
  margin-right: 0;
}
select.s-form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url(../images/down.png) no-repeat right 10px center;
}
textarea.s-form-control {
  height: auto;
}
/* checkbox */
.s-checkbox-group {
  display: flex;
  flex-wrap: wrap;
}
.s-checkbox {
  position: relative;
  display: flex;
  margin: 0 10px 10px 0;
}
.s-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  opacity: 0;
}
.s-checkbox label {
  width: 16px;
  height: 16px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.s-checkbox input[type="checkbox"]:checked + label:after {
  position: absolute;
  content: "";
  width: 4px;
  height: 8px;
  top: 1px;
  left: 5px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.s-checkbox input[type="checkbox"]:checked + label {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}
/* checkbox-end */
/* checkbox */
.s-radio-group {
  display: flex;
  flex-wrap: wrap;
}
.s-radio {
  position: relative;
  display: flex;
  margin: 0 10px 10px 0;
}
.s-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  opacity: 0;
  border-radius: 50%;
}
.s-radio label {
  width: 16px;
  height: 16px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: 50%;
}
.s-radio input[type="radio"]:checked + label:after {
  position: absolute;
  content: "";
  width: 4px;
  height: 8px;
  top: 1px;
  left: 5px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.s-radio input[type="radio"]:checked + label {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}
/* radio-end */
.s-upload {
  display: flex;
  flex-wrap: wrap;
}
.s-upload-item {
  width: 100px;
  height: 100px;
  border: 1px dashed #dedede;
  border-radius: 4px;
  margin: 0 10px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.s-upload-item.s-upload-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #888888;
  background: #fff;
  font-size: 24px;
}
.s-upload-item.s-upload-btn p:last-child {
  margin: 10px 0 0;
  font-size: 14px;
}
.s-upload-item.s-upload-btn input {
  width: 100%;
  height: 100%;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}
.s-upload-item .del {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0px;
  right: 0px;
  width: 20px;
  height: 20px;
}
.s-upload-item a {
  display: block;
  width: 100%;
  height: 100%;
}
.s-upload-item a.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s-upload-item a.file {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================
        字体
 ==================== */

@font-face {
  font-style: normal;
  font-family: "DingTalk-JinBuTi";
  src: url("../fonts/DingTalk-JinBuTi.ttf") format("truetype");
}

/* ==================
        layui主题
 ==================== */
.s-textarea {
  position: relative;
}
.s-table .layui-form-checkbox[lay-skin="primary"] {
  padding-left: 0;
}
.s-form-content .s-form-city .layui-form-select,
.s-form-content .s-form-city .layui-input-inline {
  margin-right: 10px;
  width: auto !important;
}
.s-form-content .s-form-city .layui-form-select:last-child,
.s-form-content .s-form-city .layui-input-inline:nth-child(3) {
  margin-right: 0;
}
.s-skin .layui-layer-btn0 {
  background: #232d47;
}
.s-skin .layui-layer-title {
  background: #232d47;
  color: #fff;
}
.s-skin .layui-layer-setwin .layui-icon {
  color: #fff;
}
.layui-input:focus,
.layui-textarea:focus {
  border-color: #232d47 !important;
  box-shadow: 0 0 0 3px rgba(22, 183, 119, 0.08);
}
.layui-form-select dl dd.layui-this {
  color: #232d47;
}
.laydate-theme-molv .layui-laydate-header {
  background-color: #232d47;
}
.laydate-theme-molv .layui-this,
.laydate-theme-molv .layui-this > div {
  background-color: #232d47 !important;
}
.layui-layer-btn .layui-layer-btn0 {
  background-color: var(--color-primary);
}
.s-table thead th {
  background: #f7f8fc;
  text-align: center;
}
.s-table tbody td {
  text-align: center;
}
.s-table tbody td a.fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #f7f8fa;
  border-radius: 4px;
}
.s-page {
  display: flex;
  justify-content: flex-end;
}
