/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    max-width: 100%;
    margin: 0 auto;
}

/* 卡片样式优化 */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* 政策列表页样式 */
/* 搜索和筛选表单 */
.search-form {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.search-form .form-control, .search-form .form-select {
    border-radius: 5px;
    border: 1px solid #e9ecef;
    padding: 0.6rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-form .form-control:focus, .search-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.search-form .btn-primary {
    border-radius: 5px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    background-color: #007bff;
    border-color: #007bff;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.search-form .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

/* 表格样式 */
.table-responsive {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    margin-bottom: 20px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 1rem;
    vertical-align: middle;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 表格操作按钮 */
.btn-group-sm .btn {
    border-radius: 5px;
    margin-right: 5px;
    transition: transform 0.1s ease;
}

.btn-group-sm .btn:last-child {
    margin-right: 0;
}

.btn-group-sm .btn:hover {
    transform: translateY(-1px);
}

/* 徽章样式 */
.badge {
    font-weight: 500;
    border-radius: 15px;
    padding: 0.35em 0.65em;
}

/* 分页控件 */
.pagination {
    margin: 20px 0 0 0;
}

.pagination .page-item .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin: 0 2px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination .page-item .page-link:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

/* 政策详情页样式 */
/* 政策解读部分 */
.interpretation-section {
    background-color: #fafafa;
    border-radius: 6px;
    padding: 1rem;
    transition: background-color 0.3s ease;
}

.interpretation-section:hover {
    background-color: #f5f5f5;
}

.interpretation-section h5 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* 嵌套对象卡片 */
.interpretation-section .card {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: none;
    margin-bottom: 0;
}

.interpretation-section .card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 数组列表 */
.interpretation-section .list-group {
    border-radius: 5px;
    overflow: hidden;
}

.interpretation-section .list-group-item {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
}

.interpretation-section .list-group-item:last-child {
    border-bottom: none;
}

/* 政策标题 */
.policy-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* 政策信息卡片 */
.policy-info {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 20px;
}

.policy-info .row {
    margin-bottom: 0;
}

.policy-info p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.policy-info strong {
    color: #495057;
}

/* 政策正文 */
.content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #495057;
    padding: 0 0.5rem;
}

.content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.3rem;
}

.content h3 {
    font-size: 1.3rem;
}

.content ul, .content ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
}

/* 政策解读 */
.interpretation-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 20px;
}

.interpretation-section h5 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.interpretation-section .card {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.interpretation-section .card-body {
    padding: 1rem;
}

.interpretation-section .list-group {
    margin-top: 0.5rem;
}

.interpretation-section .list-group-item {
    border: 1px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.interpretation-section .list-group-item:hover {
    background-color: #f8f9fa;
}

.interpretation-section .list-group-item-light {
    background-color: #f8f9fa;
}

/* 发送记录表格 */
.send-records {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 20px;
}

.send-records .table thead th {
    background-color: #f8f9fa;
}

/* 模态框样式 */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-weight: 600;
    color: #495057;
}

.modal-body .form-control {
    border-radius: 5px;
    border: 1px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-body .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.modal-footer .btn {
    border-radius: 5px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-form .row {
        gap: 10px;
    }
    
    .search-form .col-md-2, .search-form .col-md-3 {
        width: 100%;
    }
    
    .policy-info .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease;
}

/* 顶部导航栏样式 */
.navbar {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: #007bff;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

/* 按钮通用样式 */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
    transform: translateY(-1px);
}

/* 提示信息样式 */
.alert {
    border-radius: 5px;
    border: none;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: #2c3e50;
}

/* 链接样式 */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 输入框样式 */
.form-control {
    border-radius: 5px;
    border: 1px solid #e9ecef;
    padding: 0.6rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* 选择框样式 */
.form-select {
    border-radius: 5px;
    border: 1px solid #e9ecef;
    padding: 0.6rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}