/* ============================================
   凯迪企业站 - Z-BlogPHP 白色企业主题
   @package Z-BlogPHP
   @subpackage kaidi_b
   ============================================ */

/* ----- 全局基础样式 ----- */
:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --primary-light: #e8f0fe;
    --accent: #ff6a00;
    --accent-light: #fff3e0;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-white: #fff;
    --bg-gray: #f5f7fa;
    --bg-dark: #1a1a2e;
    --border-color: #e8ecf1;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- 顶部工具栏 ----- */
.top-bar {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 8px 0;
    line-height: 1;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a {
    color: rgba(255,255,255,0.8);
    margin-left: 18px;
}
.top-bar a:hover {
    color: #fff;
}
.top-bar-center {
    flex: 1;
    text-align: center;
}
.top-bar i {
    margin-right: 5px;
}

/* ----- 网站头部 ----- */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.logo .logo-desc {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

/* 导航菜单 */
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav > ul > li {
    position: relative;
}
.main-nav > ul > li > a {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    color: var(--primary);
    background: var(--primary-light);
}
.main-nav > ul > li > a i {
    margin-right: 5px;
    font-size: 14px;
}

/* 导航切换按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ----- Banner 轮播 ----- */
.banner-slider {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
}
.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}
.banner-slide.active {
    opacity: 1;
}
.banner-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.banner-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.banner-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.banner-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--bg-white);
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}
.banner-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,106,0,0.4);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.banner-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
}
.banner-slider:hover .banner-arrow {
    opacity: 1;
}
.banner-arrow:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}
.banner-prev { left: 25px; }
.banner-next { right: 25px; }

/* ----- 通用 Section ----- */
.section {
    padding: 70px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 15px;
}

/* ----- 特色服务 ----- */
.services-section {
    background: var(--bg-gray);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.service-icon {
    width: 72px;
    height: 72px;
    line-height: 72px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
}
.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----- 内容区域布局 ----- */
.content-area {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 40px;
    align-items: start;
}
.content-area > .content-primary {
    min-width: 0;
    max-width: 100%;
    overflow: clip;
}
.posts-section {
    background: var(--bg-white);
}

/* ----- 文章卡片 ----- */
.post-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    transition: var(--transition);
    position: relative;
}
.post-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.post-badge {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
}
.post-badge-top {
    background: var(--accent-light);
    color: var(--accent);
}
.post-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}
.post-card-title a {
    color: var(--text-primary);
}
.post-card-title a:hover {
    color: var(--primary);
}
.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-muted);
}
.meta-item i {
    margin-right: 4px;
}
.post-card-summary {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}
.read-more:hover {
    color: var(--accent);
}
.read-more i {
    font-size: 12px;
    transition: var(--transition);
}
.read-more:hover i {
    transform: translateX(4px);
}

/* ----- 侧边栏 ----- */
.content-sidebar {
    position: sticky;
    top: 90px;
}
.widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
}
.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-title i {
    color: var(--primary);
    font-size: 15px;
}

/* 搜索框 */
.search-box {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}
.search-box:focus-within {
    border-color: var(--primary);
}
.search-box .form-control {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: none;
}
.search-btn {
    width: 44px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}
.search-btn:hover {
    background: var(--primary-dark);
}

.widget-content h3,
.widget-content li.title,
.widget-content .cp-title,
.widget-content .function > ul > li:first-child[class*="title"] {
    display: none;
}
.widget-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-content ul li {
    border-bottom: 1px dashed var(--border-color);
    padding: 10px 0;
    font-size: 14px;
}
.widget-content ul li:last-child {
    border-bottom: none;
}
.widget-content ul li a {
    color: var(--text-secondary);
}
.widget-content ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
    transition: var(--transition);
}

/* 分类列表 */
.category-list li {
    border-bottom: 1px dashed var(--border-color);
    padding: 10px 0;
}
.category-list li:last-child {
    border-bottom: none;
}
.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
}
.category-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.category-list a i {
    color: var(--primary);
    font-size: 13px;
}
.category-list .count {
    color: var(--text-muted);
    font-size: 13px;
}

