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;
    }
}

/* 工具分类样式 */
.tool-search {
    margin: 2rem 0;
}

.tool-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
}

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37,99,235,0.05);
}

.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.5rem;
    color: #2563eb;
    margin-bottom: 0.8rem;
}

.tool-info {
    margin-top: 0.5rem;
    text-align: center;
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.tool-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tool-link {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.tool-link:hover {
    background-color: #1d4ed8;
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tool-card {
        padding: 1rem;
        min-height: 150px;
    }
    
    .tool-icon {
        font-size: 2rem;
    }
    
    .tool-name {
        font-size: 1rem;
    }
    
    .tool-desc {
        font-size: 0.8rem;
    }
}