/* 基础样式重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    background-color: #f5f5f5;
    color: #333;
    font-size: 16px;
}

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

/* 头部样式 */
.header-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../data/banner.jpg') center/cover;
    padding: 40px 20px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-banner h1 {
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* 搜索表单样式 */
.search-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input-group input {
    flex: 1;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-button {
    height: 36px;
    padding: 0 20px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    min-width: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #1976d2;
}

.search-filters {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
}

.search-filters::-webkit-scrollbar {
    display: none;
}

.search-filters select {
    flex: 1;
    min-width: 80px;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
}

/* 分类按钮样式 */
.category-buttons {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    overflow-x: auto;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
}

.category-buttons::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 8px 16px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    flex: 0 0 auto;
    min-width: fit-content;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-btn.active {
    background: #1976d2;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* 学校列表样式 */
.school-item {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.school-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.school-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 12px;
}

.school-item h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 6px 0;
}

.paper-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 试卷列表样式 */
.papers-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.paper-list {
    list-style: none;
    padding: 0;
}

.paper-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.paper-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.paper-content {
    flex: 1;
    min-width: 0;
}

.paper-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}

.paper-meta {
    display: flex;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.paper-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.paper-link:hover {
    background: #43a047;
    transform: translateY(-2px);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #1e88e5;
    color: white;
}

.btn-primary:hover {
    background: #1976d2;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #43a047;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header-banner {
        padding: 30px 15px;
        margin: -10px -10px 15px -10px;
        border-radius: 0;
    }

    .header-banner h1 {
        font-size: 20px;
    }

    .header-banner p {
        font-size: 14px;
    }

    .search-container {
        padding: 12px;
        margin: 0 -10px;
        border-radius: 0;
    }

    .search-input-group input,
    .search-button,
    .search-filters select {
        height: 36px;
        font-size: 14px;
    }

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

    .school-item {
        padding: 10px;
    }

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

    .paper-count {
        font-size: 13px;
    }
}

@media screen and (max-width: 360px) {
    .container {
        padding: 10px;
    }

    .search-input-group input,
    .search-button,
    .search-filters select {
        height: 34px;
        font-size: 13px;
    }

    .category-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .school-item h3 {
        font-size: 14px;
    }
} 