/* CSS重置和兼容性 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-display: swap;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, a {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* Flexbox兼容性 */
.d-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

/* Grid兼容性 */
.d-grid {
    display: -webkit-grid;
    display: -ms-grid;
    display: grid;
}

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

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

.header .container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* 院校详情页横幅 */
.college-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.college-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.college-type {
    font-size: 16px;
    opacity: 0.9;
}

/* 信息卡片 */
.info-cards {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.info-card .label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.info-card .value {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

/* 内容区块 */
.content-section {
    background: white;
    margin: 20px 0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.content-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.content-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.content-section ul {
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 10px;
    color: #555;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background: #f5f5f5;
}

/* 页脚样式 */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 20px 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 40px;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.footer-section {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 250px;
}

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

.footer-section p {
    color: #cbd5e0;
    line-height: 1.8;
    font-size: 14px;
}

.footer-section a {
    display: block;
    color: #cbd5e0;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .info-cards {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .info-card {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .header .container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        gap: 10px;
    }
    
    .nav a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .college-banner h1 {
        font-size: 28px;
    }
    
    .college-type {
        font-size: 14px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    /* 表格水平滚动 */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    table {
        min-width: 600px;
    }
    
    .footer-content {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    /* 触摸设备优化 */
    .nav a,
    .info-card,
    button,
    a {
        min-height: 44px;
        display: -webkit-inline-box;
        display: -webkit-inline-flex;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .college-banner h1 {
        font-size: 24px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .content-section h2 {
        font-size: 18px;
    }
    
    .content-section {
        padding: 15px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .nav a,
    .info-card,
    button {
        min-height: 44px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
