:root {
  --bg-main: #1a1a1d;
  --bg-card: #27272d;
  --bg-input: #32323a;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b8;
  --accent: #7c9b7c;
  --accent-dark: #5e775e;
  --line: #44444a;
  --shadow: 0 4px 12px rgba(0,0,0,0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: "PingFang TC", "Noto Sans TC", sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px;
}

.title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn-line {
  background: #06C755;
}
.btn-line:hover {
  background: #05b44b;
}

input, select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 12px;
  outline: none;
}

input:focus, select:focus {
  border-color: var(--accent);
}

.chat-box, .chat-widget {
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
}

.messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-size: 15px;
}

.bot {
  background: var(--bg-card);
  color: var(--text-primary);
  align-self: flex-start;
  border: 1px solid var(--line);
}

.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  margin-left: auto;
}

.input-bar {
  display: flex;
  padding: 12px;
  background: var(--bg-card);
  gap: 8px;
  border-top: 1px solid var(--line);
}