/*
Theme Name: 林清律师事务所
Theme URI: https://example.com/linqing-law
Author: Yuanbao
Author URI: https://example.com
Description: 为陕西林清律师事务所定制的简洁专业 WordPress 主题。围绕「林深见法，清正为源」的品牌理念设计，浅绿主色调、留白充足、版式克制。深度适配古腾堡区块编辑器，内置业务领域、律师团队、服务流程等版式模板，支持自定义器可视化修改，上传启用后自动生成示例页面，替换为自己的内容即可上线。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linqing-law
Tags: custom-colors, custom-logo, custom-menu, editor-style, featured-images, block-patterns, translation-ready, blog, one-column, wide-blocks
*/

/* ==========================================================================
   1. 设计变量
   ========================================================================== */
:root {
    --lq-primary: #1f4d3a;
    --lq-primary-soft: #2d6b51;
    --lq-primary-dark: #16382b;
    --lq-accent: #c9a45c;
    --lq-bg: #f2f7f3;
    --lq-bg-soft: #e8f1ea;
    --lq-white: #ffffff;
    --lq-text: #1c1c1c;
    --lq-muted: #6b7280;
    --lq-border: #e3ece6;

    --lq-font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --lq-font-serif: "Songti SC", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC",
        Georgia, serif;

    --lq-radius: 4px;
    --lq-shadow: 0 2px 16px rgba(31, 77, 58, 0.06);
    --lq-shadow-hover: 0 8px 28px rgba(31, 77, 58, 0.12);
    --lq-container: 1200px;
    --lq-content: 760px;
}

/* ==========================================================================
   2. 基础重置
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--lq-font-sans);
    font-size: 16px;
    line-height: 1.9;
    color: var(--lq-text);
    background: var(--lq-white);
    -webkit-font-smoothing: antialiased;
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.7em;
    font-family: var(--lq-font-serif);
    font-weight: 600;
    line-height: 1.45;
    color: var(--lq-primary-dark);
    letter-spacing: 0.02em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }

p { margin: 0 0 1.3em; }

a {
    color: var(--lq-primary-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--lq-accent);
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin: 0 0 1.3em;
    padding-left: 1.4em;
}

li { margin-bottom: 0.4em; }

blockquote {
    margin: 1.8em 0;
    padding: 1em 1.4em;
    border-left: 3px solid var(--lq-accent);
    background: var(--lq-bg);
    color: var(--lq-primary-dark);
    font-family: var(--lq-font-serif);
}

blockquote p:last-child { margin-bottom: 0; }

hr {
    border: none;
    border-top: 1px solid var(--lq-border);
    margin: 2.4em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid var(--lq-border);
    padding: 0.7em 0.9em;
    text-align: left;
}

th { background: var(--lq-bg); }

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

:focus-visible {
    outline: 2px solid var(--lq-accent);
    outline-offset: 2px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    padding: 10px 18px;
    background: var(--lq-primary);
    color: #fff;
}

/* ==========================================================================
   3. 布局容器
   ========================================================================== */
.lq-container {
    width: 100%;
    max-width: var(--lq-container);
    margin: 0 auto;
    padding: 0 24px;
}

.lq-container--narrow {
    max-width: var(--lq-content);
}

.lq-section {
    padding: 72px 0;
}

.lq-section--alt {
    background: var(--lq-bg);
}

.lq-section-head {
    text-align: center;
    margin-bottom: 44px;
}

.lq-section-head h2 {
    margin-bottom: 0.4em;
    position: relative;
    padding-bottom: 18px;
}

.lq-section-head h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 2px;
    background: var(--lq-accent);
}

.lq-section-head p {
    color: var(--lq-muted);
    margin: 0;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   4. 顶部信息栏
   ========================================================================== */
.lq-topbar {
    background: var(--lq-primary-dark);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
}

.lq-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding: 9px 24px;
    max-width: var(--lq-container);
    margin: 0 auto;
}

