/**
 * Danye 主题样式
 * v1.0.0
 */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --bg: #f8fafc;
    --white: #ffffff;
    --text: #1e293b;
    --gray: #64748b;
    --muted: #94a3b8;
    --border: rgba(0,0,0,0.06);
    --radius: 16px;
    --shadow: 0 10px 40px rgba(0,0,0,0.06);
    --content-width: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-hover); }

h1 { font-size: 44px; font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.3px; }
h3 { font-size: 20px; font-weight: 600; }
img { max-width: 100%; height: auto; }

/* ==================== Header ==================== */
#danye-header {
    display: block;
    position: relative;
    min-height: 64px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 9999;
}

/* 滚动时固定导航栏：使用 sticky 而非 fixed，避免内容遮挡 */
.danye-sticky-header #danye-header {
    position: sticky;
    top: 0;
}

/* WordPress 管理栏适配 */
.admin-bar.danye-sticky-header #danye-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar.danye-sticky-header #danye-header {
        top: 46px;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 24px;
}
.logo { font-size: 20px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav li { margin: 0; padding: 0; }
.header-nav a { color: var(--text); font-size: 15px; transition: color .2s; }
.header-nav a:hover { color: var(--primary); }
.header-wx { font-size: 14px; color: var(--gray); flex-shrink: 0; }
.header-wx strong { color: var(--primary); cursor: pointer; }

/* 移动端汉堡菜单按钮 */
.header-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.header-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
    margin: 0 auto;
}
.header-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header-toggle.active span:nth-child(2) {
    opacity: 0;
}
.header-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==================== Hero ==================== */
.hero { padding: 120px 0 100px; background: linear-gradient(180deg, #f0f7ff 0%, var(--bg) 100%); }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; color: var(--gray); max-width: 540px; margin: 24px 0 30px; }
.trust-bar { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.trust-bar span {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--primary);
    border: 1px solid #bfdbfe;
}
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.wx-pill {
    background: var(--white);
    color: var(--primary);
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 15px rgba(37,99,235,0.1);
    transition: all .3s;
    font-size: 16px;
    display: inline-block;
}
.wx-pill:hover { background: var(--primary-light); }

.btn {
    background: var(--primary);
    color: #fff;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 6px 20px rgba(37,99,235,0.25);
    transition: all .3s;
    min-height: 48px;
    display: inline-block;
}
.btn:hover { background: var(--primary-hover); color: #fff; }

/* ==================== Section 通用 ==================== */
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title span { color: var(--primary); }

/* ==================== 核心权益 ==================== */
.benefits { display: grid; grid-template-columns: repeat(var(--benefits-columns, 4), 1fr); gap: 24px; }
.benefit {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all .3s;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}
.benefit h3 { font-size: 16px; margin-bottom: 10px; }
.benefit p { font-size: 14px; color: var(--gray); }

/* ==================== 流程步骤 ==================== */
.steps { display: flex; justify-content: space-between; max-width: 850px; margin: 0 auto; position: relative; }
.steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #bfdbfe, #dbeafe);
    z-index: 1;
}
.step { text-align: center; z-index: 2; flex: 1; }
.circle {
    width: 64px;
    height: 64px;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(37,99,235,0.15);
}
.step h3 { font-size: 15px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--gray); max-width: 150px; margin: 0 auto; }

/* ==================== 客户评价 ==================== */
.trust { background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(var(--trust-columns, 3), 1fr); gap: 24px; }
.trust-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.trust-card p { font-size: 14px; color: var(--gray); margin-bottom: 20px; line-height: 1.8; flex: 1; }
.trust-card .author { font-weight: 600; font-size: 14px; }
.trust-card .meta { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ==================== FAQ ==================== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list.faq-grid {
    display: grid;
    grid-template-columns: repeat(var(--faq-columns, 2), 1fr);
    gap: 20px;
    max-width: 100%;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-grid .faq-item { margin-bottom: 0; }
.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .3s;
}
.faq-question::after { content: "+"; font-size: 22px; color: var(--primary); transition: transform .3s; }
.faq-item.active .faq-question { background: var(--primary-light); }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 24px 18px;
    color: var(--gray);
    display: none;
    font-size: 14px;
    line-height: 1.8;
}
.faq-item.active .faq-answer { display: block; }

/* ==================== CTA ==================== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: #fff;
    padding: 90px 0;
    text-align: center;
    border-radius: 32px;
    margin: 0 20px;
}
.cta h2 { font-size: 30px; margin-bottom: 20px; }
.cta .wx-pill {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    margin: 24px auto;
    display: inline-block;
}
.cta p { font-size: 15px; opacity: .95; max-width: 600px; margin: 0 auto; }

/* ==================== Footer ==================== */
footer { background: #0f172a; color: var(--muted); padding: 60px 0 30px; margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-left h3 a { color: #fff; }
.footer-left p { font-size: 13px; max-width: 300px; }
.footer-right { text-align: right; font-size: 12px; line-height: 1.9; }
.footer-right a { color: var(--muted); }
.footer-right a:hover { color: #e5e7eb; text-decoration: underline; }
.disclaimer {
    max-width: 900px;
    margin: 40px auto 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.8;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}
.disclaimer strong { color: #9ca3af; }

/* ==================== 浮动按钮 & Toast ==================== */
.fab {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
    z-index: 999;
    cursor: pointer;
    transition: all .3s;
}
.fab:hover { transform: scale(1.1); }

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,.85);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    z-index: 2000;
    opacity: 0;
    transition: .3s;
    font-size: 14px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==================== 面包屑导航 ==================== */
.lv-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--gray);
}
.lv-breadcrumb a { color: var(--gray); }
.lv-breadcrumb a:hover { color: var(--primary); }
.lv-breadcrumb .sep { margin: 0 8px; color: var(--muted); }
.lv-breadcrumb .current { color: var(--text); }

/* ==================== 博客文章列表 ==================== */
.blog-header { padding: 60px 0 40px; text-align: center; background: linear-gradient(180deg, #f0f7ff 0%, var(--bg) 100%); }
.blog-header h1 { font-size: 36px; margin-bottom: 12px; }
.blog-header p { color: var(--gray); font-size: 16px; }

.post-list { padding: 40px 0; max-width: 800px; margin: 0 auto; }
/* ==================== 文章列表：基础卡片 ==================== */
.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: all .3s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #bfdbfe; }
.post-card-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.post-card-meta a { color: var(--primary); }
.post-card-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { font-size: 15px; color: var(--gray); line-height: 1.7; }
.post-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}
.post-card-readmore:hover { color: var(--primary-hover); }
.post-card-cat {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* 大图卡片 */
.post-card-style-card .post-card-thumb {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 220px;
}
.post-card-style-card .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-style-card .post-card-meta { margin-bottom: 12px; }

/* 左图右文 */
.post-card-style-media {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.post-card-style-media .post-card-thumb {
    width: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}
.post-card-style-media .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-style-media .post-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-card-style-media .post-card-title { font-size: 18px; margin-bottom: 4px; }
.post-card-style-media .post-card-excerpt { font-size: 14px; line-height: 1.65; margin-bottom: 10px; }
.post-card-style-media .post-card-meta { margin-top: 4px; margin-bottom: 8px; }

/* 极简列表 */
.post-list-style-list { display: flex; flex-direction: column; gap: 0; }
.post-card-style-list {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
}
.post-card-style-list:last-child { border-bottom: none; }
.post-card-style-list:hover { transform: none; box-shadow: none; border-bottom-color: #bfdbfe; }
.post-card-style-list .post-card-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}
.post-card-style-list .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-style-list .post-card-body { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.post-card-style-list .post-card-title { font-size: 16px; margin-bottom: 0; flex: 1; }
.post-card-style-list .post-card-meta { margin: 0; gap: 12px; font-size: 12px; flex-shrink: 0; }

/* 网格卡片 */
.post-list-style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.post-list-style-grid .pagination {
    grid-column: 1 / -1;
    margin-top: 20px;
}
.post-card-style-grid {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    margin-bottom: 0;
}
.post-card-style-grid .post-card-thumb {
    margin-bottom: 0;
    height: 160px;
    overflow: hidden;
}
.post-card-style-grid .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-style-grid .post-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.post-card-style-grid .post-card-title { font-size: 17px; margin-bottom: 8px; }
.post-card-style-grid .post-card-meta { margin-top: auto; }

@media (max-width: 768px) {
    .post-card-style-media { flex-direction: column; }
    .post-card-style-media .post-card-thumb { width: 100%; height: 180px; }
    .post-list-style-grid { grid-template-columns: 1fr; }
    .post-card-style-list .post-card-body { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==================== 文章详情页 ==================== */
.single-content { }
.single-header { margin-bottom: 32px; }
.single-title { font-size: 32px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.single-meta { display: flex; gap: 20px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.single-meta span { display: inline-flex; align-items: center; gap: 4px; }
.single-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}
.single-body p { margin-bottom: 1.5em; }
.single-body h2 { font-size: 26px; margin: 1.8em 0 0.8em; }
.single-body h3 { font-size: 20px; margin: 1.5em 0 0.6em; }
.single-body ul, .single-body ol { margin: 0 0 1.5em 1.5em; }
.single-body li { margin-bottom: 0.5em; }
.single-body img { border-radius: 12px; margin: 1em 0; }
.single-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    background: var(--primary-light);
    border-radius: 0 12px 12px 0;
    margin: 1.5em 0;
    color: var(--gray);
}
.single-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}
.single-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5em 0;
}
.single-body pre code { background: none; padding: 0; }
.single-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.single-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.single-body th, .single-body td { border: 1px solid var(--border); padding: 10px 16px; text-align: left; }
.single-body th { background: var(--primary-light); font-weight: 600; }

.single-tags { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.single-tags a {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    transition: all .2s;
}
.single-tags a:hover { background: var(--primary); color: #fff; }

/* 文章来源 */
.single-source {
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray);
}
.single-source span,
.single-source a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 999px;
    transition: all .2s;
}
.single-source a:hover {
    background: var(--primary);
    color: #fff;
}

/* 内容段落缩进 */
.single-body.is-indent p {
    text-indent: 2em;
}

/* 文章页尾版权提示 */
.single-copyright {
    margin-top: 32px;
    padding: 16px 20px;
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
}
.single-copyright a {
    color: var(--primary);
    text-decoration: none;
}
.single-copyright a:hover { text-decoration: underline; }

.single-share {
    margin-top: 40px;
    padding: 24px;
    background: var(--primary-light);
    border-radius: var(--radius);
    text-align: center;
}
.single-share h3 { font-size: 18px; margin-bottom: 16px; color: var(--primary); }

/* 相关文章 */
.related-posts { margin-top: 48px; }
.related-posts h2 { font-size: 22px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all .3s;
}
.related-card:hover { box-shadow: var(--shadow); }
.related-card h3 { font-size: 16px; line-height: 1.4; }
.related-card h3 a { color: var(--text); }
.related-card h3 a:hover { color: var(--primary); }
.related-card .date { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ==================== 分页 ==================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    background: var(--white);
    transition: all .2s;
}
.pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==================== 页面模板 ==================== */
.page-content { }
.page-content .entry-content { font-size: 16px; line-height: 1.9; }

/* ==================== 404 ==================== */
.error404-wrap { text-align: center; padding: 100px 20px; }
.error404-wrap h1 { font-size: 80px; color: var(--primary); margin-bottom: 16px; }
.error404-wrap p { font-size: 18px; color: var(--gray); margin-bottom: 30px; }

/* ==================== 搜索 ==================== */
.search-wrap { max-width: 600px; margin: 0 auto 40px; }
.search-form { display: flex; gap: 0; }
.search-form .search-field {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #bfdbfe;
    border-radius: 10px 0 0 10px;
    font-size: 15px;
    outline: none;
}
.search-form .search-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 28px;
    border-radius: 0 10px 10px 0;
    font-size: 15px;
    cursor: pointer;
    transition: background .3s;
}
.search-form .search-submit:hover { background: var(--primary-hover); }

/* ==================== 无文章提示 ==================== */
.no-posts { text-align: center; padding: 60px 20px; color: var(--gray); }
.no-posts h2 { font-size: 20px; margin-bottom: 12px; }

/* ==================== 两栏布局 ==================== */
.danye-layout-wrap { padding: 20px 0 80px; }
.danye-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.danye-main {
    flex: 1;
    min-width: 0;
}
.danye-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.danye-layout-none .danye-main {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.danye-layout-left .danye-sidebar {
    order: -1;
}

/* 固定侧边栏 */
.danye-sticky-sidebar .danye-sidebar {
    position: sticky;
    top: 84px;
    align-self: flex-start;
}

/* ==================== 侧边栏小工具（美化版） ==================== */
.danye-sidebar .widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(30, 41, 59, 0.04);
    overflow: hidden;
    transition: box-shadow .3s, transform .3s;
}
.danye-sidebar .widget:hover {
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.08);
}

/* 小工具标题：渐变背景 + 左侧色条 */
.danye-sidebar .widget-title {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.danye-sidebar .widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--primary);
}

/* 小工具内容区内边距 */
.danye-sidebar .widget > *:not(.widget-title) {
    padding-left: 20px;
    padding-right: 20px;
}
.danye-sidebar .widget > ul,
.danye-sidebar .widget > div,
.danye-sidebar .widget > form,
.danye-sidebar .widget > p,
.danye-sidebar .widget > table {
    padding: 16px 20px;
    margin: 0;
}

/* 搜索框 */
.widget-search .search-form {
    display: flex;
    gap: 0;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 20px;
    padding: 4px;
}
.widget-search .search-field {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}
.widget-search .search-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: background .3s;
}
.widget-search .search-submit:hover { background: var(--primary-hover); }

/* 最新文章 / 分类 / 通用列表 */
.danye-sidebar .widget ul {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}
.danye-sidebar .widget li {
    padding: 0 20px;
    margin-bottom: 4px;
}
.danye-sidebar .widget li a {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    border-radius: 10px;
    transition: all .2s;
    position: relative;
}
.danye-sidebar .widget li a:hover {
    background: #f0f7ff;
    color: var(--primary);
    padding-left: 16px;
}
.danye-sidebar .widget li a::before {
    content: '•';
    color: var(--primary);
    margin-right: 8px;
    opacity: .6;
}


/* 最新/热门文章：统一左图右文 + 标题两行 + meta 下一行 */
.widget-recent-list,
.widget-popular-list {
    list-style: none;
    padding: 12px 0 !important;
    margin: 0;
}
.widget-recent-list li,
.widget-popular-list li {
    padding: 0 12px;
    margin-bottom: 4px;
}
.widget-recent-list li a,
.widget-popular-list li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 10px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    border-radius: 10px;
    transition: all .2s;
}
.widget-recent-list li a::before,
.widget-popular-list li a::before {
    content: none !important;
}
.widget-recent-list li a:hover,
.widget-popular-list li a:hover {
    background: #f0f7ff;
    color: var(--primary);
}
.danye-media-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.danye-media-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}
.danye-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.danye-media-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 2px;
}
.danye-media-title {
    font-size: 14px;
    line-height: 1.55;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.danye-media-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    align-items: center;
    flex-wrap: wrap;
}
.danye-media-meta time::before {
    content: '📅';
    margin-right: 3px;
}
.danye-media-meta .views::before {
    content: '👁';
    margin-right: 3px;
}

