body { 
    font-family: Arial, sans-serif; 
    /*display: flex; 
    justify-content: center; 
    padding: 20px; 
    background-color: #fafafa;
    margin: 0;*/
}

.topic-7 {
    width: 100%;
    max-width: 950px; 
    margin: 0 auto; 
    /*display: flex;
    flex-direction: column;
    align-items: flex-start;*/ 
}

.headline1 {
    color: rgb(252, 139, 31);
    font-weight: bold;
    font-size: 28px;
    text-align: left;
    margin-bottom: 10px; 
    width: 100%; 
}

.card {
    background: #ffffff;
    border-radius: 6px;
    padding: 34px 34px; 
    gap: 20px;
    display: flex; 
    flex-direction: column;
    width: 100%; 
    box-sizing: border-box; 
    box-shadow: 0px 4px 8px 0px rgba(246, 246, 246, 1);
    backdrop-filter: blur(5px);
    margin: 20px 0; 
    border: 1px solid #f0f0f0;
}

.top-row-layout {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: flex-start; 
}

.layout-left-top {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.layout-right {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #fcfcfc;
    padding: 15px;
}

.diagram-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diagram-img {
    max-width: 100%;
    max-height: 300px; 
    object-fit: contain;
}

.diagram-caption {
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

th {
    background-color: #1a3b7a;
    color: #ffffff;
    padding: 14px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-right: 1px solid rgba(255, 255, 255, 0.25); 
    border-top: 1px solid #e2e8f0;

}

th:last-child {
    border-right: none; 
}

td {
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    background-color: #ffffff;
    padding: 12px 8px;
    text-align: center;
    font-size: 0.95rem;
    color: #c00000;
    font-weight: bold;
}

td:last-child {
    border-right: none;
}

tr:hover td {
    background-color: #f8fafc;
}

.bottom-form-layout {
    width: 100%;
    margin-top: 10px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-title {
    color: #1a3b7a; 
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center; 
    width: 100%;
}

.input-title1 {
    color: #1a3b7a; 
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-left: 30px ;
}

.form-fields-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    margin: 0 auto 20px auto; 
}

.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #334155;

}


.inline-group {
    display: flex;
    gap: 120px; /* 控制 Ae 這一組與 Le 這一組之間的跨距 */
    width: 100%;
    margin-top: 15px; 
}

.inline-group .input-group {
    display: flex;
    justify-content: flex-start; 
    gap: 8px; 
}

.AeLe {
    margin-left: 30px;
    white-space: nowrap;
}

input[type="number"], input[type="text"], select, select.app-input {
    background: #f8fafc;
    text-align: center;
    font-size: 14px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    padding: 8px;
    width: 110px !important; 
    outline: none;
    color: #334155;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

select#core-size, select#material {
    background-color: #ffffff;
    cursor: pointer;
}

input:focus, select:focus {
    border-color: #1a3b7a !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 59, 122, 0.1);
}

input:disabled {
    background-color: #f1f5f9;
    color: #c00000;
    font-weight: bold;
    cursor: not-allowed;
}

.btn-container { 
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    margin: 10px auto;        
    max-width: 550px;        
    padding: 0 15px;         
    gap: 14px;
}

button { 
    background-color: #1A3A8A;
    color: white;
    border: none; 
    padding: 8px 24px;        
    cursor: pointer; 
    font-weight: bold; 
    border-radius: 8px;            
    font-size: 15px;          
    transition: background 0.3s;
}

button:hover {
    background-color: #0d255f;
}

.chart-section {
    width: 100%;
    margin-top: 25px;
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
}

.chart-placeholder {
    width: 100%;
    height: 300px;
    background-color: #fcfcfc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
}