/* 热门文章 */
.hot-posts-list li {
    border-bottom: 1px dashed var(--border-color);
    padding: 10px 0;
}
.hot-posts-list li:last-child {
    border-bottom: none;
}
.hot-posts-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}
.hot-posts-list a:hover {
    color: var(--primary);
}
.hot-num {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: var(--bg-gray);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}
.hot-posts-list li:nth-child(1) .hot-num { background: var(--accent); color: #fff; }
.hot-posts-list li:nth-child(2) .hot-num { background: var(--primary); color: #fff; }
.hot-posts-list li:nth-child(3) .hot-num { background: #00bcd4; color: #fff; }

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-gray);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}
.tag-item:hover {
    background: var(--primary);
    color: #fff;
}

/* 最新评论 */
.recent-comments-list li {
    border-bottom: 1px dashed var(--border-color);
    padding: 12px 0;
}
.recent-comments-list li:last-child {
    border-bottom: none;
}
.comment-info {
    font-size: 13px;
    margin-bottom: 5px;
}
.comment-author {
    font-weight: 600;
    color: var(--primary);
}
.comment-on {
    color: var(--text-muted);
}
.comment-article {
    color: var(--text-secondary);
}
.comment-article:hover {
    color: var(--primary);
}
.comment-text {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ----- 文章详情页 ----- */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 45px 0;
    color: #fff;
}
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}
.breadcrumb {
    font-size: 14px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.breadcrumb a {
    color: rgba(255,255,255,0.85);
}
.breadcrumb a:hover {
    color: #fff;
}
.breadcrumb-sep {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
}
.breadcrumb .current {
    color: #fff;
}

/* 文章内容 */
.single-article {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 30px;
}
.single-full {
    max-width: none;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
}
.article-meta i {
    margin-right: 4px;
}
.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.article-content * {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.article-content h2, .article-content h3, .article-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 19px; }
.article-content h4 { font-size: 17px; }
.article-content p {
    margin-bottom: 16px;
}
.article-content ul, .article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
    margin-bottom: 6px;
}
.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}
.article-content pre,
.article-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.article-content a {
    color: var(--primary);
    text-decoration: underline;
}
.article-content a:hover {
    color: var(--accent);
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: fixed;
    overflow-wrap: anywhere;
}
.article-content th, .article-content td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}
.article-content th {
    background: var(--bg-gray);
    font-weight: 600;
}

/* 文章标签 */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
}
.article-tags i {
    color: var(--text-muted);
    margin-right: 4px;
}
.tag-link {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-gray);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 13px;
}
.tag-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* 上下篇导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}
.article-nav-prev, .article-nav-next {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.article-nav-next {
    text-align: right;
}
.nav-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.nav-label i {
    font-size: 12px;
}
.article-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}
.article-nav a:hover {
    color: var(--primary);
}
.nav-end {
    color: var(--text-muted);
    font-size: 14px;
}

/* 相关文章 */
.related-posts {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}
.related-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-title i {
    color: var(--primary);
}
.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.related-item a {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}
.related-item a:hover {
    background: var(--primary-light);
}
.related-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.related-title-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}
.no-related {
    color: var(--text-muted);
    font-size: 14px;
}

/* ----- 评论 ----- */
.comments-area {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 30px;
}
.comments-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comments-title i {
    color: var(--primary);
}
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.no-comments i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

/* 单条评论 */
.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.author-name {
    font-weight: 600;
    color: var(--text-primary);
}
.author-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 500;
}
.comment-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}
.comment-actions {
    display: flex;
    gap: 12px;
}
.comment-reply-link {
    font-size: 13px;
    color: var(--text-muted);
}
.comment-reply-link:hover {
    color: var(--primary);
}
.comment-children {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}
.comment-children .comment-item {
    border-bottom: none;
    padding: 15px 0;
}