/* 分类目录 */
.widget-cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 4px;
}
.widget-cat-list li a {
    flex: 1;
    display: block;
    padding: 10px 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    border-radius: 10px;
    transition: all .2s;
    position: relative;
}
.widget-cat-list li a::before {
    content: '•';
    color: var(--primary);
    margin-right: 8px;
    opacity: .6;
}
.widget-cat-list li a:hover {
    background: #f0f7ff;
    color: var(--primary);
    padding-left: 16px;
}
.widget-cat-count,
.widget-cat-list .count {
    flex-shrink: 0;
    background: #f1f5f9;
    color: var(--muted);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    transition: all .2s;
    margin-left: 8px;
}
.widget-cat-list li:hover .widget-cat-count,
.widget-cat-list li:hover .count {
    background: var(--primary);
    color: #fff;
}
.widget-cat-list .children {
    width: 100%;
    margin-top: 4px;
    padding-left: 12px;
    border-left: 2px solid #e2e8f0;
}
.widget-cat-list .children li {
    padding: 0;
    margin-bottom: 2px;
}
.widget-cat-list .children li a {
    font-size: 13px;
    padding: 8px 10px;
}

/* 日历小工具 */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.widget_calendar th,
.widget_calendar td {
    text-align: center;
    padding: 8px 4px;
    border: 1px solid var(--border);
}
.widget_calendar th {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}
.widget_calendar td a {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.widget_calendar caption {
    caption-side: top;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    color: var(--text);
}

/* 标签云 */
.widget_tag_cloud .tagcloud,
.wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.widget_tag_cloud .tagcloud a,
.wp-block-tag-cloud a,
.tag-cloud-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: var(--text);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    transition: all .2s;
}
.widget_tag_cloud .tagcloud a:hover,
.wp-block-tag-cloud a:hover,
.tag-cloud-link:hover {
    background: var(--primary);
    color: #fff;
}
/* 彩色标签：hover 时加深，不覆盖自定义颜色 */
.widget_tag_cloud .tagcloud.is-colorful a:hover,
.widget_tag_cloud .tagcloud.is-colorful a:focus {
    filter: brightness(0.92);
    color: #fff;
}
.widget_tag_cloud .tagcloud a .tag-count,
.wp-block-tag-cloud a .tag-count,
.tag-cloud-link .tag-count {
    display: inline-block;
    background: rgba(37,99,235,0.12);
    color: var(--primary);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 999px;
    transition: all .2s;
}
.widget_tag_cloud .tagcloud a:hover .tag-count,
.wp-block-tag-cloud a:hover .tag-count,
.tag-cloud-link:hover .tag-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* 无标题小工具补充 */
.danye-sidebar .widget p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray);
}

