/* ===== 职位布局样式文件 ===== */
/* 包含左右分栏布局、职位列表、详情面板等相关样式 */

/* ===== 精选公司展示区域样式 ===== */

/* 精选公司整个区域 */
.featured-companies-section {
    margin: 0;
    padding: 0;
    position: relative;
}

/* 清除选中公司按钮容器 */
.clear-company-selection {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}


/* 精选公司容器 */
.featured-companies-container {
    width: 100%;
    /* 全宽度 */
    overflow: hidden;
    /* 隐藏溢出内容 */
}

/* 精选公司滚动容器 */
.featured-companies-scroll {
    width: 100%;
    /* 全宽度 */
    overflow: hidden;
    /* 隐藏溢出内容 */
    mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
    /* 左右边缘渐变遮罩 */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

/* 精选公司滚动轨道 */
.featured-companies-track {
    display: flex;
    /* flex布局，水平排列 */
    animation: scroll-companies 40s linear infinite;
    /* 40秒线性无限循环滚动 */
    will-change: transform;
    /* 优化动画性能 */
    padding: 0.1rem 0;
    /* 上下增加1rem留白，以便容纳卡片悬停和选中时的上位移及阴影/角标，防止被外层容器 overflow 被裁切 */
}

/* 滚动动画 */
@keyframes scroll-companies {
    0% {
        transform: translateX(0);
        /* 起始位置 */
    }

    100% {
        transform: translateX(-50%);
        /* 移动到一半位置（因为内容重复了一遍） */
    }
}

/* 鼠标悬停时暂停滚动 */
.featured-companies-scroll:hover .featured-companies-track {
    animation-play-state: paused;
    /* 暂停动画 */
}

/* 选中状态时停止滚动 */
.featured-companies-scroll.has-selected .featured-companies-track {
    animation-play-state: paused;
    /* 选中时暂停动画 */
}

/* 单个精选公司项目 */
.featured-company-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.95rem;
    margin-right: 0.6rem;
    background: color-mix(in srgb, var(--card-bg) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    min-width: 180px;
    height: 76px;
}

/* 精选公司项目悬停效果 */
.featured-company-item:hover {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--border) 52%);
    transform: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

/* 精选公司项目选中状态 */
.featured-company-item.selected {
    background: color-mix(in srgb, var(--accent) 12%, var(--card-bg) 88%) !important;
    border-color: color-mix(in srgb, var(--accent) 62%, var(--border) 38%) !important;
    transform: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
    position: relative;
}

/* 选中标志 */
.featured-company-item.selected::after {
    content: none;
}

/* 公司Logo容器（简化版） */
.company-item-logo {
    width: 48px;
    /* Logo宽度48px */
    height: 48px;
    /* Logo高度48px */
    border-radius: 10px;
    /* 圆角10px */
    overflow: hidden;
    /* 隐藏溢出内容 */
    flex-shrink: 0;
    /* 不缩放，保持固定尺寸 */
    position: relative;
    /* 相对定位 */
}

/* 公司Logo图片（简化版） */
.company-item-logo img {
    width: 90%;
    /* 图片宽度100% */
    height: 90%;
    /* 图片高度100% */
    object-fit: cover;
    /* 保持比例覆盖 */
    border-radius: 8px;
    /* 圆角8px */
}

/* Logo备用显示（简化版） */
.company-item-logo .company-logo-fallback {
    display: none;
    /* 默认隐藏 */
    width: 100%;
    /* 宽度100% */
    height: 100%;
    /* 高度100% */
    background: var(--accent);
    /* 纯色背景 */
    color: white;
    /* 白色文字 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    font-weight: bold;
    /* 字体粗体 */
    font-size: 1.3rem;
    /* 字体大小1.3rem，配合更大的logo */
    border-radius: 8px;
    /* 圆角8px */
}

