/* ===== 基础重置 ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
  background: #f5f7fb;
  color: #333;
}

/* ===== 容器 ===== */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

/* ===== 卡片 ===== */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

.desc {
  color: #888;
  margin-bottom: 25px;
}

/* ===== 输入区布局 ===== */
.row {
  display: flex;
  gap: 20px;
}

/* 自适应：小屏变上下 */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }
}

.input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.label {
  margin-bottom: 8px;
  font-weight: 600;
}

textarea {
  width: 100%;
  height: 180px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  resize: vertical;
  font-size: 14px;
  transition: all 0.2s;
}

textarea:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74,144,226,0.15);
}

/* ===== 控制区 ===== */
.controls {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ===== 按钮 ===== */
.btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: #f0f3f8;
}

.btn.primary {
  background: #4a90e2;
  color: #fff;
  border: none;
}

.btn.primary:hover {
  background: #357bd8;
}

/* ===== 单选按钮 ===== */
.radio-group {
  margin-left: auto;
  display: flex;
  gap: 15px;
}

.radio-group label {
  cursor: pointer;
  font-size: 14px;
}

/* ===== 时间显示面板 ===== */
.time-panel {
  background: #f8fafc;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.time-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.time-row {
  font-size: 14px;
  margin: 5px 0;
}

/* ===== 分割线 ===== */
.divider {
  margin: 25px 0;
  border: none;
  border-top: 1px solid #eee;
}

/* ===== 表单区 ===== */
.form-section {
  margin-top: 10px;
}

/* 时间输入网格 */
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

/* 输入框统一 */
input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* 宽输入（时间戳） */
.wide-input {
  width: 100%;
}

/* Ticks 专用（更长） */
.ticks-input {
  font-family: monospace;
  letter-spacing: 1px;
}

/* select */
.wide-select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* ===== 底部说明 ===== */
.footer-note {
  margin-top: 20px;
  font-size: 12px;
  color: #aaa;
}

/* ===== 工具网格 ===== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ===== 单个工具卡片 ===== */
.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  padding: 20px 10px;
  transition: all 0.2s;
  border: 1px solid #eee;
}

.tool-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* 图标 */
.tool-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* 名字 */
.tool-name {
  font-size: 14px;
  color: #333;
  text-align: center;
}