/*
Theme Name: 博纳德科技主题
Theme URI: https://www.ccbnd.com/
Description: 博纳德网络科技官方主题，专注小程序开发、APP开发、网站制作服务展示
Author: 吉林博纳德网络科技有限公司
Author URI: https://www.ccbnd.com/
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bondetech
*/

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

/* 容器 */
.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.site-header {
    background: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.site-logo {
    height: 40px;
}

/* 导航菜单 */
.main-navigation {
    display: flex;
    gap: 2rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-weight: bold;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
    color: #2563eb;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    padding: 0.5rem;
    line-height: 1;
    z-index: 100;
}

.menu-toggle .menu-icon {
    width: 24px;
    height: 24px;
    color: inherit;
}

.menu-toggle:hover {
    opacity: 0.8;
}

/* 移动端导航 */
.mobile-navigation {
    display: none !important;
    background: #ffffff;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e7eb;
}

/* 关闭按钮 */
.mobile-menu-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
}

.mobile-menu-close:hover {
    background: #e5e7eb;
}

.mobile-menu-close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-navigation li:last-child {
    border-bottom: none;
}

.mobile-navigation a {
    display: block;
    padding: 14px 20px;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.mobile-navigation a:hover {
    background-color: #f9fafb;
}

.mobile-navigation.active {
    display: block !important;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 上一篇/下一篇导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.nav-links {
    flex: 1;
}

.nav-previous,
.nav-next {
    width: 48%;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-links a {
    color: #2563eb;
    text-decoration: none;
    display: block;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-links .meta-nav {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.nav-links .post-title {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* 主内容区 */
.site-main {
    min-height: calc(100vh - 200px);
}

/* 页脚 */
.site-footer {
    background-color: #111827;
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
}

.site-footer p {
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

/* Hero 区域 */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary {
    background-color: #ffffff;
    color: #2563eb;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.service-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* 案例展示 */
.case-section {
    padding: 2rem 0;
    background-color: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #1f2937;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.case-item {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.case-item img {
    width: 100%;
    object-fit: cover;
}

.case-item p {
    padding: 1rem;
    text-align: center;
    color: #374151;
}

/* 服务标签 */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.service-tags span {
    background-color: #e0e7ff;
    color: #4338ca;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* 项目展示 */
.project-showcase {
    padding: 2rem 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.project-secondary{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.project-item {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.project-item img {
    width: 100%;
    object-fit: cover;
}

.project-item p {
    padding: 1rem;
    text-align: center;
    color: #374151;
}

/* 博客区域 */
.blog-section {
    padding: 2rem 0;
    background-color: #f9fafb;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-card h3 {
    margin-bottom: 0.5rem;
}

.blog-card h3 a {
    color: #1f2937;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #2563eb;
}

.post-date {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-card p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.blog-card .excerpt-two-line {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    line-height: 1.5 !important;
    max-height: 3em !important; /* 两行的高度 (line-height * 2) */
    min-height: 3em !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px;
}

.read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.no-content {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
}

/* 文章列表页 */
.archive-page {
    padding: 2rem 0;
}

.archive-header {
    margin-bottom: 3rem;
}

.archive-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.archive-header p {
    color: #6b7280;
}

.archive-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.archive-main {
    flex: 1;
    min-width: 300px;
}

.archive-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 文章卡片 */
.article-card {
    display: flex;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-card-image {
    width: 256px;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-card-content {
    padding: 1.5rem;
    flex: 1;
}

.article-category {
    display: inline-block;
    background-color: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.article-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-card-title a {
    color: #1f2937;
    text-decoration: none;
}

.article-card-title a:hover {
    color: #2563eb;
}

.article-meta {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.article-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word; /* 可选，处理长单词换行 */
  font-size: 15px;
}

.article-read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.article-read-more:hover {
    text-decoration: underline;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
}

.pagination a {
    background: white;
    color: #374151;
}

.pagination a:hover {
    background: #f3f4f6;
}

.pagination span.current {
    background: #2563eb;
    color: white;
}

/* 侧边栏 */
.sidebar-widget {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 0.75rem;
}

.sidebar-widget ul li a {
    color: #374151;
    text-decoration: none;
}

.sidebar-widget ul li a:hover {
    color: #2563eb;
}

.sidebar-widget .recent-post-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* 联系区域 */
.contact-widget {
    background-color: #eff6ff;
}

.contact-widget-title {
    border-bottom-color: #bfdbfe;
}

.contact-widget img {
    width: 128px;
    height: 128px;
    margin: 0 auto 0.5rem;
    display: block;
}

.contact-widget p {
    text-align: center;
    color: #374151;
    margin-bottom: 1rem;
}

.contact-btn {
    display: block;
    background-color: #2563eb;
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
}

.contact-btn:hover {
    background-color: #1d4ed8;
}

/* 文章详情页 */
.single-post {
    padding: 2rem 0;
}

.single-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.single-main {
    flex: 1;
    min-width: 300px;
}

.single-article {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.single-featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.single-content-inner {
    padding: 2rem;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.single-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.single-body {
    color: #4b5563;
    line-height: 1.8;
}

.single-body h2 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.single-body h3 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.single-body p {
    margin-bottom: 1rem;
}

.single-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.single-body li {
    margin-bottom: 0.5rem;
}

/* 标签 */
.post-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.post-tags span {
    color: #6b7280;
    margin-right: 0.5rem;
}

.post-tags a {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-decoration: none;
    margin-right: 0.5rem;
}

.post-tags a:hover {
    background-color: #e5e7eb;
}

/* 分享 */
.post-share {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.post-share p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.share-btn-wechat {
    background-color: #22c55e;
    color: white;
}

.share-btn-wechat:hover {
    background-color: #16a34a;
}

.share-btn-qq {
    background-color: #3b82f6;
    color: white;
}

.share-btn-qq:hover {
    background-color: #2563eb;
}

/* 相关文章 */
.related-posts {
    margin-top: 2rem;
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.related-posts h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.related-post-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.related-post-item a {
    color: #2563eb;
    text-decoration: none;
}

.related-post-item a:hover {
    text-decoration: underline;
}

/* CTA 区域 */
.cta-section {
    margin-top: 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    color: white;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
}

.cta-btn:hover {
    background: #f3f4f6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-secondary {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: #ffffff;
        stroke-width: 2;
    }
    
    .main-navigation {
        display: none !important;
    }
    
    .mobile-navigation.active {
        display: block !important;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-card-image {
        width: 100%;
        height: 200px;
    }
    
    .single-title {
        font-size: 1.75rem;
    }
    
    .single-featured-image {
        height: 200px;
    }
    
    .archive-sidebar,
    .single-sidebar {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        text-align: center;
    }
    
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-secondary {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .archive-header h1 {
        font-size: 1.75rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
}
@media (min-width: 1021px) {
  .sidepc {
    position: fixed;
    right: 20px;
    top: 15%;
    z-index: 1000;
    border-bottom:0;
    text-align: center;
    border-radius: 15px;
    padding:15px 20px 20px 20px;
    background-color: #fff;
  }
  .mzixun{display:none;}
}
@media (max-width: 1021px) {
     .sidepc {display: none;}
}
.sitezixun {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-bottom: 110px;
  line-height: 25px;
}
.mzixun {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 50%;
  -webkit-transform:
translate3d(-50%,0,0);
  transform: translate3d(-50%,0,0);
  overflow:hidden;
  background-color: #fff;
  border-top:#eceded;
  -webkit-box-shadow:0 0 4px rgba(0,0,0,.2);
  box-shadow: 0 0 4px rgba(0,0,0,.2);
z-index: 9999;
padding: 20px 0px 10px 0px;
}
.mzixun li {
  float: left;
  width: 33.33%;
  text-align: center;
  height: 100%;
  margin-top: 5px;
  list-style: none;
}

.mzixun p{
  font-size: 15px;
  padding-top: 5px;
text-align: center;
color: #000;
}
@media (max-width: 480px) {
  li {
    font-size: 0.85em;
  }
}
mzixun ul li a {
    color: #2f2f2f !important;
}
@media (min-width: 1021px) {
  .m-button {
    display: none;
  }
  .sitezixun {
    display: none;
  }
}