.lq-topbar__slogan {
    letter-spacing: 0.08em;
    font-family: var(--lq-font-serif);
}

.lq-topbar__meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.lq-topbar__meta span { white-space: nowrap; }

.lq-topbar a { color: rgba(255, 255, 255, 0.82); }
.lq-topbar a:hover { color: var(--lq-accent); }

/* ==========================================================================
   5. 站点头部
   ========================================================================== */
.lq-header {
    background: var(--lq-white);
    border-bottom: 1px solid var(--lq-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lq-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
    max-width: var(--lq-container);
    margin: 0 auto;
    padding: 0 24px;
}

.lq-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.lq-brand__logo img {
    max-height: 52px;
    width: auto;
}

.lq-brand__mark {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--lq-radius);
    background: var(--lq-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--lq-font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
}

.lq-brand__text { display: block; }

.lq-brand__name {
    display: block;
    font-family: var(--lq-font-serif);
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--lq-primary-dark);
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.lq-brand__tagline {
    display: block;
    font-size: 0.74rem;
    color: var(--lq-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lq-brand:hover .lq-brand__name { color: var(--lq-primary-soft); }

/* 主导航 */
.lq-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lq-nav__list ul { list-style: none; }

.lq-nav__list li { margin: 0; position: relative; }

.lq-nav__list a {
    display: block;
    padding: 10px 15px;
    color: var(--lq-text);
    font-size: 0.97rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.lq-nav__list a:hover,
.lq-nav__list .current-menu-item > a,
.lq-nav__list .current_page_item > a {
    color: var(--lq-primary);
    border-bottom-color: var(--lq-accent);
}

.lq-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--lq-white);
    border: 1px solid var(--lq-border);
    box-shadow: var(--lq-shadow);
    padding: 6px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 110;
}

.lq-nav__list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lq-nav__list .sub-menu a {
    padding: 8px 18px;
    border-bottom: none;
    font-size: 0.92rem;
}

.lq-nav__list .sub-menu a:hover { background: var(--lq-bg); }

/* 头部的联系电话 */
.lq-header__cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.lq-header__tel {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.lq-header__tel small {
    font-size: 0.72rem;
    color: var(--lq-muted);
    letter-spacing: 0.1em;
}

.lq-header__tel strong {
    font-family: var(--lq-font-serif);
    font-size: 1.16rem;
    color: var(--lq-primary);
    letter-spacing: 0.04em;
}

/* 移动端菜单按钮 */
.lq-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
    padding: 8px 12px;
    cursor: pointer;
    color: var(--lq-primary);
    font-size: 0.9rem;
}

.lq-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 4px 0;
}

/* ==========================================================================
   6. 首页主视觉
   ========================================================================== */
.lq-hero {
    position: relative;
    background: var(--lq-bg);
    padding: 96px 0;
    overflow: hidden;
}

.lq-hero--has-bg {
    background-size: cover;
    background-position: center;
    color: #fff;
}

.lq-hero--has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        rgba(22, 56, 43, 0.92) 0%,
        rgba(31, 77, 58, 0.82) 55%,
        rgba(31, 77, 58, 0.62) 100%);
}

.lq-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--lq-container);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.lq-hero__eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.3em;
    color: var(--lq-accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.lq-hero__title {
    font-size: 2.7rem;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    color: var(--lq-primary-dark);
}

.lq-hero__desc {
    font-size: 1.06rem;
    max-width: 660px;
    margin: 0 auto 34px;
    color: var(--lq-muted);
    line-height: 2;
}

.lq-hero--has-bg .lq-hero__title { color: #fff; }
.lq-hero--has-bg .lq-hero__desc { color: rgba(255, 255, 255, 0.85); }

.lq-hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   7. 按钮
   ========================================================================== */
.lq-btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: var(--lq-radius);
    font-size: 0.98rem;
    letter-spacing: 0.06em;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.lq-btn--primary {
    background: var(--lq-primary);
    color: #fff;
    border-color: var(--lq-primary);
}

.lq-btn--primary:hover {
    background: var(--lq-primary-dark);
    border-color: var(--lq-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--lq-shadow-hover);
}

.lq-btn--ghost {
    background: transparent;
    color: var(--lq-primary);
    border-color: var(--lq-primary);
}

.lq-btn--ghost:hover {
    background: var(--lq-primary);
    color: #fff;
}

.lq-hero--has-bg .lq-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.lq-hero--has-bg .lq-btn--ghost:hover {
    background: #fff;
    color: var(--lq-primary);
}

/* ==========================================================================
   8. 卡片网格（业务领域 / 团队 / 优势）
   ========================================================================== */
.lq-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, 1fr);
}