/* ==================== 文章 meta ==================== */
.single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.single-meta-cat a {
    display: inline-flex;
    align-items: center;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.single-meta-cat a:hover { background: var(--primary); color: #fff; }

/* ==================== 上下篇导航 ==================== */
.post-nav {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.post-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .3s;
    min-width: 0;
}
.post-nav-item:hover:not(.post-nav-empty) {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37,99,235,0.08);
}
.post-nav-item.post-nav-empty { background: transparent; border: none; }
.post-nav-dir {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}
.post-nav-title {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-nav-next { text-align: right; }

/* ==================== 阅读全文链接 ==================== */
.post-card-readmore {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    transition: gap .3s;
}
.post-card-readmore:hover { color: var(--primary-hover); }

/* ==================== 归档页头部 ==================== */
.blog-header-cat-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.blog-header-desc {
    color: var(--gray);
    font-size: 16px;
    margin-top: 8px;
}
.blog-header-count {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
}

/* ==================== 页面标题 ==================== */
.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    h1 { font-size: 28px; }
    .hero { padding: 80px 0 60px; }
    .hero p { font-size: 15px; }
    .btn, .wx-pill { width: 100%; text-align: center; min-height: 48px; }
    .trust-bar { gap: 12px; }
    .benefits { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 14px; }
    .benefit { padding: 20px 14px; }
    .benefit-icon { width: 44px; height: 44px; font-size: 18px; }
    .steps { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; padding: 0 16px; }
    .steps::before { display: none; }
    .step { background: var(--white); border-radius: var(--radius); padding: 24px 16px; }
    .circle { width: 48px; height: 48px; font-size: 16px; background: var(--primary); color: #fff; border: none; }
    .trust-grid { grid-template-columns: 1fr; padding: 0 14px; }
    .faq-list.faq-grid { grid-template-columns: 1fr; }
    .cta { margin: 0 14px; padding: 60px 20px; border-radius: 20px; }
    .cta h2 { font-size: 22px; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
    /* 移动端汉堡菜单 */
    .header-toggle { display: flex; }
    .header-wx { display: none; }
    .header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        padding: 16px 20px;
        margin-left: 0;
    }
    .header-nav.open {
        display: block;
    }
    .header-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .header-nav a { font-size: 16px; display: block; padding: 4px 0; }
    .single-title { font-size: 24px; }
    .single-body { font-size: 15px; }
    .single-body h2 { font-size: 22px; }
    .related-grid { grid-template-columns: 1fr; }
    .post-card-title { font-size: 18px; }
    .blog-header h1 { font-size: 26px; }
    .pagination .page-numbers { padding: 8px 12px; font-size: 13px; }
    .fab { width: 48px; height: 48px; font-size: 20px; bottom: 20px; right: 16px; }
    /* 两栏布局移动端堆叠 */
    .danye-layout { flex-direction: column; gap: 24px; }
    .danye-sidebar { width: 100%; position: static; }
    /* 上下篇导航移动端纵向 */
    .post-nav { flex-direction: column; }
    .post-nav-next { text-align: left; }
    /* 页面标题 */
    .page-title { font-size: 26px; }
}
