* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0f17;
  --bg-soft: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.66);
  --line: rgba(255, 255, 255, 0.08);
  --primary: #8fb8ff;
  --primary-strong: #6ea8ff;
  --success: #67e8c8;
  --danger: #ff7f96;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.bg-glow-1 {
  width: 260px;
  height: 260px;
  background: #326bff;
  top: -80px;
  left: -60px;
}

.bg-glow-2 {
  width: 220px;
  height: 220px;
  background: #00d4ff;
  bottom: 60px;
  right: -80px;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.header {
  margin-bottom: 16px;
}

.brand-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #67e8c8, #6ea8ff);
  color: #081019;
  font-weight: 800;
}

.brand-card h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.date-box {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-hero {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10),
    rgba(255, 255, 255, 0.06)
  );
}

.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 13px;
  color: var(--muted);
}

textarea,
.chat-input-row input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  font-size: 15px;
}

textarea::placeholder,
.chat-input-row input::placeholder {
  color: rgba(245, 247, 251, 0.35);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

textarea:focus,
.chat-input-row input:focus {
  border-color: rgba(143, 184, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.08);
}

.upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.glass-btn,
.primary-btn {
  min-height: 46px;
  border-radius: 16px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  background: linear-gradient(135deg, #6ea8ff, #7dc8ff);
  color: #081019;
  border: none;
}

.voice-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.voice-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--muted);
}

.hold-talk-btn {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(143, 184, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(110, 168, 255, 0.16),
    rgba(103, 232, 200, 0.14)
  );
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border 0.12s ease;
}

.hold-talk-btn:active,
.hold-talk-btn.recording {
  transform: scale(0.985);
  background: linear-gradient(
    135deg,
    rgba(255, 127, 150, 0.22),
    rgba(255, 80, 110, 0.18)
  );
  border-color: rgba(255, 127, 150, 0.45);
}

.voice-tip {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.material-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.material-item button {
  border: none;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
}

.empty-text {
  margin: 0;
  color: var(--muted);
}

.chat-box {
  min-height: 220px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-message {
  display: flex;
}

.chat-message.ai {
  justify-content: flex-start;
}

.chat-message.user {
  justify-content: flex-end;
}

.bubble {
  max-width: 82%;
  border-radius: 18px;
  padding: 12px 14px;
  line-height: 1.6;
  font-size: 14px;
}

.chat-message.ai .bubble {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chat-message.user .bubble {
  background: linear-gradient(135deg, #6ea8ff, #7dc8ff);
  color: #081019;
}

.chat-input-row {
  display: flex;
  gap: 10px;
}

.chat-input-row input {
  flex: 1;
}

.result-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.result-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.result-block h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.result-block p,
.result-block li {
  margin: 0;
  color: rgba(245, 247, 251, 0.9);
  line-height: 1.7;
}

.result-block ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 640px) {
  .app {
    padding: 12px 10px 24px;
  }

  .brand-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-card h1 {
    font-size: 24px;
  }

  .card h2 {
    font-size: 22px;
  }

  .section-title-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-input-row {
    flex-direction: column;
  }

  .primary-btn {
    width: 100%;
  }
}