.lq-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lq-grid--4 { grid-template-columns: repeat(4, 1fr); }

.lq-card {
    background: var(--lq-white);
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
    padding: 34px 28px;
    transition: all 0.28s ease;
}

.lq-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lq-shadow-hover);
    border-color: var(--lq-primary-soft);
}

.lq-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--lq-bg-soft);
    color: var(--lq-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--lq-font-serif);
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.lq-card h3 {
    font-size: 1.18rem;
    margin-bottom: 0.6em;
}

.lq-card p {
    color: var(--lq-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.95;
}

/* 团队卡 */
.lq-member {
    text-align: center;
    background: var(--lq-white);
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
    overflow: hidden;
    transition: all 0.28s ease;
}

.lq-member:hover {
    box-shadow: var(--lq-shadow-hover);
    transform: translateY(-4px);
}

.lq-member__photo {
    aspect-ratio: 1 / 1;
    background: var(--lq-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--lq-font-serif);
    font-size: 2.4rem;
    color: var(--lq-primary);
}

.lq-member__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lq-member__body { padding: 22px 18px 26px; }

.lq-member__body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3em;
}

.lq-member__role {
    display: block;
    font-size: 0.85rem;
    color: var(--lq-accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.8em;
}

.lq-member__body p {
    font-size: 0.92rem;
    color: var(--lq-muted);
    margin: 0;
}

/* ==========================================================================
   9. 文章列表
   ========================================================================== */
.lq-posts {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, 1fr);
}

.lq-post-card {
    background: var(--lq-white);
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.28s ease;
}

.lq-post-card:hover {
    box-shadow: var(--lq-shadow-hover);
    transform: translateY(-3px);
}

.lq-post-card__thumb {
    aspect-ratio: 16 / 10;
    background: var(--lq-bg-soft);
    overflow: hidden;
}

.lq-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lq-post-card:hover .lq-post-card__thumb img { transform: scale(1.05); }

.lq-post-card__body { padding: 24px 24px 28px; flex: 1; }

.lq-post-card__meta {
    display: block;
    font-size: 0.8rem;
    color: var(--lq-muted);
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.lq-post-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.6em;
    line-height: 1.6;
}

.lq-post-card__title a { color: var(--lq-primary-dark); }
.lq-post-card__title a:hover { color: var(--lq-accent); }

.lq-post-card__excerpt {
    font-size: 0.93rem;
    color: var(--lq-muted);
    margin: 0;
}

/* ==========================================================================
   10. 正文内容排版
   ========================================================================== */
.lq-entry {
    max-width: var(--lq-content);
    margin: 0 auto;
}

.lq-entry__header {
    text-align: center;
    margin-bottom: 44px;
}

.lq-entry__header h1 {
    margin-bottom: 0.5em;
}

.lq-entry__meta {
    font-size: 0.85rem;
    color: var(--lq-muted);
    letter-spacing: 0.06em;
}

.lq-entry__footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--lq-border);
    font-size: 0.9rem;
    color: var(--lq-muted);
}

.lq-page-hero {
    background: var(--lq-bg);
    padding: 56px 0;
    text-align: center;
    border-bottom: 1px solid var(--lq-border);
}

.lq-page-hero h1 {
    font-size: 1.9rem;
    margin-bottom: 0.3em;
}

