:root {
    --primary: #0066cc;
    --secondary: #00aaff;
    --accent: #ff6b6b;
    --success: #34c759;
    --dark: #1e1e2d;
    --light: #f8f9fa;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
        

/* 导航栏样式 */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;            
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    height: 40px;
}
.beta-word{
    font-size: 1.0rem;
    padding: 2px 4px;
    border-radius: 4px;
    background: #ff6b6b;
    color: white;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-item:hover, .nav-item.active {
    font-weight: 600;
    color: var(--primary);
}

.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 150px;
    margin: 5px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);

}

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background-color: #f5f5f5;
    font-size: 1.1rem;
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-login {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-login:hover {
    background: var(--primary);
    color: white;
}

.btn-register ,.btn-jobpost{
    background: var(--primary);
    color: white;
}

.btn-register:hover ,.btn-jobpost:hover{
    background: #0055aa;
    transform: translateY(-2px);
}

.btn-login-wrapper {
    position: relative;
    display: inline-flex;
}

.btn-login-wrapper .login-tip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: #fff3cd;
    padding: 8px 15px;
    border-radius: 8px;
    color: #856404;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
    white-space: nowrap;
    font-size: 0.9em;
    line-height: 1.5;
}

.btn-login-wrapper .login-tip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff3cd transparent;
}


/* 英雄区域 */
.hero {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    height: 280px; /* 固定高度，防止页面抖动 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    background: white;
    border-radius: 50px;
    padding: 5px;
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0055aa;
}

/* 轮播样式 */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 200px; /* 固定高度，防止页面抖动 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 频道区域 */
.channels {
    padding: 30px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.channel-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.channel-icon {
    height: 120px;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.channel-content {
    padding: 25px;
}

.channel-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.channel-desc {
    color: var(--text-light);
    margin-bottom: 20px;
}

.channel-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 特色职位区域 */
.featured-jobs {
    background: var(--light);
    padding: 30px 0;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.job-card_s {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.job-card_s:hover {
    border: 1px solid #3594fa;
    background-color: #f5f9f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 186, 154, 0.15);
}         
.job-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.job-card:hover {
    border: 1px solid #2CBA9A;
    background-color: #f5f9f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 186, 154, 0.15);
}       
.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}
    .job-title a {
    color: var(--dark);
    text-decoration: none;
}       
.job-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.job-tag {
    background: #e6f2ff;
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

.job-apply {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 数据统计区域 */
.stats {
    padding: 80px 0;
    text-align: center;
}

/*- 三行跑马灯 */
.featured-universitys {
    padding: 30px 0;
    overflow: hidden;
}

.universitys-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.universitys-marquee-container::before,
.universitys-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.universitys-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(245, 247, 250, 0.9), transparent);
}

.universitys-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(245, 247, 250, 0.9), transparent);
}

.universitys-marquee-row {
    display: flex;
    overflow: hidden;
    padding: 15px 0;
    position: relative;
}

.universitys-marquee-track {
    display: flex;
    gap: 30px;
    animation: marquee 60s linear infinite;
}

.universitys-marquee-row.row-1 .universitys-marquee-track {
    animation-duration: 80s;
}

.universitys-marquee-row.row-2 .universitys-marquee-track {
    animation-duration: 90s;
    animation-direction: reverse;
}

.universitys-marquee-row.row-3 .universitys-marquee-track {
    animation-duration: 100s;
}

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

.universitys-card {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.universitys-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.universitys-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.universitys-card img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.universitys-card:hover img {
    filter: grayscale(0%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* 底部区域 */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}
.copyright a{
    color: #999;
    text-decoration: none;
}
.copyright-links a:hover {
    background: var(--primary);
}     

.footer-qrcode img {
    background-color: #f0f0f0;
    border-radius: 15px;
    padding: 0px;
    width: 140px;
    height: 140px;
}

.footer-qrcode a {
    color: #4dabf7;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-qrcode a:hover {
    color: #74c0fc;
    text-decoration: underline;
}

.h-2 {
    height: .5rem
}
.h-2\.5 {
    height: .625rem
}
.h-3 {
    height: .75rem
}
.h-3\.5 {
    height: .875rem
}
.w-2 {
    width: .5rem
}
.w-2\.5 {
    width: .625rem
}
.w-2\/3 {
    width: 66.666667%
}
.w-3 {
    width: .75rem
}
.w-3\.5 {
    width: .875rem
}
.w-3\/4 {
    width: 75%
}

.mr-2 {
    margin-right: .5rem
}
.mr-2\.5 {
    margin-right: .625rem
}
.mr-3 {
    margin-right: .75rem
}
.mr-3\.5 {
    margin-right: .875rem
}
.mr-4 {
    margin-right: 1rem
}


/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .channel-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input {
        border-radius: 12px 12px 0 0;
    }
    
    .search-btn {
        border-radius: 0 0 12px 12px;
    }
}