/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* 首页横幅 */
.hero-section {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
}

/* 项目卡片 */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.project-card .card-img-top {
    transition: transform 0.3s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.project-card .card-img-top {
    overflow: hidden;
}

/* 新闻卡片 */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-left: 4px solid #8b5cf6;
}

.news-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

/* 联系卡片 */
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.contact-card .icon-wrapper {
    transition: transform 0.3s ease;
}

.contact-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 页脚 */
footer {
    margin-top: auto;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* 内容样式 */
.about-content,
.contact-content,
.news-content,
.project-content {
    line-height: 1.8;
}

.about-content p,
.contact-content p,
.news-content p,
.project-content p {
    margin-bottom: 1rem;
}

.about-content h1,
.about-content h2,
.about-content h3,
.about-content h4,
.about-content h5,
.about-content h6,
.contact-content h1,
.contact-content h2,
.contact-content h3,
.contact-content h4,
.contact-content h5,
.contact-content h6,
.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6,
.project-content h1,
.project-content h2,
.project-content h3,
.project-content h4,
.project-content h5,
.project-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-content img,
.contact-content img,
.news-content img,
.project-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.about-content ul,
.about-content ol,
.contact-content ul,
.contact-content ol,
.news-content ul,
.news-content ol,
.project-content ul,
.project-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.about-content blockquote,
.contact-content blockquote,
.news-content blockquote,
.project-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

.about-content table,
.contact-content table,
.news-content table,
.project-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.about-content th,
.about-content td,
.contact-content th,
.contact-content td,
.news-content th,
.news-content td,
.project-content th,
.project-content td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.about-content th,
.contact-content th,
.news-content th,
.project-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #8b5cf6;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f5f3ff;
    border-color: #e9d5ff;
}

.page-item.active .page-link {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
}

.page-item.disabled .page-link {
    color: #6c757d;
}

/* 徽章样式 */
.badge {
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* 表单样式 */
.form-control:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .project-card:hover,
    .news-card:hover,
    .contact-card:hover {
        transform: none;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