.lq-page-hero p {
    color: var(--lq-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   11. 联系区
   ========================================================================== */
.lq-contact-info {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
}

.lq-contact-item {
    text-align: center;
    padding: 28px 18px;
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
    background: var(--lq-white);
}

.lq-contact-item__label {
    display: block;
    font-size: 0.8rem;
    color: var(--lq-muted);
    letter-spacing: 0.16em;
    margin-bottom: 8px;
}

.lq-contact-item__value {
    font-family: var(--lq-font-serif);
    font-size: 1.05rem;
    color: var(--lq-primary-dark);
    line-height: 1.7;
}

/* ==========================================================================
   12. CTA 通栏
   ========================================================================== */
.lq-cta {
    background: var(--lq-primary);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.lq-cta h2 {
    color: #fff;
    margin-bottom: 0.5em;
}

.lq-cta p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    margin: 0 auto 28px;
}

.lq-cta .lq-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.lq-cta .lq-btn--ghost:hover {
    background: #fff;
    color: var(--lq-primary);
    border-color: #fff;
}

/* ==========================================================================
   13. 页脚
   ========================================================================== */
.lq-footer {
    background: var(--lq-primary-dark);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    padding: 56px 0 0;
}

.lq-footer a { color: rgba(255, 255, 255, 0.72); }
.lq-footer a:hover { color: var(--lq-accent); }

.lq-footer__grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    padding-bottom: 40px;
}

.lq-footer__title {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.1em;
    letter-spacing: 0.08em;
}

.lq-footer__about p {
    line-height: 2;
    margin-bottom: 1em;
}

.lq-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lq-footer__list li {
    margin-bottom: 0.7em;
    padding-left: 14px;
    position: relative;
}

.lq-footer__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 5px;
    height: 1px;
    background: var(--lq-accent);
}

.lq-footer__contact p { margin-bottom: 0.6em; }

.lq-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0 26px;
    font-size: 0.84rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
}

.lq-footer__bottom p { margin: 0; }

/* ==========================================================================
   14. 分页
   ========================================================================== */
.lq-pagination {
    margin: 48px 0 0;
    text-align: center;
}

.lq-pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.lq-pagination .page-numbers {
    display: inline-block;
    min-width: 40px;
    padding: 8px 14px;
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
    color: var(--lq-text);
    transition: all 0.2s ease;
}

.lq-pagination .page-numbers:hover,
.lq-pagination .page-numbers.current {
    background: var(--lq-primary);
    border-color: var(--lq-primary);
    color: #fff;
}

.lq-post-nav {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.lq-post-nav a {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
}

.lq-post-nav a:hover {
    border-color: var(--lq-primary);
    background: var(--lq-bg);
}

/* ==========================================================================
   15. 表单元素
   ========================================================================== */
.lq-form input[type="text"],
.lq-form input[type="email"],
.lq-form input[type="tel"],
.lq-form textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
    background: var(--lq-white);
    color: var(--lq-text);
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--lq-primary);
    outline: none;
}

/* ==========================================================================
   16. 区块编辑器配色类（前台）
   ========================================================================== */
