input[type=text] {
  width: 95%;
  height:26px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  background-color: white;
  background-position: 10px 10px; 
  background-repeat: no-repeat;
  padding:8px 9px 9px 16px;
  
  input[type=button], input[type=submit], input[type=reset] {
  
  border: none;
  color: #ffcc00;

  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  }
}

.select {
    width:22px;height:23px;border:1px solid #000;
}

/* 全局重置与基础设置 */
        html, /* 黑灰色主题色定义 */
        :root {
            --primary-dark: #2d2d2d;
            --primary: #333333;
            --primary-light: #4a4a4a;
            --accent: #ffc107;
            --text-light: #f0f0f0;
            --text-dark: #2d2d2d;
        }

        /* 动画效果 */
        @keyframes float {
            0%, 100% { transform: translateX(0) !important; }
            50% { transform: translateX(8px) !important; }
        }

        @keyframes flash {
            0%, 100% { 
                color: var(--text-light);
                opacity: 1;
            }
            50% { 
                color: var(--accent);
                opacity: 0.8;
            }
        }

        /* 响应式调整 - 小屏手机 */
        @media (max-width: 360px) {

        }

        /* 大屏设备优化 */
        @media (min-width: 768px) {

        }

/* 合并后的下拉选择输入框样式 */
.combined-select {
  position: relative;
  width: 100%;
  /* 关键修复：限制容器最大宽度，防止超出屏幕 */
  max-width: 100%;
  box-sizing: border-box;
}

.combined-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid lightgray;
  border-radius: 5px;
  box-sizing: border-box;
  padding-right: 30px; /* 为下拉箭头留出空间 */
  text-align: left !important;
}

.select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0; /* 关键修复：增加右边界限制，与父容器对齐 */
  border: 1px solid lightgray;
  border-top: none;
  border-radius: 0 0 5px 5px;
  background-color: white;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  margin: 0;
  padding: 0;
  list-style: none;
  /* 关键修复：将min-width改为width，确保不超过父容器 */
  width: 100%;
  box-sizing: border-box;
  /* 关键修复：添加左右内边距为0，避免内容溢出 */
  padding-left: 0;
  padding-right: 0;
}

.select-options.active {
  display: block;
}

.select-option {
  padding: 10px;
  cursor: pointer;
  /* 关键修复：移除white-space: nowrap，允许内容换行 */
  text-align: left !important;
  width: 100%;
  box-sizing: border-box;
}

.select-option:hover {
  background-color: #f0f0f0;
}

/* 添加选中项高亮样式 */
.select-option.selected {
  background-color: #e0e0e0;
}

/* 配件名称和价格的样式 - 调整了间距和分隔样式 */
.select-option .part-name {
  display: inline-block;
  text-align: left;
  /* 关键修复：将min-width改为百分比，适应不同屏幕宽度 */
  width: 85%;
  padding-right: 3px; /* 调整右侧内边距，避免过宽 */
 border-right: 1px solid #eee; /* 分隔线 */
  margin-right: 1px; /* 增加与价格之间的间距 */
  vertical-align: top; /* 垂直对齐 */
  box-sizing: border-box; /* 确保宽度计算包含内边距 */
}

.select-option .part-price {
  display: inline-block;
  text-align: right;
  /* 关键修复：调整价格区域宽度，确保在一行内显示 */
  width: 5%;
  color: #666;
  vertical-align: top; /* 垂直对齐 */
  box-sizing: border-box;
  padding-left: 2px; /* 增加左内边距 */
}

.input-container {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.input-container input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid lightgray;
  border-radius: 5px;
  box-sizing: border-box;
  text-align: left !important;
}

.Input {
  text-align: left !important;
}

/* 预计到手价输入框居中显示 */
.final-price {
  text-align: center !important;
}

.button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  margin: 4px 2px;
  cursor: pointer;
  transition-duration: 0.4s;
  /* 适配移动端按钮 */
  width: 45%; /* 按钮宽度适应屏幕 */
  box-sizing: border-box;
}

/* 响应式调整：小屏幕下按钮占满宽度 */
@media (max-width: 480px) {
  .button {
    width: 100%;
    margin: 4px 0;
  }
}

.button1 {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.button2:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}

.part-item {
  margin-bottom: 10px;
}

/* 表格适配移动端 */
table {
  width: 100%;
  min-width: 320px; /* 确保在极小屏幕上也有基本宽度 */
  box-sizing: border-box;
}

td {
  box-sizing: border-box;
}

/* ============================================================
   统一容器缩进 padding:10px（对齐 default.css / diy_List.css）
   ============================================================ */
.container {
    padding: 10px;
}
        left: 40px; 
        /* 【关键修复】将变换原点设为左中心，确保旋转围绕左侧进行 */
        transform-origin: left center; 
        transform: translateY(-50%) rotate(-30deg);
        
        pointer-events: none;
        user-select: none;
        z-index: 100;
        white-space: nowrap;
        text-align: left; /* 多行文字左对齐 */
    }

    .watermark-line {
        display: block;
        font-size: 42px;
        font-weight: 900;
        font-family: "Microsoft YaHei", sans-serif;
        color: rgba(0, 0, 0, 0.12);
        letter-spacing: 2px;
        line-height: 1.4;
        -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
        text-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
    }

    @media (max-width: 768px) {
        .watermark-wrapper {
            left: 20px; /* 移动端减少边距，避免右侧溢出 */
        }
        .watermark-line {
            font-size: 22px;
            letter-spacing: 1px;
        }
    }