* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 老年人模式切换按钮 */
.mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.senior-mode-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

.senior-mode-icon {
    font-size: 20px;
    font-weight: bold;
    margin-right: 8px;
}

/* 标准模式样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-container, .filter-container {
    margin-bottom: 10px;
}

input, select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

/* 标签容器样式 */
.tags-container {
    margin-bottom: 25px;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tags-container h3 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 18px;
}

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

.tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag:hover {
    background-color: #e0e0e0;
}

.tag.active {
    background-color: #3498db;
    color: white;
}

/* 数据表格中的标签样式 */
.item-tag {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 2px 8px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 12px;
    font-size: 12px;
}

.table-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

tr:hover {
    background-color: #f8f9fa;
}

.link-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

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

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
}

.page-btn {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

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

.page-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

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

#loading, #noResults {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #7f8c8d;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

/* 老年人友好模式样式 */
.senior-container {
    max-width: 1000px;
    font-size: 18px;
    line-height: 1.8;
}

.senior-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.senior-header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 36px;
}

.senior-header p {
    color: #7f8c8d;
    font-size: 20px;
}

.senior-controls {
    margin-bottom: 40px;
}

.senior-search {
    margin-bottom: 30px;
}

.senior-label {
    display: block;
    font-size: 22px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.senior-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    margin-bottom: 20px;
}

.senior-tags-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.senior-tags-container h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
}

.senior-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.senior-tag {
    display: inline-block;
    padding: 12px 20px;
    background-color: #f4f4f4;
    color: #333;
    border-radius: 30px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.senior-tag:hover {
    background-color: #e0e0e0;
}

.senior-tag.active {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.senior-resources {
    margin-bottom: 40px;
}

.senior-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #3498db;
}

.senior-card-title {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.senior-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.senior-card-tag {
    padding: 6px 15px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 20px;
    font-size: 18px;
}

.senior-card-link {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #3498db;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.senior-card-link:hover {
    background-color: #2980b9;
}

.senior-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 25px;
}

.senior-page-btn {
    padding: 15px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    transition: background-color 0.3s;
}

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

.senior-page-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.senior-page-info {
    font-size: 20px;
    color: #666;
    font-weight: 600;
}

.senior-loading, .senior-no-results {
    text-align: center;
    padding: 30px;
    font-size: 24px;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
    }
    
    .search-container, .filter-container {
        width: 100%;
    }
    
    .tags-list {
        gap: 8px;
    }
    
    .tag {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }

    .senior-mode-btn {
        padding: 8px 12px;
    }

    .senior-mode-text {
        display: none;
    }

    .senior-mode-icon {
        margin-right: 0;
    }

    .senior-tags-list {
        gap: 10px;
    }

    .senior-tag {
        padding: 10px 15px;
        font-size: 18px;
    }

    .senior-card-title {
        font-size: 22px;
    }

    .senior-pagination {
        flex-direction: column;
        gap: 15px;
    }
} 