.has-linqing-primary-color { color: var(--lq-primary); }
.has-linqing-primary-background-color { background-color: var(--lq-primary); }
.has-linqing-light-color { color: var(--lq-primary-dark); }
.has-linqing-light-background-color { background-color: var(--lq-bg); }
.has-linqing-dark-color { color: var(--lq-primary-dark); }
.has-linqing-dark-background-color { background-color: var(--lq-primary-dark); }
.has-linqing-accent-color { color: var(--lq-accent); }
.has-linqing-accent-background-color { background-color: var(--lq-accent); }
.has-linqing-muted-color { color: var(--lq-muted); }
.has-linqing-muted-background-color { background-color: var(--lq-muted); }
.has-linqing-white-color { color: #ffffff; }
.has-linqing-white-background-color { background-color: #ffffff; }

.has-lq-serif-font-family { font-family: var(--lq-font-serif); }

.lq-narrow { max-width: var(--lq-content); margin-left: auto; margin-right: auto; }

/* ==========================================================================
   17. 编辑器内的区块样式补充
   ========================================================================== */
.wp-block-button__link {
    border-radius: var(--lq-radius);
    transition: all 0.25s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--lq-shadow-hover);
}

.wp-block-quote {
    border-left: 3px solid var(--lq-accent);
    padding-left: 1.4em;
}

.wp-block-quote cite { font-style: normal; }

.wp-block-separator {
    border: none;
    border-top: 1px solid var(--lq-border);
}

/* ==========================================================================
   18. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .lq-grid,
    .lq-grid--4,
    .lq-posts { grid-template-columns: repeat(2, 1fr); }

    .lq-contact-info { grid-template-columns: repeat(2, 1fr); }

    .lq-footer__grid { grid-template-columns: 1fr 1fr; }

    .lq-hero__title { font-size: 2.2rem; }
}

@media (max-width: 980px) {
    /* 侧边栏在中等屏幕下移到内容下方 */
    .lq-layout-sidebar {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .lq-layout-sidebar .lq-posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .lq-sidebar {
        position: static;
    }
}

@media (max-width: 860px) {
    .lq-nav-toggle { display: block; }

    .lq-header__inner { min-height: 66px; }

    .lq-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--lq-white);
        border-bottom: 1px solid var(--lq-border);
        box-shadow: var(--lq-shadow);
        max-height: 70vh;
        overflow-y: auto;
    }

    .lq-header__nav.is-open { display: block; }

    .lq-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }

    .lq-nav__list a {
        padding: 13px 24px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .lq-nav__list a:hover,
    .lq-nav__list .current-menu-item > a {
        border-left-color: var(--lq-accent);
        border-bottom-color: transparent;
        background: var(--lq-bg);
    }

    .lq-nav__list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--lq-border);
        padding: 0 0 0 16px;
        display: none;
    }

    .lq-nav__list li:hover > .sub-menu { display: block; }

    .lq-header__tel { display: none; }

    .lq-topbar__inner { justify-content: center; text-align: center; }

    .lq-topbar__meta { justify-content: center; }

    .lq-hero { padding: 64px 0; }

    .lq-hero__title { font-size: 1.85rem; }

    .lq-hero__desc { font-size: 0.98rem; }

    .lq-section { padding: 52px 0; }

    .lq-footer__grid { padding-bottom: 28px; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }

    .lq-grid,
    .lq-grid--2,
    .lq-grid--4,
    .lq-posts,
    .lq-layout-sidebar .lq-posts,
    .lq-contact-info { grid-template-columns: 1fr; }

    .lq-footer__grid { grid-template-columns: 1fr; }

    .lq-brand__name { font-size: 1.1rem; }

    .lq-brand__mark { width: 40px; height: 40px; font-size: 1.25rem; }

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.45rem; }

    .lq-hero__actions { flex-direction: column; }

    .lq-hero__actions .lq-btn { width: 100%; text-align: center; }

    .lq-footer__bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   18.5 古腾堡内容区增强（版式库配套样式）
   ========================================================================== */

/* 首页 / 页面内容区：让区块铺满容器宽度 */
.lq-page-content .is-layout-constrained > *,
.lq-page-content > .is-layout-constrained {
    max-width: var(--lq-container);
}

.lq-page-content .is-layout-constrained .is-layout-constrained > * {
    max-width: var(--lq-container);
}

/* 正文区（文章详情、普通页面）收窄，保证阅读舒适 */
.lq-entry .is-layout-constrained > * {
    max-width: var(--lq-content);
}

/* 居中标题下方的金色短线 */
.lq-page-content .wp-block-heading.has-text-align-center,
.lq-entry .wp-block-heading.has-text-align-center {
    position: relative;
    padding-bottom: 18px;
}

