* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}
a {
    text-decoration: none;
    color: #3498db;
}
a:hover {
    color:#2c3e50;
}
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

h1:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-top: 15px;
}

.controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 400px;
}

.search-box input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    width: 100%;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.search-box input:focus {
    border-color: #3498db;
}

.search-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    min-height: 44px;
}

.search-btn:hover {
    background-color: #2980b9;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-select, .date-filter, .semester-filter {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background-color: white;
}

.scroll-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    padding: 12px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    min-height: 44px;
    font-size: 1rem;
}

.control-btn:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

.control-btn i {
    font-size: 1.1rem;
}

.announcement-bar {
    background-color: white;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #3498db;
}

.announcement-title {
    color: #2c3e50;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-text {
    color: #34495e;
    font-size: 1rem;
    white-space: pre-wrap; /* 支持公告内容换行 */
    line-height: 1.6;
}

.content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.column {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.column-header {
    padding: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.praise-header {
    background: linear-gradient(to right, #2ecc71, #1abc9c);
}

.criticism-header {
    background: linear-gradient(to right, #e74c3c, #e67e22);
}

.column-content {
    padding: 20px;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.scroll-list {
    position: relative;
    /* Android 4.4 兼容：提升 transform 动画稳定性 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.praise-card {
    border-left-color: #2ecc71;
}

.criticism-card {
    border-left-color: #e74c3c;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.student-name {
    font-size: 1.3rem;
    font-weight: 600;
}

.praise .student-name {
    color: #27ae60;
}

.criticism .student-name {
    color: #c0392b;
}

.date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.card-body {
    margin-bottom: 15px;
}

.reason {
    font-size: 1.1rem;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.semester-info, .teacher-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 1.2rem;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bdc3c7;
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.scroll-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #3498db;
    font-weight: 500;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2ecc71;
}

.status-dot.paused {
    background-color: #e74c3c;
}

.csv-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.csv-btn {
    padding: 8px 15px;
    background-color: #9b59b6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    min-height: 44px;
}

.csv-btn:hover {
    background-color: #8e44ad;
}

.semester-info-display {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

/* 汇总页面：表格样式 */
.table-wrap {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 10px;
    overflow: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.records-table thead th {
    position: sticky;
    top: 0;
    background: #f3f6fb;
    color: #2c3e50;
    text-align: left;
    font-weight: 700;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.records-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: top;
    color: #2c3e50;
}

.records-table tbody tr:hover {
    background: rgba(52, 152, 219, 0.06);
}

.table-meta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    color: #2c3e50;
    opacity: 0.9;
    font-weight: 600;
}

.date-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 10px;
    border-radius: 8px;
}

.date-range label {
    font-size: 0.9rem;
    color: #34495e;
    white-space: nowrap;
}

.date-range input[type="date"] {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 6px 8px;
}

@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box, .filter-controls, .scroll-controls, .csv-controls {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 12px;
    }

    .controls {
        padding: 14px;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-box input {
        border-radius: 10px;
    }

    .search-btn {
        border-radius: 10px;
        width: 100%;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .filter-controls {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }

    .filter-select, .date-filter, .semester-filter {
        flex: 1 1 140px;
        width: 100%;
    }

    .scroll-controls, .csv-controls {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }

    .control-btn, .csv-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .date-range {
        width: 100%;
        justify-content: space-between;
    }

    .date-range input[type="date"] {
        width: 100%;
        max-width: 220px;
    }
}