body {
    font-family: 'Inter', 'SF Pro Display', 'Segoe UI', Arial, sans-serif;
    background: #f7f9fb;
    color: #222;
}
.home-header {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.logo { height: 40px; }
.slogan { color: #2563eb; }
.nav-link {
    margin-left: 1.5rem;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: #2563eb; }
.search-box {
    position: relative;
    width: 400px;
    max-width: 90%;
}
.search-input {
    padding-left: 2.5rem;
    border-radius: 24px;
    height: 48px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(37,99,235,0.05);
    border: 1px solid #e5e7eb;
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #2563eb;
    font-size: 1.3rem;
}
.category-tags {
    gap: 0.5rem;
}
.category-tag {
    background: #f1f5f9;
    color: #2563eb;
    border-radius: 16px;
    padding: 0.3rem 1.2rem;
    margin: 0 0.2rem 0.5rem 0.2rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}
.category-tag.active, .category-tag:hover {
    background: #2563eb;
    color: #fff;
}
.tool-card-grid { margin-top: 2rem; }
.tool-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem 1rem 1rem 1rem;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tool-card:hover {
    box-shadow: 0 4px 24px rgba(37,99,235,0.10);
    transform: translateY(-2px) scale(1.03);
}
.tool-icon {
    font-size: 2.2rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}
.tool-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.tool-desc {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #6b7280;
}
.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
}
.tool-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

.tool-main .card {
    box-shadow: 0 2px 8px rgba(37,99,235,0.05);
    border-radius: 12px;
}

.json-result {
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 1rem;
}

@media (max-width: 991px) {
    .tool-main .row {
        flex-direction: column;
    }

    .tool-main .col-lg-5, .tool-main .col-lg-7 {
        max-width: 100%;
    }
}
#miniCalendar table {
    width: 100%;
    text-align: center;
}

#miniCalendar th, #miniCalendar td {
    padding: 0.3rem;
}

.lunar-day {
    font-size: 0.8em;
    color: #888;
}

.lucky {
    background: #e0f7fa;
    color: #00796b;
    border-radius: 50%;
}

.unlucky {
    background: #ffebee;
    color: #c62828;
    border-radius: 50%;
}

.lunar-info-title {
    font-size: 1.2em;
    font-weight: bold;
}

.lunar-info-good {
    color: #00796b;
}

.lunar-info-bad {
    color: #c62828;
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
}