/* 牛国英津大学官网样式 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #002147;
    --secondary: #B9975B;
    --background: #F8F6F2;
    --text: #1A1A1A;
    --border: #D8D8D8;
    --white: #FFFFFF;
    --cream: #F7F4ED;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 33, 71, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-top {
    display: flex;
    justify-content: flex-end;
    padding: 8px 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-top a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    margin-left: 30px;
    transition: color 0.3s;
}

.navbar-top a:hover {
    color: var(--secondary);
}

.navbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.navbar-logo img {
    height: 50px;
    margin-right: 15px;
}

.navbar-logo-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.navbar-logo-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-menu li {
    margin-left: 35px;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.navbar-menu a:hover {
    color: var(--secondary);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* Hero区域 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 33, 71, 0.6), rgba(0, 33, 71, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
}

.hero-crest {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-crest span {
    font-size: 48px;
    color: var(--primary);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s;
}

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

/* 通用区块样式 */
.section {
    padding: 80px 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 0 auto 20px;
}

/* 校长寄语 */
.chancellor {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    align-items: center;
}

.chancellor-photo {
    flex: 1;
}

.chancellor-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chancellor-message {
    flex: 1.5;
}

.chancellor-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.chancellor-message h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 30px;
    font-weight: 400;
}

.chancellor-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

/* 世界排名 */
.rankings {
    background: var(--primary);
    color: white;
}

.rankings .section-title h2,
.rankings .section-title p {
    color: white;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.ranking-item {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}

.ranking-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.ranking-item .num {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.ranking-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 学院介绍 */
.colleges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.college-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.college-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.college-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.college-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.college-card:hover .college-image img {
    opacity: 1;
}

.college-info {
    padding: 25px;
    text-align: center;
}

.college-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.college-info p {
    font-size: 0.9rem;
    color: #666;
}

/* 科研成果 */
.research {
    background: #f0f0f0;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.research-item {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.research-item:hover {
    transform: translateY(-5px);
    background: var(--primary);
}

.research-item:hover h4,
.research-item:hover p {
    color: white;
}

.research-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.research-item:hover img {
    opacity: 1;
}

.research-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.research-item p {
    font-size: 0.85rem;
    color: #666;
}

/* 校园风光 */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.campus-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.campus-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.campus-item:hover img {
    transform: scale(1.1);
}

.campus-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 33, 71, 0.9), transparent);
    padding: 25px 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.campus-item:hover .campus-overlay {
    opacity: 1;
}

.campus-overlay h4 {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 1.2rem;
}

/* 新闻中心 */
.news-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

.news-main {
    flex: 2;
}

.news-main article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-main-image {
    height: 350px;
}

.news-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-main-content {
    padding: 30px;
}

.news-main-content span {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.news-main-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 15px 0;
}

.news-main-content p {
    color: #666;
    line-height: 1.7;
}

.news-list {
    flex: 1;
}

.news-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateX(10px);
}

.news-item span {
    color: var(--secondary);
    font-size: 0.85rem;
}

.news-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--primary);
    margin: 10px 0;
}

/* 招生入口 */
.admissions {
    background: var(--primary);
}

.admissions .section-title h2,
.admissions .section-title p {
    color: white;
}

.admissions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.admission-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s;
}

.admission-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary);
}

.admission-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.admission-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 8px;
}

.admission-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: #1A1A1A;
    padding: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    flex: 1;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links div {
    display: flex;
    flex-direction: column;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .rankings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .colleges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .research-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .campus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-top {
        display: none;
    }
    
    .navbar-main {
        padding: 10px 20px;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 50px 20px;
    }
    
    .chancellor {
        flex-direction: column;
        gap: 30px;
    }
    
    .rankings-grid,
    .colleges-grid,
    .research-grid,
    .campus-grid,
    .admissions-grid {
        grid-template-columns: 1fr;
    }
    
    .news-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}
