/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* 头部样式 */
header {
    background-color: #003366;
    color: white;
    padding: 1rem 0;
}

.logo {
    text-align: center;
    padding: 1rem;
}

nav {
    background-color: #004080;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

nav ul li a:hover {
    color: #ffd700;
}

/* Banner样式 */
.banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #003366;
    text-align: center;
    margin-bottom: 2rem;
}

/* 特色栏目样式 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* 新闻列表样式 */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.news-content {
    padding: 1rem;
}

/* 关于页面样式 */
.about-page .intro-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.intro-content img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.text-content {
    flex: 1;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.facility-item {
    text-align: center;
}

.facility-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* 页脚样式 */
footer {
    background-color: #003366;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* 教学科研页面样式 */
.research-page {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
    min-height: calc(100vh - 200px);
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: white;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.side-nav h3 {
    color: #003366;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #003366;
    font-size: 1.2rem;
}

.side-nav h3:first-child {
    margin-top: 0;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.side-nav ul:last-child {
    margin-bottom: 0;
}

.side-nav ul li {
    margin: 0.8rem 0;
}

.side-nav ul li a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.side-nav ul li a:hover {
    background-color: #f0f5ff;
    color: #003366;
    padding-left: 1.5rem;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.content-section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: #003366;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #003366;
    text-align: left;
    font-size: 1.8rem;
}

.content-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.content-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: #003366;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-content p {
    color: #666;
    line-height: 1.8;
    margin: 0;
    font-size: 1.1rem;
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 招生就业页面样式 */
.admission-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-section {
    position: relative;
    height: 500px;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #003366;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.timeline-section {
    margin: 4rem 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #003366;
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.timeline-date {
    width: 100px;
    text-align: right;
    padding-right: 2rem;
    font-weight: bold;
    color: #003366;
}

.timeline-content {
    width: 50%;
    padding-left: 2rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #003366;
    border-radius: 50%;
}

.stats-section {
    margin: 4rem 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #003366;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    color: #666;
}

.career-support {
    margin: 4rem 0;
}

.support-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.support-content img {
    width: 400px;
    height: 300px;
    object-fit: cover;
}

.support-content .text-content {
    padding: 2rem;
}

.support-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.support-content ul li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.support-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #003366;
}

/* 校园生活页面样式 */
.campus-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.campus-intro {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(rgba(0,51,102,0.05), rgba(0,51,102,0.1));
    border-radius: 12px;
    margin: 2rem 0;
}

.campus-intro h1 {
    font-size: 3rem;
    color: #003366;
    margin-bottom: 1rem;
}

.campus-intro p {
    font-size: 1.5rem;
    color: #666;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.activity-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.card-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.life-category {
    margin: 4rem 0;
}

.life-category h2 {
    color: #003366;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.life-category h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #003366;
}

.life-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.life-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.image-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.image-wall img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-wall img:hover {
    transform: scale(1.05);
} 