/* 评论表单 */
.comment-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}
.form-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-title i {
    color: var(--primary);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.required {
    color: #e53935;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    font-family: var(--font-family);
    background: var(--bg-white);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}
.verify-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.verify-row .form-control {
    flex: 1;
}
.verify-img {
    height: 40px;
    cursor: pointer;
    border-radius: var(--radius);
}
.logged-in-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--primary);
}
.logged-in-info i {
    font-size: 20px;
}
.logout-link {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-muted);
}
.logout-link:hover {
    color: #e53935;
}
.form-submit {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.form-tip {
    font-size: 13px;
    color: var(--text-muted);
}

/* ----- 按钮 ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26,115,232,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* ----- 分页 ----- */
.pagination {
    margin: 30px 0;
    text-align: center;
}
.pagination-list {
    display: inline-flex;
    gap: 6px;
}
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}
.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}
.page-item.disabled .page-link:hover {
    background: none;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* ----- 404 页面 ----- */
.error-page {
    padding: 100px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 10px;
}
.error-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.error-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.error-search {
    max-width: 400px;
    margin: 0 auto;
}

/* ----- 搜索页 ----- */
.search-info {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
}
.search-query-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 15px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.search-query-box i {
    color: var(--primary);
    font-size: 20px;
}
.search-result-count {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-muted);
}
.search-form-inline .search-box {
    max-width: 500px;
}

/* ----- 空状态 ----- */
.empty-notice {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-notice i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: var(--border-color);
}
.empty-notice h3 {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.empty-notice p {
    font-size: 15px;
}

/* ----- 页脚 ----- */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    margin-top: 60px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    padding: 55px 0 40px;
}
.footer-widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.footer-widget-content p {
    font-size: 14px;
    line-height: 1.8;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}
.footer-links i {
    font-size: 10px;
    color: var(--primary);
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}
.footer-contact i {
    color: var(--primary);
    width: 16px;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    transition: var(--transition);
}
.social-link:hover {
    color: #fff;
    transform: translateY(-3px);
}
.social-link.weixin:hover { background: #07c160; }
.social-link.weibo:hover { background: #e6162d; }
.social-link.qq:hover { background: #12b7f5; }
.social-link.github:hover { background: #333; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}
.footer-bottom a {
    color: rgba(255,255,255,0.7);
}
.footer-bottom a:hover {
    color: #fff;
}
.footer-bottom p {
    margin-bottom: 4px;
}

/* ----- 回到顶部 ----- */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(26,115,232,0.3);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ----- 响应式: 平板 (≤1024px) ----- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-area {
        grid-template-columns: 1fr;
    }
    .content-area > .content-primary {
        overflow: visible;
    }
    .content-sidebar {
        position: static;
    }
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-slider {
        height: 380px;
    }
    .banner-content h2 {
        font-size: 32px;
    }
}

/* ----- 响应式: 手机 (≤768px) ----- */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .header-inner {
        height: 60px;
    }
    .nav-toggle {
        display: flex;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.active {
        max-height: 400px;
    }
    .main-nav > ul {
        flex-direction: column;
        padding: 10px 20px;
    }
    .main-nav > ul > li > a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }
    .main-nav > ul > li:last-child > a {
        border-bottom: none;
    }

    .banner-slider {
        height: 300px;
    }
    .banner-content h2 {
        font-size: 26px;
    }
    .banner-content p {
        font-size: 15px;
    }
    .banner-btn {
        padding: 11px 30px;
        font-size: 14px;
    }
    .banner-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 26px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-card {
        padding: 20px;
    }
    .post-card-title {
        font-size: 18px;
    }
    .post-card-meta {
        gap: 8px;
        font-size: 12px;
    }

    .single-article {
        padding: 20px;
    }
    .article-meta {
        gap: 10px;
        font-size: 13px;
    }
    .article-nav {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .article-nav-next {
        text-align: left;
    }
    .related-list {
        grid-template-columns: 1fr;
    }

    .page-banner {
        padding: 30px 0;
    }
    .page-title {
        font-size: 22px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comments-area {
        padding: 20px;
    }
    .comment-avatar img {
        width: 40px;
        height: 40px;
    }

    .error-code {
        font-size: 80px;
    }
    .error-title {
        font-size: 24px;
    }
}

/* ----- 响应式: 小手机 (≤480px) ----- */
@media (max-width: 480px) {
    .banner-slider {
        height: 260px;
    }
    .banner-content h2 {
        font-size: 22px;
    }
    .banner-content p {
        font-size: 14px;
    }
    .container {
        padding: 0 15px;
    }
}