.lq-page-content .wp-block-heading.has-text-align-center::after,
.lq-entry .wp-block-heading.has-text-align-center::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 2px;
    background: var(--lq-accent);
}

/* 版式之间的间距 */
.lq-page-content > .lq-section > * > .wp-block-columns,
.lq-page-content > .wp-block-columns {
    margin-bottom: 2em;
}

.lq-page-content .wp-block-columns {
    margin-bottom: 1.6em;
}

.lq-page-content .wp-block-columns:last-child {
    margin-bottom: 0;
}

/* ---------- 卡片网格 lq-cards ---------- */
.lq-cards {
    gap: 26px;
}

.lq-cards > .wp-block-column {
    background: var(--lq-white);
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
    padding: 32px 26px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.lq-cards > .wp-block-column:hover {
    transform: translateY(-4px);
    box-shadow: var(--lq-shadow-hover);
    border-color: var(--lq-primary-soft);
}

.lq-cards > .wp-block-column h3 {
    margin-bottom: 0.6em;
}

.lq-cards > .wp-block-column p {
    color: var(--lq-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- 团队卡 lq-team ---------- */
.lq-team {
    gap: 24px;
}

.lq-team > .wp-block-column {
    background: var(--lq-white);
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.lq-team > .wp-block-column:hover {
    transform: translateY(-4px);
    box-shadow: var(--lq-shadow-hover);
}

.lq-team > .wp-block-column .wp-block-image {
    margin: 0 0 20px;
}

.lq-team > .wp-block-column .wp-block-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--lq-bg-soft);
}

.lq-team > .wp-block-column h3 {
    margin-bottom: 0.3em;
    padding: 0 16px;
}

.lq-team > .wp-block-column p {
    padding: 0 18px;
    margin-bottom: 0.5em;
}

.lq-team > .wp-block-column p:last-child {
    margin-bottom: 22px;
}

/* ---------- 流程步骤 lq-steps ---------- */
.lq-steps {
    gap: 22px;
}

.lq-steps > .wp-block-column {
    text-align: center;
}

.lq-step-num {
    font-family: var(--lq-font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--lq-accent);
    line-height: 1.2;
    margin-bottom: 0.2em;
}

.lq-steps > .wp-block-column h3 {
    margin-bottom: 0.5em;
}

.lq-steps > .wp-block-column p {
    color: var(--lq-muted);
    font-size: 0.94rem;
    margin-bottom: 0;
}

/* ---------- 通栏 group 内的内容宽度约束 ----------
   说明：这些 group 刻意不使用 constrained layout（避免区块验证失败），
   因此内容宽度改由 CSS 控制，保证背景铺满、内容居中。 */
.lq-block,
.lq-statbar,
.lq-cta-block {
    padding-left: 24px;
    padding-right: 24px;
}

.lq-block > *:not(.wp-block-heading):not(style),
.lq-statbar > *,
.lq-cta-block > * {
    max-width: var(--lq-container);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 数据条 lq-stats ---------- */
.lq-statbar {
    padding: 52px 24px;
}

.lq-stats {
    gap: 20px;
}

.lq-stat-num {
    font-family: var(--lq-font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--lq-primary);
    line-height: 1.2;
    margin-bottom: 0.15em;
}

.lq-stat-label {
    color: var(--lq-muted);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    margin-bottom: 0;
}

/* ---------- 引导条 lq-cta-block ---------- */
.lq-cta-block {
    padding: 56px 24px;
}

.lq-cta-block h2 {
    color: #fff;
}

.lq-cta-block .wp-block-heading.has-text-align-center::after {
    background: rgba(255, 255, 255, 0.5);
}

.lq-cta-block p {
    color: rgba(255, 255, 255, 0.85);
}

.lq-cta-block .wp-block-button__link {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.lq-cta-block .wp-block-button__link:hover {
    background: #fff;
    color: var(--lq-primary);
}

/* ---------- 要点清单 lq-checklist ---------- */
.lq-checklist {
    list-style: none;
    padding-left: 0;
}

.lq-checklist li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 0.9em;
    line-height: 1.85;
}

.lq-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 12px;
    height: 2px;
    background: var(--lq-accent);
}

/* ---------- 图文并排 lq-media-text ---------- */
.lq-media-text .wp-block-image img {
    border-radius: var(--lq-radius);
}

/* ---------- 空状态提示 ---------- */
.lq-empty-tip {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed var(--lq-border);
    border-radius: var(--lq-radius);
}

.lq-empty-tip__text {
    color: var(--lq-muted);
    margin-bottom: 20px;
}

.lq-empty-text {
    text-align: center;
    color: var(--lq-muted);
}

/* ==========================================================================
   18.6 侧边栏布局
   ========================================================================== */
.lq-layout-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: start;
}

.lq-main-col {
    min-width: 0; /* 防止长内容撑破 grid */
}

/* 有侧边栏时，正文不再受 760px 阅读宽度限制 */
.lq-layout-sidebar .lq-entry {
    max-width: none;
    margin: 0;
}

/* 有侧边栏时，文章列表改为两列 */
.lq-layout-sidebar .lq-posts {
    grid-template-columns: repeat(2, 1fr);
}

.lq-sidebar {
    position: sticky;
    top: 100px;
}

.lq-sidebar .widget {
    margin-bottom: 24px;
}

.lq-sidebar .widget:last-child {
    margin-bottom: 0;
}

/* 侧边栏图片（二维码等）：居中且自适应 */
.lq-sidebar .widget img {
    width: 100%;
    height: auto;
    max-width: 220px;
    margin: 0 auto;
    border-radius: var(--lq-radius);
}

/* 侧边栏文本居中，适合二维码说明 */
.lq-sidebar .widget p {
    text-align: center;
    font-size: 0.92rem;
    color: var(--lq-muted);
    margin-bottom: 0.6em;
}

.lq-sidebar .widget p:last-child {
    margin-bottom: 0;
}

/* 侧边栏中的列表（最新文章、分类等） */
.lq-sidebar .widget ul {
    text-align: left;
}

/* ==========================================================================
   19. 面包屑
   ========================================================================== */
.lq-breadcrumb {
    font-size: 0.85rem;
    color: var(--lq-muted);
    letter-spacing: 0.04em;
}

.lq-breadcrumb a { color: var(--lq-muted); }
.lq-breadcrumb a:hover { color: var(--lq-primary); }

.lq-breadcrumb .sep {
    margin: 0 8px;
    color: var(--lq-border);
}

/* ==========================================================================
   20. 小工具
   ========================================================================== */
.widget {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--lq-white);
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
}

