/*
  yunce.css - 简化版CSS框架
  Author: Yunce-Dawei
  Version: 1.5.0
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li,ol{
  list-style-position: inside;
}

.w {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

/* CSS变量 - 自定义属性 */
:root {
  /* 网格系统变量 */
  --yun-col-w: 275px;
  --yun-gap: 20px;
  --yun-col-max-w: 100%;
  /*
    auto-fill: 自动填充尽可能多的列或行，可能会留有空隙。
    auto-fit: 类似 auto-fill，但会拉伸轨道以填满容器。
    这两个值的区别在于，auto-fill 会创建尽可能多的轨道，而 auto-fit 会根据可用空间调整轨道的大小。
    也可以设置 固定的列数 例如 3
    */
    --count: auto-fit;
}

/* flex 布局 */
.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.flex-nowrap {
  display: flex;
  flex-wrap: nowrap;
}

.flex-row {
  display: flex;
  flex-direction: row;
  gap: var(--yun-gap);
}

.flex-row-center {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--yun-gap);
}

.flex-row-stretch {
  display: flex;
  flex-direction: row;
  justify-content: stretch;
  align-items: stretch;
  gap: var(--yun-gap);
}

.flex-row-evenly {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: var(--yun-gap);
}

.flex-row-between {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--yun-gap);
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: var(--yun-gap);
}

.flex-col-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--yun-gap);
}

.flex-col-stretch {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  gap: var(--yun-gap);
}

.flex-col-evenly {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: var(--yun-gap);
}

.flex-col-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--yun-gap);
}


/** grid 布局*/
.grid-row {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(var(--count), minmax(min(var(--yun-col-w), var(--yun-col-max-w)), 1fr));
  grid-gap: var(--yun-gap);
}

/** 定位 */
.abs-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.abs-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.abs-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/*按钮样式*/
.btn_w100 .elementor-button {
  width: 100% !important;
}

.yun-btn {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  background: #f0f0f0;
  transition: all 0.2s;
}

.btn-primary {
  background: #1072c8;
  color: white;
}

.btn-success {
  background: #10c890;
  color: white;
}

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-sm {
  padding: 4px 12px;
  font-size: 0.8em;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1.2em;
}

/**表单样式*/
.yun-input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  transition: all 0.2s;
}

.yun-input:focus {
  border-color: #1072c8;
}

.yun-input-sm {
  padding: 4px;
}

.yun-input-lg {
  padding: 12px;
}

.yun-textarea {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  transition: all 0.2s;
}

.yun-textarea:focus {
  border-color: #1072c8;
}

.yun-textarea-sm {
  padding: 4px;
}

.yun-textarea-lg {
  padding: 12px;
}

.yun-select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  transition: all 0.2s;
}

.yun-select:focus {
  border-color: #1072c8;
}


/*动画过度*/
.css-all-3 {
  transition: all 0.3s;
}

.css-all-4 {
  transition: all 0.4s;
}

.css-all-5 {
  transition: all 0.5s;
}

.css-all-6 {
  transition: all 0.6s;
}

.css-all-7 {
  transition: all 0.7s;
}

.css-all-8 {
  transition: all 0.8s;
}

/**弹窗*/
.yun-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s;
}

.yun-modal.show {
  opacity: 1;
  visibility: visible;
}

.yun-modal-content {
  background: white;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
  top: 80px;
  transition: all 0.4s;
}

.yun-modal.show .yun-modal-content {
  top: 0;
}

/*文本超出指定行 隐藏 1 ~ 5 行*/
.yun-hiedtext-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  box-orient: vertical;
}

.yun-hiedtext-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  box-orient: vertical;
}

.yun-hiedtext-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  box-orient: vertical;
}

.yun-hiedtext-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  box-orient: vertical;
}

.yun-hiedtext-5 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  line-clamp: 5;
  box-orient: vertical;
}

.yunce-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  margin: 0;
  background-color: #f9fafb;
}

.yunce-pagination a {
  padding: 4px 6px;
  margin: 0 3px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  transition: all 0.3s ease;

}

.yunce-pagination a:hover {
  background-color: #286FA9;
  color: #fff !important;
}

.yunce-pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.yunce-pagination .page-number {
  margin: 0 10px;
  font-size: 0.9em;
  color: #6b7280;
}