 * { box-sizing: border-box; }
    body {background-color: #ffffff;font-family: sans-serif;margin: 0;padding: 20px 200px;/*修改宽度*/margin-top: 60px;
    }
    
/*index--------------*/
    #font-list {
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
    }

    .font-card {
      box-shadow: none;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.6s ease, visibility 0s 0.6s;
      background-color: #fff;
      border-radius: 8px;
      cursor: pointer;
      color: rgb(32, 32, 32);
      position: relative;
      padding: 20px;
      overflow: hidden;
      margin-bottom: 0;
    }
    .font-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 1px;
      background-color: rgb(196, 199, 197);
      transition: opacity 0.3s ease;
    }
    .font-card:hover::after {
      opacity: 0;
    }
    .font-card.show {
      opacity: 1;
      visibility: visible;
      transition: opacity 0.6s ease, visibility 0s 0s;
    }
    .font-card:hover {
      background-color: rgb(237, 237, 237);
    }
    .title {
      font-size: 20px;
      font-weight: bold;
      color: #fd6e07;
    }
    .title2 {
      display: inline-block;
      font-weight: normal;
      font-size: 16px;
      margin-left: 6px;
      color: #666;
    }
    .weight-count {
      display: inline-block;
      font-size: 14px;
      color: #888;
      margin-left: 8px;
    }
    .preview {
      font-size: 50px;
      min-height: 64px;
      outline: none;
      cursor: pointer;
    }

    #loading-message {
      text-align: center;
      padding: 60px 20px;
    }
/*--------------*/
/* Detail Font Container */
.detail_font-container {
    background: #fff; /* 白色卡片背景 */
    
    border-radius: 12px; /* 更圆润的边角 */
    /* 更加精致的阴影效果 */
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06); */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s 0.6s;
    width: 100%;
    /*max-width: 900px; */
    box-sizing: border-box;
}

.detail_font-container.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s 0s;
}

#font-title {
    font-size: 2.5rem; /* 增大标题字号 */
    font-weight: 600; /* 加粗 */
    color: #fd6e07; /* 深灰色标题 */
    margin-bottom: 0.5rem; /* 调整与下方的间距 */
}

.detail_preview {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-top: 30px;
    border: none;
    padding: 20px;
    min-height: 80px;
    outline: none;
    cursor: text;
    transition: border-bottom-color 0.3s ease;
    position: relative; /* 新增，给 ::after 定位 */
    background-color: #f5f5f5;
     border-radius: 8px;
}

/* 永久显示的分割线 */
.detail_preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(196, 199, 197);
}


.detail_preview:focus {
    border-bottom-color: #4a90e2; /* 聚焦时改变颜色 */
}

.detail_controls {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右分布 */
    flex-wrap: wrap;
}

.left-controls {
    display: flex;
    align-items: center;
    gap: 1rem; /* 控制 input 和 span 间距 */
}
.left-controls input[type="range"] {
    width: 200px; /* 固定宽度，不用百分比 */
    flex-shrink: 0; /* 不允许被压缩 */
}


input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 200px;
    height: 6px;
    background: rgb(237, 237, 237);
    border-radius: 3px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fd6e07;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: -5px; /* 调整滑块位置 */
}

#weight-label {
    font-weight: 500;
    color: #64748b;
    min-width: 60px;   /* 保证宽度固定，不随文字变化跳动 */
    text-align: left;
}


select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #f0f4f8; /* 浅灰色背景 */
    border: 1px solid #cbd5e1;
    border-radius: 8px; /* 增加圆角 */
    padding: 8px 16px; /* 增加内边距 */
    font-size: 1rem;
    color: #334155;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

select:hover {
    border-color: #94a3b8;
}

select:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.detail_btn {
    background-color: #fd6e07; /* 柔和的蓝色 */
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px; /* 增加按钮内边距 */
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.detail_btn:hover {
    background-color: #e25b00; /* 鼠标悬停时颜色加深 */
}

.detail_btn:active {
    transform: scale(0.98); /* 点击时微小缩放效果 */
}

#download-select {
  display: none;
}
