/* DzdzCMS 官方运营模板样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #2c3e50; line-height: 1.6; background: #fff; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.off-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.off-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.off-logo { display: flex; align-items: center; gap: 10px; }
.off-logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, #4f8cff, #6c5ce7); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.off-logo-text { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.off-logo-text em { font-style: normal; font-size: 12px; color: #888; margin-left: 4px; font-weight: 400; }
.off-nav ul { display: flex; gap: 28px; }
.off-nav a { font-size: 15px; color: #555; padding: 6px 0; border-bottom: 2px solid transparent; transition: all .2s; }
.off-nav a:hover, .off-nav li.active a { color: #4f8cff; border-bottom-color: #4f8cff; }
.off-header-btn { background: linear-gradient(135deg, #4f8cff, #6c5ce7); color: #fff; padding: 8px 20px; border-radius: 6px; font-size: 14px; transition: transform .2s; }
.off-header-btn:hover { transform: translateY(-1px); }

/* Hero */
.off-hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 80px 0 100px; text-align: center; }
.off-hero-badge { display: inline-block; background: rgba(255,255,255,.12); padding: 6px 18px; border-radius: 20px; font-size: 13px; margin-bottom: 24px; }
.off-hero-title { font-size: 48px; font-weight: 700; margin-bottom: 20px; }
.off-hero-desc { font-size: 17px; color: #aab; max-width: 720px; margin: 0 auto 36px; }
.off-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-off { display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; border-radius: 8px; font-size: 15px; font-weight: 500; transition: all .2s; }
.btn-off-primary { background: linear-gradient(135deg, #4f8cff, #6c5ce7); color: #fff; }
.btn-off-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79,140,255,.4); }
.btn-off-outline { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-off-outline:hover { background: rgba(255,255,255,.1); }
.off-hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 56px; flex-wrap: wrap; }
.off-stat { text-align: center; }
.off-stat b { display: block; font-size: 32px; font-weight: 700; }
.off-stat span { font-size: 13px; color: #8899aa; }

/* Section */
.off-section { padding: 70px 0; }
.off-section-gray { background: #f7f9fc; }
.off-section-head { text-align: center; margin-bottom: 48px; }
.off-section-head h2 { font-size: 32px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; }
.off-section-head p { color: #888; font-size: 15px; }

/* Features */
.off-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.off-feature-card { background: #fff; border: 1px solid #eef1f6; border-radius: 12px; padding: 32px 28px; transition: all .3s; }
.off-feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); border-color: #4f8cff; }
.off-feature-icon { width: 56px; height: 56px; background: linear-gradient(135deg, #e8f0fe, #f0ecff); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #4f8cff; margin-bottom: 18px; }
.off-feature-card h3 { font-size: 18px; margin-bottom: 10px; color: #1a1a2e; }
.off-feature-card p { color: #777; font-size: 14px; }

/* Env */
.off-env-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.off-env-item { background: #fff; border-radius: 10px; padding: 28px 20px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.off-env-item i { font-size: 32px; color: #4f8cff; margin-bottom: 12px; }
.off-env-item b { display: block; font-size: 18px; margin-bottom: 4px; }
.off-env-item span { font-size: 13px; color: #999; }

/* Advantages */
.off-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.off-adv-item { text-align: center; }
.off-adv-num { font-size: 40px; font-weight: 800; color: #e8f0fe; margin-bottom: 12px; }
.off-adv-item h3 { font-size: 18px; margin-bottom: 10px; }
.off-adv-item p { color: #777; font-size: 14px; }

/* Timeline */
.off-timeline { max-width: 700px; margin: 0 auto; }
.off-timeline-item { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid #eef1f6; }
.off-timeline-date { flex-shrink: 0; width: 100px; color: #4f8cff; font-weight: 600; font-size: 14px; }
.off-timeline-content h4 { font-size: 17px; margin-bottom: 6px; }
.off-timeline-content p { color: #777; font-size: 14px; }

/* Open source */
.off-opensource { text-align: center; background: linear-gradient(135deg, #e8f0fe, #f0ecff); border-radius: 16px; padding: 50px 40px; }
.off-opensource-icon { font-size: 48px; color: #4f8cff; margin-bottom: 16px; }
.off-opensource h2 { font-size: 26px; margin-bottom: 14px; }
.off-opensource p { color: #555; margin-bottom: 24px; }

/* Steps */
.off-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.off-step { background: #fff; border-radius: 12px; padding: 36px 28px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.off-step-num { width: 48px; height: 48px; background: linear-gradient(135deg, #4f8cff, #6c5ce7); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto 16px; }
.off-step h3 { font-size: 18px; margin-bottom: 10px; }
.off-step p { color: #777; font-size: 14px; }

/* Page header */
.off-page-header { background: linear-gradient(135deg, #1a1a2e, #0f3460); color: #fff; padding: 50px 0; text-align: center; }
.off-page-header h1 { font-size: 32px; margin-bottom: 10px; }
.off-page-header p { color: #aab; }

/* Article list */
.off-article-list { max-width: 860px; margin: 0 auto; }
.off-article-item { padding: 24px 0; border-bottom: 1px solid #eef1f6; }
.off-article-title { font-size: 20px; margin-bottom: 10px; }
.off-article-title a:hover { color: #4f8cff; }
.off-article-summary { color: #666; font-size: 14px; margin-bottom: 12px; }
.off-article-meta { display: flex; gap: 18px; font-size: 13px; color: #999; align-items: center; }
.off-read-more { color: #4f8cff; margin-left: auto; }

/* Article detail */
.off-article-detail { max-width: 860px; margin: 0 auto; }
.off-article-content { font-size: 16px; line-height: 1.9; color: #333; }
.off-article-content h2 { margin: 24px 0 12px; font-size: 24px; }
.off-article-content p { margin-bottom: 14px; }
.off-article-content img { border-radius: 8px; margin: 16px 0; }
.off-empty { text-align: center; padding: 60px 0; color: #999; }
.off-empty i { font-size: 48px; margin-bottom: 16px; }

/* Pagination */
.off-pagination { text-align: center; margin-top: 40px; }
.off-pagination a, .off-pagination span { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid #e0e0e0; border-radius: 6px; color: #555; }
.off-pagination .current { background: #4f8cff; color: #fff; border-color: #4f8cff; }

/* 404 */
.off-404 { text-align: center; padding: 80px 0; }
.off-404-code { font-size: 120px; font-weight: 800; background: linear-gradient(135deg, #4f8cff, #6c5ce7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
.off-404 h1 { font-size: 28px; margin-bottom: 10px; }
.off-404 p { color: #888; }

/* Footer */
.off-footer { background: #1a1a2e; color: #aab; padding: 50px 0 20px; }
.off-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.off-footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.off-footer-col p { font-size: 14px; line-height: 1.8; }
.off-footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.off-footer-col a:hover { color: #fff; }
.off-footer-bottom { border-top: 1px solid #2a2a4e; padding-top: 20px; text-align: center; font-size: 13px; }
.off-footer-bottom .sep { margin: 0 12px; color: #444; }
.off-footer-bottom a { color: #aab; }
.off-footer-bottom a:hover { color: #fff; }

@media (max-width: 768px) {
    .off-hero-title { font-size: 32px; }
    .off-feature-grid, .off-env-grid, .off-adv-grid, .off-steps { grid-template-columns: 1fr; }
    .off-footer-grid { grid-template-columns: 1fr 1fr; }
    .off-nav { display: none; }
    .off-hero-stats { gap: 30px; }
    .off-case-grid { grid-template-columns: 1fr; }
    .off-download-card { flex-direction: column; }
    .off-env-table { font-size: 13px; }
}

/* ===== 单页通用排版 ===== */
.off-prose { line-height: 1.9; color: #444; font-size: 15px; }
.off-prose h2 { font-size: 24px; color: #1a1a2e; margin: 32px 0 16px; padding-bottom: 10px; border-bottom: 2px solid #eef0f5; }
.off-prose h3 { font-size: 18px; color: #2d2d44; margin: 24px 0 12px; }
.off-prose p { margin-bottom: 14px; }
.off-prose ul, .off-prose ol { margin: 0 0 14px 24px; }
.off-prose li { margin-bottom: 8px; }
.off-prose code { background: #f4f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #d63384; }
.off-prose pre { background: #1a1a2e; color: #e0e0ff; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.7; }

/* ===== 下载中心 ===== */
.off-download h2 { font-size: 26px; color: #1a1a2e; margin-bottom: 8px; }
.off-download > p { color: #666; margin-bottom: 24px; }
.off-download-card { display: flex; gap: 30px; background: #f8f9fc; border: 1px solid #e8eaf0; border-radius: 12px; padding: 28px; margin-bottom: 32px; }
.off-download-info { flex: 1; }
.off-download-info h3 { font-size: 18px; color: #1a1a2e; margin-bottom: 10px; }
.off-download-info p { color: #555; margin-bottom: 12px; }
.off-download-info ul { list-style: none; padding: 0; }
.off-download-info ul li { padding: 4px 0; color: #555; font-size: 14px; }
.off-download-info ul li:before { content: "\f00c"; font-family: FontAwesome; color: #52c41a; margin-right: 8px; }
.off-download-actions { display: flex; align-items: center; }
.off-env-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.off-env-table th, .off-env-table td { border: 1px solid #e8eaf0; padding: 12px 16px; text-align: left; }
.off-env-table th { background: #f8f9fc; color: #1a1a2e; font-weight: 600; }
.off-env-table td { color: #555; }
.off-changelog { border-left: 3px solid #667eea; padding-left: 20px; }
.off-changelog-item { margin-bottom: 24px; position: relative; }
.off-changelog-item:before { content: ""; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #667eea; }
.off-changelog-ver { font-weight: 700; color: #1a1a2e; font-size: 16px; margin-right: 12px; }
.off-changelog-date { color: #999; font-size: 13px; }
.off-changelog-item p { color: #555; margin-top: 6px; }

/* ===== 案例展示 ===== */
.off-cases h2 { font-size: 26px; color: #1a1a2e; margin-bottom: 8px; }
.off-cases > p { color: #666; margin-bottom: 28px; }
.off-case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.off-case-card { background: #fff; border: 1px solid #e8eaf0; border-radius: 12px; overflow: hidden; transition: box-shadow .3s; }
.off-case-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.off-case-thumb { height: 160px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; }
.off-case-card h3 { font-size: 18px; color: #1a1a2e; padding: 18px 20px 8px; }
.off-case-card p { color: #666; font-size: 14px; line-height: 1.7; padding: 0 20px 20px; }

/* ===== 开源协议 ===== */
.off-license-notice { background: #fff7e6; border: 1px solid #ffe7ba; border-radius: 8px; padding: 16px 20px; margin: 16px 0; }
.off-license-notice p { margin: 0; color: #d46b08; font-size: 15px; line-height: 1.8; }
.off-license-notice strong { color: #d4380d; }

/* ===== 导航激活态 ===== */
.off-nav ul li.active a { color: #667eea; }
.off-nav ul li.active a:after { content: ""; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: #667eea; }
.off-nav ul li a { position: relative; }

/* ============================================================
   新版模块适配追加（旧版模板迁移，不修改上方任何原有规则）
   ============================================================ */
.off-tag-top, .off-tag-rec { display:inline-block; font-size:12px; padding:2px 8px; border-radius:10px; margin-left:6px; }
.off-tag-top { background:#fff3e0; color:#e8810c; }
.off-tag-rec { background:#e8f1ff; color:#1668dc; }
.off-related { margin-top:40px; padding-top:24px; border-top:1px solid #eee; }
.off-related h3 { font-size:18px; margin-bottom:14px; }
.off-related ul li { padding:9px 0; border-bottom:1px dashed #e8e8e8; }
.off-related ul li a { color:#333; }
.off-related ul li a:hover { color:#4f8cff; }
.off-related ul li span { float:right; color:#999; font-size:13px; }
/* 分页器兼容（Helper::pagination 输出 .pagination>ul>li 结构） */
.off-pagination .pagination ul { display:flex; justify-content:center; list-style:none; padding:0; gap:6px; }
/* 在线留言 */
.off-contact-wrap { display:flex; gap:30px; align-items:flex-start; flex-wrap:wrap; }
.off-contact-main { flex:1; min-width:280px; background:#fff; border-radius:10px; padding:30px; box-shadow:0 4px 20px rgba(0,0,0,.05); }
.off-contact-side { width:300px; }
.off-contact-lead { color:#666; margin-bottom:20px; }
.off-alert-error { background:#fdeaea; border:1px solid #f5c6c6; color:#c9302c; border-radius:6px; padding:11px 16px; margin-bottom:18px; }
.off-form .off-form-row { margin-bottom:18px; }
.off-form label { display:block; font-weight:600; margin-bottom:7px; color:#333; }
.off-form label span { color:#e94c4c; }
.off-form input, .off-form textarea { width:100%; border:1px solid #dcdfe6; border-radius:6px; padding:10px 13px; font-size:14px; font-family:inherit; box-sizing:border-box; }
.off-form input:focus, .off-form textarea:focus { border-color:#4f8cff; outline:none; }
.hp-field { position:absolute; left:-9999px; top:-9999px; width:1px; height:1px; overflow:hidden; }
.off-contact-ok { text-align:center; padding:40px 20px; }
.off-contact-ok i { font-size:56px; color:#18b578; }
.off-contact-ok h3 { margin:16px 0 10px; }
.off-contact-ok p { color:#666; margin-bottom:22px; }
.off-side-card { background:#fff; border-radius:10px; padding:22px; box-shadow:0 4px 20px rgba(0,0,0,.05); margin-bottom:20px; }
.off-side-card h3 { font-size:16px; margin-bottom:14px; }
.off-msg-list { list-style:none; padding:0; margin:0; }
.off-msg-list li { padding:12px 0; border-bottom:1px dashed #eee; font-size:14px; }
.off-msg-head { display:flex; justify-content:space-between; color:#888; font-size:12px; margin-bottom:5px; }
.off-msg-list p { color:#555; margin:0; }
.off-msg-reply { margin-top:6px; background:#f5f8ff; border-radius:5px; padding:7px 10px; color:#444; }
.off-muted { color:#999; font-size:14px; }
/* 产品中心 */
.off-prod-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.off-prod-card { background:#fff; border:1px solid #eee; border-radius:10px; overflow:hidden; transition:box-shadow .2s, transform .2s; }
.off-prod-card:hover { box-shadow:0 10px 30px rgba(0,0,0,.08); transform:translateY(-3px); }
.off-prod-thumb { display:block; background:#f2f5fa; }
.off-prod-thumb img { width:100%; height:200px; object-fit:cover; display:block; }
.off-prod-card h3 { font-size:17px; padding:16px 18px 0; }
.off-prod-card h3 a { color:#1a1a2e; }
.off-prod-card p { color:#777; font-size:14px; padding:8px 18px 16px; min-height:48px; }
.off-prod-card .btn-off { margin:0 18px 18px; display:inline-block; }
.off-btn-sm { padding:7px 16px !important; font-size:13px !important; }
.off-prod-detail { display:flex; gap:30px; flex-wrap:wrap; margin-bottom:36px; }
.off-prod-cover { flex:0 0 380px; }
.off-prod-cover img { width:100%; border-radius:10px; border:1px solid #eee; }
.off-prod-info { flex:1; min-width:260px; }
.off-prod-summary { background:#f5f8ff; border-left:4px solid #4f8cff; border-radius:6px; padding:16px 20px; color:#555; line-height:1.9; margin-bottom:22px; }
.off-prod-pager { display:flex; justify-content:space-between; gap:14px; padding:18px 0; border-top:1px solid #eee; margin-top:24px; font-size:14px; }
.off-prod-pager a { color:#4f8cff; }
.off-other-prod { margin-top:40px; }
.off-other-prod h3 { margin-bottom:18px; }
.off-other-prod .off-prod-card p { display:none; }
/* 搜索 */
.off-search-form { display:flex; gap:10px; max-width:640px; margin:0 auto 36px; }
.off-search-form input { flex:1; height:46px; border:1px solid #dcdfe6; border-radius:8px; padding:0 16px; font-size:14px; }
.off-search-stats { color:#666; margin-bottom:20px; }
.off-search-group h2 { font-size:19px; margin-bottom:16px; }
.off-search-group h2 span { color:#999; font-size:14px; font-weight:normal; }
.off-type-badge { display:inline-block; font-size:12px; padding:2px 9px; border-radius:10px; background:#e8f1ff; color:#1668dc; vertical-align:middle; margin-right:4px; }
@media (max-width: 768px) {
    .off-prod-grid { grid-template-columns:1fr; }
    .off-prod-cover { flex:0 0 100%; }
    .off-contact-side { width:100%; }
}
