/* ============================================
 * aiqilvse1.0 主题主样式
 * 风格：律师事务所官网风格，简洁大气
 * 优化：更好的加载性能，响应式设计
 * ============================================ */

/* --- 基础重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: #333; background: #f8f9fa; line-height: 1.8; }

/* --- 容器 --- */
.aqs-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.aqs-container::after { content: ""; display: table; clear: both; }

/* ============================================
 * 头部导航（中伦风格）
 * ============================================ */
.aqs-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 70px; transition: all .3s;
}
.aqs-header-inner { display: flex; align-items: center; height: 70px; }
.aqs-logo { flex-shrink: 0; }
.aqs-logo a { text-decoration: none; }
.aqs-logo h1 { font-size: 22px; font-weight: 700; color: #1a3c6e; margin: 0; }
.aqs-logo .custom-logo { max-height: 45px; width: auto; }

.aqs-nav { flex: 1; margin-left: 40px; }
.aqs-nav-list { list-style: none; display: flex; margin: 0; padding: 0; }
.aqs-nav-list li { position: relative; }
.aqs-nav-list > li > a {
    display: block; padding: 0 18px; line-height: 70px;
    color: #333; text-decoration: none; font-size: 15px; font-weight: 500;
    transition: color .3s; position: relative;
}
.aqs-nav-list > li > a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; background: #1a3c6e; transition: width .3s;
}
.aqs-nav-list > li:hover > a, .aqs-nav-list > li.current-menu-item > a { color: #1a3c6e; }
.aqs-nav-list > li:hover > a::after, .aqs-nav-list > li.current-menu-item > a::after { width: 60%; }

/* 下拉菜单 */
.aqs-nav-list .sub-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    border-radius: 0 0 4px 4px; z-index: 999;
    list-style: none; padding: 8px 0;
}
.aqs-nav-list li:hover > .sub-menu { display: block; animation: fadeInDown .2s ease; }
.aqs-nav-list .sub-menu a {
    display: block; padding: 8px 20px; color: #555; font-size: 14px; text-decoration: none;
    transition: all .3s;
}
.aqs-nav-list .sub-menu a:hover { background: #f0f4f9; color: #1a3c6e; padding-left: 25px; }

/* 三级菜单 */
.aqs-nav-list .sub-menu .sub-menu { left: 100%; top: 0; border-radius: 4px; }

.aqs-header-right { flex-shrink: 0; margin-left: 15px; }
.aqs-search-toggle {
    background: none; border: none; font-size: 18px; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .3s;
}
.aqs-search-toggle:hover { background: #f0f4f9; }

/* 搜索弹窗 */
.aqs-search-popup {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; padding: 25px 0; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 999;
}
.aqs-search-popup.active { display: block; }
.aqs-search-popup-inner { max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.aqs-search-form { flex: 1; display: flex; gap: 10px; }
.aqs-search-input {
    flex: 1; height: 44px; padding: 0 16px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 15px; outline: none; transition: border .3s;
}
.aqs-search-input:focus { border-color: #1a3c6e; }
.aqs-search-submit {
    height: 44px; padding: 0 24px; background: #1a3c6e; color: #fff; border: none;
    border-radius: 4px; font-size: 15px; cursor: pointer; transition: background .3s;
}
.aqs-search-submit:hover { background: #15325c; }
.aqs-search-close {
    background: none; border: none; font-size: 22px; cursor: pointer; padding: 8px;
    color: #999; transition: color .3s;
}
.aqs-search-close:hover { color: #333; }

/* 移动端菜单按钮 */
.aqs-menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 8px;
}
.aqs-menu-toggle span { display: block; width: 24px; height: 2px; background: #333; transition: all .3s; }

/* ============================================
 * 面包屑导航
 * ============================================ */
.aqs-breadcrumb { padding: 12px 0; margin-bottom: 20px; }
.aqs-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.aqs-breadcrumb li { font-size: 13px; color: #999; display: flex; align-items: center; }
.aqs-breadcrumb a { color: #1a3c6e; text-decoration: none; }
.aqs-breadcrumb a:hover { text-decoration: underline; }
.aqs-breadcrumb-sep { margin-left: 8px; font-size: 16px; color: #ccc; }

/* ============================================
 * 主内容区
 * ============================================ */
.aqs-main { padding-top: 90px; padding-bottom: 50px; min-height: 60vh; }
.aqs-content-wrap { float: left; width: 70%; }
.aqs-sidebar { float: right; width: 28%; }

/* --- 文章网格 --- */
.aqs-post-grid { display: grid; gap: 25px; }

.aqs-post-item {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: all .3s;
    display: flex; padding: 25px;
}
.aqs-post-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }

.aqs-post-thumb { flex-shrink: 0; width: 220px; margin-right: 25px; }
.aqs-post-thumb img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px; }
.aqs-post-info { flex: 1; }
.aqs-post-title { font-size: 20px; margin-bottom: 8px; line-height: 1.4; }
.aqs-post-title a { color: #222; text-decoration: none; transition: color .3s; }
.aqs-post-title a:hover { color: #1a3c6e; }
.aqs-post-meta { font-size: 13px; color: #999; margin-bottom: 10px; display: flex; gap: 15px; flex-wrap: wrap; }
.aqs-post-meta a { color: #1a3c6e; text-decoration: none; }
.aqs-post-excerpt { color: #666; font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.aqs-post-readmore { color: #1a3c6e; font-size: 14px; text-decoration: none; font-weight: 500; }
.aqs-post-readmore:hover { text-decoration: underline; }

/* 分页 */
.aqs-pagination { clear: both; padding: 30px 0; text-align: center; }
.aqs-pagination .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 3px;
    border: 1px solid #ddd; border-radius: 4px; color: #555;
    text-decoration: none; transition: all .3s;
}
.aqs-pagination .page-numbers:hover, .aqs-pagination .page-numbers.current {
    background: #1a3c6e; color: #fff; border-color: #1a3c6e;
}

/* ============================================
 * 文章详情页
 * ============================================ */
.aqs-single { background: #fff; border-radius: 8px; padding: 40px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.aqs-single-title { font-size: 28px; color: #222; margin-bottom: 15px; line-height: 1.3; }
.aqs-single-meta { font-size: 13px; color: #999; margin-bottom: 30px; display: flex; gap: 15px; flex-wrap: wrap; }
.aqs-single-meta a { color: #1a3c6e; text-decoration: none; }
.aqs-single-content { font-size: 16px; line-height: 1.9; color: #444; }
.aqs-single-content p { margin-bottom: 1.5em; }
.aqs-single-content h2, .aqs-single-content h3 { margin-top: 1.5em; margin-bottom: .8em; color: #222; }
.aqs-single-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0; }
.aqs-single-content a { color: #1a3c6e; }

/* ============================================
 * 页面模板
 * ============================================ */
.aqs-page { background: #fff; border-radius: 8px; padding: 40px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.aqs-page-title { font-size: 28px; color: #222; margin-bottom: 25px; }
.aqs-page-content { font-size: 16px; line-height: 1.9; color: #444; }

/* 归档页 */
.aqs-archive-title { font-size: 26px; color: #222; margin-bottom: 10px; }
.aqs-archive-desc { color: #888; margin-bottom: 25px; font-size: 14px; }

/* 404 */
.aqs-404-page { text-align: center; padding: 100px 20px; }
.aqs-404-page h1 { font-size: 72px; color: #1a3c6e; margin-bottom: 10px; }
.aqs-btn { display: inline-block; padding: 10px 28px; background: #1a3c6e; color: #fff; text-decoration: none; border-radius: 4px; margin-top: 20px; transition: background .3s; }
.aqs-btn:hover { background: #15325c; }

/* ============================================
 * 侧边栏
 * ============================================ */
.aqs-widget { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.aqs-widget-title { font-size: 17px; color: #222; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #1a3c6e; }

/* ============================================
 * 底部
 * ============================================ */
.aqs-footer {
    background: #1a3c6e; color: #d0d8e0; padding: 40px 0 20px;
}
.aqs-footer a { color: #b0c4de; text-decoration: none; }
.aqs-footer a:hover { color: #fff; }
.aqs-footer-widgets { margin-bottom: 25px; }
.aqs-footer-widget-title { font-size: 16px; color: #fff; margin-bottom: 12px; }
.aqs-footer-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px;
}
.aqs-footer-menu { list-style: none; display: flex; gap: 15px; }

/* ============================================
 * 响应式
 * ============================================ */
@media (max-width: 991px) {
    .aqs-content-wrap, .aqs-sidebar { float: none; width: 100%; }
    .aqs-post-thumb { width: 160px; }
    .aqs-post-item { padding: 18px; }
}

@media (max-width: 768px) {
    .aqs-menu-toggle { display: flex; }
    .aqs-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.08); margin: 0; }
    .aqs-nav.active { display: block; }
    .aqs-nav-list { flex-direction: column; }
    .aqs-nav-list > li > a { line-height: 50px; padding: 0 20px; }
    .aqs-nav-list > li > a::after { display: none; }
    .aqs-nav-list .sub-menu { position: static; box-shadow: none; border-radius: 0; background: #f8f9fa; }
    .aqs-nav-list .sub-menu .sub-menu { left: 0; }
    .aqs-post-item { flex-direction: column; }
    .aqs-post-thumb { width: 100%; margin-right: 0; margin-bottom: 15px; }
    .aqs-post-thumb img { height: 200px; }
    .aqs-single, .aqs-page { padding: 20px; }
    .aqs-single-title { font-size: 22px; }
    .aqs-breadcrumb { display: none; }
}

/* 小屏动画 */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
