/* 深蓝夜色海军主题样式 */
:root {
  --bg-dark: #0a1120;
  --bg-card: #131e3f;
  --bg-input: #0d1830;
  --border-color: #2a3a6e;
  --text-primary: #e8f1ff;
  --text-secondary: #a0b5d9;
  --accent-blue: #3b7dd8;
  --accent-green: #2e8b57;
  --accent-red: #c53030;
  --shadow-light: rgba(0, 0, 0, 0.2);
  --shadow-heavy: rgba(0, 0, 0, 0.4);
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #0a1120 0%, #1a2744 100%);
  color: var(--text-primary);
}

/* 顶部标识栏 */
.topbar {
  background: linear-gradient(90deg, #0f1a34 0%, #1a2744 100%);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 2px solid #2a3a6e;
  box-shadow: 0 2px 10px var(--shadow-heavy);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo .icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2e4a88 0%, #3b7dd8 100%);
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(59, 125, 216, 0.4);
}

.title-lg {
  font-weight: 700;
  font-size: 22px;
  color: #e8f1ff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 13px;
  color: #a0b5d9;
  font-weight: 500;
  margin-left: 8px;
}

/* 主布局 */
.layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 卡片通用样式 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px var(--shadow-light), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-title {
  font-size: 20px;
  color: #e8f1ff;
  margin: 0 0 16px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #2a3a6e;
  padding-bottom: 8px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 14px;
}

.slider-group {
  /* 特殊样式如果需要 */
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-container input[type="range"] {
  flex: 1;
  height: 4px;
  background: #2a3a6e;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #3b7dd8;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(59, 125, 216, 0.4);
}

.slider-container input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #3b7dd8;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(59, 125, 216, 0.4);
}

.slider-container input[type="number"] {
  width: 80px;
  padding: 8px;
  background: var(--bg-input);
  color: #e8f1ff;
  border: 1px solid #3a4a7a;
  border-radius: 6px;
  font-size: 14px;
}

label {
  display: block;
  font-size: 13px;
  color: #cbe0ff;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

select, input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  color: #e8f1ff;
  border: 1px solid #3a4a7a;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus, input:focus {
  outline: none;
  border-color: #5b86ff;
  box-shadow: 0 0 0 3px rgba(91, 134, 255, 0.2);
}

.section-divider {
  font-size: 14px;
  color: #a0b5d9;
  font-weight: 700;
  margin: 20px 0 12px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #2a3a6e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 按钮样式 */
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  flex: 1;
  background: linear-gradient(135deg, #3b7dd8 0%, #2a5fb8 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 3px 8px rgba(59, 125, 216, 0.3);
}

.btn:hover {
  background: linear-gradient(135deg, #4a8de8 0%, #3a6fc8 100%);
  box-shadow: 0 4px 12px rgba(59, 125, 216, 0.4);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  background: #2a3a6e;
  color: #5a6a9a;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: linear-gradient(135deg, #c53030 0%, #a02020 100%);
  box-shadow: 0 3px 8px rgba(197, 48, 48, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #d54040 0%, #b03030 100%);
  box-shadow: 0 4px 12px rgba(197, 48, 48, 0.4);
}

/* 说明文字 */
.info-text {
  margin-top: 20px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid #3b7dd8;
}

.info-text p {
  font-size: 12px;
  color: #a0b5d9;
  line-height: 1.6;
  margin: 0;
}

/* 输出面板 */
.output-panel {
  padding: 24px;
}

.output-header {
  margin-bottom: 20px;
}

.ship-info {
  background: linear-gradient(135deg, rgba(59, 125, 216, 0.1) 0%, rgba(26, 39, 68, 0.2) 100%);
  border: 1px solid #2a3a6e;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.ship-name {
  font-size: 28px;
  font-weight: 700;
  color: #e8f1ff;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ship-description {
  font-size: 14px;
  color: #cbe0ff;
  line-height: 1.7;
}

/* 项目进度样式 */
.progress-section {
  background: linear-gradient(135deg, rgba(59, 125, 216, 0.15) 0%, rgba(26, 39, 68, 0.2) 100%);
  border: 1px solid #3b7dd8;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.progress-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-label {
  font-size: 16px;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 100px;
  flex-shrink: 0;
}

.progress-text {
  font-size: 15px;
  font-weight: 600;
  color: #e8f1ff;
  line-height: 1.6;
}

/* 项目状态样式 */
.status-section {
  background: linear-gradient(135deg, rgba(197, 48, 48, 0.15) 0%, rgba(26, 39, 68, 0.2) 100%);
  border: 1px solid #c53030;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-label {
  font-size: 16px;
  font-weight: 700;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 100px;
}

.status-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  padding: 8px 16px;
  background: rgba(197, 48, 48, 0.2);
  border-radius: 6px;
  border-left: 3px solid #c53030;
}

.output-content {
  min-height: 120px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  border: 1px solid #2a3a6e;
  color: #e8f1ff;
  line-height: 1.8;
  margin-bottom: 20px;
}

.info-section {
  margin-bottom: 24px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-title {
  font-size: 16px;
  font-weight: 700;
  color: #cbe0ff;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a3a6e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-content {
  font-size: 14px;
  color: #a0b5d9;
  line-height: 1.8;
}

.info-content ul {
  margin: 12px 0;
  padding-left: 24px;
}

.info-content li {
  margin-bottom: 8px;
  color: #a0b5d9;
}

.progress-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.progress-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: #a0b5d9;
}

.progress-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b7dd8;
  font-weight: bold;
}

/* 验证警告样式 */
.validation-warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(26, 39, 68, 0.2) 100%);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #fbbf24;
  line-height: 1.6;
}

