/* 鲁班尺工具样式 */

.tool-introduction {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

/* 结果卡片样式 */
.result-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.result-header {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-body {
    padding: 15px;
}

.result-status {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    justify-content: center;
}

.result-status-good {
    color: #28a745;
}

.result-status-bad {
    color: #dc3545;
}

.result-status-neutral {
    color: #ffc107;
}

.result-position {
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.result-description {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.result-suggestion {
    padding: 10px;
    background-color: #e9f7ef;
    border-radius: 5px;
    border-left: 4px solid #28a745;
}

/* 鲁班尺图示样式 */
.ruler-container {
    padding: 15px;
}

.ruler-image-container {
    text-align: center;
    margin: 20px 0;
    overflow-x: auto;
}

.ruler-image-container img {
    max-width: 100%;
    height: auto;
}

.ruler-legend {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.ruler-legend-list {
    list-style-type: none;
    padding-left: 0;
}

.ruler-legend-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
}

.legend-color-cai {
    background-color: #ff5252;
}

.legend-color-bing {
    background-color: #9c27b0;
}

.legend-color-li {
    background-color: #ff9800;
}

.legend-color-yi {
    background-color: #4caf50;
}

.legend-color-guan {
    background-color: #2196f3;
}

.legend-color-jie {
    background-color: #795548;
}

.legend-color-hai {
    background-color: #607d8b;
}

.legend-color-ben {
    background-color: #ffeb3b;
}

/* 使用指南样式 */
.guide-container {
    padding: 15px;
}

.guide-section {
    margin-bottom: 20px;
}

.guide-section h5 {
    margin-bottom: 10px;
    color: #007bff;
}

/* 常见问题样式 */
.accordion .card-header {
    padding: 0;
}

.accordion .btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.accordion .btn-link:hover,
.accordion .btn-link:focus {
    text-decoration: none;
}

/* 相关工具卡片样式 */
.related-tool-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    display: block;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.related-tool-card .card {
    transition: box-shadow 0.2s;
}

.related-tool-card:hover .card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 复制按钮样式 */
.copy-btn.copied {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .result-card {
        margin-top: 20px;
    }
    
    .ruler-legend .row {
        flex-direction: column;
    }
    
    .ruler-legend .col-md-6 {
        margin-bottom: 15px;
    }
}