/* assets/css/style.css - 专业版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部 ========== */
.header {
    background: #004b97;
    color: #fff;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;
}

.logo p {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

.header-right {
    text-align: right;
    font-size: 12px;
}

.header-right a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}

.header-right a:hover {
    text-decoration: underline;
}

/* ========== 导航栏 ========== */
.nav {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-links a {
    display: block;
    padding: 0 20px;
    line-height: 50px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #004b97;
    border-bottom: 2px solid #004b97;
}

/* ========== 搜索区 ========== */
.search-section {
    background: linear-gradient(135deg, #004b97 0%, #0066b3 100%);
    padding: 30px 0;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: #aaa;
}

.search-btn {
    padding: 0 30px;
    background: #ff8c00;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #e67e00;
}

.search-tags {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.search-tags a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
}

.search-tags a:hover {
    text-decoration: underline;
}

/* ========== 快捷导航 ========== */
.quick-nav {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.quick-nav .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.quick-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    width: 100px;
    transition: transform 0.2s;
}

.quick-item:hover {
    transform: translateY(-3px);
}

.quick-icon {
    width: 48px;
    height: 48px;
    background: #f0f4f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 22px;
    color: #004b97;
}

.quick-item span {
    font-size: 13px;
}

/* ========== 主要内容 ========== */
.main {
    padding: 30px 0;
}

.two-column {
    display: flex;
    gap: 30px;
}

/* 左侧边栏 */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 20px;
}

.sidebar-title {
    background: #f8f9fc;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    color: #004b97;
    border-bottom: 1px solid #e5e5e5;
    border-left: 3px solid #004b97;
}

.sidebar-list {
    list-style: none;
    padding: 10px 0;
}

.sidebar-list li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-list a {
    display: block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.sidebar-list a:hover {
    background: #f5f7fa;
    color: #004b97;
    padding-left: 20px;
}

.sidebar-list a.active {
    color: #004b97;
    font-weight: 500;
    background: #f5f7fa;
}

/* 右侧内容区 */
.content-area {
    flex: 1;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e5e5;
}

.content-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.content-header .total {
    font-size: 12px;
    color: #999;
}

/* 法规列表 */
.law-list {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.law-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.law-item:hover {
    background: #fafbfd;
}

.law-item:last-child {
    border-bottom: none;
}

.law-title {
    font-size: 15px;
    font-weight: 500;
    color: #1e466e;
    margin-bottom: 8px;
}

.law-title a {
    color: #1e466e;
    text-decoration: none;
}

.law-title a:hover {
    text-decoration: underline;
}

.law-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.law-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.law-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pagination {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: #004b97;
    color: #004b97;
}

.page-btn.active {
    background: #004b97;
    color: #fff;
    border-color: #004b97;
}

/* 详情页 */
.detail-container {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
}

.detail-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e466e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.detail-info {
    background: #f9fafc;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 13px;
    color: #666;
}

.detail-info .label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e466e;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #004b97;
}

.detail-section p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.detail-content {
    white-space: pre-wrap;
    line-height: 1.7;
}

/* 按钮 */
.btn-back {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-back:hover {
    border-color: #004b97;
    color: #004b97;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h4 {
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #aaa;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 60px;
    color: #999;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    .two-column {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .quick-nav .container {
        justify-content: center;
        gap: 20px;
    }
    .nav-links {
        display: none;
    }
/* 面包屑导航 */
.breadcrumb {
    background: #f5f7fa;
    padding: 12px 0;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb a {
    color: #004b97;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
}

/* 详情页主容器 */
.detail-main {
    padding: 30px 0;
}

/* 详情容器 */
.detail-container {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e466e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

/* 信息栏 */
.detail-info-bar {
    background: #f9fafc;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #eef2f6;
}

.info-item {
    font-size: 13px;
    color: #555;
}

.info-label {
    font-weight: 600;
    color: #1e466e;
    margin-right: 6px;
}

.info-value {
    color: #666;
}

/* 详情章节 */
.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e466e;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid #004b97;
}

.detail-text {
    font-size: 15px;
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
}

.full-content {
    background: #fefefe;
    padding: 20px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
}

/* 底部按钮 */
.detail-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 8px 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-back:hover {
    border-color: #004b97;
    color: #004b97;
    background: #f9fafc;
}
.search-clear {
    display: inline-block;
    padding: 0 20px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 48px;
    border-left: 1px solid #ddd;
}

.search-clear:hover {
    background: #eee;
    color: #333;
}
}