/*
Theme Name: MikShow
Theme URI: https://example.com/mikshow
Description: 现代感产品展示站主题。首页包含 Hero、特性、产品、案例、文档、博客完整版块；产品/文档/案例三种分类归档形态；干净配色，全站响应式。使用说明见主题内 README.md。
Author: MikPress Team
Version: 1.0.0
*/

/* ============ 设计变量（干净配色） ============ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
    --shadow-hover: 0 4px 12px rgba(15,23,42,.08), 0 16px 40px rgba(37,99,235,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px;
    color: var(--primary); background: var(--primary-soft);
    padding: 4px 14px; border-radius: 99px; margin-bottom: 14px;
}
.section-head h2 { font-size: 34px; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,.35); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ============ 顶部导航 ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 24px;
    height: 68px; display: flex; align-items: center; gap: 32px;
}
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--ink); }
.site-logo .logo-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 17px; font-weight: 800;
}
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 18px; cursor: pointer; color: var(--ink); }
.nav-menu { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; }
.nav-menu .menu-item a {
    display: block; padding: 21px 15px; color: var(--text); font-size: 15px; font-weight: 500;
    border-bottom: 2px solid transparent;
}
.nav-menu .menu-item a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.header-cta { margin-left: 8px; }
.header-cta .btn { padding: 9px 20px; font-size: 14px; }

/* ============ Hero ============ */
.hero {
    position: relative; overflow: hidden;
    padding: 110px 0 100px;
    background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 100%);
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
.hero::before { width: 420px; height: 420px; background: #bfdbfe; top: -120px; right: -80px; }
.hero::after { width: 320px; height: 320px; background: #bae6fd; bottom: -140px; left: -60px; }
.hero-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 { font-size: 52px; margin: 0 0 20px; letter-spacing: -1px; }
.hero h1 .grad {
    background: linear-gradient(120deg, var(--primary), #06b6d4);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .hero-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 64px; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat b { display: block; font-size: 30px; color: var(--ink); }
.hero-stats .stat span { font-size: 13px; color: var(--muted); }

/* ============ 特性卡片 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.feature-card .icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft);
    color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ============ 产品卡片 ============ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-card .cover { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.product-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .cover img { transform: scale(1.05); }
.product-card .cover-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.product-card .cover-placeholder svg { width: 42px; height: 42px; opacity: .5; }
.product-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { margin: 0 0 8px; font-size: 19px; }
.product-body h3 a { color: var(--ink); }
.product-body h3 a:hover { color: var(--primary); }
.product-body p { margin: 0 0 16px; font-size: 14px; color: var(--muted); flex: 1; }
.product-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.product-link svg { width: 16px; height: 16px; transition: transform .2s; }
.product-link:hover svg { transform: translateX(4px); }

/* ============ 案例图墙 ============ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3; background: var(--bg-soft); display: block;
}
.case-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-item:hover img { transform: scale(1.06); }
.case-item .case-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 22px; background: linear-gradient(180deg, transparent 45%, rgba(15,23,42,.75));
    color: #fff; opacity: 0; transition: opacity .25s;
}
.case-item:hover .case-overlay { opacity: 1; }
.case-item .case-overlay h3 { color: #fff; margin: 0 0 4px; font-size: 18px; }
.case-item .case-overlay p { margin: 0; font-size: 13px; color: rgba(255,255,255,.8); }
.case-item .case-tag {
    position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92);
    color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 99px;
}

/* ============ 文档列表 ============ */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc-item {
    display: flex; align-items: center; gap: 16px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
    transition: border-color .2s, transform .2s;
}
.doc-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.doc-item .doc-icon {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.doc-item .doc-icon svg { width: 22px; height: 22px; }
.doc-item h3 { margin: 0 0 2px; font-size: 16px; }
.doc-item h3 a { color: var(--ink); }
.doc-item p { margin: 0; font-size: 13px; color: var(--muted); }
.doc-item .doc-arrow { margin-left: auto; color: var(--line); }
.doc-item .doc-arrow svg { width: 20px; height: 20px; }
.doc-item:hover .doc-arrow { color: var(--primary); }

/* ============ 博客卡片（首页一排3张；分类/搜索页每排3张） ============ */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-item {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.post-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-item .post-cover-wrap { display: block; overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 10; }
.post-item .post-cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; display: block; }
.post-item:hover .post-cover-wrap img { transform: scale(1.05); }
.post-item .post-info { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-item h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.post-item h3 a { color: var(--ink); }
.post-item h3 a:hover { color: var(--primary); }
.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.post-item .excerpt { margin: 0 0 12px; font-size: 14px; color: var(--muted); flex: 1; }

/* ============ 分页 ============ */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 48px 0 0; }
.pagination .page-num {
    padding: 9px 16px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 14px; color: var(--text); background: #fff;
}
.pagination .page-num.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-num:hover:not(.current) { border-color: var(--primary); color: var(--primary); }

/* ============ 单篇文章 / 页面 ============ */
.article-wrap { max-width: 960px; margin: 0 auto; padding: 64px 24px; }
.article-head { text-align: center; margin-bottom: 36px; }
.article-head .cat-badge {
    display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary);
    background: var(--primary-soft); padding: 4px 14px; border-radius: 99px; margin-bottom: 16px;
}
.article-head h1 { font-size: 38px; margin: 0 0 16px; }
.article-head .post-meta { justify-content: center; }
.article-cover { border-radius: var(--radius); margin-bottom: 36px; }
.post-content { font-size: 17px; color: var(--text); }
.post-content h2 { font-size: 26px; margin: 1.6em 0 .7em; }
.post-content h3 { font-size: 21px; margin: 1.5em 0 .6em; }
.post-content p { margin: 0 0 1.2em; }
.post-content img { border-radius: 10px; }
.post-content code { background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 7px; border-radius: 5px; font-size: .9em; }
.post-content pre { background: #0f172a; color: #e2e8f0; padding: 20px; border-radius: 12px; overflow-x: auto; }
.post-content pre code { background: none; border: none; padding: 0; }
.post-content blockquote { border-left: 3px solid var(--primary); background: var(--primary-soft); margin: 1.4em 0; padding: 14px 22px; border-radius: 0 10px 10px 0; color: var(--text); }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.article-footer { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.keywords-list { display: flex; gap: 8px; flex-wrap: wrap; }
.keywords-list span { font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 12px; border-radius: 99px; color: var(--muted); }

/* ============ 归档页头 ============ */
.archive-hero { background: var(--bg-soft); padding: 56px 0; text-align: center; border-bottom: 1px solid var(--line); }
.archive-hero h1 { font-size: 34px; margin: 0 0 10px; }
.archive-hero p { color: var(--muted); margin: 0; }
.archive-body { padding: 56px 0 84px; }

/* ============ 搜索 ============ */
.search-form { display: flex; max-width: 420px; }
.search-form.center { margin: 26px auto 0; }
.search-form input[type=search] {
    flex: 1; min-width: 0; padding: 12px 16px; font-size: 15px;
    border: 1px solid var(--line); border-radius: 10px 0 0 10px; outline: none;
}
.search-form input[type=search]:focus { border-color: var(--primary); }
.search-form button {
    padding: 12px 22px; border: none; background: var(--primary); color: #fff;
    border-radius: 0 10px 10px 0; cursor: pointer; font-size: 15px; font-weight: 600;
}
.search-form button:hover { background: var(--primary-dark); }

/* ============ CTA 横幅 ============ */
.cta-banner {
    background: linear-gradient(120deg, var(--primary), #0ea5e9);
    border-radius: 20px; padding: 64px 48px; text-align: center; color: #fff;
}
.cta-banner h2 { color: #fff; font-size: 32px; margin: 0 0 12px; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0 0 30px; }
.cta-banner .btn-light { background: #fff; color: var(--primary); }
.cta-banner .btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); color: var(--primary-dark); }

/* ============ 页脚 ============ */
.site-footer { background: #0f172a; color: #94a3b8; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a { color: #94a3b8; }
.footer-grid ul li a:hover { color: #fff; }
.footer-brand p { font-size: 14px; margin: 12px 0 0; max-width: 280px; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: #94a3b8; }

/* ============ 404 / 空态 ============ */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .code { font-size: 88px; font-weight: 800; color: var(--primary); line-height: 1; margin: 0 0 12px; }
.empty-state p { color: var(--muted); margin: 0 0 8px; }
.post-list .empty-state { grid-column: 1 / -1; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid, .case-grid, .post-list { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .hero { padding: 72px 0 64px; }
    .hero h1 { font-size: 30px; }
    .hero-stats { gap: 26px; }
    .feature-grid, .product-grid, .case-grid, .doc-grid, .post-list { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .header-cta { display: none; }
    .nav-menu {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; flex-direction: column; align-items: stretch;
        border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15,23,42,.1);
    }
    .nav-menu.open { display: flex; }
    .nav-menu .menu-item a { padding: 14px 24px; border-bottom: 1px solid var(--bg-soft); }
    .site-header .header-inner { position: relative; }
    .article-wrap { padding: 44px 20px; }
    .article-head h1 { font-size: 28px; }
    .cta-banner { padding: 44px 26px; }
    .cta-banner h2 { font-size: 24px; }
}
