/* ==========================================================================
   GoCMS - 默认经典蓝企业官网主题 CSS 样式表
   ========================================================================== */

:root {
    --primary-color: #009bda;
    --primary-dark: #02428c;
    --accent-red: #e60012;
    --text-dark: #111827;
    --text-main: #374151;
    --text-muted: #6b7280;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------------- 顶部 Top Bar ---------------- */
.top-bar {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left span {
    margin-right: 20px;
}
.top-bar-right a {
    margin-left: 15px;
    color: var(--text-muted);
}
.top-bar-right a:hover {
    color: var(--primary-color);
}

/* ---------------- Header 品牌标识 ---------------- */
.site-header-main {
    background-color: var(--bg-white);
    padding: 20px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-logo i {
    font-size: 42px;
    color: var(--primary-color);
}
.site-logo-text h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
}
.site-logo-text p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.header-contact-phone {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-contact-phone i {
    font-size: 36px;
    color: var(--primary-color);
}
.phone-details span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}
.phone-details strong {
    font-size: 20px;
    color: var(--primary-dark);
    font-weight: 800;
}

/* ---------------- 主导航条 Main Nav ---------------- */
.main-nav-bar {
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 155, 218, 0.2);
}
.nav-menu-list {
    display: flex;
    list-style: none;
}
.nav-menu-list li a {
    display: block;
    padding: 14px 32px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}
.nav-menu-list li a:hover,
.nav-menu-list li a.active {
    background-color: #0081b8;
    color: #ffffff;
}

/* ---------------- 巨幅 Hero Banner (匠人印章与标语) ---------------- */
.hero-banner-b2b {
    background: url('/static/images/banner1.jpg') center center / cover no-repeat;
    height: 480px;
    position: relative;
}
.hero-banner-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.1) 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-banner-content {
    display: flex;
    align-items: center;
    gap: 35px;
}
.jiangren-seal {
    border: 3px solid #ffffff;
    color: #ffffff;
    font-size: 38px;
    font-weight: 900;
    padding: 10px 18px;
    writing-mode: vertical-rl;
    letter-spacing: 6px;
    background: rgba(230, 0, 18, 0.85);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hero-banner-slogan {
    border-left: 2px solid rgba(255, 255, 255, 0.6);
    padding-left: 30px;
}
.hero-banner-slogan h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-banner-slogan h2 span {
    color: var(--accent-red);
}

/* ---------------- 板块标题 Section Title ---------------- */
.section-title-box {
    text-align: center;
    margin-bottom: 35px;
}
.section-title-box h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.section-title-box .en-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}
.section-title-box .title-line {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* ---------------- 品牌介绍 ---------------- */
.brand-intro-section {
    padding: 50px 0;
    background: var(--bg-white);
}
.brand-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.brand-intro-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}
.brand-intro-content p {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 20px;
}
.btn-more-blue {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8px 25px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 2px;
}
.btn-more-blue:hover {
    background-color: #0081b8;
    color: #ffffff;
}

/* ---------------- 产品展示 & 新闻 ---------------- */
.product-section, .news-section {
    padding: 50px 0;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.product-card-b2b {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}
.product-card-b2b:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.product-card-thumb {
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
}
.product-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-body {
    padding: 15px;
}
.product-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    height: 2.8em;
    overflow: hidden;
}

/* ---------------- 二级页面双栏架构 (Left Sidebar + Right Main) ---------------- */
.page-with-sidebar {
    padding: 40px 0;
}
.layout-two-cols {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* 侧边栏 Widget */
.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-title-card {
    background: var(--primary-color);
    color: #ffffff;
    padding: 25px 20px;
    border-radius: 4px;
}
.sidebar-title-card h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}
.sidebar-title-card p {
    font-size: 11px;
    opacity: 0.85;
    letter-spacing: 1px;
}

.sidebar-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.sidebar-box-header {
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-box-header a {
    color: #ffffff;
    font-size: 11px;
}
.sidebar-box-body {
    padding: 15px;
}
.company-info-list p {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
}
.sidebar-category-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}
.sidebar-category-list li {
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
}
.sidebar-category-list li:last-child {
    border-bottom: none;
}
.sidebar-category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}
.sidebar-category-list li a:hover {
    background: #f0f7ff;
    color: var(--primary-color);
    padding-left: 20px;
}
.sidebar-category-list li a.active {
    background: #e6f0ff;
    color: var(--primary-color);
    font-weight: 700;
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
}
.sidebar-news-list {
    list-style: none;
}
.sidebar-news-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 13px;
}
.sidebar-news-list li:last-child {
    border-bottom: none;
}
.sidebar-news-list li a {
    color: var(--text-main);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-news-list li a:hover {
    color: var(--primary-color);
}
.sidebar-news-list li span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sidebar-form input, .sidebar-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-bottom: 10px;
    font-size: 13px;
}
.sidebar-form button {
    width: 100%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
}
.sidebar-form button:hover {
    background: #0081b8;
}

