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

a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

ul,
ol {
    padding: 0;
    margin: 0;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/*---------------------
   Helper CSS
-----------------------*/
.index-set-bg {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

/*---------------------
   Hero section
-----------------------*/
.index-hero {
    padding: 10px 0;
}

.index-hero h2 {
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .index-hero h2 {
        font-size: 30px;
    }
}

/*---------------------
   Gallery section
-----------------------*/
.index-gallery__section {
    padding: 0 5px;
    overflow: hidden;
}

.index-filter-controls {
    text-align: center;
    padding-top: 10px;
    margin-bottom: 20px;
}

.index-filter-controls ul {
    list-style: none;
}

.index-filter-controls ul li {
    display: inline-block;
    font-size: 20px;
    padding: 0 6px;
    margin-right: 5px;
    margin-left: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
    color: #111111;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.index-filter-controls ul li:after {
    display: none;
}

.index-filter-controls ul li:before {
    position: absolute;
    content: "";
    width: 0;
    height: 6px;
    left: 0;
    bottom: 4px;
    background: #0ECE91;
    z-index: -1;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

.index-filter-controls ul li:hover,
.index-filter-controls ul li.index-active {
    color: #0ECE91;
}

.index-filter-controls ul li:hover:before,
.index-filter-controls ul li.index-active:before {
    width: 100%;
}

.index-filter-controls ul li:first-child {
    margin-left: 0;
}

.index-filter-controls ul li:last-child {
    margin-right: 0;
}

.index-filter-controls ul li:last-child:after {
    display: none;
}

.index-gallery__warp {
    overflow: hidden;
}

/* 兜底：所有卡片默认25%，每行4个 */
.index-grid__item {
    width: 25%;
    padding: 0 5px;
    float: left;
    margin-bottom: 10px;
}

/* 前14个保持正方形（与兜底一致） */
.index-grid__item.index-grid--0,
.index-grid__item.index-grid--1,
.index-grid__item.index-grid--2,
.index-grid__item.index-grid--3,
.index-grid__item.index-grid--4,
.index-grid__item.index-grid--5,
.index-grid__item.index-grid--6,
.index-grid__item.index-grid--7,
.index-grid__item.index-grid--8,
.index-grid__item.index-grid--9,
.index-grid__item.index-grid--10,
.index-grid__item.index-grid--11,
.index-grid__item.index-grid--12,
.index-grid__item.index-grid--13 {
    width: 25%;
    padding: 0 5px;
    float: left;
    margin-bottom: 10px;
}

/* 图片容器：固定正方形 */
.index-gallery_img {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 4px;
}

/* 图片本身：填充容器 */
.index-gallery_img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 遮罩层 */
.index-gallery_img:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    background: #000;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    z-index: 1;
}

.index-gallery_img:hover:after {
    opacity: 0.1;
    filter: alpha(opacity=10);
}

.index-gallery_img:hover .index-gellery__text span {
    bottom: 0;
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-transition: 0.3s ease 0.2s;
    -moz-transition: 0.3s ease 0.2s;
    -o-transition: 0.3s ease 0.2s;
    transition: 0.3s ease 0.2s;
}

.index-gallery_img:hover .index-gellery__text h3 {
    padding-top: 5px;
    bottom: 0;
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .index-gallery_img:hover .index-gellery__text h3 {
        font-size: 24px;
    }
}

.index-gellery__text {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 20px;
    padding: 0 30px;
    z-index: 3;
}

.index-gellery__text span {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    font-size: 20px;
    color: #fff;
    bottom: 20px;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

.index-gellery__text h3 {
    position: relative;
    color: #fff;
    bottom: 40px;
    text-transform: uppercase;
    opacity: 0;
    font-size: 15px;
    filter: alpha(opacity=0);
    -webkit-transition: 0.3s ease 0.2s;
    -moz-transition: 0.3s ease 0.2s;
    -o-transition: 0.3s ease 0.2s;
    transition: 0.3s ease 0.2s;
}

/* 响应式：≤450px 每行1个 */
@media (max-width: 450px) {
    .index-grid__item,
    .index-grid__item.index-grid--0,
    .index-grid__item.index-grid--1,
    .index-grid__item.index-grid--2,
    .index-grid__item.index-grid--3,
    .index-grid__item.index-grid--4,
    .index-grid__item.index-grid--5,
    .index-grid__item.index-grid--6,
    .index-grid__item.index-grid--7,
    .index-grid__item.index-grid--8,
    .index-grid__item.index-grid--9,
    .index-grid__item.index-grid--10,
    .index-grid__item.index-grid--11,
    .index-grid__item.index-grid--12,
    .index-grid__item.index-grid--13 {
        width: 100%;
    }
}

/*---------------------
   Search Model
-----------------------*/
.index-search-model {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #ffffff;
    z-index: 99999;
}

.index-search-model-form {
    padding: 0 15px;
}

.index-search-model-form input {
    width: 500px;
    font-size: 34px;
    border: none;
    border-bottom: 2px solid #ededed;
    background: 0 0;
    color: #999;
}

@media (max-width: 576px) {
    .index-search-model-form input {
        width: 100%;
        font-size: 24px;
    }
}

.index-search-close-switch {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #333;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    font-size: 39px;
    line-height: 28px;
    top: 30px;
    cursor: pointer;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}