/* 右侧信息区域容器 */
.company-item-info {
    display: flex;
    /* flex布局 */
    flex-direction: column;
    /* 垂直排列：公司名称在上，职位数量在下 */
    justify-content: center;
    /* 垂直居中 */
    gap: 0.3rem;
    /* 名称和数量之间的间距 */
    flex: 2;
    /* 占据剩余空间 */
    min-width: 0;
    /* 允许内容缩放 */
}

/* 公司名称（简化版） */
.company-item-name {
    font-size: 0.9rem;
    /* 字体大小0.9rem */
    font-weight: 600;
    /* 字体粗细：半粗体 */
    color: var(--text-primary);
    /* 主文字颜色 */
    white-space: nowrap;
    /* 不换行 */
    overflow: hidden;
    /* 隐藏溢出文字 */
    text-overflow: ellipsis;
    /* 溢出显示省略号 */
    line-height: 1.2;
    /* 行高1.2 */
}

/* 职位数量（简化版） */
.company-item-count {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, #14b8a6 38%, var(--border) 62%);
    white-space: nowrap;
    align-self: flex-start;
    color: color-mix(in srgb, #0f766e 80%, var(--text-primary) 20%);
}


/* 响应式设计：小屏幕适配 */
@media (max-width: 768px) {
    .featured-companies-track {
        animation-duration: 15s;
        /* 小屏幕上15秒滚动一轮 */
    }

    .featured-company-item {
        padding: 0.6rem 0.8rem;
        /* 减少内边距 */
        margin-right: 0.8rem;
        /* 减少间距 */
        gap: 0.6rem;
        /* 减少子元素间距 */
        height: 60px;
        /* 小屏幕上减小高度 */
        min-width: 140px;
        /* 减小最小宽度 */
    }

    .company-item-logo {
        width: 40px;
        /* 减小Logo尺寸 */
        height: 40px;
    }

    .company-item-name {
        font-size: 0.8rem;
        /* 减小公司名称字体 */
    }

    .company-item-count {
        font-size: 0.65rem;
        /* 减小职位数量字体 */
        padding: 0.1rem 0.4rem;
        /* 减少内边距 */
    }

    /* 小屏幕上选中标志的适配 */
    .featured-company-item.selected::after {
        width: 20px;
        /* 减小选中标志尺寸 */
        height: 20px;
        font-size: 0.7rem;
        /* 减小字体 */
        top: -6px;
        /* 调整位置 */
        right: -6px;
    }
}

/* ===== 主要布局结构 ===== */

/* 左右分栏主容器 */
.jobs-main-layout {
    margin-top: 0;
    display: flex;
    /* flex布局，实现左右分栏 */
    gap: 1rem;
    /* 左右面板间距1rem */
    height: calc(100vh - 220px);
    /* 高度为视口高度减去头部和其他组件的高度 */
    min-height: 620px;
    /* 最小高度620px，保证可用性 */
}

/* ===== 左侧职位列表面板 ===== */

/* 职位列表面板容器 */
.jobs-list-panel {
    flex: 0 0 420px;
    background: color-mix(in srgb, var(--card-bg) 86%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

/* ===== 职位列表内容区域 ===== */

/* 职位列表容器 */
.jobs-list-container {
    flex: 1;
    /* 占据剩余空间 */
    overflow: hidden;
    /* 隐藏溢出内容 */
    display: flex;
    /* flex布局 */
    flex-direction: column;
    /* 垂直排列 */
}

/* 新的职位网格样式 - 紧凑列表布局 */
.jobs-grid {
    flex: 1;
    /* 占据剩余空间 */
    overflow-y: auto;
    /* 垂直滚动 */
    padding: 0.5rem;
    /* 内边距0.5rem */
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent) 50%, var(--border) 50%) transparent;
}

.jobs-load-status {
    min-height: 0;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.jobs-load-status.is-loading,
.jobs-load-status.is-end {
    min-height: 2rem;
    padding: 0.35rem 0.5rem 0.7rem;
}

/* ===== 职位项目样式 ===== */

/* 单个职位项目 */
.job-item {
    padding: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    margin-bottom: 0.3rem;
    background: color-mix(in srgb, var(--card-bg) 40%, transparent);
}

/* 职位项目悬停效果 */
.job-item:hover {
    background: color-mix(in srgb, var(--accent) 8%, var(--card-bg) 92%);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--border) 66%);
    transform: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* 激活状态的职位项目 */
.job-item.selected,
.job-item.active {
    background: color-mix(in srgb, var(--accent) 13%, var(--card-bg) 87%);
    border-color: color-mix(in srgb, var(--accent) 66%, var(--border) 34%);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-secondary) 15%, transparent);
}

