/* 语言切换器 */
.language-switcher {
  position: relative;
}

.language-btn {
  background-color: rgba(26, 58, 95, 0.08);
  border: none;
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.language-btn:hover {
  background-color: rgba(26, 58, 95, 0.12);
}

.language-btn i {
  margin-left: 5px;
  font-size: 12px;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  min-width: 150px;
  z-index: 100;
  border: 1px solid var(--border);
}

.language-dropdown.active {
  display: block;
}

.language-dropdown a {
  display: block;
  padding: 10px 15px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.language-dropdown a:hover {
  background-color: rgba(26, 58, 95, 0.05);
}

.language-dropdown a.active {
  background-color: var(--primary);
  color: white;
}

/* 返回按钮 */
.back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 15px;
  border-radius: 20px;
  background-color: rgba(0,0,0,0.03);
  transition: all 0.2s;
}

.back a:hover {
  color: var(--primary);
  background-color: rgba(26, 58, 95, 0.08);
}

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

/* 表单 */
form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
}

input[type="text"] {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: 1px solid var(--border);
  padding: 0 20px;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
  background: #fff;
  color: var(--text);
}

input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.1);
}

button {
  height: 50px;
  border-radius: 25px;
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 58, 95, 0.2);
}

button:active {
  transform: translateY(0);
}

button[disabled] {
  opacity: .7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.tip {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 4px 4px;
  min-height: 24px;
}

/* 结果区域 */
.result {
  margin-top: 20px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 15px;
  font-size: 15px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.summary-value {
  font-weight: 600;
  color: var(--text);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #0b3b2e;
  background: #e6fff3;
  border: 1px solid #b6f0d1;
  max-width: fit-content;
}

.status-badge.warn {
  color: #5c4400;
  background: #fff7e6;
  border-color: #fde68a;
}

.status-badge.err {
  color: #5f2120;
  background: #ffeaea;
  border-color: #fecaca;
}

/* 时间线 */
.timeline {
  margin-top: 10px;
}

.event {
  position: relative;
  padding-left: 26px;
  margin: 18px 0;
}

.event::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.15);
  z-index: 2;
}

.event:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11.5px;
  top: 22px;
  bottom: -18px;
  width: 2px;
  background: #f0f2f5;
  z-index: 1;
}

.evt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  margin-bottom: 4px;
}

.evt-time {
  color: var(--primary);
  font-weight: 600;
}

.evt-status {
  color: var(--accent);
  font-weight: 600;
  background: rgba(248, 180, 0, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
}

.evt-loc {
  color: var(--muted);
  font-size: 13.5px;
}

.evt-desc {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.no-data {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-size: 15px;
}

.no-data i {
  font-size: 40px;
  margin-bottom: 10px;
  color: var(--border);
  display: block;
}