/* 面试简历网 - 布局样式文件 */

/* 主题颜色定义 */
:root {
    --bs-primary: #1a73e8;
    --bs-primary-light: #e8f0fe;
    --bs-secondary: #34a853;
    --bs-dark: #202124;
    --bs-body-color: #5f6368;
    --bs-border-color: #dadce0;
}

/* 保留导航栏标识样式 */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary) !important;
}

.navbar-brand span {
    color: var(--bs-dark);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--bs-dark) !important;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 2px;
    background-color: var(--bs-primary);
    bottom: 0;
    left: 10%;
}

/* 卡片图片样式 */
.card-img-top {
    height: 180px;
    object-fit: cover;
    background-color: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    font-size: 0.875rem;
}

/* 标题样式 */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--bs-dark);
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--bs-primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 页脚样式 */
footer {
    background-color: var(--bs-dark);
}

/* 修复footer链接间距 */
footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

footer .list-unstyled a {
    color: #bdc1c6;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .list-unstyled a:hover {
    color: white;
}

/* 简历模板卡片样式 */
.resume-card {
    position: relative;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.resume-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 卡片图片容器 */
.card-img-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 141.4%; /* A4比例 (297/210) */
    overflow: hidden;
}

/* 简历模板缩略图样式 */
.resume-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resume-card:hover .resume-thumbnail {
    transform: scale(1.05);
}

/* 卡片覆盖层（半透明操作区域） */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    padding: 1.5rem 1rem 1rem;
    color: white;
    transform: translateY(100%);
    transition: all 0.3s ease;
    opacity: 0;
}

.resume-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* 卡片信息区域 */
.card-info {
    margin-bottom: 1rem;
}

.card-overlay .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.card-overlay .card-title:hover {
    color: var(--bs-primary-light);
}

.card-overlay .card-text {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-overlay .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.card-overlay .badge {
    font-size: 0.75rem;
}

/* 卡片操作按钮区域 */
.card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.card-actions .btn {
    flex: 1;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.card-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
}

.card-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.card-actions .btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--bs-dark);
    border: none;
}

.card-actions .btn-light:hover {
    background-color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* 卡片标题可点击样式 */
.card .card-title {
    cursor: pointer;
    transition: color 0.3s ease;
}

.card .card-title:hover {
    color: var(--bs-primary);
}

/* 整个卡片可点击区域增强 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 修复footer底部文字颜色 */
footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Banner区域样式 */
.banner-section {
    background: linear-gradient(135deg, var(--bs-primary-light) 0%, #ffffff 100%);
    padding: 4rem 0;
}

.banner-section h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 1rem;
}

.banner-section p {
    font-size: 1.125rem;
    color: var(--bs-body-color);
    margin-bottom: 2rem;
}

/* 面包屑导航部分样式 */
.breadcrumb-item a {
    color: var(--bs-body-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--bs-primary);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-section h1 {
        font-size: 2rem;
    }
    
    .banner-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-img-top {
        height: 120px;
    }
}

/* 工具类补充 */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0d62d9 100%);
}

/* 动画效果 */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top:hover {
    background-color: #0d62d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top:hover {
    background-color: #0d62d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}