.validation-warning strong {
  color: #f59e0b;
  font-weight: 700;
}

/* 技术规格面板 */
.specs-panel {
  margin-bottom: 20px;
}

.specs-title {
  font-size: 18px;
  color: #e8f1ff;
  margin: 0 0 12px 0;
  font-weight: 700;
  border-bottom: 1px solid #2a3a6e;
  padding-bottom: 6px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 13px;
}

.spec-label {
  color: #a0b5d9;
  font-weight: 500;
}

.spec-value {
  color: #e8f1ff;
  font-weight: 600;
}

/* 设计优缺点卡片 */
.design-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.design-adv, .design-flaw {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid;
}

.design-adv {
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.15) 0%, rgba(26, 39, 68, 0.2) 100%);
  border-color: #2e8b57;
}

.design-flaw {
  background: linear-gradient(135deg, rgba(197, 48, 48, 0.15) 0%, rgba(26, 39, 68, 0.2) 100%);
  border-color: #c53030;
}

.design-adv h4, .design-flaw h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid;
}

.design-adv h4 {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.design-flaw h4 {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.design-adv ul, .design-flaw ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.design-adv li, .design-flaw li {
  padding: 6px 0;
  font-size: 13px;
  color: #e8f1ff;
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.design-adv li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: bold;
}

.design-flaw li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: bold;
}

/* 图片区域 */
.image-area {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #2a3a6e;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
  color: #5a6a9a;
  font-size: 14px;
}

.image-area img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #2a3a6e;
  box-shadow: 0 4px 12px var(--shadow-light);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .design-cards {
    grid-template-columns: 1fr;
  }

  .slider-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .slider-container input[type="range"] {
    width: 100%;
  }

  .slider-container input[type="number"] {
    width: 100%;
  }
}
/* 加载状态样式 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(59, 125, 216, 0.1) 0%, rgba(26, 39, 68, 0.2) 100%);
  border: 1px solid #3b7dd8;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(59, 125, 216, 0.2);
  border-top: 4px solid #3b7dd8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 16px;
  font-weight: 600;
  color: #e8f1ff;
  text-align: center;
  margin-bottom: 16px;
  min-height: 24px;
}

.loading-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.loading-dots .dot {
  width: 8px;
  height: 8px;
  background: #3b7dd8;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

.loading-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 自定义输出框样式 */
textarea {
  width: 100%;
  padding: 10px;
  background: #0d1830;
  color: #e8f1ff;
  border: 1px solid #2a3a6e;
  border-radius: 6px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s;
}

textarea:focus {
  outline: none;
  border-color: #5b86ff;
  box-shadow: 0 0 0 3px rgba(91, 134, 255, 0.2);
}

.help-text {
  font-size: 12px;
  color: #a0b5d9;
  margin-top: 6px;
  line-height: 1.5;
}

/* 分区标题样式优化 */
.section-divider {
  font-size: 14px;
  color: #cbe0ff;
  font-weight: 700;
  margin: 24px 0 12px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #2a3a6e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
