/*
Theme Name: GanQuan Theme
Theme URI: https://www.ganquan.com.cn/
Author: GanQuan Group
Author URI: https://www.ganquan.com.cn/
Description: 天津甘泉集团有限公司官方网站主题
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ganquan
Tags: corporate, business, responsive
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
ul, ol, li { list-style: none; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-width: 1200px;
}

/* ========== 头部 ========== */
.site-header {
    position: relative;
    width: 100%;
    min-width: 1200px;
    background: #fff;
    z-index: 100;
}

.header-inner {
    width: 1200px;
    height: 705px;
    position: relative;
    margin: 0 auto;
}

/* Logo图片 */
.header-logo {
    position: absolute;
    left: 114px;
    top: 7px;
    z-index: 3;
}
.header-logo img {
    width: 141px;
    height: 136px;
    display: block;
}

/* 公司名称图片 */
.header-title {
    position: absolute;
    left: 319px;
    top: 17px;
    z-index: 4;
}
.header-title img {
    width: 280px;
    height: 46px;
    display: block;
}

/* 语言切换 */
.header-lang {
    position: absolute;
    left: 929px;
    top: 5px;
    z-index: 2;
}
.header-lang span {
    display: inline-block;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

/* 服务热线 */
.header-hotline {
    position: absolute;
    left: 843px;
    top: 41px;
    z-index: 5;
    width: 261px;
    height: 24px;
}
.hotline-label {
    color: #333;
    font-size: 14px;
}
.hotline-number {
    color: rgb(223, 0, 0);
    font-size: 20px;
    font-weight: bold;
}

/* 导航栏 */
.header-nav {
    position: absolute;
    left: 0;
    top: 53px;
    width: 100%;
    height: 92px;
    z-index: 1;
}
.header-nav-inner {
    width: 1200px;
    height: 92px;
    margin: 0 auto;
    position: relative;
}
.nav-bar {
    position: absolute;
    left: 260px;
    top: 19px;
    width: 833px;
    height: 73px;
    background: #1a5490;
}
.nav-list {
    display: flex;
    height: 73px;
}
.nav-list li {
    flex: 1;
    text-align: center;
}
.nav-list li a {
    display: block;
    height: 73px;
    line-height: 73px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.nav-list li a:hover,
.nav-list li.current-menu-item a {
    background-color: #0d3a6b;
}

/* ========== 轮播图 ========== */
.slider-section {
    position: absolute;
    left: 0;
    top: 144px;
    width: 100%;
    height: 562px;
    overflow: hidden;
    background: #000;
    z-index: 6;
}
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.slide.active { opacity: 1; }

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.slider-nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.8);
    transition: background-color 0.3s;
}
.slider-nav-dot.active { background: #fff; }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    line-height: 50px;
    text-align: center;
    transition: background-color 0.3s;
}
.slider-arrow:hover { background: rgba(0,0,0,0.7); }
.slider-arrow.prev { left: 40px; }
.slider-arrow.next { right: 40px; }

/* ========== 主内容区 ========== */
.main-content {
    position: relative;
    width: 100%;
    min-width: 1200px;
    margin-top: 705px; /* header高度 */
}

/* ========== 通用区块（全宽横幅） ========== */
.banner-section {
    position: relative;
    width: 100%;
    min-width: 1200px;
    overflow: hidden;
}
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.banner-inner {
    position: relative;
    width: 1200px;
    margin: 0 auto;
}

/* ========== 关于我们区块 ========== */
.about-banner {
    height: 408px;
}
.about-banner .banner-bg {
    background-image: url('images/35696054.jpeg');
}
/* 标题图片 */
.about-title-img {
    position: absolute;
    left: 99px;
    top: 28px;
    z-index: 2;
}
.about-title-img img {
    width: 1000px;
    height: 60px;
    display: block;
}
/* 左侧公司图片 */
.about-company-img {
    position: absolute;
    left: 101px;
    top: 109px;
    z-index: 3;
}
.about-company-img img {
    width: 369px;
    height: 210px;
    display: block;
    border-radius: 4px;
}
/* 右侧图片 */
.about-right-img {
    position: absolute;
    left: 473px;
    top: 108px;
    z-index: 4;
}
.about-right-img img {
    width: 630px;
    height: 210px;
    display: block;
}
/* 右侧描述文字 */
.about-desc {
    position: absolute;
    left: 513px;
    top: 128px;
    width: 551px;
    z-index: 5;
    color: #fff;
    font-size: 14px;
    line-height: 1.75;
}
/* 子公司列表 */
.about-subsidiaries {
    position: absolute;
    left: 613px;
    top: 206px;
    width: 360px;
    z-index: 6;
}
.about-subsidiaries li {
    color: #fff;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 2px;
}
/* 》打开按钮 */
.about-btn1 {
    position: absolute;
    left: 532px;
    top: 209px;
    z-index: 7;
}
.about-btn2 {
    position: absolute;
    left: 532px;
    top: 234px;
    z-index: 7;
}
.about-btn3 {
    position: absolute;
    left: 532px;
    top: 259px;
    z-index: 7;
}
.about-btn4 {
    position: absolute;
    left: 532px;
    top: 284px;
    z-index: 7;
}
.btn-open {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    width: 57px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}
.btn-open:hover { text-decoration: underline; }

