/* vtf.css */
body {
  background-color: transparent;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: #2c3e50;
  font-size: 28px;
  margin-bottom: 10px;
}

.upload-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.file-upload {
  text-align: center;
  margin-bottom: 20px;
}

.upload-btn {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.upload-btn:hover {
  background: #2980b9;
}

.file-upload input[type="file"] {
  display: none;
}

.tips {
  margin-top: 20px;
}

.tip-card {
  background: #f8f9fa;
  border-left: 4px solid #3498db;
  padding: 15px;
  text-align: left;
}

.tip-card h3 {
  margin-top: 0;
  color: #2c3e50;
}

.tip-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.tip-card li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.settings-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.setting-group {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.setting-group h3 {
  margin-top: 0;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.resolution-notice {
  background: #e8f4fd;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.resolution-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.resolution-input {
  flex: 1;
}

.resolution-input label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 3px;
}

.checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

.checkbox input:checked ~ .checkmark {
  background-color: #3498db;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox input:checked ~ .checkmark:after {
  display: block;
}

.checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.setting-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-row label {
  min-width: 120px;
  font-weight: bold;
}

.textInput {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

select.textInput {
  min-width: 200px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.btn.primary {
  background: #3498db;
  color: white;
}

.btn.primary:hover {
  background: #2980b9;
}

.btn.secondary {
  background: #95a5a6;
  color: white;
}

.btn.secondary:hover {
  background: #7f8c8d;
}

.btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.preview-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.preview-section h3 {
  margin-top: 0;
  color: #2c3e50;
}

#contentWrapper {
  background: url("img/bg.gif");
  background-position: 0 0;
  border: 1px solid #ddd;
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1024px;
  height: auto;
  aspect-ratio: 1024/1020;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#tempCanvas {
  visibility: hidden;
}

#outputFilename:invalid {
  background-color: #ffebee;
  border-color: #e57373;
}

.changelog {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.changelog h3 {
  margin-top: 0;
  color: #2c3e50;
}

.changelog ul {
  padding-left: 20px;
}

.changelog li {
  margin-bottom: 10px;
  line-height: 1.4;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal h3 {
  margin-top: 0;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.modal-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-notice {
  background: #fff8e1;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
}

#mipmaps {
  margin-left: auto;
  margin-right: auto;
}

#mipmaps canvas {
  background: url("img/bg.gif");
  background-position: 0 0;
  border: 1px solid #ddd;
}

.mipmapElement {
  margin-top: 20px;
}

.input {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#filesizee, #progress {
  margin: 10px 0;
  font-weight: bold;
}

/* 文件大小提示样式 */
#filesizee {
  position: relative;
  display: inline-block;
  cursor: help;
}

#filesizee:hover::after {
  content: "喷漆大小超过512KB在游戏中可能无法正常显示";
  visibility: visible;
  width: 180px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
  opacity: 1;
  font-size: 12px;
  font-weight: normal;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  white-space: normal;
}

@media (max-width: 1100px) {
  .settings-panel {
    grid-template-columns: 1fr;
  }
  
  #contentWrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 1024/1020;
  }
  
  .control-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .control-row label {
    min-width: auto;
  }
  
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .license-info {
    text-align: left;
  }
}

/* 更新日志头部布局 */
.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* 版权信息样式 - 右侧小字 */
.license-info {
  font-size: 11px;
  color: #95a5a6;
  text-align: right;
}

.license-info a {
  color: #7f8c8d;
  text-decoration: none;
}

.license-info a:hover {
  color: #3498db;
  text-decoration: underline;
}

/* 工具提示样式 */
.checkbox {
  position: relative;
  display: flex;
  align-items: center;
}

.checkbox .tooltip-text {
  visibility: hidden;
  width: 160px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  left: 260px;
  top: 0;
  margin-left: 5px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  font-weight: normal;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.checkbox:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}