/* 十二生肖对照表工具页 */

/* 今年信息卡 */
.this-year-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #fef9ec 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    margin-bottom: 1.2rem;
}

.this-year-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.this-year-info {
    flex: 1;
}

.this-year-label {
    font-size: 0.8rem;
    color: #92400e;
    margin-bottom: 0.2rem;
}

.this-year-main {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.this-year-sub {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.2rem;
}

/* 筛选 */
.dz-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dz-filter-label {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.dz-filter-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dz-filter-btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    color: #555;
}

.dz-filter-btn:hover,
.dz-filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.dz-filter-btn.all-btn.active {
    background: #555;
    border-color: #555;
}

/* 表格 */
.dz-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    max-height: 500px;
    overflow-y: auto;
}

.dz-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.dz-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.dz-table th {
    background: #f8f9fb;
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.dz-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    vertical-align: middle;
}

.dz-table tbody tr:last-child td {
    border-bottom: none;
}

.dz-table tbody tr.current-year td {
    background: #fef9ec;
    font-weight: 600;
}

.dz-table tbody tr:hover td {
    background: #f5f8ff;
}

.dz-table tbody tr.current-year:hover td {
    background: #fef3c7;
}

.dz-zodiac-cell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.current-badge {
    display: inline-block;
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
    background: #f59e0b;
    color: #fff;
    border-radius: 10px;
    margin-left: 0.3rem;
}

.dz-note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #aaa;
    text-align: right;
}

/* 生肖卡片 */
.dz-zodiac-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.dz-zodiac-card {
    padding: 0.9rem 0.7rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.dz-zodiac-card.current-zodiac {
    border-color: #f59e0b;
    background: #fef9ec;
}

.dz-zodiac-card-emoji {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.dz-zodiac-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
}

.dz-zodiac-card-year {
    font-size: 0.72rem;
    color: #888;
}

@media (max-width: 600px) {
    .dz-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    .dz-table th,
    .dz-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.82rem;
    }
    .dz-zodiac-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .this-year-card {
        padding: 1rem;
    }
}