/* 右侧主内容区 */
.main-content-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 25px;
}
.breadcrumb-bar {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb-bar a {
    color: var(--text-main);
}
.breadcrumb-bar a:hover {
    color: var(--primary-color);
}

.section-sub-header {
    background: var(--primary-color);
    color: #ffffff;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ---------------- 底部 Footer ---------------- */
.site-footer-b2b {
    background: #1a222a;
    color: #94a3b8;
    padding: 40px 0 20px;
    font-size: 13px;
}
.footer-top-nav {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.footer-top-nav a {
    color: #cbd5e1;
    margin: 0 12px;
}
.footer-top-nav a:hover {
    color: #ffffff;
}
.footer-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.footer-logo-text {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
}
.footer-company-name {
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
}
.footer-info-box p {
    margin-bottom: 5px;
}
.footer-qr-box {
    text-align: center;
}
.qr-placeholder {
    width: 90px;
    height: 90px;
    background: #ffffff;
    color: #1a222a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 6px;
    border-radius: 4px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 15px;
    text-align: center;
    font-size: 12px;
}

/* ---------------- 实时咨询浮动弹窗 ---------------- */
.live-consult-box {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #ffffff;
    border-radius: 30px;
    padding: 8px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    border: 1px solid var(--border-color);
}
.live-avatar {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.live-time {
    color: var(--accent-red);
    font-weight: 700;
}

@media (max-width: 992px) {
    .layout-two-cols {
        grid-template-columns: 1fr;
    }
}

/* ---------------- 动态轮播图 Carousel ---------------- */
.banner-carousel-section {
    position: relative;
    width: 100%;
    height: clamp(400px, 28vw, 540px);
    min-height: 400px;
    overflow: hidden;
    background: #02428c;
}
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.carousel-slide-overlay {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.1) 100%);
    text-decoration: none;
}
.carousel-subtext {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    margin-top: 8px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}
.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 155, 218, 0.4);
}
.carousel-prev {
    left: 25px;
}
.carousel-next {
    right: 25px;
}
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.indicator-dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.indicator-dot.active,
.indicator-dot:hover {
    width: 40px;
    background: var(--primary-color);
}

/* ==================== 全面移动端与手机端响应式适配 ==================== */

/* 1. 平板与中等屏幕 (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }
    .layout-two-cols {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .main-content-panel {
        order: 1 !important;
    }
    .sidebar-col {
        order: 2 !important;
    }
    .brand-intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .banner-carousel-section {
        height: 320px;
        min-height: 320px;
    }
    .hero-banner-b2b {
        height: 320px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* 2. 手机端屏幕 (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. 顶上站点地图与地址在手机端隐藏 */
    .top-bar {
        display: none !important;
    }

    /* 2. 头部 Header */
    .site-header-main {
        padding: 10px 0 !important;
    }
    .header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }
    .site-logo {
        max-width: calc(100% - 50px) !important;
        gap: 8px !important;
    }
    .site-logo img {
        max-height: 38px !important;
        max-width: 170px !important;
        object-fit: contain !important;
    }
    .site-logo i {
        font-size: 28px !important;
    }
    .site-logo-text h1 {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }
    .site-logo-text p {
        font-size: 8px !important;
    }
    .header-contact-phone {
        display: none !important;
    }

    /* 手机端汉堡菜单切换按钮 */
    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: #f0f7ff;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        border-radius: 6px;
        font-size: 22px;
        cursor: pointer;
        outline: none;
        transition: all 0.2s ease;
    }
    .mobile-nav-toggle:active {
        background: var(--primary-color);
        color: #fff;
    }

    /* 手机端主导航折叠与展开 */
    .main-nav-bar {
        display: none;
        background-color: var(--primary-color);
        position: relative;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }
    .main-nav-bar.mobile-open {
        display: block;
        animation: navSlideDown 0.25s ease-out forwards;
    }
    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nav-menu-list {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    .nav-menu-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    .nav-menu-list li:last-child {
        border-bottom: none;
    }
    .nav-menu-list li a {
        display: block;
        padding: 13px 20px;
        font-size: 14.5px;
        text-align: left;
        color: #ffffff;
    }
    .nav-menu-list li a:hover,
    .nav-menu-list li a.active {
        background-color: rgba(0, 0, 0, 0.15);
        padding-left: 26px;
    }

    /* 巨幅轮播图 Banner */
    .banner-carousel-section {
        height: 210px !important;
        min-height: 210px !important;
    }
    .carousel-prev, .carousel-next {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
    .carousel-indicators {
        bottom: 10px;
        gap: 5px;
    }
    .indicator-dot {
        width: 16px;
        height: 3px;
    }
    .indicator-dot.active {
        width: 24px;
    }

    /* 页面与主内容 */
    .page-with-sidebar {
        padding: 20px 0;
    }
    .main-content-panel {
        padding: 16px;
    }
    .breadcrumb-bar {
        font-size: 12px;
        margin-bottom: 16px;
        padding-bottom: 8px;
    }

    /* 产品展示列表 (手机端双列精简) */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .product-card-thumb {
        height: 150px !important;
    }
    .product-card-body {
        padding: 10px !important;
    }
    .product-card-title {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }

    /* 侧边栏与板块 */
    .sidebar-col {
        gap: 15px;
    }
    .sidebar-title-card {
        padding: 16px 14px;
    }
    .sidebar-title-card h2 {
        font-size: 18px;
    }
    .sidebar-box-header {
        padding: 8px 12px;
        font-size: 13px;
    }
    .sidebar-category-list li a {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    .company-info-list p {
        font-size: 12px;
        margin-bottom: 6px;
    }

    /* 底部 Footer */
    .site-footer-b2b {
        padding: 30px 0 15px;
    }
    .footer-top-nav {
        font-size: 12px;
        line-height: 2;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    .footer-top-nav a {
        margin: 0 6px;
    }
    .footer-main-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 20px;
    }
    .footer-info-box p {
        font-size: 12px;
    }

    /* 浮动咨询弹窗 */
    .live-consult-box {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 12px;
        justify-content: center;
    }
}

/* 3. 小屏手机 (max-width: 480px) */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .product-card-thumb {
        height: 130px !important;
    }
}
