/* --- Seiko Mode --- */
.seiko-mode-content {
  display: flex;
  height: 100%;
  overflow: hidden;
  gap: var(--padding-md);
  padding: var(--padding-sm);
}

.seiko-sentences-panel,
.seiko-results-panel {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  height: 100%;
  background: var(--gradient-panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main), 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.seiko-sentences-panel::before,
.seiko-results-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hover);
  border-radius: inherit;
  pointer-events: none;
}

.seiko-sentence-list,
.seiko-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--padding-md);
}

.seiko-sentence-item,
.seiko-result-item {
  background: linear-gradient(135deg, rgba(40, 40, 60, 0.8) 0%, rgba(35, 35, 55, 0.7) 100%);
  border-radius: var(--radius-lg);
  padding: var(--padding-md) 18px;
  transition: var(--transition-normal);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.seiko-sentence-item::before,
.seiko-result-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hover);
  opacity: 0;
  transition: var(--transition-normal);
  border-radius: inherit;
}

.seiko-sentence-item:hover::before,
.seiko-result-item:hover::before { opacity: 1; }

.seiko-sentence-item:hover {
  background: linear-gradient(135deg, rgba(50, 50, 70, 0.9) 0%, rgba(45, 45, 65, 0.8) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.seiko-sentence-content,
.seiko-result-content {
  color: #1a1a1a; /* 深色文字确保可见性 */
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 12px;
  text-align: justify;
  text-justify: inter-word;
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8); /* 白色阴影增强对比 */
}

.seiko-sentence-actions,
.seiko-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.seiko-retry-button,
.seiko-copy-button {
  background: linear-gradient(135deg, rgba(80, 80, 120, 0.8) 0%, rgba(70, 70, 110, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #1a1a1a; /* 深色按钮文字 */
  cursor: pointer;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8); /* 白色阴影增强对比 */
}

.seiko-retry-button::before,
.seiko-copy-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hover);
  opacity: 0;
  transition: var(--transition-normal);
}

.seiko-retry-button:hover::before,
.seiko-copy-button:hover::before { opacity: 1; }

.seiko-retry-button:hover,
.seiko-copy-button:hover {
  background: linear-gradient(135deg, rgba(100, 100, 150, 0.9) 0%, rgba(90, 90, 140, 0.8) 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Loading and Error States for Seiko */
.seiko-result-loading,
.seiko-loading {
  color: #2d2d2d; /* 深色加载文字 */
  font-style: italic;
  padding: var(--padding-md);
  text-align: center;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8); /* 白色阴影增强对比 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gradient-hover);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-weight: 500;
}

.seiko-result-loading::after,
.seiko-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.seiko-result-error,
.seiko-error {
  color: #ff6b6b;
  padding: var(--padding-md);
  text-align: center;
  font-size: 0.95rem;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 107, 107, 0.3);
  font-weight: 500;
}

.seiko-empty-state {
  color: #a0a0a0;
  text-align: center;
  padding: 40px 20px;
  font-style: italic;
  background: var(--gradient-hover);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.seiko-empty-state p {
  margin: 10px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.seiko-input-area {
  display: flex;
  flex-wrap: wrap;
  padding: var(--padding-md) 20px;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.9) 0%, rgba(20, 20, 25, 0.85) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 20;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.seiko-text-input {
  background-color: rgba(40, 40, 60, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-family-main);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 12px;
  resize: none;
  min-height: 80px;
  max-height: 300px;
  overflow-y: auto;
  outline: none;
  transition: var(--transition-normal);
}

.seiko-text-input:focus {
  border-color: rgba(100, 150, 255, 0.6);
  outline: none;
  box-shadow: var(--shadow-glow);
}

.seiko-button-container {
  display: flex;
  justify-content: flex-end;
}

.seiko-process-button {
  background: var(--gradient-button);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  font-weight: 600;
  padding: 10px 20px;
  transition: var(--transition-normal);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.seiko-process-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.seiko-process-button:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.seiko-copy-all-button {
  margin: 15px auto;
  display: block;
  background: linear-gradient(135deg, #4c7bd9 0%, #365eaa 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  font-weight: 600;
  padding: 10px 20px;
  transition: var(--transition-normal);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.seiko-copy-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.seiko-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: rgba(35, 35, 45, 0.8);
  border-bottom: 1px solid var(--border);
}
