/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
}

.logo .slogan {
    font-size: 12px;
    opacity: 0.9;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    gap: 15px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
}

.btn-register {
    background: white;
    color: #667eea;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 100px;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.hero-search {
    max-width: 700px;
    margin: 0 auto 50px;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-search input {
    flex: 1;
    padding: 20px 30px;
    border: none;
    font-size: 16px;
    outline: none;
}

.hero-search button {
    padding: 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search button:hover {
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 快捷入口 */
.quick-entry {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.entry-item {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.entry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.entry-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.entry-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.entry-item p {
    font-size: 14px;
    color: #666;
}

/* 通用Section样式 */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.more-link {
    color: #667eea;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.more-link:hover {
    color: #764ba2;
}

/* 院校卡片 */
.colleges-section {
    background: white;
}

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

.college-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.college-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102,126,234,0.2);
}

.college-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.college-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
}

.college-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.college-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.college-type {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.college-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #e8eaf6;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 专业卡片 */
.major-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.major-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.major-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.major-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.major-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

.major-category {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 12px;
}

.major-info {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.major-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* 资讯卡片 */
.news-section {
    background: white;
}

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

.news-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.news-image {
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 平台优势 */
.advantages-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.advantages-section .section-header h2 {
    color: white;
}

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

.advantage-item {
    text-align: center;
    padding: 30px;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.advantage-item p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .entry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .college-grid,
    .major-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-search {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .hero-search input {
        padding: 15px 20px;
    }
    
    .hero-search button {
        padding: 15px 20px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .college-grid,
    .major-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}