* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}


body {

    background: #f3f6fa;

    color: #333;

}


/* 主容器 */

.container {

    width: 1200px;

    margin: 30px auto;

    background: #ffffff;

    padding: 30px 40px;

    border-radius: 10px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.08);

}



/* 标题 */

header {

    text-align: center;

    margin-bottom: 30px;

}


header h1 {

    font-size: 30px;

    color: #1f4e79;

    letter-spacing: 2px;

}


header p {

    margin-top: 8px;

    color: #888;

    font-size: 14px;

}



/* 客户信息 */

.info {

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 20px;

    margin-bottom: 25px;

}



.input-group label {

    display:block;

    margin-bottom:8px;

    font-size:14px;

    color:#555;

}


.input-group input {

    width:100%;

    height:36px;

    padding:0 10px;

    border:1px solid #dcdfe6;

    border-radius:5px;

    outline:none;

}



.input-group input:focus {

    border-color:#409eff;

}



/* 表格 */

table {

    width:100%;

    border-collapse:collapse;

    margin-top:20px;

}



thead {

    background:#1f4e79;

    color:white;

}



th {

    height:45px;

    font-size:14px;

}



td {

    border:1px solid #ddd;

    padding:8px;

    text-align:center;

}



td input,
td select {


    width:100%;

    height:34px;

    border:1px solid #ccc;

    border-radius:4px;

    padding:0 8px;

}



/* 产品选择 */

.product {

    cursor:pointer;

}



/* 删除按钮 */

.deleteBtn {

    background:#f56c6c;

    color:white;

    border:none;

    padding:7px 18px;

    border-radius:4px;

    cursor:pointer;

}



.deleteBtn:hover {

    background:#d9534f;

}



/* 工具栏 */

.toolbar {

    margin:20px 0;

}



#addRow {


    background:#409eff;

    color:white;

    border:none;

    padding:10px 25px;

    border-radius:5px;

    cursor:pointer;

    font-size:14px;

}



#addRow:hover {

    background:#337ecc;

}



/* 汇总区域 */


.summary {


    margin-top:30px;

    padding:20px;

    background:#f8f9fb;

    border-radius:8px;


    display:flex;

    justify-content:flex-end;

    gap:25px;

}



.summary-item {


    display:flex;

    flex-direction:column;

}



.summary-item label {


    font-size:14px;

    color:#666;

    margin-bottom:8px;

}



.summary-item input,
.summary-item select {


    width:150px;

    height:38px;

    border:1px solid #ccc;

    border-radius:5px;

    padding:0 10px;

    background:white;

}



/* 备注 */

.remark {

    margin-top:25px;

}


.remark label {

    display:block;

    margin-bottom:8px;

}



textarea {


    width:100%;

    resize:none;

    padding:12px;

    border:1px solid #ccc;

    border-radius:6px;

    font-size:14px;

}



/* 底部按钮 */


footer {


    margin-top:30px;

    text-align:right;

}



footer button {


    padding:10px 25px;

    margin-left:15px;

    border:none;

    border-radius:5px;

    cursor:pointer;

    font-size:14px;

}



#printBtn {


    background:#67c23a;

    color:white;

}



#pdfBtn {


    background:#e6a23c;

    color:white;

}



#excelBtn {


    background:#1aad19;

    color:white;

}



footer button:hover {


    opacity:0.85;

}



/* 鼠标悬停表格 */

tbody tr:hover {

    background:#f5faff;

}



/* 打印样式 */


@media print {


    body {

        background:white;

    }


    .container {


        width:100%;

        box-shadow:none;

        margin:0;

    }


    footer,
    .toolbar {

        display:none;

    }

.product {

    width:100%;

    height:180px;

    border-radius:5px;

}


.product option {

    padding:6px;

}


}