/* 职位项目头部 */
.job-item-header {
    display: flex;
    /* flex布局 */
    gap: 0.7rem;
    /* 子元素间距0.7rem */
    align-items: flex-start;
    /* 顶部对齐 */
}

/* 公司Logo */
.company-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 10px;
    /* 圆角10px */
    background: var(--accent);
    /* 纯色背景 */
    display: flex;
    /* flex布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    font-weight: bold;
    /* 字体粗体 */
    color: white;
    /* 白色文字 */
    font-size: 1.35rem;
    /* 字体大小1rem */
    flex-shrink: 0;
    /* 不缩放，保持固定大小 */
    overflow: hidden;
}

.company-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.company-logo-text {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    font-size: inherit;
    line-height: 1;
    border-radius: inherit;
}

/* 职位项目内容 */
.job-item-content {
    flex: 1;
    /* 占据剩余空间 */
    min-width: 0;
    /* 允许内容缩放 */
}

/* 职位项目标题 */
.job-item-title {
    font-size: 0.96rem;
    /* 字体大小0.96rem，紧凑但可读 */
    font-weight: 600;
    /* 字体粗细：半粗体 */
    color: var(--text-primary);
    /* 主文字颜色 */
    margin: 0 0 0.2rem 0;
    /* 底部外边距0.2rem */
    line-height: 1.4;
    /* 行高1.4 */
    overflow: hidden;
    /* 隐藏溢出文字 */
    text-overflow: ellipsis;
    /* 溢出显示省略号 */
    white-space: nowrap;
    /* 不换行 */
}


/* 职位项目标签容器 */
.job-item-tags {
    display: flex;
    /* flex布局 */
    gap: 0.3rem;
    /* 标签间距0.3rem */
    flex-wrap: wrap;
    /* 允许换行 */
}

/* 单个职位标签 - 紧凑设计 */
.job-tag {
    background: rgba(255, 255, 255, 0.08);
    /* 半透明白色背景 */
    color: var(--text-secondary);
    /* 次要文字颜色 */
    padding: 0.2rem 0.6rem;
    /* 内边距：上下0.2rem，左右0.6rem */
    border-radius: 999px;
    /* 圆角形成胶囊形状 */
    font-size: 0.75rem;
    /* 字体大小0.75rem */
    font-weight: 500;
    border: 1px solid var(--border);
    /* 1px边框 */
    white-space: nowrap;
    /* 不换行 */
}

/* 薪资标签特殊样式 */
.job-tag.salary {
    background: rgba(0, 245, 212, 0.1);
    /* 青绿色半透明背景 */
    color: var(--accent);
    /* 强调色文字 */
    border-color: rgba(0, 245, 212, 0.3);
    /* 青绿色边框 */
}

/* 远程工作标签 */
.job-tag.remote {
    background: rgba(34, 197, 94, 0.1);
    /* 绿色半透明背景 */
    color: #22c55e;
    /* 绿色文字 */
    border-color: rgba(34, 197, 94, 0.3);
    /* 绿色边框 */
}

/* 混合工作标签 */
.job-tag.hybrid {
    background: rgba(249, 115, 22, 0.1);
    /* 橙色半透明背景 */
    color: #f97316;
    /* 橙色文字 */
    border-color: rgba(249, 115, 22, 0.3);
    /* 橙色边框 */
}

