/* public/static/home/css/home.css */

/* 页面整体背景 */
.page-wrapper {
    background: var(--bg-light);
    min-height: 100vh;
}

/* 省份导航 */
.provinces-nav {
    padding: 40px 0;
}

.provinces-nav-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.provinces-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.provinces-nav-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.provinces-nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    max-width: 100%;
}

.province-nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.province-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.province-nav-item:hover {
    color: var(--primary-color);
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.province-nav-item:hover::before {
    left: 100%;
}

/* 热门招聘卡片 */
.hot-jobs-card {
    padding: 0;
}

.card-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* 上方滚动部分 */
.scroll-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.scroll-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.scroll-title i {
    color: #ff6b6b;
    font-size: 18px;
}

.scroll-list {
    display: flex;
    gap: 20px;
    overflow: hidden;
    flex: 1;
}

.scroll-container {
    flex: 1;
    overflow: hidden;
}

.scroll-container .bd {
    overflow: hidden;
}

.scroll-container .bd ul {
    display: flex;
    gap: 30px;
    animation: scroll-left 20s linear infinite;
    white-space: nowrap;
}

.scroll-container .bd li {
    flex-shrink: 0;
}

.scroll-container .bd li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.scroll-container .bd li a:hover {
    color: var(--primary-color);
}

.scroll-container .bd li a i {
    color: #ff6b6b;
    font-size: 14px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 下方三列部分 */
.lists-section {
    padding: 20px;
}

.lists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.list-item {
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
}

.list-item:last-child {
    border-right: none;
    padding-right: 0;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.list-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.list-item ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-item li {
    line-height: 1.4;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.list-item li:last-child {
    border-bottom: none;
}

.list-item li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.list-item li a:hover {
    color: var(--primary-color);
}

.hot-tag {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
    font-weight: 500;
}

.job-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* 英雄区域 */
.hero-section {
    padding: 40px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-content::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-left {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-right {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* 快速入口 */
.quick-access {
    padding: 40px 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

.quick-item {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
}

.quick-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.quick-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.quick-icon i {
    font-size: 24px;
    color: white;
}

.quick-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.quick-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 省份区域 */
.provinces-section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: var(--max-width);
    margin: 0 auto 40px;
    padding: 0 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.provinces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

.province-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.province-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.province-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.province-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.province-title i {
    color: var(--primary-color);
    font-size: 14px;
}

.home-btn {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.home-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.home-btn i {
    font-size: 12px;
    color: white;
}

.province-articles {
    flex: 1;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    transition: all 0.3s ease;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background: rgba(102, 126, 234, 0.02);
    padding-left: 5px;
    border-radius: 4px;
}

.article-title {
    flex: 1;
    margin: 0;
    line-height: 1.4;
    min-width: 0;
}

.article-title a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-date {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .provinces-nav-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .province-nav-item {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .provinces-grid {
        grid-template-columns: 1fr;
    }
    
    .lists-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .list-item {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 20px;
    }
    
    .list-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .provinces-nav-list {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .province-nav-item {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .provinces-nav-content {
        padding: 20px;
    }
    
    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .article-title {
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .provinces-nav-list {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 6px;
    }
    
    .province-nav-item {
        padding: 5px 6px;
        font-size: 11px;
    }
    
    .scroll-container .bd ul {
        animation-duration: 20s;
        gap: 20px;
    }
}
/* 热门推荐板块样式 - 完整版 */
.hot-recommendations {
    padding: 40px 0;
}

.recommendations-layout {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.5fr;
    gap: 10px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

/* 左侧导航菜单 */
.recommendations-nav {
    background: white;
    border-radius: 10px;
    padding: 25px 20px;
    height: 485px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.recommendations-nav .nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    text-align: center;
}

.recommendations-nav .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.recommendations-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.recommendations-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.recommendations-nav .nav-link:hover::before,
.recommendations-nav .nav-link.active::before {
    left: 100%;
}

.recommendations-nav .nav-link:hover,
.recommendations-nav .nav-link.active {
    color: var(--primary-color);
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.recommendations-nav .nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.recommendations-nav .nav-link span {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 中间头条推荐区域 */
.recommendations-main {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 485px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.recommendations-main .recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.recommendations-main .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.recommendations-main .more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
}

.recommendations-main .more-link:hover {
    color: var(--secondary-color);
}

.recommendations-main .more-link i {
    font-size: 10px;
}

/* 头条内容 */
.headlines-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    padding-right: 5px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.headline-item {
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.headline-item:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.1);
}

.headline-title {
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.headline-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.headline-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
    flex: 1;
}

.headline-title a:hover {
    color: var(--primary-color);
}

.headline-desc {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 右侧信息列表 */
.recommendations-side {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 485px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.recommendations-side .recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.recommendations-side .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.recommendations-side .more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
}

.recommendations-side .more-link:hover {
    color: var(--secondary-color);
}

.recommendations-side .more-link i {
    font-size: 10px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    padding-right: 5px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-city {
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .recommendations-layout {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .recommendations-nav {
        grid-column: 1 / -1;
        order: -1;
        height: auto;
    }
    
    .recommendations-main,
    .recommendations-side {
        height: auto;
    }
}

@media (max-width: 768px) {
    .recommendations-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .recommendations-nav {
        order: -1;
        height: auto;
    }
    
    .recommendations-nav .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .recommendations-nav .nav-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .news-city {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .recommendations-main,
    .recommendations-side {
        padding: 15px;
    }
    
    .recommendations-nav .nav-link {
        min-width: 100px;
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .recommendations-main .section-title,
    .recommendations-side .section-title {
        font-size: 15px;
    }
    
    .headline-title a {
        font-size: 14px;
    }
    
    .headline-desc {
        font-size: 12px;
    }
    
    .news-title a {
        font-size: 12px;
    }
}