﻿:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #fafbfc;
  --line: #e6ebf2;
  --text: #172033;
  --muted: #697386;
  --primary: #1866ff;
  --danger: #df3b3b;
  --shadow: 0 18px 40px rgba(18, 38, 63, 0.08);
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

html, body {
  margin: 0;
  height: 100%;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  background:
    radial-gradient(circle at top left, rgba(24, 102, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page {
  padding: 14px 16px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero,
.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(230, 235, 242, 0.96);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 14px 16px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.hero-copy {
  min-width: 0;
}

.title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.meeting-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  max-width: 100%;
  word-break: break-all;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-btn,
.ghost-btn {
  min-height: 40px;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #1866ff 0%, #3c8bff 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(24, 102, 255, 0.18);
}

.primary-btn.stop {
  background: linear-gradient(135deg, #d63d3d 0%, #ef6565 100%);
  box-shadow: 0 10px 20px rgba(214, 61, 61, 0.16);
}

.ghost-btn {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.status-card {
  margin-top: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}

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

.wave-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 36px;
  height: 28px;
}

.wave {
  width: 4px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
  animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.15s; }
.wave:nth-child(3) { animation-delay: 0.3s; }
.wave:nth-child(4) { animation-delay: 0.45s; }

.wave-group.idle .wave {
  animation: none;
  background: #c7cfdb;
  height: 10px;
  opacity: 0.7;
}

@keyframes wave {
  0%, 100% { height: 10px; opacity: 0.45; }
  50% { height: 28px; opacity: 1; }
}

.tab-bar {
  margin-top: 12px;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
}

.tab-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(18, 38, 63, 0.08);
}

.panel {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 10px;
  min-height: 0;
}

.panel-inner {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pending-container {
  border: 1px dashed #bfd2ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.pending-header {
  font-size: 13px;
  font-weight: 700;
  color: #174eb6;
  margin-bottom: 8px;
}

.pending-list {
  max-height: 112px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pending-item {
  font-size: 14px;
  color: #203559;
  line-height: 1.6;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #d7e4ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.minutes-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.provider-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.provider-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.provider-btn.active {
  background: #edf3ff;
  color: #1546a8;
  font-weight: 600;
}

.records {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.record-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
}

.record-item-live {
  border-style: dashed;
  border-color: #bfd2ff;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d7e4ff;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d86ff;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.record-speaker-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #174eb6;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: left;
}

.record-text {
  color: var(--text);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
}

.record-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #8a94a6;
}

.minutes-box {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  padding: 18px;
  white-space: pre-wrap;
  line-height: 1.8;
  overflow: auto;
  font-size: 15px;
}

.minutes-box.loading {
  color: var(--muted);
}

.empty-panel {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--panel-soft);
  line-height: 1.7;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  padding: 22px;
}

.modal-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.modal-desc {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 768px) {
  .page {
    padding: 10px 10px 22px;
  }

  .hero,
  .panel {
    border-radius: 18px;
  }

  .hero,
  .panel-inner {
    padding: 14px;
  }

  .hero-top,
  .status-main,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .title {
    font-size: 20px;
  }

  .hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .hero-actions .primary-btn,
  .hero-actions .ghost-btn,
  .modal-actions .primary-btn,
  .modal-actions .ghost-btn {
    width: 100%;
  }

  .tab-bar {
    display: flex;
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    padding: 10px 12px;
  }

  .pending-list {
    max-height: 96px;
  }

  .records {
    overflow: auto;
  }

  .record-item,
  .minutes-box,
  .empty-panel {
    border-radius: 16px;
  }
}