/* +MORE按钮 */
.btn-more-float {
    position: absolute;
    right: 56px;
    width: 133px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #1a5490;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    z-index: 10;
    font-size: 14px;
}
.btn-more-float:hover { background: #0d3a6b; }
.about-more { top: 51px; }

/* ========== 工程案例区块 ========== */
.cases-banner {
    height: 355px;
    margin-top: -1px;
}
.cases-banner .banner-bg {
    background-color: #f0f0f0;
}
/* 标题图片 */
.cases-title-img {
    position: absolute;
    left: 99px;
    top: 28px;
    z-index: 2;
}
.cases-title-img img {
    width: 1000px;
    height: 60px;
    display: block;
}
/* 标题文字 */
.cases-title-text {
    position: absolute;
    left: 176px;
    top: 52px;
    z-index: 3;
}
.en-title {
    font-size: 22px;
    color: rgb(216, 216, 216);
    font-weight: bold;
    margin-right: 10px;
}
.cn-title {
    font-size: 26px;
    color: #1e387b;
    font-weight: bold;
}
.cases-more { top: 54px; }

/* 案例列表 */
.cases-list {
    position: absolute;
    left: 112px;
    top: 109px;
    width: 976px;
    display: flex;
    gap: 15px;
    z-index: 5;
}
.case-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 209px;
}
.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 10px 15px;
    color: #fff;
    max-height: 34px;
    overflow: hidden;
    transition: max-height 0.3s;
}
.case-item:hover .case-overlay {
    max-height: 209px;
}
.case-overlay h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}
.case-overlay p {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
}

/* ========== 产品展示区块 ========== */
.products-banner {
    height: 398px;
}
.products-banner .banner-bg {
    background-image: url('images/35696061.png');
}
.products-title-img {
    position: absolute;
    left: 90px;
    top: 18px;
    z-index: 2;
}
.products-title-img img {
    width: 1000px;
    height: 64px;
    display: block;
}
.products-title-text {
    position: absolute;
    left: 167px;
    top: 44px;
    z-index: 3;
}
.products-title-text .en-title { color: #fff; }
.products-title-text .cn-title { color: #fff; }
.products-more { top: 46px; right: 65px; }

/* 产品列表 */
.products-list {
    position: absolute;
    left: 81px;
    top: 102px;
    width: 1018px;
    display: flex;
    gap: 20px;
    z-index: 5;
}
.product-item {
    flex: 1;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-bottom {
    padding: 12px 10px;
    text-align: center;
}
.product-bottom h5 {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-bottom p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 新闻资讯区块 ========== */
.news-banner {
    height: 336px;
}
.news-banner .banner-bg {
    background-image: url('images/35696062.png');
}
.news-title-img {
    position: absolute;
    left: 87px;
    top: 16px;
    z-index: 2;
}
.news-title-img img {
    width: 1000px;
    height: 68px;
    display: block;
}
.news-title-text {
    position: absolute;
    left: 159px;
    top: 42px;
    z-index: 3;
}
.news-title-text .en-title { color: rgb(216,216,216); }
.news-title-text .cn-title { color: #1e387b; }
.news-more { top: 44px; right: 68px; }

/* 新闻两列 */
.news-columns {
    position: absolute;
    left: 90px;
    top: 92px;
    width: 1020px;
    display: flex;
    gap: 75px;
    z-index: 5;
}
.news-column {
    width: 460px;
}
.news-list {
    list-style: none;
}
.news-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.news-date {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-family: Arial, sans-serif;
    flex-shrink: 0;
    width: 90px;
}
.news-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}
.news-icon {
    color: #1a5490;
    font-size: 10px;
    flex-shrink: 0;
}
.news-inner a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}
.news-inner a:hover { color: #fff; text-decoration: underline; }

/* ========== 页脚 ========== */
.site-footer {
    background: #282828;
    color: #fff;
    position: relative;
    width: 100%;
    min-width: 1200px;
}
.footer-inner {
    width: 1200px;
    height: 360px;
    position: relative;
    margin: 0 auto;
}

/* 页脚导航 */
.footer-nav {
    position: absolute;
    left: 134px;
    top: 14px;
    width: 931px;
    height: 40px;
}
.footer-nav-list {
    display: flex;
    height: 40px;
}
.footer-nav-list li {
    flex: 1;
    text-align: center;
}
.footer-nav-list li a {
    display: block;
    height: 40px;
    line-height: 40px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-nav-list li a:hover { color: #1a5490; }

/* 页脚联系信息 */
.footer-contact {
    position: absolute;
    left: 150px;
    top: 55px;
    width: 150px;
}
.footer-contact h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #fff;
}
.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    line-height: 1.8;
}

/* 页脚链接列 */
.footer-links {
    position: absolute;
    left: 350px;
    top: 55px;
    display: flex;
    gap: 80px;
}
.footer-col h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #fff;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: #fff; }

/* 页脚版权 */
.footer-bottom {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}
