/* ==================
       初始化样式
 ==================== */
/* 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;
	/* border: 0;
	font-size: 100%;
	vertical-align: baseline; */
}
/* 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: #ff6613;
    --light-secondary: #6c757d;
    --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;
}


/* ==================
          图片
 ==================== */

/* 铺满全部 */
.img-full img {
    width: 100%;
	height: 100%;
	display: block;
}
.img-max img {
    max-width: 100%;
    max-height: 100%;
	display: block;
    margin: auto;
}

/* ==================
          动画
 ==================== */

.transform{
    transition:all 0.6s ease 0s;
}


/* ==================
        清除浮动
 ==================== */

 .clear,
 .clearfix{
     zoom: 1;
 }
 .clear:before,
 .clearfix:before {
     display: table;
     content: " ";
 }
 .clear:after,
 .clearfix:after {
     content: "";
     display: block;
     height: 0;
     clear: both;
     float: none;
     margin: 0;
 }
 
/* ==================
        辅助
 ==================== */

 /* 单行文字省略 */
.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;
}
/* 两行文字省略 */
.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;
}
/* 三行文字省略 */
.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;
}

.hide {
    display: none;
}
/* 编辑器图片 */
.editor{
    line-height: 220%;
}
.editor img,.editor video{
    max-width: 100% !important;
    height: auto !important;
}

.ar-3-4{
    aspect-ratio: 3/4;
}
.ar-4-3{
    aspect-ratio: 4/3;
}
.ar-16-9{
    aspect-ratio: 16/9;
}

/* ==================
        表单
 ==================== */
 /* form */
.c-form {
}
.c-form-item {
  width: inherit;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.c-form-title {
  padding-right: 20px;
  font-size: 16px;
}
.c-form-title span {
  position: relative;
  display: block;
  padding-left: 10px;
}
.c-form-title span.notip {
  padding-left: 0;
}
.c-form-title span.notip:before {
  display: none;
}
.c-form-title span:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: red;
  border-radius: 50%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.c-form-content {
  width: inherit;
  flex: 1;
}
/* 列 */
.c-form-column {
  flex-direction: column;
  align-items: flex-start;
}
.c-form-column .c-form-content {
  margin: 10px 0 0;
}
/* 列-end */
.c-form-control {
  width: 100%;
  height: 40px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  padding: 6px 12px;
  border-radius: 5px;
  color: #555;
  border: 1px solid #dcdfe6;
  box-sizing: border-box;
}
.c-form-control:focus {
  border: 1px solid var(--color-primary);
}
.c-form-content.c-form-city {
  display: flex;
}
.c-form-content.c-form-city select {
  margin-right: 10px;
}
.c-form-content.c-form-city select:last-child {
  margin-right: 0;
}
select.c-form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url(../images/down.png) no-repeat right 20px center;
}
textarea.c-form-control {
  height: auto;
}
/* checkbox */
.c-checkbox-group{
  display: flex;
  flex-wrap: wrap;
}
.c-checkbox {
  position: relative;
}
.c-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  opacity: 0;
}
.c-checkbox label {
  width: 16px;
  height: 16px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.c-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);
}
.c-checkbox input[type="checkbox"]:checked + label {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}
/* checkbox-end */
/* checkbox */
.c-radio-group{
  display: flex;
  flex-wrap: wrap;
}
.c-radio {
  position: relative;
  margin: 0 10px 10px 0;
}
.c-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  opacity: 0;
  border-radius: 50%;
}
.c-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%;
}
.c-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);
}
.c-radio input[type="radio"]:checked + label {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}
/* radio-end */