@charset "utf-8";

/* ==========================================================================
   custom.css - 山东柳店新能源官网自定义样式
   补充 index.css 和 yt.css 未覆盖的内页布局、组件样式
   ========================================================================== */

/* ==========================================================================
   1. 通用工具类
   ========================================================================== */
.fl { float: left; }
.fr { float: right; }
.text-center { text-align: center; }
.text-red { color: #da212d; }
.text-orange { color: #ff7800; }
.text-gray { color: #999; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ==========================================================================
   2. 内页通用布局（侧边栏 + 内容区）
   ========================================================================== */
.inner-wrap { padding: 30px 0 60px; }
.inner-flex { display: flex; gap: 30px; align-items: flex-start; }
.side-box { width: 250px; flex-shrink: 0; }
.side-title {
    background: #da212d;
    color: #fff;
    font-size: 22px;
    line-height: 60px;
    text-align: center;
    font-weight: normal;
}
.side-nav {
    border: 1px solid #d7d7d7;
    border-top: none;
    background: #fff;
}
.side-nav li { list-style: none; }
.side-nav li a {
    display: block;
    font-size: 16px;
    line-height: 50px;
    text-align: center;
    color: #4f4f4f;
    border-bottom: 1px solid #eee;
    transition: all .3s;
}
.side-nav li:last-child a { border-bottom: none; }
.side-nav li a:hover,
.side-nav li a.active {
    background: #f7eaeb;
    color: #da212d;
    font-weight: bold;
}
.main-box {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #d7d7d7;
    padding: 30px;
}
.main-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}
.main-content {
    font-size: 16px;
    color: #666;
    line-height: 28px;
}
.main-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}
.main-content p {
    margin-bottom: 15px;
    text-indent: 2em;
    text-align: justify;
}
.main-content h2,
.main-content h3 {
    color: #333;
    margin: 20px 0 10px;
}

/* ==========================================================================
   3. 面包屑导航
   ========================================================================== */
.crumb {
    padding: 12px 0 0;
    line-height: 46px;
    color: #6a6a6a;
    font-size: 16px;
    margin-bottom: 25px;
    border-bottom: 1px solid #d7d7d7;
}
.crumb a {
    display: inline-block;
    line-height: 46px;
    color: #6a6a6a;
    font-size: 16px;
}
.crumb a:hover { color: #da212d; }
.crumb span { color: #da212d; }

/* ==========================================================================
   5. 产品列表页
   ========================================================================== */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.product-card {
    width: calc(25% - 15px);
    border: 1px solid #d7d7d7;
    background: #fff;
    text-align: center;
    transition: all .3s;
    overflow: hidden;
}
.product-card:hover {
    border-color: #da212d;
    box-shadow: 0 0 15px rgba(218, 33, 45, 0.15);
}
.product-card .product-img {
    height: 200px;
    overflow: hidden;
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-card .product-name {
    font-size: 16px;
    color: #626262;
    line-height: 24px;
    padding: 12px 10px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card:hover .product-name { color: #da212d; }
.product-card .product-link {
    display: inline-block;
    font-size: 14px;
    color: #939393;
    border: 1px solid #d7d7d7;
    padding: 2px 12px;
    margin-bottom: 15px;
    transition: all .3s;
}
.product-card:hover .product-link {
    color: #da212d;
    border-color: #da212d;
}

/* 分类标签栏 */
.cat-tabs {
    border-left: 1px solid #d7d7d7;
    margin-bottom: 30px;
}
.cat-tabs li {
    float: left;
    width: 11%;
    text-align: center;
    position: relative;
    border: 1px solid #d7d7d7;
    border-left: none;
    list-style: none;
}
.cat-tabs li a {
    display: block;
    font-size: 16px;
    color: #626262;
    line-height: 56px;
}
.cat-tabs li:hover a { color: #da212d; }
.cat-tabs li.active a {
    color: #da212d;
    font-weight: bold;
}
.cat-tabs li:hover::after,
.cat-tabs li.active::after {
    content: "";
    display: block;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background: #da212d;
}

/* ==========================================================================
   7. 新闻列表页
   ========================================================================== */
.news-list { }
.news-list-item {
    background: #fff;
    padding: 20px;
    margin-top: 22px;
    border: 1px solid transparent;
    transition: all .3s;
    display: flex;
    gap: 25px;
}
.news-list-item:hover {
    border-color: #e7e7e7;
    box-shadow: 0 0 20px 0 #e7e7e7;
}
.news-list-item .news-img {
    width: 260px;
    height: 170px;
    flex-shrink: 0;
    overflow: hidden;
}
.news-list-item .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.news-list-item:hover .news-img img { transform: scale(1.05); }
.news-list-item .news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-list-item .news-content h3 {
    font-size: 20px;
    color: #3f3f3f;
    line-height: 30px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-list-item:hover .news-content h3 { color: #da212d; }
.news-list-item .news-content .news-summary {
    font-size: 14px;
    color: #999;
    line-height: 22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.news-list-item:hover .news-content .news-summary { color: #ea6133; }
.news-list-item .news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.news-list-item .news-meta .news-date {
    font-size: 14px;
    color: #999;
}
.news-list-item .news-meta .news-more {
    font-size: 14px;
    color: #939393;
}
.news-list-item:hover .news-meta .news-more { color: #da212d; }
.news-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 18px;
}

/* ==========================================================================
   8. 分页
   ========================================================================== */
.pagination {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pagination a,
.pagination span {
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    margin: 0 2px;
    text-align: center;
    font-size: 16px;
}
.pagination a {
    background: #fff;
    border: 1px solid #d7d7d7;
    color: #666;
}
.pagination a:hover {
    border-color: #da212d;
    color: #da212d;
}
.pagination a.active {
    background: #da212d;
    color: #fff;
    border-color: #da212d;
}
.pagination .disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

/* ==========================================================================
   9. 新闻详情页
   ========================================================================== */
.article-wrap {
    background: #fff;
    border: 1px solid #d7d7d7;
    padding: 30px;
}
.article-title {
    font-size: 28px;
    color: #333;
    text-align: center;
    line-height: 40px;
    margin-bottom: 15px;
}
.article-meta {
    text-align: center;
    font-size: 14px;
    color: #999;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}
.article-meta span { margin: 0 12px; }
.article-content {
    font-size: 16px;
    color: #666;
    line-height: 32px;
}
.article-content p {
    margin-bottom: 15px;
    text-indent: 2em;
    text-align: justify;
}
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}
.article-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}
.article-nav a {
    font-size: 14px;
    color: #666;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-nav a:hover { color: #da212d; }
.article-nav .nav-prev::before { content: "上一篇："; color: #999; }
.article-nav .nav-next::after { content: " 下一篇"; color: #999; }
.related-news { margin-top: 30px; }
.related-news h3 {
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #d7d7d7;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.related-news ul li {
    padding: 8px 0;
    list-style: none;
    border-bottom: 1px dashed #eee;
}
.related-news ul li:last-child { border-bottom: none; }
.related-news ul li a {
    font-size: 14px;
    color: #666;
    display: inline-block;
    max-width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.related-news ul li a:hover { color: #da212d; }
.related-news ul li span {
    float: right;
    font-size: 12px;
    color: #999;
    line-height: 28px;
}

/* ==========================================================================
   10. 工程案例页
   (样式已迁移至 style.css 统一管理)
   ========================================================================== */

/* ==========================================================================
   11. 视频中心页
   ========================================================================== */
.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}
.video-item {
    width: calc(33.33% - 17px);
    position: relative;
}
.video-item .video-cover {
    height: 220px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid #d7d7d7;
}
.video-item .video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.video-item:hover .video-cover img { transform: scale(1.05); }
.video-item .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}
.video-item:hover .video-overlay { background: rgba(0, 0, 0, 0.2); }
.video-play-btn {
    width: 60px;
    height: 60px;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s;
}
.video-item:hover .video-play-btn { transform: scale(1.1); }
.video-play-btn::after {
    content: '';
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
}
.video-item .video-title {
    font-size: 16px;
    color: #4f4f4f;
    line-height: 40px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-item:hover .video-title { color: #da212d; }

/* 视频弹窗 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.video-modal.active { display: flex; }
.video-modal .modal-content {
    width: 800px;
    max-width: 90%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.video-modal .modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}
.video-modal video,
.video-modal iframe {
    width: 100%;
    height: 450px;
    display: block;
}

/* ==========================================================================
   12. 联系我们页
   ========================================================================== */
.contact-wrap { padding: 30px 0 40px; }
.contact-info-box {
    background: #fff;
    border: 1px solid #d7d7d7;
    padding: 40px;
    margin-bottom: 30px;
}
.contact-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e7e7e7;
}
.contact-row:last-child { border-bottom: none; }
.contact-label {
    width: 140px;
    font-size: 18px;
    color: #333;
    flex-shrink: 0;
}
.contact-label::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #da212d;
    vertical-align: middle;
    margin-right: 10px;
}
.contact-value {
    font-size: 18px;
    color: #666;
    flex: 1;
}
.contact-value.bold {
    font-size: 30px;
    color: #da212d;
    font-weight: bold;
}
.contact-map {
    text-align: center;
    border: 1px solid #d7d7d7;
    overflow: hidden;
}
.contact-map img {
    width: 100%;
    display: block;
}

/* ==========================================================================
   13. 发展历程页（时间线）
   ========================================================================== */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #da212d;
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-item .timeline-dot {
    position: absolute;
    top: 28px;
    width: 14px;
    height: 14px;
    background: #da212d;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #da212d;
    z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -7px; }
.timeline-item:nth-child(even) .timeline-dot { left: -7px; }
.timeline-year {
    font-size: 28px;
    color: #ff6600;
    font-weight: bold;
    line-height: 40px;
}
.timeline-title {
    font-size: 18px;
    color: #333;
    line-height: 30px;
    margin-bottom: 5px;
}
.timeline-desc {
    font-size: 14px;
    color: #888;
    line-height: 24px;
}

/* ==========================================================================
   14. 资质荣誉页
   ========================================================================== */
.honor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}
.honor-item {
    width: calc(25% - 19px);
    text-align: center;
}
.honor-item .honor-img {
    border: 1px solid #d7d7d7;
    overflow: hidden;
    height: 260px;
}
.honor-item .honor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.honor-item:hover .honor-img img { transform: scale(1.05); }
.honor-item .honor-title {
    font-size: 14px;
    color: #666;
    line-height: 30px;
    padding: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.honor-item:hover .honor-title { color: #da212d; }

/* ==========================================================================
   15. 企业风采页（图片画廊）
   ========================================================================== */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.gallery-item {
    width: calc(33.33% - 10px);
    overflow: hidden;
    border: 1px solid #d7d7d7;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.08); }

/* 图片预览弹窗 */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.gallery-modal.active { display: flex; }
.gallery-modal img {
    max-width: 90%;
    max-height: 85vh;
    display: block;
}
.gallery-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* ==========================================================================
   16. 招聘信息页
   ========================================================================== */
.job-list { margin-top: 20px; }
.job-item {
    border: 1px solid #d7d7d7;
    margin-bottom: 15px;
    overflow: hidden;
}
.job-header {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background: #f9f9f9;
    transition: background .3s;
}
.job-item:hover .job-header { background: #f7eaeb; }
.job-item.active .job-header { background: #f7eaeb; }
.job-name {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    flex: 1;
}
.job-item:hover .job-name,
.job-item.active .job-name { color: #da212d; }
.job-dept,
.job-loc,
.job-salary {
    font-size: 14px;
    color: #999;
    margin-left: 25px;
    white-space: nowrap;
}
.job-salary { color: #ff7800; font-weight: bold; }
.job-toggle {
    width: 30px;
    height: 30px;
    border: 1px solid #d7d7d7;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    color: #999;
    font-size: 20px;
    margin-left: 20px;
    transition: transform .3s;
}
.job-item.active .job-toggle { transform: rotate(45deg); }
.job-detail {
    padding: 25px;
    border-top: 1px solid #eee;
    display: none;
    background: #fff;
}
.job-item.active .job-detail { display: block; }
.job-detail h4 {
    font-size: 16px;
    color: #da212d;
    margin-bottom: 10px;
    margin-top: 15px;
}
.job-detail h4:first-child { margin-top: 0; }
.job-detail p {
    font-size: 14px;
    color: #666;
    line-height: 26px;
}
.job-detail ul { padding-left: 20px; }
.job-detail ul li {
    font-size: 14px;
    color: #666;
    line-height: 26px;
    list-style: disc;
}

/* ==========================================================================
   17. 错误页面（404/500）
   ========================================================================== */
.error-page {
    text-align: center;
    padding: 80px 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.error-code {
    font-size: 120px;
    color: #da212d;
    font-weight: bold;
    line-height: 1;
}
.error-message {
    font-size: 24px;
    color: #666;
    margin: 20px 0;
}
.error-desc {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}
.error-btn {
    display: inline-block;
    padding: 10px 40px;
    background: #da212d;
    color: #fff;
    font-size: 16px;
    border-radius: 30px;
    text-align: center;
    transition: opacity .3s;
}
.error-btn:hover { opacity: .9; text-decoration: underline; }

/* ==========================================================================
   18. 返回顶部按钮
   ========================================================================== */
#back-to-top {
    position: fixed;
    right: 30px;
    bottom: 60px;
    width: 50px;
    height: 50px;
    background: #da212d;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: none;
    z-index: 9999;
    opacity: 0.8;
    transition: opacity .3s;
}
#back-to-top:hover { opacity: 1; }

/* ==========================================================================
   19. 内页Banner（各页面顶部大图）
   ========================================================================== */
.page-banner {
    height: 320px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: top center;
}
