/* ==========================================================================
   GoCMS - 百纯贸易风格企业官网一比一精仿 CSS 样式表 (包含全套5大页面)
   配色方案：百纯蓝 (#009bda / #02428c) + 暗黑底栏 (#1a222a) + 质感灰 (#f5f7fa)
   ========================================================================== */

: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-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);
}
