.page-container {
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 90px);
    margin-top: 90px;
    box-sizing: border-box;
}

.calc-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-top: 0;
}

#calc-forms-container {
    max-width: 1200px;
    width: 100%;
    background-color: #fff;
    padding: 30px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.calc-forms-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.calc-forms-header {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-bottom: 10px;
    margin-right: 0;
}

.calc-forms-footer {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding-top: 10px;
    box-sizing: border-box;
}

.calc-form {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 850px;
}

.form-group {
    flex: 3;
    max-width: 350px;
}

.form-group:nth-child(2) {
    flex: 1;
    max-width: 120px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #0667d2;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-control {
    flex: 1;
}

.input-group select {
    width: auto;
    min-width: 70px;
}

/* 重量输入组的特定样式 */
.weight {
    flex: 3 !important;
}

.weight-unit {
    flex: 1 !important;
}

/* 尺寸输入组样式 */
.dimension-group {
    gap: 4px;
}

.dimension-group input {
    flex: 1;
    text-align: center;
}

.dimension-group select {
    width: auto;
    min-width: 70px;
}

/* 输入框类型为number时隐藏上下箭头 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.add-package-link {
    color: #0667d2;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.add-package-link:hover {
    color: #0550a7;
}

.add-package-link i {
    font-size: 14px;
}

.calculate-btn {
    margin-top: 10px;
    padding: 12px 40px;
    background-color: #0667d2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: center;
    margin-top: auto;
}

.calculate-btn:hover {
    background-color: #0550a7;
}

#calc-result {
    margin-top: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center; /* 垂直居中 */
    gap: 40px; /* TOTAL和内容之间的间距 */
}

.total-label {
    font-size: 20px;
    white-space: nowrap;
}

.result-content {
    flex: 1;
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.result-header span {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 0 10px;
}

.result-values {
    display: flex;
    justify-content: space-between;
}

.result-values span {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

/* 确保每列宽度一致且有足够间距 */
.result-header span,
.result-values span {
    flex: 1;
    min-width: 150px;
    margin: 0 20px;
}
