/* css/style.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

/* 外层容器：100%宽度，最大宽度1400px，居中 */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* 登录卡片和初始化卡片：固定宽度，居中 */
.card {
  background: #1e293b;
  border-radius: 20px;
  padding: 40px;
  width: 400px;
  margin: 0 auto;
  border: 1px solid #334155;
}

h2 { margin-bottom: 24px; text-align: center; }

.input-group { margin-bottom: 20px; position: relative; }
input, select, textarea {
  width: 100%;
  padding: 14px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  color: white;
  font-size: 16px;
}

button {
  width: 100%;
  padding: 14px;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 12px;
}
button.secondary { background: #334155; }
.status { color: #94a3b8; text-align: center; margin-top: 16px; font-size: 14px; }
.hidden { display: none; }

.copy-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #334155;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  width: auto;
  cursor: pointer;
}

.warning { color: #facc15; font-size: 14px; margin-bottom: 16px; text-align: center; }

/* 主面板：100%宽度，无内边距限制 */
.main-panel {
  background: #1e293b;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #334155;
  width: 100%;
}

/* 导航栏 */
.nav {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #334155;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.nav-item {
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-item.active { background: #2563eb; }

/* 模块容器：占满宽度 */
.module-container {
  width: 100%;
  min-height: 400px;
}

/* 模块卡片：默认宽度100%，高度自适应，最小宽度300px */
.module-card {
  position: relative;
  background: #1e293b;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #334155;
  margin-bottom: 24px;
  overflow: auto;
  width: 100%;
  min-width: 300px;
  min-height: 200px;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

/* 表单行 */
.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* 拖拽手柄 */
.resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, #334155 50%);
  border-bottom-right-radius: 8px;
}
.resize-handle-e {
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: ew-resize;
  background: transparent;
}
.resize-handle-s {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  cursor: ns-resize;
  background: transparent;
}

/* 响应式调整 */
@media (max-width: 768px) {
  body { padding: 12px; }
  .card { width: 100%; padding: 24px; }
  .nav { gap: 8px; }
  .nav-item { padding: 6px 12px; font-size: 14px; }
  .module-card { padding: 16px; }
}
