/* 软著智能撰写平台样式表 */

/* 全局样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* 导航栏样式 */
.navbar {
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.075);
    background-color: #0d6efd !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    font-weight: 600;
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

/* 确保导航项目横向排列 */
.navbar-nav {
    flex-direction: row !important;
    align-items: center;
}

.navbar-nav .nav-item {
    margin-left: 0.25rem;
}

/* 响应式导航 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: #0d6efd;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .navbar-nav {
        flex-direction: column !important;
    }
    
    .navbar-nav .nav-item {
        margin-left: 0;
        margin-bottom: 0.25rem;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* 登录注册页面 */
.login-form, .register-form {
    max-width: 450px;
    margin: 2rem auto;
}

/* 卡片样式 */
.content-card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0.5rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* 按钮样式 */
.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

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

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

/* 表单样式 */
.form-control {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

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

.form-label {
    font-weight: 500;
}

/* 页脚样式 */
footer {
    padding: 1.5rem 0;
    color: #6c757d;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content-card {
        padding: 1rem;
    }
    
    .breadcrumb {
        margin-bottom: 0.5rem;
    }
}

/* 登录和注册页面样式 */
.auth-form {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 软著名称卡片 */
.name-card {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0d6efd;
}

/* 管理页面表格样式 */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* 仪表盘卡片 */
.dashboard-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.dashboard-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
}

/* 控制台统计卡片 */
.stat-card {
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 1rem;
}

/* 表单样式 */
.required-field::after {
    content: "*";
    color: red;
    margin-left: 4px;
}

/* 活动日志 */
.activity-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease;
}

.activity-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-description {
    color: #495057;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 表单样式 */
.form-card {
    max-width: 500px;
    margin: 0 auto;
}

.btn-login {
    width: 100%;
}

/* 加载动画 */
.loader {
    display: none;
    text-align: center;
    padding: 1rem;
}

/* 颜色 */
.bg-primary {
    background-color: #007bff !important;
}

.text-primary {
    color: #007bff !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.text-success {
    color: #28a745 !important;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

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

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

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

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

/* 导航栏暗色 */
.navbar-dark {
    background-color: #343a40;
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: white;
}

.navbar-dark .nav-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

.navbar-dark .nav-link.active {
    color: white;
    font-weight: bold;
}

/* 添加Bootstrap图标样式 */
.bi {
    display: inline-block;
    font-size: inherit;
    line-height: 1;
    vertical-align: -0.125em;
}

.bi-people::before { content: "👥"; }
.bi-person-lines-fill::before { content: "👤"; }
.bi-magic::before { content: "✨"; }
.bi-person-plus::before { content: "➕"; }
.bi-journal-plus::before { content: "📋"; }
.bi-clock::before { content: "🕒"; }

/* 网格系统 */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, 
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: bold;
}

/* 通用边距 */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

/* 警告样式 */
.alert {
    border-radius: 0.375rem;
    padding: 1rem;
}

/* 快捷操作按钮 */
.d-grid .btn {
    text-align: left;
    padding: 1rem;
}

.d-grid .btn i {
    font-size: 1.25rem;
}

/* 页面标题 */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1, .page-header h2 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* 统计卡片 */
.rounded-circle {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-opacity-10 {
    opacity: 0.2;
}

/* 重置导航栏展开样式 */
@media screen and (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        flex-direction: row !important;
    }
    
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
    }
    
    .navbar-expand-lg .navbar-toggler {
        display: none;
    }
}

@media screen and (max-width: 991.98px) {
    .navbar-expand-lg .navbar-collapse {
        display: none;
    }
    
    .navbar-expand-lg .navbar-collapse.show {
        display: block;
    }
    
    .navbar-expand-lg .navbar-nav {
        flex-direction: column !important;
    }
}

/* 覆盖Bootstrap的默认样式 */
.navbar-nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

/* 导航菜单项间距 */
.navbar-nav .nav-item + .nav-item {
    margin-left: 0.5rem;
}

/* 确保下拉菜单正确显示 */
.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-menu.show {
    display: block;
}

/* 处理移动端视图 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: #0d6efd;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .navbar-nav .nav-item {
        margin-left: 0 !important;
        margin-bottom: 0.25rem;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
    }
    
    .dropdown-item {
        color: white !important;
    }
}

/* 活动图标样式 */
.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: 1.1rem;
}

/* 统计卡片图标背景 */
.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.15);
}

.bg-light-success {
    background-color: rgba(25, 135, 84, 0.15);
}

.bg-light-danger {
    background-color: rgba(220, 53, 69, 0.15);
}

.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.15);
}

.bg-light-info {
    background-color: rgba(13, 202, 240, 0.15);
}

.bg-light-secondary {
    background-color: rgba(108, 117, 125, 0.15);
}

/* 活动列表样式 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.activity-item {
    display: flex;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    border-left: 3px solid #0d6efd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-description {
    color: #666;
    font-size: 0.9rem;
}

.activity-time {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* 加载器样式 */
.loader-element {
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 仪表盘统计卡片样式 */
#stats-container .card {
    height: 100%;
    transition: transform 0.2s ease-in-out;
}

#stats-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#stats-container .card-body {
    padding: 1.5rem;
}

/* 错误提示样式 */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
} 