/* app/static/front/css/style.css */

/* 全局样式 */
:root {
    --primary-color: #218fce;
    --primary-dark: #1a77aa;
    --primary-light: #4ba6dd;
    --secondary-color: #6c757d;
    --dark-color: #1a2b3c;
    --light-color: #f8f9fa;
    --text-color: #333;
    --body-bg: #fff;
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 移除 a 标签默认样式 */
a {
    text-decoration: none;  /* 移除下划线 */
    color: inherit;         /* 继承父元素的文字颜色 */
    transition: color var(--transition-speed, 0.3s); /* 可选：添加颜色过渡效果 */
}

a:hover {
    color: var(--primary-color, inherit); /* 悬停时可以使用主题色 */
    text-decoration: none;  /* 确保悬停时也没有下划线 */
}

main {
    flex: 1 0 auto;
}

/* 按钮样式更新 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 143, 206, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-width: 2px;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 143, 206, 0.3);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* 导航栏样式 */
.navbar-transparent {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-transparent.scrolled {
    background-color: rgba(26, 43, 60, 0.95);
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    padding-right: 60px; /* 增加右边距 */
}

.navbar-brand img {
    max-height: 45px;
    transition: max-height 0.3s ease;
}

.navbar-transparent.scrolled .navbar-brand img {
    max-height: 40px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 页面区块通用样式更新 */
.section-badge {
    display: inline-block;
    background-color: rgba(33, 143, 206, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* 卡片样式更新 */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* 图片占位符更新 */
.placeholder-img {
    background-color: #e9ecef;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img::after {
    content: "无图片";
    color: #adb5bd;
    font-weight: 500;
}

/* 对象适配 */
.object-fit-cover {
    object-fit: cover;
}

/* 页脚样式更新 */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed);
    display: block;
    margin-bottom: 10px;
}

.footer a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* 新闻卡片样式 */
.news-card .news-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-card .card-title {
    font-size: 1.25rem;
    line-height: 1.4;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.news-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-link:hover {
    color: var(--primary-dark);
}

.news-link:hover i {
    transform: translateX(5px);
}

/* 招聘卡片样式 */
.job-card {
    position: relative;
    z-index: 1;
}

.job-card .job-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.job-card .job-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.job-card .job-meta span {
    display: flex;
    align-items: center;
}

.job-card .job-meta i {
    margin-right: 5px;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .about-image-container {
        margin-bottom: 30px;
    }

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

    /* 在较小屏幕上允许自动换行 */
    @media (max-width: 480px) {
        .copyright-line {
            white-space: normal;
        }
    }
}