/* 职位项目元信息 */
.job-item-meta {
    display: flex;
    /* flex布局 */
    flex-direction: column;
    /* 垂直排列 */
    align-items: flex-end;
    /* 右对齐 */
    gap: 0.3rem;
    /* 子元素间距0.3rem */
    flex-shrink: 0;
    /* 不缩放，保持固定尺寸 */
}

/* 职位时间 */
.job-time {
    color: var(--text-secondary);
    /* 次要文字颜色 */
    font-size: 0.9rem;
    /* 字体大小0.75rem */
    white-space: nowrap;
    /* 文字不换行 */
}

/* ===== 右侧职位详情面板 ===== */

/* 职位详情面板容器 */
.job-detail-panel {
    flex: 1;
    background: color-mix(in srgb, var(--card-bg) 86%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

/* 职位详情容器 */
.job-detail-container {
    flex: 1;
    /* 占据全部空间 */
    overflow-y: auto;
    /* 垂直滚动 */
    padding: 1.5rem;
    /* 内边距1.5rem */
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent) 50%, var(--border) 50%) transparent;
}

/* 职位详情头部 */
.job-detail-header {
    display: flex;
    /* flex布局 */
    justify-content: space-between;
    /* 两端对齐 */
    align-items: flex-start;
    /* 顶部对齐 */
    margin-bottom: 1rem;
    /* 底部外边距1rem */
    padding-bottom: 0.8rem;
    /* 底部内边距0.8rem */
    border-bottom: 1px solid var(--border);
    /* 底部边框 */
}

/* 大的公司Logo */
.company-logo-large {
    width: 15%;
    /* 宽度60px */
    height: 15%;
    /* 高度60px */
    border-radius: 12px;
    /* 圆角12px */
    background: var(--accent);
    /* 纯色背景 */
    display: flex;
    /* flex布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    font-weight: bold;
    /* 字体粗体 */
    color: white;
    /* 白色文字 */
    font-size: 1.5rem;
    /* 字体大小1.5rem */
    flex-shrink: 0;
    /* 不缩放 */
}

/* 职位详情标题 */
.job-detail-title {
    font-size: 1.3rem;
    /* 字体大小1.5rem */
    font-weight: 700;
    /* 字体粗细：粗体 */
    color: var(--text-primary);
    /* 主文字颜色 */
    margin: 0 0 0.3rem 0;
    /* 底部外边距0.3rem */
    line-height: 1.3;
    /* 行高1.3 */
}

/* 通用按钮样式 */
.btn {
    padding: 0.6rem 1.2rem;
    /* 内边距：上下0.6rem，左右1.2rem */
    border-radius: 8px;
    /* 圆角8px */
    font-size: 0.85rem;
    /* 字体大小0.85rem */
    font-weight: 500;
    /* 字体粗细：中等 */
    cursor: pointer;
    /* 鼠标指针样式 */
    transition: all 0.2s ease;
    /* 所有属性平滑过渡 */
    border: 1px solid transparent;
    /* 透明边框 */
    display: inline-flex;
    /* 内联flex布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    gap: 0.4rem;
    /* 内部元素间距0.4rem */
    text-decoration: none;
    /* 无下划线 */
    white-space: nowrap;
    /* 不换行 */
}

