html{
    font-size: 14px;
}
body {
    font-family: Arial, sans-serif;
    /*background-color: #f8f9fa;*/
    font-size: 1.2rem;
    background: #f5f5f5;
}
body a{
    color: #4f5361;
}
body a:hover{
    color: #ff9500;
    text-decoration: none;
}
body img{
    border-radius: 10px;
}
.header {
    color: white;
    padding: 20px 0;

}
.header img {
    max-width: 150px;
    height: auto;
    margin-bottom: 30px;
}
.header .nav{
    background: #F2F2F2;
    border-bottom: #f0f0f0 solid 1px;
    overflow: hidden;
    border-top: #EE7701 solid 3px;
}
.header .nav-link {
    color: #222;
    padding: 0 1rem;
    line-height: 60px;
}
.hot-news, .reviews {
    margin-top: 20px;
}
.footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    text-align: center;
}
.footer .nav a{
    color: #ffffff;
}
h5{
    border-left: 5px solid #ff9500;
    padding-left: 8px;
    font-size: 2rem;
    color: #4f5361;
    margin-bottom: 20px;
}
h6{
    font-size: 1.2rem;
}


.list-unstyled li {
    display: flex;
    align-items: center; /* 垂直居中 */
    margin-bottom: 3px;
}

.list-unstyled a {
    flex: 1; /* 占据剩余空间 */
    white-space: nowrap; /* 禁止换行 */
    overflow: hidden; /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 显示省略号 */
    padding-right: 10px; /* 可选，为右侧留出一些空间 */
}

.list-unstyled span {
    margin-left: auto; /* 固定在右侧 */
    /* 您可以根据需要添加额外的样式，如字体大小、颜色等 */
}
.reviews .media h6{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; /* 限制显示的行数 */
    overflow: hidden; /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 在超出部分显示省略号（注意：这里对于多行文本截断，text-overflow: ellipsis; 实际上并不直接起作用，但它是标准属性，可以保留以备其他用途） */
    line-height: normal; /* 确保行高正常，避免因为行高导致的显示问题 */
    max-height: none; /* 重置 max-height，因为 -webkit-line-clamp 会自动计算高度 */
    /* 其他样式，如字体大小、颜色等 */
    height: 20px;
    display: -webkit-box;
}
.reviews .media img{
    width: 100%;
    margin-bottom: 20px;
    height: 120px;
    object-fit: cover;
}
.reviews .media-body p{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 限制显示的行数 */
    overflow: hidden; /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 在超出部分显示省略号（注意：这里对于多行文本截断，text-overflow: ellipsis; 实际上并不直接起作用，但它是标准属性，可以保留以备其他用途） */
    line-height: 18px; /* 确保行高正常，避免因为行高导致的显示问题 */
    max-height: none; /* 重置 max-height，因为 -webkit-line-clamp 会自动计算高度 */
    /* 其他样式，如字体大小、颜色等 */
    height: 36px;
    display: -webkit-box;
}
.hot-news p{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 限制显示的行数 */
    overflow: hidden; /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 在超出部分显示省略号（注意：这里对于多行文本截断，text-overflow: ellipsis; 实际上并不直接起作用，但它是标准属性，可以保留以备其他用途） */
    line-height: 20px; /* 确保行高正常，避免因为行高导致的显示问题 */
    max-height: none; /* 重置 max-height，因为 -webkit-line-clamp 会自动计算高度 */
    /* 其他样式，如字体大小、颜色等 */
    height: 38px;
    display: -webkit-box;
}
.img-rot{
    object-fit: cover;
    /*max-height: 440px;*/
    height: 470px;
    display: block;
}
.nav-link{
    font-size: 1.2rem;
}
.container {
    max-width: none;
    padding: 0 100px;
}
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    h5{
        margin-top: 20px;
    }
    .row{
        margin-left: 0;
        margin-right: 0;
    }
    .reviews .media img{
        max-height: none;
        height: auto;
    }
    .img-rot{
        height: auto;
    }
}
.navbar-expand-lg{
    width: 100%;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
}
.img-logo{
    width:100%;
    max-width: 480px;
    margin-top: 30px;
}
.row-line{
    display: flex;
    align-content: center;
}
.row-line a{
    color: #4f5361;
    font-size: 1.2rem;
    margin-left: auto;
    padding-right: 10px;
}
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.navbar .navbar-nav li {
    margin: 0 10px;
}

.navbar .navbar-nav a.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s, color 0.3s;
}
/* 悬停效果 */
.navbar .navbar-nav a.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff4f1;
    border-radius: 5px;
}
.navbar-light .navbar-toggler{
    margin-left: 20px;
}
.img-fluid {
    width: 100%;
    height: auto;
    max-height: 200px;
    overflow: hidden;
    object-fit: cover;
}
.button-link {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin:10px;
}

.button-link:hover {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    transform: translateY(-4px);
}

.button-link:active {
    box-shadow: 0 2px #666666;
    transform: translateY(0);
}
p.ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5; /* 根据你的字体和布局调整行高 */
    max-height: calc(1.5em * 3); /* 根据行高和行数计算最大高度 */
}
.box-style{
    background: #fff;
    padding: 20px;
    border-radius: 13px;
    box-shadow: 1px 2px 4px 2px #d2d2d2;
    margin: 0;
}
