/* 顶部导航栏 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    user-select: none; /* 禁止文本选择 */

}
.service-item {

    border-bottom: 1px solid #eee; /* 底部分割线 */
}

.media {
    display: flex;
    align-items: flex-start;
}

.media .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* 圆形头像 */
    margin-right: 10px; /* 头像和文字的间距 */
}

.media-body {
    margin-left: 10px;
}

.media-heading {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.media p {
    margin: 5px 0;
    color: #999;
    font-size: 14px;
}

/* 导航栏的外层样式，使用 flexbox */
.nav-bar {
    display: flex;
    flex-wrap: wrap; /* 自动换行 */
    gap: 10px; /* 设置按钮之间的间距 */

}
.nav-itemTWO{
    padding: 5px 20px;
    height: 30px;
    background-color:#E4A74A ;
    color: #fff; /* 橙色文字 */
    border-radius: 4px;
    text-decoration: none; /* 移除下划线 */
    cursor: pointer;
    text-align: center;
}
.nav-itemONE{
    padding: 5px 20px;
    background-color:#E4A74A ;
    color: #fff; /* 橙色文字 */
    border-radius: 4px;
    text-decoration: none; /* 移除下划线 */
    text-align: center;
}
/* 默认按钮样式 */
.nav-item {
    padding: 5px 20px;
    color: #E4A74A; /* 橙色文字 */
    border: 2px solid #E4A74A; /* 橙色边框 */
    border-radius: 4px;
    text-decoration: none; /* 移除下划线 */
    cursor: pointer;
 
    text-align: center;
}

/* 鼠标悬停和点击激活状态样式 */
.nav-item:hover,
.nav-item.active {
    background-color: #E4A74A; /* 背景橙色 */
    color: white; /* 白色文字 */
    border-color: #E4A74A; /* 边框橙色 */
}

/* 小屏幕设备的响应式设计 */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column; /* 小屏幕设备上导航栏变为竖直排列 */
    }
    .nav-item {
        width: 100%; /* 每个按钮占满一行 */
        text-align: left; /* 文字靠左对齐 */
    }
}


.product-card {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;

    background-color: #fff;
}

.product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.product-price {
    font-size: 18px;
    color: #e91e63;
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}



a{
    color: #000;
}
a:hover{
    color: #E4A74A;
    text-decoration: none !important;
}

.article {
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}



.pagination {
    display: flex;
    justify-content: center;
    /* 在水平方向上居中 */
    flex-wrap: wrap;
    /* 当屏幕宽度不足时，自动换行 */
    padding: 10px 0;
}

.pagination li {
    list-style: none;
    margin: 5px;
    /* 每个分页按钮之间的间距 */
}

.pagination li a {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination li a:hover {
    background-color: #E4A74A;
    color: #FFFFFF ;
    text-decoration: none !important;
}

@media (max-width: 768px) {

    /* 针对宽度小于768px的设备 (如平板和手机) */
    .pagination li a {
        padding: 4px 8px;
        font-size: 12px;
        /* 调整文字大小 */
    }
}

@media (max-width: 480px) {


    .pagination li a {
        padding: 4px 6px;
        font-size: 10px;
        /* 再次缩小文字 */
    }
}




.tag-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    background-color: #f0f0f0;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 4px;
    text-decoration: none !important;
    color: #333;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.tag:hover {
    text-decoration: none !important;
    background-color: #E4A74A;
    color: #fff !important;
}

.aboutone,
.abouttwo {
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.texts {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    margin-top: 20px;
}


.container img {
    max-width: 100%;
    /* height: auto; */
    transition: transform 0.3s ease;
}

.container img:hover {
    text-decoration: none;
    transform: scale(1.05);
}



/* 最新资讯 */
.img-container {
    max-height: 198px;
    border-radius: 10px;
    overflow: hidden;
    /* 隐藏溢出部分 */
    position: relative;
    /* 相对定位，方便内容定位 */
    margin-bottom: 15px;
    /* 让图片和列表有间距 */
}

/* 图片默认样式 */
.zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 图片自适应容器，保持比例裁剪 */
    transition: transform 0.3s ease;
    /* 设置平滑的过渡效果 */
}

/* 鼠标悬停时的缩放效果 */
.img-container:hover .zoom-img {
    transform: scale(1.2);
    /* 图片放大到1.2倍 */
}

/* 资讯列表样式 */
.info-list {

    padding-left: 16px;
    box-sizing: border-box;
    margin-top: 10px;
    list-style-type: disc;

}

.info-list li {
    margin-bottom: 8px;
    /* 每个列表项之间增加间距 */
}


/* 宠物领养 */
.adoption-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.adoption-user {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #E4A74A;
}

.adoption-info {
    font-size: 14px;
    color: #555;
}

.adoption-info p {
    margin: 0 0 5px;
}


.mai-icon {
    background: rgb(64, 210, 177);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    margin-right: 20px;
}

/* 导航 */
.navbar-default {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.45);
}

.navbar-default .navbar-brand {
    font-size: 30px;
    font-weight: bold;
    height: 70px;
    line-height: 35px;

}

.navbar-default .navbar-nav>li>a {
    font-size: 16px;
    font-weight: bold;
    height: 70px;
    line-height: 35px;
}

.navbar-default .navbar-toggle:hover {
    border-color: #E4A74A;
    background-color: #ffffff;
}

.navbar-toggle {
    margin-top: 17px;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #E4A74A;

}

/* home */
#home {
    /* margin-top: 70px; */
    /* background: url(../../img/home-bg.jpg); */
    background-size: cover;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.lvjing {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);

}