/* 主要按钮 */
.apply-btn.primary {
    background: var(--accent);
    /* 纯色背景 */
    color: #f8fafc;
    /* 高对比度文字 */
    border-color: color-mix(in srgb, var(--accent) 72%, #000000 28%);
    /* 细边框 */
}

/* 主要按钮悬停效果 */
.apply-btn.primary:hover {
    transform: none;
    /* 无位移动画 */
    filter: brightness(1.03);
    /* 轻微亮度变化 */
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    /* 微妙阴影 */
}

/* ===== 职位详情内容区域 ===== */

/* 职位详情内容容器 */
.job-detail-content {
    display: flex;
    /* flex布局 */
    flex-direction: column;
    /* 垂直排列 */
    gap: 1.8rem;
    /* 章节间距1.8rem */
}




/* ===== 职位详情相关样式 ===== */

/* 详情章节 */
.detail-section {
    margin-bottom: -0.5rem;
}

/* 详情标题 */
.detail-title {
    font-size: 1.1rem;
    /* 字体大小1rem */
    font-weight: 600;
    /* 字体粗细：半粗体 */
    color: var(--text-primary);
    /* 主文字颜色 */
    margin: 0 0 0.8rem 0;
    /* 底部外边距0.8rem */
    display: flex;
    /* flex布局 */
    align-items: center;
    /* 垂直居中 */
    gap: 0.5rem;
    /* 子元素间距0.5rem */
}

/* 详情标题中的图标 */
.detail-title i {
    color: var(--accent);
    font-size: 1rem;
    /* 图标大小1rem */
}

/* 无详情内容 */
.detail-content {
    color: var(--text-secondary);
    /* 次要文字颜色 */
    line-height: 1.7;
    /* 行高1.7，提高可读性 */
    font-size: 1.1rem;
    /* 字体大小0.92rem */
    margin: 0;
    /* 清除默认外边距 */
}

/* 详情列表 */
.detail-list {
    list-style: none;
    /* 清除默认列表样式 */
    padding: 0;
    /* 清除默认内边距 */
    margin: 0;
    /* 清除默认外边距 */
    display: flex;
    /* flex布局 */
    flex-direction: column;
    /* 垂直排列 */
    gap: 0.5rem;
    /* 列表项间距0.5rem */
}

/* 列表项 */
.detail-list li {
    color: var(--text-secondary);
    /* 次要文字颜色 */
    line-height: 1.6;
    /* 行高1.6，提高可读性 */
    font-size: 1.1rem;
    /* 字体大小0.9rem */
    position: relative;
    /* 相对定位，用于伪元素 */
    padding-left: 1.2rem;
    /* 左内边距1.2rem，为项目符号留空间 */
}

.detail-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}


