.font-preview-container {
  width: 100%;
  max-width: 1750px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.preview-section {
  border-bottom: 1px solid #e0e0e0;
}

.font-preview-area {
  width: 100%;
  min-height: 40px;
  text-align: center;
  font-size: 24px;
  line-height: 1.5;
  padding: 20px;
}

.font-controls {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  flex-wrap: wrap;
}

.font-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 200px;
  height: 28px;
}

.font-size-select,
.font-family-select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  height: 28px;
  background: #fff;
  cursor: pointer;
  min-width: 80px;
}

.color-controls {
  display: flex;
  gap: 15px;
  padding-top: 8px;
}

.color-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.font-color-picker,
.bg-color-picker {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.preview-button {
  padding: 4px 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  height: 28px;
  color: #666;
  line-height: 21px;
}

.preview-button:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
}

.font-info {
  width: 60%;
  padding: 10px;
  font-size: 14px;
  color: #666;
  display: flex;
  gap: 20px;
}

.font-source a {
  color: #1890ff;
  text-decoration: none;
}

.font-source a:hover {
  text-decoration: underline;
}

/* 响应式布局 */
@media (max-width: 1024px) {
  .font-controls {
    flex-wrap: wrap;
  }

  .font-input {
    width: 100%;
  }

  .controls-group {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }
}

/* 修改底部信息区域样式 */
.font-info-section {
  display: flex;
  align-items: center;
  padding: 20px;
  padding-right: 80px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
  background-image: url("../images/bg_FREE.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
}

.font-info {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-right: 40px;
}

.font-source,
.font-license {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.font-source a {
  color: #1890ff;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.font-source a:hover {
  text-decoration: underline;
}

/* 修改许可范围样式 */
.font-license-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.license-title {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.license-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.license-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #333;
  border-radius: 4px;
}

.license-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 12px;
}

.license-item.enabled .license-icon {
  background: #67c23a;
  color: white;
}

.license-item.disabled .license-icon {
  background: #909399;
  color: white;
}

/* 后台许可选项样式 */
.license-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.license-option {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* 添加快速编辑样式 */
.quick-edit-font-settings {
  margin: 15px 0;
}

.quick-edit-font-settings h4 {
  margin: 10px 0;
  font-size: 14px;
}

.quick-edit-font-settings .font-url-field {
  width: 100%;
  margin: 5px 0;
}

.quick-edit-licenses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.quick-edit-licenses label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 15px;
}

.inline-edit-group .title {
  display: inline-block;
  min-width: 100px;
}

.font-license span {
  font-size: 13px;
}

/* 修改响应式布局 */
@media (max-width: 768px) {
  .font-info-section {
    background-image: none;
  }
  .font-info-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
  }

  .font-info {
    width: 100%;
    margin-right: 0;
    flex-direction: column;
    gap: 15px;
  }

  .font-source,
  .font-license {
    width: 100%;
  }

  .font-source a {
    max-width: 100%;
  }

  .font-license-section {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .license-items {
    width: 100%;
  }
}

/* 添加后台授权信息样式 */
.auth-info-group {
  margin: 15px 0;
}

.auth-url-group,
.auth-type-group {
  margin-bottom: 10px;
}

.auth-url-group label,
.auth-type-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.auth-type-group select {
  min-width: 200px;
}

/* 快速编辑中的授权字段样式 */
.quick-edit-font-settings .font-auth-url-field {
  width: 100%;
  margin: 5px 0;
}

.font-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.font-info-row .font-source,
.font-info-row .font-license {
  flex: 1;
  margin: 0;
  padding: 10px;
}

.font-info-row .font-source {
  text-align: left;
}

.font-info-row .font-license {
  text-align: right;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
  .font-info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .font-info-row .font-source,
  .font-info-row .font-license {
    width: 100%;
    text-align: left;
    padding: 5px 10px;
  }
}

.font-info-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.font-info-left {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.auth-url-row,
.auth-type-row,
.license-range-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  color: #666;
  font-size: 14px;
  position: relative;
  display: flex;
  align-items: center;
}

.info-label .question-mark {
  display: inline-flex;
  width: 16px;
  height: 16px;
  background: #e0e0e0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  margin-left: 5px;
  cursor: help;
  position: relative;
}

/* 提示框样式 */
.info-label .question-mark:after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  margin-left: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
}

/* 箭头样式 */
.info-label .question-mark:before {
  content: "";
  position: absolute;
  left: calc(100% + 5px);
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
}

/* 悬停效果 */
.info-label .question-mark:hover:before,
.info-label .question-mark:hover:after {
  opacity: 1;
  visibility: visible;
}

.info-content {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-content a,
.info-content span {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  word-break: break-all;
}

.info-content a:hover {
  color: #1890ff;
}

.license-range-row {
  margin-bottom: 0;
}

.license-range-row .info-content {
  flex-wrap: wrap;
  gap: 10px;
}

.license-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
  .info-content {
    max-width: 100% !important;
  }
  .font-info-left {
    flex-wrap: wrap;
  }

  .auth-url-row,
  .auth-type-row,
  .license-range-row {
    gap: 5px;
    margin-bottom: 10px;
    width: 100%;
  }

  .info-content a,
  .info-content span {
    font-size: 13px;
  }
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
  .font-info-wrapper {
    flex-direction: column;
  }

  .font-info-right {
    display: none;
  }

  .auth-url-row,
  .auth-type-row,
  .license-range-row {
    flex-direction: column;
    gap: 5px;
  }

  .info-label {
    min-width: auto;
  }

  .license-items {
    margin-top: 5px;
  }
}
