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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fa 100%);
    min-height: 100vh;
    color: #333;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo-text h1 {
    font-size: 20px;
    color: #667eea;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #667eea;
}

/* 主要内容区域 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 搜索和筛选区域 */
.search-filter-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.08);
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 15px;
    background: #fafbff;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
}

.search-box button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #7c83f0 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.search-box button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6b74e8 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.province-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.province-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fafbff 100%);
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.province-tag:hover,
.province-tag.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.15);
}

.province-tag .count {
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: #667eea;
}

.province-tag:hover .count,
.province-tag.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 学校列表 */
.schools-list {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.table-header {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #fafbff 100%);
    color: #666;
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: 1px solid #e8e8e8;
}

.schools-table {
    display: flex;
    flex-direction: column;
}

.school-item {
    display: flex;
    padding: 18px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    align-items: center;
}

.school-item:hover {
    background: linear-gradient(90deg, #fafbff 0%, #f5f7fa 100%);
}

.table-col {
    padding: 0 15px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.col-name {
    flex: 0 0 20%;
}

.col-province {
    flex: 0 0 15%;
}

.col-desc {
    flex: 0 0 50%;
}

.col-action {
    flex: 0 0 15%;
    text-align: center;
}

.cell-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.province-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    color: #666;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fafbff 100%);
    color: #667eea;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
}

.school-item:hover .download-icon {
    background: linear-gradient(135deg, #667eea 0%, #7c83f0 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

/* 人工服务板块 */
.service-section {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    border-left: 4px solid #ff9800;
    box-shadow: 0 2px 12px rgba(255, 152, 0, 0.15);
}

.service-section .service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-section .service-icon i {
    color: white;
    font-size: 24px;
}

.service-section .service-content {
    flex: 1;
}

.service-section .service-content h4 {
    color: #e65100;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-section .service-content p {
    color: #5d4037;
    line-height: 1.6;
    margin-bottom: 10px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.service-features li {
    color: #5d4037;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-features li i {
    color: #ff9800;
}

.service-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.service-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

@media (max-width: 768px) {
    .service-section {
        flex-direction: column;
        text-align: center;
    }

    .service-features {
        justify-content: center;
    }
}

/* 结果信息 */
.results-info {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.08);
    flex-wrap: wrap;
}

/* 分页样式 */
.pagination {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.08);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #ffffff;
    color: #666;
    text-decoration: none;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.page-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #7c83f0 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.2);
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #7c83f0 100%);
    color: white;
    border-color: #667eea;
}

.page-btn i {
    font-size: 12px;
}

.page-ellipsis {
    padding: 8px 5px;
    color: #999;
}

.filter-info {
    color: #666;
    font-size: 14px;
}

.clear-filter {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-left: auto;
}

.clear-filter:hover {
    text-decoration: underline;
}

/* 空状态 */
.empty-state {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.empty-state i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    margin-top: 40px;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    color: #666;
}

.footer-content p {
    margin: 8px 0;
}

.footer-content a {
    color: #667eea;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    nav ul {
        gap: 15px;
        justify-content: center;
    }

    .main-content {
        padding: 15px;
    }

    .search-filter-section {
        padding: 20px 15px;
    }

    .search-box {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .search-box input {
        flex: 1;
        width: auto;
    }

    .search-box button {
        flex-shrink: 0;
        width: auto;
        padding: 12px 20px;
    }

    .province-tags {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .province-tag {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* 手机端保持列表形式，调整列宽 */
    .table-header {
        display: flex;
        padding: 15px 20px;
        font-size: 13px;
    }

    .school-item {
        padding: 15px 20px;
        font-size: 13px;
    }

    .table-col {
        padding: 0 10px;
    }

    .col-name {
        flex: 0 0 25%;
        font-weight: 600;
        font-size: 14px;
    }

    .col-province {
        flex: 0 0 18%;
    }

    .col-desc {
        flex: 0 0 42%;
    }

    .col-action {
        flex: 0 0 15%;
    }

    .cell-text {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 12px;
        line-height: 1.4;
    }

    .province-badge {
        padding: 3px 8px;
        font-size: 11px;
    }

    .download-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .results-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 13px;
    }

    .filter-info {
        display: block;
    }

    .clear-filter {
        display: inline-block;
        margin-top: 5px;
    }

    .pagination {
        flex-wrap: wrap;
        padding: 15px;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .page-btn i {
        font-size: 10px;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-state i {
        font-size: 48px;
    }

    .empty-state h3 {
        font-size: 18px;
    }

    .empty-state p {
        font-size: 14px;
    }

    footer {
        padding: 20px 15px;
    }

    .footer-content p {
        font-size: 13px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header-container {
        padding: 10px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    nav ul {
        gap: 10px;
    }

    nav ul li a {
        font-size: 13px;
        padding: 5px 10px;
    }

    .main-content {
        padding: 10px;
    }

    .search-filter-section {
        padding: 15px 10px;
    }

    .province-tag {
        padding: 5px 10px;
        font-size: 12px;
    }

    .table-header {
        padding: 12px 15px;
        font-size: 12px;
    }

    .school-item {
        padding: 12px 15px;
        font-size: 12px;
    }

    .col-name {
        flex: 0 0 28%;
        font-size: 13px;
    }

    .col-province {
        flex: 0 0 20%;
    }

    .col-desc {
        flex: 0 0 37%;
    }

    .col-action {
        flex: 0 0 15%;
    }

    .cell-text {
        font-size: 11px;
    }

    .province-badge {
        padding: 2px 6px;
        font-size: 10px;
    }

    .download-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .footer-content p {
        font-size: 12px;
    }
}