/* 职位详情标签容器 */
.job-detail-meta {
    margin: 1rem 0;
    /* 上下外边距1rem */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

/* 职位来源标识 — 与详情标签同款尺寸，accent 色 */
.job-detail-meta .job-tag.source {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    opacity: 1;
}

.job-detail-meta .job-tag.source i {
    font-size: 0.75rem;
}

.job-detail-meta .job-tag.source:hover {
    background: color-mix(in srgb, var(--accent) 25%, transparent);
}

body.light-theme .job-detail-meta .job-tag.source {
    background: color-mix(in srgb, var(--accent) 10%, #ffffff 90%);
    border-color: color-mix(in srgb, var(--accent) 30%, #e5e5e5 70%);
    color: var(--accent);
}

/* 职位详情标签 */
.job-detail-tags {
    display: flex;
    /* flex布局 */
    gap: 0.5rem;
    /* 标签间距0.5rem */
    flex-wrap: wrap;
    /* 允许换行 */
}

/* 适配大尺寸的职位标签 */
.job-detail-tags .job-tag {
    font-size: 0.9rem;
    /* 字体大小0.8rem */
    padding: 0.3rem 0.6rem;
    /* 内边距：上下0.3rem，左右0.6rem */
}

/* 适用于大尺寸显示的时间标签 */
.job-tag.time {
    background: rgba(156, 163, 175, 0.1);
    /* 灰色半透明背景 */
    color: var(--text-secondary);
    /* 次要文字颜色 */
    border-color: rgba(156, 163, 175, 0.3);
    /* 灰色边框 */
}

/* 现场工作标签 */
.job-tag.on-site {
    background: rgba(59, 130, 246, 0.1);
    /* 蓝色半透明背景 */
    color: #3b82f6;
    /* 蓝色文字 */
    border-color: rgba(59, 130, 246, 0.3);
    /* 蓝色边框 */
}


/* 申请按钮样式 */
.apply-btn {
    background: var(--accent);
    /* 纯色背景 */
    color: #f8fafc;
    /* 高对比度文字 */
    padding: 0.3rem 0.7rem;
    /* 内边距：上下0.3rem，左右0.7rem */
    border-radius: 5px;
    /* 圆角5px */
    font-size: 0.75rem;
    /* 字体大小0.75rem */
    font-weight: 500;
    /* 字体粗细：中等 */
    cursor: pointer;
    /* 鼠标指针样式 */
    transition: all 0.3s ease;
    /* 所有属性平滑过渡 */
    border: 1px solid color-mix(in srgb, var(--accent) 72%, #000000 28%);
    /* 精细边框 */
}

/* 申请按钮悬停效果 */
.apply-btn:hover {
    transform: none;
    /* 无位移动画 */
    filter: brightness(1.03);
    /* 轻微亮度变化 */
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
    /* 微妙阴影 */
}

/* ===== 公司信息卡片样式 ===== */

/* 公司信息卡片容器 */
.company-card {
    background: var(--card-bg);
    /* 卡片背景色 */
    border: 1px solid var(--border);
    /* 1px边框 */
    border-radius: 12px;
    /* 圆角12px */
    padding: 1rem 1.25rem 1.25rem;
    /* 内边距1.5rem */
    margin-top: -4rem;
    /* 顶部外边距1rem，与上面内容适当分开 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* 轻微阴影效果 */
    transition: all 0.3s ease;
    /* 平滑过渡效果 */
}

/* 公司卡片悬停效果 */
.company-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    /* 悬停时边框变为强调色 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* 悬停时阴影加深 */
}

/* 公司卡片头部（上半部分） */
.company-card-header {
    display: flex;
    /* flex布局 */
    flex-direction: row;
    /* 水平排列 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 - 整体居中展示 */
    text-align: center;
    /* 文字居中 */
    padding-bottom: 0.7rem;
    /* 底部内边距1rem */
    border-bottom: 1px solid var(--border);
    /* 底部分隔线 */
    margin-bottom: 0.7rem;
    /* 底部外边距1rem */
    gap: 0.6rem;
    /* Logo和名称之间的间距1rem */
}

/* 小尺寸公司Logo */
.company-card .company-logo-large {
    width: 40px;
    /* 宽度50px */
    height: 40px;
    /* 高度50px */
    border-radius: 8px;
    /* 圆角8px */
    background: var(--accent);
    /* 纯色背景 */
    display: flex;
    /* flex布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    font-weight: bold;
    /* 字体粗体 */
    color: white;
    /* 白色文字 */
    font-size: 1.2rem;
    /* 字体大小1.2rem */
    margin: 0;
    /* 清除外边距 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    /* Logo阴影效果 */
    flex-shrink: 0;
    /* 不缩放，保持固定尺寸 */
}

/* 公司名称和链接容器 */
.company-info-wrapper {
    display: flex;
    /* flex布局 */
    align-items: center;
    /* 垂直居中 */
    gap: 0.5rem;
    /* 名称和图标之间的间距0.5rem */
}

/* 公司名称 */
.company-name {
    font-size: 1.5rem;
    /* 字体大小1.1rem，与Logo适配 */
    font-weight: 600;
    /* 字体粗细：半粗体 */
    color: var(--text-primary);
    /* 主文字颜色 */
    margin: 0;
    /* 清除默认外边距 */
    line-height: 1.2;
    /* 行高1.2 */
    white-space: nowrap;
    /* 不换行 */
}

/* 官网跳转链接图标 */
.company-website-link {
    width: 20px;
    height: 20px;
    background: color-mix(in srgb, var(--accent) 10%, var(--card-bg) 90%);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.6rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* 官网链接悬停效果 */
.company-website-link:hover {
    background: var(--accent);
    color: #ffffff;
    transform: none;
}

/* 公司描述文本 */
.company-description {
    color: var(--text-secondary);
    /* 次要文字颜色 */
    line-height: 1.6;
    /* 行高1.6，提高可读性 */
    font-size: 1rem;
    /* 字体大小0.9rem */
    margin: 0;
    /* 清除默认外边距 */
    text-align: left;
    /* 文字左对齐 */
    text-indent: 2em;
}

/* ===== 职位操作按钮组样式 ===== */

/* 操作按钮组容器 */
.job-action-buttons {
    display: flex;
    /* flex布局 */
    gap: 0.8rem;
    /* 按钮间距0.8rem */
    margin: 1rem 0 2rem;
    /* 上下外边距2rem */
    padding: 1rem 0 1.5rem;
    /* 上下内边距1.5rem */
    border-top: 1px solid var(--border);
    /* 顶部分隔线 */
    flex-wrap: wrap;
    /* 允许换行 */
    align-items: center;
    /* 垂直居中 */
}

/* 通用操作按钮样式 */
.job-action-btn {
    padding: 0.7rem 1.2rem;
    /* 内边距：上下0.7rem，左右1.2rem */
    border-radius: 8px;
    /* 圆角8px */
    font-size: 0.9rem;
    /* 字体大小0.9rem */
    font-weight: 500;
    /* 字体粗细：中等 */
    cursor: pointer;
    /* 鼠标指针样式 */
    transition: all 0.3s ease;
    /* 所有属性平滑过渡 */
    border: 1px solid transparent;
    /* 透明边框 */
    display: inline-flex;
    /* 内联flex布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    gap: 0.5rem;
    /* 内部元素间距0.5rem */
    text-decoration: none;
    /* 无下划线 */
    white-space: nowrap;
    /* 不换行 */
    min-width: 120px;
    /* 最小宽度120px */
}

/* 主要申请按钮样式 */
.job-action-btn.apply-btn.primary {
    background: var(--accent);
    color: #f8fafc;
    /* 深色文字 */
    border-color: var(--accent);
    /* 边框颜色 */
}

.job-action-btn.apply-btn.primary:hover {
    transform: none;
    filter: brightness(1.03);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

/* Telegram联系按钮样式 */
.telegram-btn {
    background: rgba(0, 136, 204, 0.1);
    /* Telegram蓝色半透明背景 */
    color: #0088cc;
    /* Telegram蓝色文字 */
    border-color: rgba(0, 136, 204, 0.3);
    /* Telegram蓝色边框 */
}

.telegram-btn:hover {
    background: #0088cc;
    /* 悬停时背景变为Telegram蓝色 */
    color: white;
    /* 悬停时文字变为白色 */
    transform: none;
    /* 无位移动画 */
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    /* 微妙阴影 */
}

/* 更多职位按钮样式 */
.more-jobs-btn {
    background: rgba(156, 163, 175, 0.1);
    /* 灰色半透明背景 */
    color: var(--text-secondary);
    /* 次要文字颜色 */
    border-color: rgba(156, 163, 175, 0.3);
    /* 灰色边框 */
}

.more-jobs-btn:hover {
    background: rgba(156, 163, 175, 0.2);
    /* 悬停时背景加深 */
    color: var(--text-primary);
    /* 悬停时文字变为主色 */
    border-color: rgba(156, 163, 175, 0.5);
    /* 悬停时边框加深 */
    transform: none;
    /* 无位移动画 */
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    /* 微妙阴影 */
}


/* ===== 暗色主题适配 ===== */
body.dark-theme .jobs-page .job-tag {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.38);
    color: #e4e4e7;
}

body.dark-theme .jobs-page .job-tag.salary,
body.dark-theme .jobs-page .job-tag.on-site {
    background: rgba(20, 184, 166, 0.22);
    border-color: rgba(45, 212, 191, 0.56);
    color: #99f6e4;
}

body.dark-theme .jobs-page .company-item-count {
    background: rgba(20, 184, 166, 0.22);
    border-color: rgba(45, 212, 191, 0.56);
    color: #99f6e4;
}
