/* 海洋蓝色主题 */
:root {
    --ocean-blue: #0066cc;
    --deep-sea: #004080;
    --light-blue: #e3f2fd;
    --ocean-green: #2e8b57;
    --coral: #ff7f50;
}

/* 导航栏样式 */
.bg-ocean-blue {
    background: linear-gradient(135deg, var(--ocean-blue), var(--deep-sea)) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 1px;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* 欢迎横幅 */
.welcome-banner {
    background: linear-gradient(135deg, var(--ocean-blue), var(--deep-sea));
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-admin {
    background: linear-gradient(135deg, white, #f8f9fa);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.card-admin:hover {
    border-color: var(--ocean-blue);
    transform: translateY(-5px);
}

.icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--ocean-blue);
    border-color: var(--ocean-blue);
}

.btn-primary:hover {
    background: var(--deep-sea);
    border-color: var(--deep-sea);
    transform: translateY(-2px);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--deep-sea), #002244) !important;
}

/* 项目和专利列表样式 */
.project-item, .patent-item {
    background: white;
    transition: all 0.3s ease;
}

.project-item:hover, .patent-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* 文本颜色 */
.text-ocean-blue {
    color: var(--ocean-blue) !important;
}

.text-deep-sea {
    color: var(--deep-sea) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .welcome-banner {
        padding: 2rem 1rem !important;
    }
    
    .card-admin {
        margin-bottom: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 表格样式优化 */
.table th {
    background-color: var(--light-blue);
    border-top: none;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Badge 样式优化 */
.badge {
    font-size: 0.8em;
    padding: 0.5em 0.75em;
}

/* IcoFont 图标大小调整 */
.icofont-lg {
    font-size: 1.5em;
}

.icofont-xl {
    font-size: 2em;
}

.icofont-xxl {
    font-size: 2.5em;
}