/* 以下样式添加到文件顶部，确保页脚在底部 */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin-top: auto; /* 确保页脚在底部 */
}

/* 其他现有样式保持不变 */

/* 添加到全局样式表开头 - 确保页脚在底部显示 */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

main.container > .dashboard,
main.container > .card,
main.container > form,
main.container > .container-fluid {
    flex: 1 0 auto; /* 确保内容区域可以伸展 */
}

footer {
    flex-shrink: 0;
    margin-top: auto; /* 确保页脚始终位于底部 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

/* 内容空间较小时确保有足够间距 */
main.container {
    padding-bottom: 2rem;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 登录页面样式 */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    list-style: none;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

nav ul li:not(.user-menu) {
    margin-right: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

nav ul li a:hover {
    background-color: #f0f2f5;
}

nav ul li a.active {
    color: #1890ff;
    background-color: #e6f7ff;
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

/* 仪表板样式 */
.dashboard {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-section {
    margin-bottom: 2rem;
}

.task-list {
    list-style: none;
}

.task-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.priority-high {
    color: #f5222d;
}

.success {
    color: #52c41a;
}

.warning {
    color: #faad14;
}

/* 日报表单样式 */
.report-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-item {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.task-item h3 {
    margin-bottom: 1rem;
    color: #1890ff;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.form-check {
    margin: 1rem 0;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #d9d9d9;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #bfbfbf;
}

/* 日报列表样式 */
.report-list {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-form {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.form-inline {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.table th {
    background: #fafafa;
    font-weight: 500;
}

.btn-link {
    color: #1890ff;
    text-decoration: none;
    margin-right: 1rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* 日报详情样式 */
.report-detail {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.report-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.report-meta {
    color: #666;
    margin-top: 0.5rem;
}

.report-meta span {
    margin-right: 2rem;
}

.task-detail-item {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.task-detail-item h3 {
    color: #1890ff;
    margin-bottom: 1rem;
}

.task-info {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: grid;
    gap: 0.5rem;
}

.info-item label {
    font-weight: 500;
    color: #666;
}

.info-item.warning {
    color: #faad14;
    font-weight: 500;
}

.report-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* 项目列表样式 */
.project-list {
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.project-status.planning {
    background: #e6f7ff;
    color: #1890ff;
}

.project-status.ongoing {
    background: #f6ffed;
    color: #52c41a;
}

.project-status.completed {
    background: #f9f0ff;
    color: #722ed1;
}

.project-status.suspended {
    background: #fff2e8;
    color: #fa541c;
}

.project-name {
    margin: 1rem 0;
    padding-right: 6rem;
}

.project-name a {
    color: #1890ff;
    text-decoration: none;
}

.project-info {
    margin-top: 1rem;
}

.progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: #1890ff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #666;
}

.project-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* 项目表单样式 */
.project-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.col-md-6 {
    flex: 0 0 calc(50% - 0.5rem);
}

.required {
    color: #f5222d;
    margin-left: 0.25rem;
}

.error-message {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #f5222d;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* 项目详情样式 */
.project-detail {
    padding: 2rem;
}

.project-info-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.description-section {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.description-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.task-item, .issue-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.task-header, .issue-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.task-header h3, .issue-header h3 {
    margin: 0;
    flex: 1;
}

.task-meta, .issue-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.875rem;
}

.status-pending { background: #fff7e6; color: #fa8c16; }
.status-in_progress { background: #e6f7ff; color: #1890ff; }
.status-completed { background: #f6ffed; color: #52c41a; }
.status-blocked { background: #fff1f0; color: #f5222d; }

.severity-critical { border-left: 4px solid #f5222d; }
.severity-high { border-left: 4px solid #fa8c16; }
.severity-medium { border-left: 4px solid #1890ff; }
.severity-low { border-left: 4px solid #52c41a; }

/* 任务管理样式 */
.task-management {
    padding: 2rem;
}

.task-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.task-column {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    min-height: 500px;
}

.task-column h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8e8e8;
    font-size: 1.1rem;
    color: #666;
}

.task-card {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-card.priority-high {
    border-left: 4px solid #f5222d;
}

.task-card.priority-medium {
    border-left: 4px solid #1890ff;
}

.task-card.priority-low {
    border-left: 4px solid #52c41a;
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.task-card-header h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.task-description {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.task-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.875rem;
}

.meta-item label {
    color: #999;
    margin-right: 0.25rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 问题表单样式 */
.issue-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

input[type="file"].form-control {
    padding: 0.375rem;
}

/* 问题状态标签样式 */
.status-new { background: #fff7e6; color: #fa8c16; }
.status-in_progress { background: #e6f7ff; color: #1890ff; }
.status-resolved { background: #f6ffed; color: #52c41a; }
.status-closed { background: #f5f5f5; color: #666; }

/* 问题严重程度标签样式 */
.severity-critical { background: #fff1f0; color: #f5222d; }
.severity-high { background: #fff7e6; color: #fa8c16; }
.severity-medium { background: #e6f7ff; color: #1890ff; }
.severity-low { background: #f6ffed; color: #52c41a; }

/* 问题详情样式 */
.issue-detail {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.issue-title {
    flex: 1;
}

.issue-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.issue-meta span {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.issue-info {
    margin-top: 2rem;
}

.attachments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.attachment-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.attachment-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
}

.attachment-item a {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
}

.attachment-meta {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.attachment-meta span {
    margin-right: 1rem;
}

/* 问题列表样式 */
.issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.issue-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left-width: 4px;
    border-left-style: solid;
}

.issue-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.issue-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.issue-card-header h3 a {
    color: #1890ff;
    text-decoration: none;
}

.issue-card-header h3 a:hover {
    text-decoration: underline;
}

.project-name {
    color: #666;
    margin-bottom: 1rem;
}

.issue-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    font-size: 0.875rem;
}

.meta-item label {
    color: #999;
    margin-right: 0.25rem;
}

/* 状态和严重程度标签样式已在前面定义 */

/* 客户管理样式 */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.client-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.client-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.client-status.active {
    background: #f6ffed;
    color: #52c41a;
}

.client-status.inactive {
    background: #fff2f0;
    color: #f5222d;
}

.client-name {
    margin: 1rem 0;
    padding-right: 6rem;
    color: #1890ff;
}

.client-info {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.client-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

.inline-form {
    display: inline;
}

/* 客户表单样式 */
.client-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

/* 用户管理样式 */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.user-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-role {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.user-role.admin {
    background: #f9f0ff;
    color: #722ed1;
}

.user-role.manager {
    background: #e6f7ff;
    color: #1890ff;
}

.user-role.employee {
    background: #f6ffed;
    color: #52c41a;
}

.user-name {
    margin: 1rem 0;
    padding-right: 6rem;
    color: #1890ff;
}

.user-name small {
    color: #666;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.user-info {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.user-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

/* 用户表单样式 */
.user-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

/* 导航栏用户菜单样式 */
.user-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu span {
    color: #666;
}

.user-menu a {
    color: #1890ff;
}

/* 页脚样式 */
.site-footer {
    background: #fff;
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid #eee;
    color: #666;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #1890ff;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 日报表单补充样式 */
.notice-message {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    color: #ad8b00;
}

.task-item {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.task-item h3 {
    color: #1890ff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-item h3 small {
    color: #666;
    font-size: 0.875rem;
}

.form-check {
    margin-top: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

/* 新任务表单样式 */
.new-task {
    background: #f0f7ff;
    border: 1px solid #91d5ff;
}

.new-task h3 {
    color: #1890ff;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #91d5ff;
}

.notice-message {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    color: #1890ff;
}

/* 任务表单补充样式 */
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.task-header button {
    padding: 0.25rem 0.5rem;
}

.add-task-action {
    margin-top: 1.5rem;
    text-align: center;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group-append {
    display: flex;
    align-items: center;
}

.input-group-text {
    padding: 0.5rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
}

.text-danger {
    color: #f5222d;
}

/* 修改加号图标样式 */
.icon-plus {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-style: normal;
    margin-right: 0.5rem;
}

.icon-plus::before {
    content: "+";
    font-size: 16px;
    font-weight: bold;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.notification.error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #f5222d;
}

.notification.warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #faad14;
}

/* 日报表单补充样式 */
.report-form .page-header {
    margin-bottom: 2rem;
}

.report-form .form-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.report-form .form-inline .form-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-form .form-text {
    margin-left: 1rem;
    font-size: 0.875rem;
    color: #666;
}

input[type="date"].form-control {
    width: auto;
}

input[type="date"].form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 问题卡片样式 */
.issue-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.issue-card.severity-critical { border-left: 4px solid #f5222d; }
.issue-card.severity-high { border-left: 4px solid #fa8c16; }
.issue-card.severity-medium { border-left: 4px solid #1890ff; }
.issue-card.severity-low { border-left: 4px solid #52c41a; }

.issue-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.issue-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.issue-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    font-size: 0.875rem;
}

.meta-item label {
    color: #999;
    margin-right: 0.25rem;
}

/* 问题表单样式 */
.issue-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* 基础样式覆盖 */
:root {
  --primary-color: #1890ff;
  --secondary-color: #52c41a;
  --warning-color: #fa8c16;
  --danger-color: #f5222d;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --border-radius: 4px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* 卡片样式 */
.card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
}

.card-header {
  font-weight: 500;
}

/* 自定义按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: rgba(24, 144, 255, 0.8);
  border-color: rgba(24, 144, 255, 0.8);
}

/* 导航栏 */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
  color: var(--primary-color);
}

/* 任务列表 */
.task-list .list-group-item {
  transition: all 0.2s;
}

.task-list .list-group-item:hover {
  background-color: rgba(24, 144, 255, 0.05);
}

.task-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.task-title {
  font-weight: 500;
  text-decoration: none;
  color: var(--text-color);
}

.task-title:hover {
  color: var(--primary-color);
}

/* 问题卡片样式 */
.issue-card {
  transition: all 0.2s;
}

.issue-card:hover {
  transform: translateY(-2px);
}

.issue-card.severity-critical { border-left: 4px solid var(--danger-color); }
.issue-card.severity-high { border-left: 4px solid var(--warning-color); }
.issue-card.severity-medium { border-left: 4px solid var(--primary-color); }
.issue-card.severity-low { border-left: 4px solid var(--secondary-color); }

/* 表单样式 */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(24, 144, 255, 0.25);
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-section {
  animation: fadeIn 0.5s ease-out;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
  .welcome-section h1 {
    font-size: 1.25rem;
  }
  
  .dashboard-section h2 {
    font-size: 1.1rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    height: 120px !important;
    margin-top: 1rem;
  }
  
  .status-distribution {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-header .badge {
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .list-group-item {
    padding: 0.5rem 0.75rem;
  }
  
  .issue-title, .task-title {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
}

/* 优化优先级和严重程度指示器 */
.priority-indicator, .severity-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.priority-indicator.priority-high {
    background-color: #fa8c16;
}

.priority-indicator.priority-medium {
    background-color: #1890ff;
}

.priority-indicator.priority-low {
    background-color: #52c41a;
}

/* 卡片阴影和悬停效果 */
.card {
    transition: all 0.3s ease;
}

.card.shadow-sm:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.list-group-item-action {
    transition: background-color 0.2s ease;
}

.list-group-item-action:hover {
    background-color: rgba(25, 135, 84, 0.05);
}

/* 统计卡片内容布局优化 */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.progress {
    height: 0.5rem;
}

.status-distribution {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

/* 欢迎部分样式 */
.welcome-section {
    padding: 1rem;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    border-radius: 0.5rem;
    border-left: 4px solid #1890ff;
}

/* 动画效果增强 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-section {
    animation: fadeInUp 0.4s ease forwards;
}

.dashboard-section:nth-child(2) {
    animation-delay: 0.1s;
}

.dashboard-section:nth-child(3) {
    animation-delay: 0.2s;
}

.dashboard-section:nth-child(4) {
    animation-delay: 0.3s;
}

/* 添加到响应式部分 */
@media (max-height: 600px) {
    main.container {
        padding-bottom: 1rem;
    }
    
    footer {
        padding: 0.5rem 0 !important;
    }
}

/* 处理小屏幕设备上的页面滚动 */
@media (max-width: 576px) {
    body {
        min-height: 100vh;
        height: auto;
    }
    
    main.container {
        flex: 1 0 auto;
        min-height: auto;
    }
}

/* 首页卡片宽度精确修复 - 覆盖Bootstrap默认样式 */
.container > .row.g-4.mb-4 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 101.2% !important;
}

/* 保持列间距，但修正总宽度 */
.container > .row.g-4.mb-4 > .col-md-6 {
    width: calc(50% - 0px) !important; /* 精确计算每列宽度 */
    box-sizing: border-box !important;
}

/* 左列右边距 */
.container > .row.g-4.mb-4 > .col-md-6:first-child {
    margin-right: 0px !important;
}

/* 右列左边距 */
.container > .row.g-4.mb-4 > .col-md-6:last-child {
    margin-left: 0px !important;
}

/* 欢迎横幅增加内边距匹配 */
.welcome-banner {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 确保所有直接子元素宽度一致性 */
main.container > div:not(.row) {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 修复筛选栏元素高度一致性 */
.form-control-height,
.form-select-height,
.btn-height,
.input-group-height {
    height: 38px !important;
}

.input-group-height .input-group-text {
    height: 38px !important;
    display: flex;
    align-items: center;
}

/* 确保所有表单元素底部对齐 */
.filter-form .row.align-items-end > div {
    display: flex;
    flex-direction: column;
}

.filter-form .form-label {
    margin-bottom: 0.4rem;
}

.filter-form .form-control,
.filter-form .form-select,
.filter-form .input-group {
    flex-grow: 0;
}

/* 输入组样式统一 */
.filter-form .input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
}

/* 确保日期选择器在各浏览器中高度一致 */
.filter-form input[type="date"] {
    height: 38px;
    line-height: 1.5;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