.widget-title {
    font-size: 1.05rem;
    margin-bottom: 0.9em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--lq-border);
}

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

.widget ul li {
    margin-bottom: 0.6em;
    font-size: 0.93rem;
}

.widget ul li a { color: var(--lq-text); }
.widget ul li a:hover { color: var(--lq-primary); }

/* ==========================================================================
   21. 评论区
   ========================================================================== */
.comments-area {
    max-width: var(--lq-content);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.comment-list li {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--lq-border);
}

.comment-list .comment-meta {
    font-size: 0.85rem;
    color: var(--lq-muted);
    margin-bottom: 8px;
}

.comment-list .comment-author img {
    border-radius: 50%;
    float: left;
    margin-right: 12px;
}

.comment-list .reply {
    font-size: 0.85rem;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--lq-primary-dark);
}

.comment-form textarea {
    min-height: 120px;
}

.comment-form .submit {
    padding: 12px 30px;
    background: var(--lq-primary);
    color: #fff;
    border: none;
    border-radius: var(--lq-radius);
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-form .submit:hover {
    background: var(--lq-primary-dark);
}

.tags-links {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--lq-muted);
}

/* 打印 */
@media print {
    .lq-header,
    .lq-footer,
    .lq-topbar,
    .lq-cta { display: none; }
}
