/* CSS变量定义，用于统一主题 */
:root {
    --yale-blue: #00356b;
    --yale-dark-blue: #00274d;
    --yale-light-blue: #286dc0;
    --accent-gold: #ffd700;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-color: #222222;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--yale-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--yale-dark-blue);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-gold);
    color: var(--text-color);
}

.btn-accent:hover {
    background-color: #e6c200;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

/* 无障碍工具栏样式 */
.accessibility-toolbar {
    background-color: var(--yale-blue);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.accessibility-toolbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.accessibility-controls {
    display: flex;
    gap: 15px;
}

.accessibility-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.accessibility-btn:hover {
    color: var(--accent-gold);
}

/* 导航栏样式 */
header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yale-blue);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

.nav-link.active {
    color: var(--yale-blue);
}

.nav-link.active:after {
    width: 100%;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover:after {
    width: 100%;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--yale-blue);
}

/* About英雄区域样式 */
.about-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 53, 107, 0.7), rgba(0, 53, 107, 0.5)), url('images/6.png')，center/cover no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* 使命声明样式 */
.mission-statement {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.mission-statement p {
    font-size: 1.3rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 历史时间线样式 */
.history-timeline {
    padding: 60px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--yale-blue);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-content:after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content:after {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content:after {
    left: -10px;
}

.timeline-year {
    font-weight: bold;
    color: var(--yale-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 教职员工样式 */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.faculty-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-5px);
}

.faculty-image {
    height: 250px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.faculty-info {
    padding: 20px;
}

.faculty-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.faculty-title {
    color: var(--yale-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

/* 特色部分样式 */
.features {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--yale-blue);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* 页脚样式 */
footer {
    background-color: var(--yale-blue);
    color: var(--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.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-gold);
    color: var(--text-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .timeline:before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-content:after {
        left: -10px !important;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* 高对比度模式 */
.high-contrast {
    --yale-blue: #000000;
    --yale-dark-blue: #000000;
    --light-gray: #f0f0f0;
    --accent-gold: #ffff00;
    --text-color: #000000;
    --dark-gray: #333333;
    --white: #ffffff;
    --medium-gray: #000000;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 大字体模式 */
.large-text {
    font-size: 120%;
}

.large-text .section-title {
    font-size: 3rem;
}

.large-text .hero-title {
    font-size: 4.2rem;
}
