/* 重用詞向量的大部分樣式，並根據句向量需求調整 */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 20px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #343a40;
    margin-bottom: 30px;
    text-align: center;
}

#flowchart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 700px;
}

.flow-step {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.flow-step h4 {
    margin-top: 0;
    color: #007bff;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.content p.description {
    margin: 10px 0;
    color: #6c757d;
    font-size: 0.95em;
    text-align: center;
}

.arrow {
    font-size: 1.8em;
    color: #adb5bd;
    margin: -5px 0 10px 0;
    line-height: 1;
    text-align: center;
}

.graphical-process {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
}

.graphical-input-output {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.graphical-input-output.column-layout {
    align-items: center;
}

.processing-box {
    background-color: #fff0c1;
    border: 1px dashed #f0ad4e;
    border-radius: 5px;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    color: #8a6d3b;
    flex-shrink: 0;
}

.processing-box i {
    margin-right: 8px;
    color: #f0ad4e;
}

.data-box {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 15px;
    background-color: #f8f9fa;
    flex-grow: 1;
    min-width: 150px;
}

.data-box.full-width {
    width: 100%;
}

.data-box.model-box {
    background-color: #e7f3ff;
    border: 2px solid #0056b3;
    text-align: center;
}

.box-label {
    font-weight: bold;
    font-size: 0.95em;
    color: #495057;
    display: block;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

.box-label i {
    margin-right: 6px;
    color: #007bff;
}

.process-arrow {
    font-size: 1.5em;
    color: #6c757d;
    flex-shrink: 0;
}

.process-arrow.vertical-arrow {
    margin: 5px 0;
}

.sentence-container, .vector-container, .results-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.sentence-box {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9em;
}

.vector-box {
    font-family: monospace;
    font-size: 0.9em;
    color: #343a40;
    background-color: #e9ecef;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #ced4da;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-box {
    background-color: #f1f3f5;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    color: #212529;
}