
/* 分类页面样式 */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: #6c757d;
}

.breadcrumbs li.active {
    color: #495057;
}

.category-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: -2rem -20px 2rem;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.category-stats {
    margin-top: 1.5rem;
    font-size: 1rem;
}

.category-stats span {
    margin: 0 0.5rem;
}

.calculator-filters {
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    width: 300px;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
}

.filter-tag {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.calculator-grid-section {
    margin: 2rem 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.calculator-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.calculator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.calculator-card .calculator-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.calculator-card h3 {
    margin-bottom: 0.5rem;
}

.calculator-card h3 a {
    color: #2d3748;
    text-decoration: none;
}

.calculator-card p {
    color: #4a5568;
    margin-bottom: 1rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.calc-button {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.calc-button:hover {
    background: #5a67d8;
}

.usage-stats {
    font-size: 0.875rem;
    color: #718096;
}

.related-categories {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.related-categories h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.category-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3748;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.category-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-info {
    margin: 3rem 0;
}

.info-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn.active {
    color: #667eea;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin-bottom: 1rem;
}

.tab-pane p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.tab-pane ol {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: #2d3748;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-header {
        margin: -1rem -20px 1rem;
        padding: 2rem 0;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .calculator-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .related-categories {
        padding: 1.5rem;
    }

    .category-links {
        gap: 1rem;
    }

    .info-tabs {
        overflow-x: auto;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .breadcrumbs {
        background: #1a202c;
    }

    .calculator-card {
        background: #2d3748;
        color: #e2e8f0;
    }

    .calculator-card h3 a {
        color: #e2e8f0;
    }

    .related-categories {
        background: #2d3748;
    }

    .category-link {
        background: #4a5568;
        color: #e2e8f0;
    }
}
        