/*
Theme Name: 中村村银行门头招牌
Theme URI: https://www.zgcun.com.cn
Description: 基于旧站 zgcun.com.cn 复刻的 WordPress 企业主题，适用于银行门头招牌、3M商业标识材料行业。支持首页楼层布局、产品类目、文章类目，所有类目使用 WordPress 普通分类。
Version: 2.0
Author: zgcun
Author URI: https://www.zgcun.com.cn
Tags: 企业站, 产品展示, 楼层布局, 响应式
Text Domain: zgcun
*/

/* ========== 重置与基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    line-height: 1.6;
}
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #e60012; }
img { max-width: 100%; height: auto; border: 0; display: block; }
ul, ol { list-style: none; }
.clearfix::after { content: ""; display: block; clear: both; }
.container { width: 1200px; margin: 0 auto; }

/* ========== 最顶部条 ========== */
.top-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    font-size: 12px;
    color: #888;
    line-height: 30px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .welcome { color: #888; }
.top-bar .welcome a { color: #888; margin-left: 8px; }
.top-bar .top-links a { color: #888; margin-left: 18px; }
.top-bar .top-links a:hover { color: #e60012; }

/* ========== Logo区域 ========== */
.site-header {
    background: #fff;
    padding: 18px 0;
}
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { max-height: 55px; }
.site-logo .logo-text { margin-left: 12px; }
.site-logo .logo-text h1 {
    font-size: 30px;
    color: #222;
    font-weight: bold;
    letter-spacing: 2px;
}
.site-logo .logo-text p {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.header-contact { text-align: right; }
.header-contact .label { font-size: 13px; color: #666; }
.header-contact .phone {
    font-size: 26px;
    color: #e60012;
    font-weight: bold;
    font-family: Arial;
    line-height: 1.3;
}

/* ========== 导航栏 ========== */
.main-nav {
    background: #2b2b2b;
    position: relative;
    z-index: 100;
}
.main-nav .container { display: flex; align-items: stretch; }
.all-cats-trigger {
    background: #e60012;
    color: #fff !important;
    padding: 0 25px;
    line-height: 46px;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 230px;
    flex-shrink: 0;
}
.all-cats-trigger:hover { background: #cc0010; color: #fff !important; }
.all-cats-trigger .icon { font-size: 18px; }
.main-nav ul.menu {
    display: flex;
    list-style: none;
    flex: 1;
}
.main-nav ul.menu > li { position: relative; }
.main-nav ul.menu > li > a {
    display: block;
    padding: 0 22px;
    line-height: 46px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}
.main-nav ul.menu > li > a:hover,
.main-nav ul.menu > li.current-menu-item > a {
    background: #e60012;
    color: #fff;
}
.main-nav ul.menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 0;
    min-width: 180px;
    display: none;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.main-nav ul.menu li:hover > ul.sub-menu { display: block; }
.main-nav ul.menu ul.sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}
.main-nav ul.menu ul.sub-menu li a:hover {
    background: #f8f8f8;
    color: #e60012;
}

/* ========== 幻灯片区域 ========== */
.hero-section {
    display: flex;
    gap: 0;
    background: #fff;
    position: relative;
}
.hero-cats {
    width: 230px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 0;
    position: relative;
    z-index: 50;
}
.hero-cats ul { list-style: none; }
.hero-cats > ul > li {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.hero-cats > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    line-height: 40px;
    font-size: 14px;
    color: #333;
}
.hero-cats > ul > li > a .arrow { color: #ccc; font-size: 12px; }
.hero-cats > ul > li:hover > a {
    background: #fff5f5;
    color: #e60012;
}
.hero-cats > ul > li:hover > a .arrow { color: #e60012; }
.hero-cats .sub-panel {
    position: absolute;
    top: 0;
    left: 100%;
    width: 500px;
    min-height: 100%;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 0;
    padding: 20px;
    display: none;
    box-shadow: 3px 3px 10px rgba(0,0,0,.08);
    z-index: 60;
}
.hero-cats > ul > li:hover .sub-panel { display: block; }
.hero-cats .sub-panel .sub-title {
    font-size: 14px;
    color: #e60012;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.hero-cats .sub-panel .sub-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hero-cats .sub-panel .sub-list a {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
}
.hero-cats .sub-panel .sub-list a:hover {
    background: #e60012;
    color: #fff;
}
.banner-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 400px;
}
.banner-slider .slides { position: relative; height: 100%; }
.banner-slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity .8s;
}
.banner-slider .slide.active { opacity: 1; }
.banner-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-slider .slide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.5);
    color: #fff;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
}
.banner-slider .slider-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.banner-slider .slider-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .2s;
}
.banner-slider .slider-dots span.active { background: #e60012; }

/* ========== 楼层通用 ========== */
.floor { padding: 30px 0; }
.floor-header {
    text-align: center;
    margin-bottom: 25px;
}
.floor-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: inline-block;
    position: relative;
    padding: 0 20px;
}
.floor-title::before,
.floor-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: #ddd;
}
.floor-title::before { right: 100%; }
.floor-title::after { left: 100%; }
.floor-more {
    text-align: right;
    margin-top: -30px;
    margin-bottom: 10px;
}
.floor-more a { color: #999; font-size: 13px; }
.floor-more a:hover { color: #e60012; }

/* ========== 产品网格（4列） ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.product-card {
    border: 1px solid #eee;
    background: #fff;
    transition: all .3s;
    overflow: hidden;
}
.product-card:hover {
    border-color: #e60012;
    box-shadow: 0 4px 12px rgba(230,0,18,.12);
    transform: translateY(-2px);
}
.product-card .thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.product-card .thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .3s;
}
.product-card:hover .thumb img { transform: scale(1.03); }
.product-card .info {
    padding: 10px 8px;
    border-top: 1px solid #f0f0f0;
}
.product-card .title {
    font-size: 13px;
    line-height: 1.5;
    min-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    color: #333;
}
.product-card .title a { color: #333; display: block; }
.product-card .title a:hover { color: #e60012; }
.product-card .desc {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 3F 客户案例 ========== */
.clients-floor {
    background: #f8f8f8;
    padding: 35px 0;
}
.clients-intro {
    text-align: center;
    color: #888;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 20px;
}
.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.clients-header .title { font-size: 15px; color: #333; font-weight: bold; }
.clients-header .more a { font-size: 13px; color: #888; }
.clients-header .more a:hover { color: #e60012; }
.clients-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: center;
}
.clients-logos .client-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clients-logos .client-item img { max-height: 40px; }

/* ========== 4F 银行VI标识 ========== */
.bank-tabs {
    display: flex;
    border-bottom: 2px solid #e60012;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.bank-tabs::-webkit-scrollbar { display: none; }
.bank-tabs .tab {
    padding: 10px 30px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
    background: #f0f0f0;
    margin-right: 2px;
    position: relative;
}
.bank-tabs .tab:hover { color: #e60012; }
.bank-tabs .tab.active {
    background: #e60012;
    color: #fff;
}
.bank-tab-content { display: none; }
.bank-tab-content.active { display: block; }
.bank-more-btn {
    text-align: center;
    margin-top: 20px;
}
.bank-more-btn a {
    display: inline-block;
    padding: 8px 40px;
    background: #e8e8e8;
    color: #555;
    font-size: 14px;
    border-radius: 3px;
}
.bank-more-btn a:hover { background: #e60012; color: #fff; }

/* ========== 5F 最新资讯 ========== */
.news-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}
.news-block h3 {
    font-size: 15px;
    color: #333;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.news-block h3 a { font-size: 12px; color: #999; font-weight: normal; }
.news-block h3 a:hover { color: #e60012; }
.news-list li {
    padding: 7px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.news-list li a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 10px;
    position: relative;
    color: #555;
}
.news-list li a::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #e60012;
    font-weight: bold;
}
.news-list li a:hover { color: #e60012; }
.news-list li .date {
    color: #aaa;
    font-size: 12px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* ========== 服务优势 ========== */
.service-advantages {
    background: #f8f8f8;
    padding: 35px 0;
    margin-top: 30px;
    border-top: 1px solid #eee;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
}
.advantage-item .icon {
    font-size: 32px;
    color: #e60012;
    margin-bottom: 8px;
}
.advantage-item .text {
    font-size: 14px;
    color: #333;
}

/* ========== 页脚 ========== */
.site-footer {
    background: #fff;
    padding: 35px 0 0;
    font-size: 13px;
    border-top: 1px solid #eee;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}
.footer-col h4 {
    color: #333;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: bold;
}
.footer-col ul li { padding: 4px 0; }
.footer-col ul li a { color: #888; font-size: 13px; }
.footer-col ul li a:hover { color: #e60012; }
.footer-contact { text-align: left; }
.footer-contact .phone-big {
    font-size: 24px;
    color: #e60012;
    font-weight: bold;
    font-family: Arial;
    margin: 5px 0;
}
.footer-contact .work-time { color: #888; font-size: 12px; }
.footer-contact .qq-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 18px;
    background: #e60012;
    color: #fff !important;
    border-radius: 3px;
    font-size: 13px;
}
.footer-slogan {
    text-align: center;
    padding: 15px 0;
    color: #666;
    font-size: 13px;
    border-top: 1px solid #eee;
}
.footer-bottom {
    background: #f5f5f5;
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    color: #999;
}
.footer-bottom a { color: #999; }
.footer-links {
    border-top: 1px solid #eee;
    padding: 12px 0;
    font-size: 12px;
    color: #999;
}
.footer-links .container { display: flex; align-items: center; gap: 10px; }
.footer-links .label { color: #e60012; font-weight: bold; flex-shrink: 0; }
.footer-links a { color: #999; margin-right: 15px; }
.footer-links a:hover { color: #e60012; }

/* ========== 面包屑 ========== */
.breadcrumb {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #e60012; }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }

/* ========== 页面主内容区 ========== */
.page-main {
    padding: 25px 0;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 25px;
}
.page-main.full-width { grid-template-columns: 1fr; }

/* ========== 分类页标题 ========== */
.cat-header {
    background: linear-gradient(135deg, #e60012, #ff3344);
    color: #fff;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.cat-header h1 { font-size: 22px; margin-bottom: 5px; }
.cat-header p { font-size: 13px; opacity: .9; }

/* ========== 文章详情 ========== */
.article-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.article-header h1 {
    font-size: 24px;
    color: #222;
    line-height: 1.4;
    margin-bottom: 12px;
}
.article-meta { font-size: 12px; color: #999; }
.article-meta span { margin-right: 15px; }
.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}
.article-content p { margin-bottom: 15px; }
.article-content h2, .article-content h3 { margin: 20px 0 10px; color: #e60012; }
.article-content img { margin: 15px auto; max-width: 100%; }
.article-tags {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
}
.article-tags a {
    display: inline-block;
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 3px;
    margin-right: 8px;
    color: #666;
}
.article-tags a:hover { background: #e60012; color: #fff; }

/* ========== 侧边栏 ========== */
.widget {
    border: 1px solid #eee;
    margin-bottom: 20px;
    background: #fff;
}
.widget-title {
    background: #2b2b2b;
    color: #fff;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: bold;
    border-left: 3px solid #e60012;
}
.widget-body { padding: 15px; }
.widget-body ul li {
    padding: 7px 0;
    border-bottom: 1px dashed #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.widget-body ul li:last-child { border-bottom: 0; }
.widget-body ul li a { font-size: 13px; color: #555; }
.widget-body ul li a:hover { color: #e60012; }
.widget-contact { text-align: center; padding: 20px; }
.widget-contact .phone {
    font-size: 24px;
    color: #e60012;
    font-weight: bold;
    font-family: Arial;
    margin: 10px 0;
}
.widget-contact .label { color: #666; font-size: 13px; }

/* ========== 分页 ========== */
.pagination { margin-top: 30px; text-align: center; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #666;
    font-size: 13px;
    border-radius: 3px;
}
.pagination a:hover { border-color: #e60012; color: #e60012; }
.pagination .current {
    background: #e60012;
    border-color: #e60012;
    color: #fff;
}

/* ========== 搜索框 ========== */
.search-form { display: flex; gap: 0; }
.search-form input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-right: 0;
    font-size: 13px;
    outline: none;
}
.search-form input[type="text"]:focus { border-color: #e60012; }
.search-form button {
    padding: 8px 15px;
    background: #e60012;
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 13px;
}
.search-form button:hover { background: #cc0010; }

/* ========== 404 ========== */
.error-404 { text-align: center; padding: 80px 0; }
.error-404 .code {
    font-size: 120px;
    font-weight: bold;
    color: #e60012;
    line-height: 1;
}
.error-404 .msg { font-size: 20px; color: #666; margin: 20px 0; }
.error-404 a {
    display: inline-block;
    padding: 10px 30px;
    background: #e60012;
    color: #fff;
    border-radius: 4px;
}

/* ========== 子分类导航 ========== */
.sub-cat-nav {
    background: #f8f8f8;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.sub-cat-nav strong { color: #e60012; margin-right: 15px; }
.sub-cat-nav a {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}
.sub-cat-nav a:hover, .sub-cat-nav a.current {
    background: #e60012;
    color: #fff;
    border-color: #e60012;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .container { width: 96%; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .news-three { grid-template-columns: 1fr; }
    .page-main { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(3, 1fr); }
    .clients-logos { grid-template-columns: repeat(3, 1fr); }
    .hero-section { flex-direction: column; }
    .hero-cats { width: 100%; }
    .hero-cats .sub-panel { position: static; width: 100%; display: none; }
    .hero-cats > ul > li:hover .sub-panel { display: none; }
    .main-nav ul.menu { flex-wrap: wrap; }
    .main-nav ul.menu > li > a { padding: 0 15px; font-size: 14px; }
    .banner-slider { height: 250px; }
    .all-cats-trigger { width: 100%; }
}