#home h1 {
    font-weight: bold;
    margin-top: 0;
    /* margin-bottom: 25px; */
}

#home p {
    font-weight: 400px;
    line-height: 35px;
}

#home img {
    /* margin-top: 30px; */
    display: inline-block;
}

/* 轮播图 */

/* bbs */

#bbs {
    padding-bottom: 40px;
    text-align: center;
}

#bbs .col-md-4 {
    padding: 15px;
}

#bbs .col-md-4:hover {
    background: #f1f1f1;
    box-shadow: 1px 1px 4px #ccc;
}

#bbs a {
    color: #212121;
    text-decoration: none;
}

#bbs img {
    margin: 0 auto;
}

#bbs h3 {
    font-weight: bold;
}

/* html5 + bootstrap */
/* #html5{
    background: #f8f8f8;
} */
#html5,
#bootstrap {

    padding: 40px 0px;

}

#html5 h2,
#bootstrap h2 {
    font-weight: bold;
}

#html5 h3,
#bootstrap h3 {
    font-weight: bold;
}

#html5 p,
#bootstrap p {
    line-height: 25px;
}

/* course */
#course {
    text-align: center;
    background: #f8f8f8;
    padding: 80px 0px;
}

#course h2 {
    font-weight: bold;
    padding-bottom: 60px;
}

.col-md-3 {
    margin-bottom: 20px;
}

.course {
    background: #ffffff;
    /* box-shadow: 1px 1px 4px #ccc; */
}

#course .btn {
    background: transparent;
    border: 1px solid #40D2B1;
    border-radius: 0px;
    color: #40D2B1;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 8px 40px;
    transition: all 0.3s;
}

#course .btn:hover {
    background: #40D2B1;
    color: #fff;
}

/* APP */
#app {

    padding-bottom: 20px;
}

#app h2 {
    font-weight: bold;
    padding-bottom: 30px;
}

#app .btn {
    margin: 10px 0px;

}


/* contact */
#contact {
    /* background: url(../../img/contact-bg.png) no-repeat; */
    color: #fff;
    background-size: cover;
}

#contact h2 {
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 0;
}

#contact p {
    line-height: 25px;
    margin-bottom: 20px;
}

#contact .form-control {
    border: none;
    border-radius: 0;
    height: 50px;
    margin-bottom: 20px;
}

#contact textarea.form-control {
    height: auto;
}

#contact input[type="submit"] {
    background-color: #40D2B1;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s;
}

#contact input[type="submit"]:hover {
    background: rgb(44, 142, 120);
}

/* footer */
footer {
    font-weight: 400px;
    text-align: center;
    padding: 20px;
}

.jbxian {
    width: 30px;
    height: 4px;
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
    margin-top: 12px !important;
    margin-bottom: 20px !important;
}

.displs {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.texts {
    text-align: center;
    font-size: 20px;
    padding: 10px 15px 0px 15px;
}

.XianZ {
    overflow: hidden;
    height: 300px;
}

.imgscss {
    width: 4%;
}


.image-wrapper {
    position: relative;
    display: inline-block;
}



.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    /* 如果需要自定义遮罩层的样式，可以在这里添加样式 */
}



.merchantText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffff;
    font-size: 20px;
    font-weight: 600;
}

#home {
    overflow: hidden;
}

.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0.8;
}



.homea {
    position: absolute;
    z-index: 1;
    height: 10vh;
    top: 18vh;
    left: 16vw;
    width: 38vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.homeb {
    font-size: 60px;
    font-weight: 600;
}

.homec {
    font-size: 20px;
    letter-spacing: 6px
}

.homed {
    font-size: 20px;
    letter-spacing: 6px;
    padding: 10px 0px;
}

.homee {
    margin-top: 30px;
}

.aboutone {
    position: absolute;
    bottom: 0;
    height: 14vh;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 15px;
    font-size: 16px;
}

.abouttwo {
    width: 100%;
    height: 19.4vh;
    padding: 42px;
    background-color: #f0f0f0;
    font-size: 16px;
}

.searchHeater {
    float: right;
    position: absolute;
    right: 10vw;
    top: 18px;
}

.searchHeaterone {
    display: flex;
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.searchInput {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 8px;
    border-radius: 50px 0 0 50px;
}

.searchButton {
    background-color: #E4A74A;
    color: #fff;
    border: none;
    outline: none;
    padding: 8px 16px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
}

.footers {
    padding: 0px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

@media screen and (max-width: 880px) {
    .merchantText {
        font-size: 16px;
    }

}

@media screen and (max-width: 640px) {
    .displs {
        display: flex;
        flex-direction: column;
    }

    .merchantText {
        font-size: 14px;
    }

    html {
        margin: 0 0;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 17px;
    }

    h4 {
        font-size: 14px;
    }

    .texts {
        font-size: 14px;
    }

    .imgscs {
        max-width: 0%;
    }

    .boxxs {
        display: flex;
    }

}

html {
    margin: 0 5%;
}

@media screen and (max-width: 420px) {
    .merchantText {
        font-size: 12px;
    }

    .wowimg {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .aboutone {
        font-size: 12px;
    }

    .abouttwo {
        font-size: 12px;
    }

    html {
        margin: 0 0;
    }


}

@media screen and (max-width: 992px) {
    .XianZ {
        overflow: hidden;
        height: auto;
    }

    .imgsc {
        width: 50%;
    }

    .imgscss {
        width: 10%;
    }

    .imgscs {
        max-width: 0%;
    }



}


@media screen and (max-width: 999px) {

    .search-form {
        display: none;
    }

}

@media screen and (max-width: 370px) {


    .homea {
        display: none;
    }

}