* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #e8e8e8;
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
}

/* 布局样式 */
.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;   
    gap: 15px;
}

.toolbar,
.toolbar-label,
.toolbar-between,
.toolbar-around {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;    
    align-items: center;
    cursor: default;
}
.toolbar-label > :first-child{
    color: #974005;
    font-weight: 600;
}
.toolbar > :last-child,
.toolbar-label > :last-child{
    flex: 1;
}
.toolbar-around {
    justify-content: space-around;  /* 平均分配 */
    flex: 1;
}
.toolbar-between  {
    justify-content: space-between;  /* 两端对齐,中间平均分配 */
    flex: 1;
}

.weed-box{
    display: flex;
    flex-direction: row;  
    align-items: center;
    cursor: default;
    width: 100%;
    gap: 15px;
}
.weed-box > :first-child{
    width: 75%;
}
.weed-box > :last-child{
    flex: 1;
}
.weed-box > *{
    display: flex;
    flex-direction: column;
    width: 100%;    
}
.weed-box > * > span{
    font-size: 0.95em; 
    color: #1330b1;   
}


/* 展开/收起样式 */
.shrink-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 2em;         /* 折叠：只露出第一行 */
    transition: max-height .5s ease;
    overflow: hidden;           /* 隐藏超出部分 */
    gap: 15px;
}

.shrink-box.expanded {
    max-height: 1500px;         /* 展开：容纳全部内容 */
}
.shrink-box .toolbar-between {
    flex: 0 0 auto;             /* 避免展开时子项被均分拉伸出现空白 */
}
.shrink-toggle {
    cursor: pointer;
    user-select: none;
}



.title-1{
    font-size: 1.2em;
    color: #009700;
    font-weight: 600;
    letter-spacing: 3px;
    border-left: 5px solid #f77104;
    padding-left: 10px;
}
.title-2{
    font-size: 1em;
    font-weight: 600;
    color: #215bc7;
    cursor: default;
    white-space: nowrap;
}

/* 按钮样式 */
.btn{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    cursor: pointer;
    margin: 25px 0;
    width: 100%;
    height: 40px;
    background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
    border-radius: 20px;
    border: 1px solid #8F9092;
    box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 3px 0 #CECFD1;
    transition: all 0.2s ease;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 16px;
    font-weight: 1000;
    color: #606060;
    text-shadow: 0 1px #fff;
}

.btn:hover {
    color: #fd6500;
    box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 3px 3px #CECFD1;
}

input ,
select {
    outline: none; /* 去掉点击时默认的蓝色高亮 */
    width: 100%;
    padding: 5px;
    font-size: 14px;
    color: #333;
    background: transparent; /* 去掉背景色 */
    border: 1px solid #61616100; 
    border-bottom: 1px solid #616161;
}
/* 鼠标悬停效果 */
input:hover,
select:hover {
    border: 1px solid #f77104;
}

/* 获取焦点（被选中时）的效果 */
input:focus,
select:focus {
    border: 1px solid #f77104;
    background: #ffffff;
    color: #000000;
}








/* 标题样式 */
.title-center{
    width: 100%;
    margin: 10px 0 30px 0;
    text-align: center;
    font-size: 1.6em;
    color: #fd8700;
    font-weight: 800;
    letter-spacing: 5px;
    cursor: default;
}

.title-Key{
    font-size: 1.2em;
    font-weight: 600;
    color: #ff0000;
    cursor: default;
    margin: 0 10px;
}

.title-one{
    font-size: 1.2em;
    color: #009700;
    font-weight: 600;
    cursor: default;
    white-space: nowrap;
    letter-spacing: 3px;
    border-left: 5px solid #f77104;
    padding-left: 10px;
}
.title-two{
    font-size: 1em;
    font-weight: 600;
    color: #215bc7;
    cursor: default;
    white-space: nowrap;
}






/* 简单滑动条 - 原生 input[type=range] 样式 */
.range-wrap {
    width: 100%;
    border-radius: 15px;
    margin-top: -15px;
}

.range-wrap input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    width: 100%;
    height: 10px;
    padding:  0;
    border-radius: 15px;
    border: 1px solid #8d8d8d;
    background: linear-gradient(90deg, #52ff02 0%, #ffd001 50%, #fd7a00 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.range-wrap-b input[type="range"]{
    background: linear-gradient(90deg, #fd7a00 0%,#ffd001 10%, #52ff02 50%, #ffd001 90%, #fd7a00 100%);
}
.range-wrap-c input[type="range"]{
    background: linear-gradient(180deg, #7c7c7c 0%, #e7e7e7 50%, #949494 100%);
}
/* 滑块 - Chrome / Edge / Safari */
.range-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: conic-gradient(
      from 180deg at 50% 50%,
      #7a8088 0deg,
      #c4c9cf 45deg,
      #eef1f5 90deg,
      #7a8088 135deg,
      #4a4e54 180deg,
      #c4c9cf 225deg,
      #eef1f5 270deg,
      #7a8088 315deg,
      #7a8088 360deg
    );
    border: 2px solid #687070;
    box-shadow:
      0 4px 8px rgba(0, 0, 0, 0.5),
      inset 0 1px 2px rgba(255, 255, 255, 0.8),
      inset 0 -2px 4px rgba(0, 0, 0, 0.4);
    cursor: grab;
    transition: transform 0.1s ease;
}


/* 刻度 */
.range-wrap .ticks {
    display: flex;
    justify-content: space-between; /* 将刻度均匀分布 */
    margin: -2px 0 20px 0;
    font-size: 12px;
    color: #888;
}

/* 滑条 + 步进按钮（手机微调友好） */
.range-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.range-row .range-wrap {
    flex: 1;
    min-width: 0;
}
.step-btn {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #8f9092;
    background: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #606060;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.step-btn:active {
    background: #e8e8e8;
    color: #fd6500;
    transform: scale(0.92);
}
@media (max-width: 640px) {
    .step-btn {
        width: 44px;
        height: 44px;
        font-size: 26px;
    }
}

/* 提示消息 */
.form-msg {
    text-align: center;
    font-size: 14px;
    padding: 8px;
    border-radius: 6px;
}
.form-msg.success {
    color: #1a7f37;
    background: #e6f4ea;
}
.form-msg.error {
    color: #c62828;
    background: #fdecea;
}

/* 管理列表页 */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.search-bar {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 420px;
}
.search-bar input {
    flex: 1;
}
.btn-mini {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #8F9092;
    border-radius: 15px;
    background: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
    font-size: 13px;
    cursor: pointer;
    color: #606060;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-mini:hover {
    color: #fd6500;
    border-color: #fd6500;
}
.btn-mini.danger:hover {
    color: #c62828;
    border-color: #c62828;
}
.btn-mini.primary {
    border-color: #215bc7;
    color: #215bc7;
}
.table-wrap {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 0 20px;
}
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
table.data-table th,
table.data-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e3e3e3;
    text-align: left;
    white-space: nowrap;
}
table.data-table th {
    background: #f5f5f5;
    color: #444;
    font-weight: 600;
}
table.data-table tr:hover td {
    background: #fafafa;
}
.empty-tip {
    text-align: center;
    color: #999;
    padding: 30px 10px !important;
    white-space: normal !important;
}
.actions-cell {
    display: flex;
    gap: 8px;
}
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}
.pager .btn-mini {
    margin: 0 4px;
}
.pager .btn-mini:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.back-link {
    font-size: 14px;
    color: #215bc7;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}
@media (max-width: 640px) {
    .page-head {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar {
        max-width: 100%;
    }
}







