* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
body {
    background: #e9edf2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px;
}
.calculator {
    width: 100%;
    max-width: 1400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,20,40,0.15);
    padding: 30px 4px;
    margin-bottom: 30px;
}
.guojia {
    background: #f9f9f9;
    width: 100%;
    height: 100px;
    border: 0px;
    border-radius: 0px;
    color: transparent;
}
h1 {
    font-size: 2rem;
    font-weight: 500;
    color: #1a3e60;
}
.print-only {
    display: none;
}
.summary-line {
    background: #CDDC39;
    border-radius: 10px;
    padding: 8px 8px;
    margin: 20px 0 30px;
    font-size: 1.2rem;
    color: #003056;
    font-weight: 500;
    text-align: center;
    line-height: 1.6;
    border: 1px solid #b6cde0;
}
.summary-line span {
    font-weight: 700;
}
.input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
    background: #f2f7fd;
    border-radius: 10px;
    padding: 8px 8px;
    margin-bottom: 30px;
    border: 1px solid #c3d7ec;
}
.input-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 8px 8px;
    border: 1px solid #b8cee5;
}
.input-item label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f4a70;
    white-space: nowrap;
    margin-right: 12px;
    flex-shrink: 0;
}
.input-item input {
    border: none;
    border-bottom: 2px solid #aac2db;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00263b;
    padding: 6px 0;
    background: transparent;
    outline: none;
    width: 100%;
    min-width: 0;
}
.input-item input:focus {
    border-bottom-color: #0072b3;
}
.table-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.header-cell {
    background: #b9d2e9;
    color: #00213a;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 14px 8px;
    border: 1px solid #8eb0cf;
    text-transform: uppercase;
}
.fee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.fee-item-name {
    background: #e7f0fa;
    font-weight: 600;
    color: #003766;
    font-size: 0.95rem;
    padding: 14px 6px;
    text-align: center;
    border: 1px solid #b2cbe2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fee-item-static {
    background: white;
    border: 1px solid #c0d5ec;
    padding: 14px 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #00325a;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fee-item-qty {
    background: #f0f7ff;
    border: 1px dashed #7ba5c9;
    padding: 14px 6px;
    text-align: center;
    font-weight: 650;
    color: #002b50;
    font-size: 1.1rem;
}
.fee-item-total {
    background: #deecf9;
    padding: 14px 6px;
    text-align: center;
    font-weight: 700;
    color: #002845;
    border: 1px solid #95b7d9;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow-x: auto;
}
.total-row-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0 20px;
}
.total-card {
    background: #cfe0f0;
    border-radius: 48px;
    padding: 24px 15px;
    border: 2px solid #9fb9d6;
    text-align: center;
}
.total-card .label {
    font-size: 1rem;
    font-weight: 500;
    color: #003059;
    margin-bottom: 10px;
}
.total-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: #001e36;
    word-break: break-word;
}
.final-row-1col {
    display: grid;
    grid-template-columns: 1fr;
    margin: 15px 0 0;
}
.final-card {
    background: #123a5e;
    border-radius: 60px;
    padding: 30px 25px;
    border: 2px solid #7d9fc7;
    text-align: center;
}
.final-card .label {
    font-size: 1.2rem;
    font-weight: 400;
    color: #dae9ff;
}
.final-card .value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffecbb;
    line-height: 1.3;
}
.print-btn {
    background: #1a3e60;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}
.print-btn:hover {
    background: #0f2a40;
}
.other-quote {
    width: 100%;
    max-width: 1400px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,20,40,0.15);
    padding: 30px 25px;
    margin-top: 20px;
}
.other-quote h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #1a3e60;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid #cbdae9;
}
.other-quote ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 20px;
    list-style: none;
}
.other-quote li {
    background: #f2f7fd;
    border-radius: 40px;
    border: 1px solid #c3d7ec;
    transition: transform 0.1s, background 0.2s;
}
.other-quote li:hover {
    background: #e1ecf7;
    transform: scale(1.02);
}
.other-quote a {
    display: block;
    padding: 14px 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: #003766;
    text-align: center;
    line-height: 1.4;
    border-radius: 40px;
}
.other-quote a:hover {
    color: #00213a;
}

@media print {
    .print-btn, .other-quote {
        display: none;
    }
    .summary-line, .input-grid {
        display: none;
    }
    .print-only {
        display: block;
        text-align: center;
        font-size: 1.8rem;
        font-weight: bold;
        margin: 30px 0;
        padding: 20px;
        background: #f0f0f0;
        border: 2px solid #333;
        border-radius: 12px;
        color: #000;
    }
    body {
        background: white;
        padding: 0;
        margin: 0.5in;
        display: block;
    }
    .calculator {
        max-width: 100%;
        box-shadow: none;
        border: none;
        background: white;
        padding: 0;
    }
    .summary-line, .input-grid, .fee-item-name, .fee-item-static,
    .fee-item-qty, .fee-item-total, .total-card, .final-card,
    .header-cell, .input-item {
        background: white !important;
        color: black !important;
        border: 1px solid #aaa !important;
        box-shadow: none !important;
        border-radius: 8px !important;
    }
    .summary-line span {
        background: white !important;
        border: 1px solid #aaa;
        color: black;
    }
    .input-item input {
        border: 1px solid #aaa;
        background: white;
        color: black;
    }
    .final-card .value {
        color: black;
    }
    .guojia {
        background: #f9f9f9;
        width: 100%;
        height: 100px;
        border: 0px;
        border-radius: 0px;
        color: transparent;
    }
}

@media (min-width: 1200px) {
    .calculator { padding: 40px 35px; }
    .other-quote { padding: 40px 35px; }
    .guojia {
        background: #f9f9f9;
        width: 100%;
        height: 100px;
        border: 0px;
        border-radius: 0px;
        color: transparent;
    }
}
@media (max-width: 800px) {
    .other-quote ul {
        grid-template-columns: repeat(2, 1fr);
    }
    .guojia {
        background: #f9f9f9;
        width: 100%;
        height: 100px;
        border: 0px;
        border-radius: 0px;
        color: transparent;
    }
}
@media (max-width: 500px) {
    .other-quote ul {
        grid-template-columns: 1fr;
    }
    .guojia {
        background: #f9f9f9;
        width: 100%;
        height: 100px;
        border: 0px;
        border-radius: 0px;
        color: transparent;
    }
}