/* ===== 广西国柱防水 - 视觉复刻样式 ===== */
:root {
    --blue: #0195df;
    --blue-dark: #0181c1;
    --blue-light: #4bc3ff;
    --blue-bright: #3abdfe;
    --red: #e23a2a;
    --text: #434a54;
    --text-dark: #444444;
    --bg-gray: #f5f5f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Source Han Sans", "Microsoft YaHei", "PingFang SC", Geneva, sans-serif;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; border: 0; }
ul, ol { list-style: none; }
.wrap { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ===== 顶部欢迎条 ===== */
.topbar {
    height: 32px;
    background: var(--bg-gray);
    font-size: 14px;
    line-height: 32px;
    color: var(--text);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-right { display: flex; align-items: center; }
.topbar-right a { color: var(--text); padding: 0 6px; }
.topbar-right a:hover { color: var(--blue); }
.topbar-sep { color: #d3d3d3; }

/* ===== 头部 Logo 区 ===== */
.header { background: #fff; }
.header-inner {
    height: 145px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 62px; }
/* 文字版 Logo */
.logo-txt { display: flex; flex-direction: column; }
.logo-txt .logo-name {
    font-size: 42px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.15;
    letter-spacing: 2px;
    font-family: "Source Han Sans", "Microsoft YaHei", sans-serif;
}
.logo-txt .logo-sub { font-size: 14px; color: #888; letter-spacing: 1px; }
.header-phone { display: flex; align-items: center; gap: 12px; }
.header-phone img { width: 46px; height: 46px; }
.header-phone-txt { display: flex; flex-direction: column; }
.header-phone-txt .label { font-size: 14px; color: var(--text); }
.header-phone-txt .num { font-size: 26px; font-weight: 700; color: var(--blue); line-height: 1.2; }

/* ===== 主导航 ===== */
.nav { background: var(--blue); height: 45px; }
.nav-list { display: flex; height: 45px; }
.nav-list li { flex: 1; text-align: center; }
.nav-list li a {
    display: block;
    height: 45px;
    line-height: 45px;
    color: #fff;
    font-size: 16px;
    position: relative;
}
.nav-list li a:hover,
.nav-list li.active a {
    background: var(--blue-dark);
}
.nav-list li a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--blue-light);
    opacity: 0;
}
.nav-list li.active a::after,
.nav-list li a:hover::after { opacity: 1; }

/* ===== 首页 Banner 轮播 ===== */
.banner {
    position: relative;
    height: 680px;
    overflow: hidden;
}
.banner-slides { position: relative; width: 100%; height: 100%; }
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    background-size: cover;
    background-position: center;
}
.banner-slide.active { opacity: 1; }
.banner-txt {
    position: absolute;
    left: 12%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    z-index: 2;
    max-width: 62%;
}
.banner-txt h2 { font-size: 56px; font-weight: 800; letter-spacing: 4px; line-height: 1.25; }
.banner-txt p { font-size: 28px; font-weight: 700; margin-top: 14px; letter-spacing: 2px; }
.banner-txt em { display: inline-block; font-style: normal; font-size: 18px; margin-top: 18px; color: #6fd6ff; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}
.banner-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    cursor: pointer;
}
.banner-dots span.active { background: var(--blue); }

/* ===== 板块通用标题 ===== */
.section { padding: 60px 0; }
.section-title {
    text-align: center;
    margin-bottom: 20px;
}
.section-title h2 {
    font-size: 38px;
    color: var(--blue);
    font-weight: 700;
}
.section-title .sep { margin-top: 8px; }
.section-title .sep img { margin: 0 auto; height: 30px; }
.section-title.white h2 { color: #fff; }
.section-title p.sub { color: #999; margin-top: 10px; font-size: 16px; }

/* ===== 产品展示 ===== */
.product-cats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    border: 1px solid #eee;
    width: 981px;
    margin-left: auto; margin-right: auto;
}
.product-cats a {
    flex: 1;
    text-align: center;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    color: var(--text);
    border-right: 1px solid #eee;
    background: #fafafa;
}
.product-cats a:last-child { border-right: 0; }
.product-cats a:hover,
.product-cats a.active {
    background: var(--blue);
    color: #fff;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
}
.product-card { background: #fff; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-4px); }
.product-card .pic { height: 240px; overflow: hidden; }
.product-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .pic img { transform: scale(1.06); }
.product-card .info { padding: 14px 16px; text-align: center; }
.product-card .info h3 { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.product-card .info .price { color: var(--red); font-size: 16px; font-weight: 700; }
.product-card .info .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 22px;
    background: var(--blue);
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
}
.product-card .info .btn:hover { background: var(--blue-dark); }

/* ===== 解决方案条 ===== */
.solution {
    height: 200px;
    background: var(--blue);
    display: flex;
    align-items: center;
}
.solution-inner { display: flex; justify-content: space-between; align-items: center; }
.solution-title { font-size: 30px; font-weight: 700; color: #fff; }
.solution-title .hl { color: var(--blue-light); }
.solution-right { display: flex; align-items: center; gap: 20px; }
.solution-phone { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 24px; font-weight: 700; }
.solution-phone img { width: 24px; height: 24px; }
.solution-btn {
    display: inline-block;
    padding: 0 30px;
    height: 45px;
    line-height: 45px;
    background: #fff;
    color: var(--blue);
    font-size: 16px;
    border-radius: 3px;
    font-weight: 600;
}
.solution-btn:hover { background: var(--blue-light); color: #fff; }

/* ===== 四大优势 ===== */
.advantages { background: #fff; }
.adv-grid {
    display: grid;
    grid-template-columns: repeat(2, 560px);
    gap: 20px 40px;
    justify-content: center;
}
.adv-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--bg-gray);
    min-height: 210px;
    border-radius: 4px;
}
.adv-item .icon { flex-shrink: 0; width: 98px; height: 98px; }
.adv-item .icon img { width: 98px; height: 98px; }
.adv-item .body { flex: 1; }
.adv-item .body h3 { font-size: 26px; line-height: 1.4; color: var(--blue); margin-bottom: 12px; }
.adv-item .body h3 span { color: var(--text-dark); }
.adv-item .body p { font-size: 16px; line-height: 1.8; color: #666; }

/* ===== 公司简介 ===== */
.about { background: var(--bg-gray); }
.about-inner { display: flex; gap: 40px; align-items: center; }
.about-img { width: 520px; height: 340px; overflow: hidden; flex-shrink: 0; border-radius: 4px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-body { flex: 1; }
.about-body .section-title { text-align: left; margin-bottom: 16px; }
.about-body .section-title .sep img { margin: 0; }
.about-body p { font-size: 14px; line-height: 2; color: #666; margin-bottom: 16px; }
.about-body .btn {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--blue);
    color: var(--blue);
    border-radius: 3px;
}
.about-body .btn:hover { background: var(--blue); color: #fff; }

/* ===== 工程案例 ===== */
.cases { background: #0181c1; }
.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.case-card { position: relative; overflow: hidden; border-radius: 4px; }
.case-card .pic { height: 180px; overflow: hidden; }
.case-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .pic img { transform: scale(1.08); }
.case-card .mask {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: #fff;
    text-align: center;
    font-size: 16px;
}
.cases .more-btn {
    text-align: center;
    margin-top: 35px;
}
.cases .more-btn a {
    display: inline-block;
    padding: 8px 40px;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 3px;
}
.cases .more-btn a:hover { background: #fff; color: var(--blue-dark); }

/* ===== 新闻资讯 ===== */
.news-inner { display: flex; gap: 30px; align-items: flex-start; }
.news-list { flex: 1; }
.news-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}
.news-item .pic { width: 160px; height: 110px; overflow: hidden; flex-shrink: 0; border-radius: 3px; }
.news-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.news-item .info { flex: 1; }
.news-item .info h3 { font-size: 16px; color: var(--text-dark); margin-bottom: 8px; font-weight: 600; }
.news-item .info h3 a:hover { color: var(--blue); }
.news-item .info p { font-size: 13px; color: #999; line-height: 1.6; }
.news-item .info .meta { margin-top: 6px; font-size: 12px; color: #bbb; }
.news-side {
    width: 340px;
    flex-shrink: 0;
    background: var(--bg-gray);
    padding: 24px;
    border-radius: 4px;
}
.news-side h3 { font-size: 20px; color: var(--blue); margin-bottom: 16px; }
.news-side ul li { padding: 8px 0; border-bottom: 1px dashed #ddd; }
.news-side ul li a { font-size: 14px; color: var(--text); }
.news-side ul li a:hover { color: var(--blue); }
.news-side .more-btn { margin-top: 16px; text-align: right; }
.news-side .more-btn a { color: var(--blue); font-size: 14px; }

/* ===== 子页面 banner（图片轮播 + 宣传文字） ===== */
.page-banner {
    position: relative;
    height: 320px;
    overflow: hidden;
}
.page-banner .banner-slides { position: absolute; inset: 0; }
.page-banner-txt {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.page-banner-txt h1 { font-size: 44px; font-weight: 800; letter-spacing: 4px; }
.page-banner-txt p { font-size: 22px; font-weight: 700; margin-top: 10px; letter-spacing: 2px; }
.page-banner-txt em { display: inline-block; font-style: normal; font-size: 16px; margin-top: 14px; color: #6fd6ff; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.breadcrumb {
    background: var(--bg-gray);
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: #999;
}
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; color: #ccc; }
.breadcrumb em { font-style: normal; color: var(--text); }

/* ===== 通用内容页 ===== */
.page-main { padding: 40px 0 60px; min-height: 500px; }
.content-box { background: #fff; }
.content-box .prose { font-size: 15px; line-height: 2; color: #555; }
.content-box .prose p { margin-bottom: 14px; }
.content-box .prose img { margin: 12px auto; }

/* 列表页 */
.list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 20px; }
.pagination { text-align: center; margin-top: 40px; }
.pagination a, .pagination span {
    display: inline-block;
    min-width: 36px; height: 36px;
    line-height: 36px;
    padding: 0 8px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: var(--text);
    border-radius: 3px;
}
.pagination a:hover, .pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 详情页 */
.detail-article { padding: 30px; }
.detail-article h1 { font-size: 26px; color: var(--text-dark); text-align: center; margin-bottom: 10px; }
.detail-article .meta { text-align: center; color: #999; font-size: 13px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.detail-article .prose { margin-top: 8px; }
.detail-article .prose img { max-width: 100%; }

/* ===== 留言/联系表单 ===== */
.form-box { max-width: 640px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-dark); }
.form-row label em { color: var(--red); font-style: normal; margin-right: 3px; }
.form-row input, .form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--blue); }
.form-row textarea { height: 120px; resize: vertical; }
.submit-btn {
    display: block;
    width: 100%;
    height: 44px;
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
}
.submit-btn:hover { background: var(--blue-dark); }
.form-tip { margin-top: 16px; color: var(--blue); text-align: center; display: none; }

/* 联系我们 */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card { text-align: center; padding: 30px; background: #fff; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.contact-card .ico { font-size: 40px; color: var(--blue); margin-bottom: 12px; }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-dark); }
.contact-card p { color: #666; font-size: 15px; }

/* ===== 页脚 ===== */
.footer { background: #444444; color: #fff; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
    gap: 30px;
    padding: 40px 0;
    align-items: start;
}
.footer-col h4 { font-size: 18px; margin-bottom: 14px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
.footer-nav a { color: #ccc; font-size: 14px; }
.footer-nav a:hover { color: var(--blue-bright); }
.footer-logo { display: flex; flex-direction: column; }
.footer-logo .footer-logo-name {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.3;
}
.footer-logo .footer-logo-sub { font-size: 13px; color: #bbb; }
.footer-qrcode { text-align: center; }
.footer-qrcode img { width: 130px; height: 130px; margin: 0 auto 8px; }
.footer-qrcode span { font-size: 13px; color: #ccc; }
.footer-contact .c-label { font-size: 14px; color: #ccc; }
.footer-contact .c-num { font-size: 24px; color: var(--blue-bright); font-weight: 700; margin-bottom: 10px; }
.footer-contact .c-addr { font-size: 13px; color: #bbb; line-height: 1.6; }
.footer-copyright {
    border-top: 1px solid #555;
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: #bbb;
}
.footer-copyright a { color: #bbb; }
.footer-copyright a:hover { color: var(--blue-bright); }
.footer-copyright p { line-height: 1.8; }

/* ===== 浮动工具（与原站一致：收缩62px → 悬停整栏展开 + 二维码向下展开） ===== */
.floating {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    width: 62px;
    overflow: hidden;
    transition: width .25s ease;
}
.floating:hover,
.floating.expanded { width: 200px; }
.cs-btn { margin: 0; padding: 0; list-style: none; }
.cs-list {
    position: relative;
    height: 60px;
    margin-bottom: 3px;
    border: 1px solid #eeeeee;
    border-radius: 40px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    clear: both;
    cursor: pointer;
    transition: height .25s ease;
}
.cs-warp { position: relative; background: #fff; }
.cs-list:hover { border-color: var(--blue); }
.cs-list:hover .cs-warp { background: var(--blue); }
.cs-icon {
    display: block;
    float: left;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 40px;
    color: #000;
}
.cs-icon svg { width: 26px; height: 26px; vertical-align: middle; }
.cs-list:hover .cs-icon { color: #fff; }
.cs-text {
    display: block;
    padding-right: 20px;
    padding-left: 2px;
    line-height: 60px;
    color: #000;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cs-list:hover .cs-text { color: #fff; }
.cs-code { padding: 0 20px 20px; }
.cs-code img { margin: 0 auto; display: block; width: 160px; height: auto; }
.floating:hover .cs-qr,
.floating.expanded .cs-qr { height: 240px; }

/* ===== 响应式 ===== */
@media (max-width: 1240px) {
    .wrap { width: 100%; padding: 0 15px; }
    .adv-grid { grid-template-columns: 1fr 1fr; }
    .product-cats { width: 100%; }
}
