﻿/* 绿色环保主题变量 */
:root {
  --primary-color: #43a047;
  --primary-color-light: #66bb6a;
  --primary-color-dark: #2e7031;
  --text-light: #7a8a7a;
  --background-gradient: linear-gradient(135deg, #e8f5e9 0%, #b9f6ca 100%);
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--background-gradient);
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}
.container {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(67, 160, 71, 0.08);
  padding: 40px 36px 32px 36px;
  max-width: 1200px;
  width: 96vw;
  min-width: 320px;
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border: 1px solid #e0e0e0;
}
.header {
  text-align: center;
  margin-bottom: 18px;
}
.header-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 2px;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}
.header-icon {
  font-size: 2.2em;
  color: var(--primary-color);
  vertical-align: middle;
  margin-right: 8px;
}
.header-subtitle {
  font-size: 1.1em;
  color: var(--text-light);
  margin-top: 6px;
  font-weight: 400;
}
.section-title {
  font-size: 1.15em;
  color: var(--primary-color-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.section-title .icon {
  font-size: 1.3em;
}
.upload-button {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: linear-gradient(90deg, #43a047 0%, #66bb6a 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 14px 36px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(67, 160, 71, 0.13);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 1px;
  margin-top: 10px;
}
.upload-button:hover {
  background: linear-gradient(90deg, #388e3c 0%, #43a047 100%);
  box-shadow: 0 8px 32px rgba(67, 160, 71, 0.18);
  transform: translateY(-2px) scale(1.03);
}
.upload-btn-icon {
  font-size: 1.3em;
  margin-right: 6px;
}
.upload-btn-text {
  font-size: 1.08em;
}
.search-box {
  margin-bottom: 10px;
  position: relative;
}
.search-box input {
  padding-left: 36px;
  border: 1px solid #b9f6ca;
  border-radius: 6px;
  height: 36px;
  font-size: 1em;
  outline: none;
  transition: border 0.2s;
}
.search-box input:focus {
  border: 1.5px solid var(--primary-color);
}
.search-box .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.1em;
}
.copyright {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95em;
  margin-top: 24px;
  margin-bottom: 8px;
}
.ai-chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(67, 160, 71, 0.18);
  transition: background 0.3s;
  z-index: 1100;
}
.ai-chat-fab:hover {
  background: var(--primary-color-dark);
}
.ai-chat-window {
  position: fixed;
  right: 18px;
  bottom: 80px;
  width: 360px;
  max-width: calc(100% - 36px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(67, 160, 71, 0.18);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0;
  transform: translateY(10px);
  z-index: 1000;
  border: 1.5px solid #b9f6ca;
}
.ai-chat-window.show {
  opacity: 1;
  transform: translateY(0);
}
.ai-chat-header {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 16px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}
.ai-chat-close {
  cursor: pointer;
  font-size: 1.2em;
}
.ai-chat-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}
.ai-chat-msg.user {
  align-self: flex-end;
}
.ai-chat-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
  line-height: 1.4;
}
.ai-chat-bubble::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}
.ai-chat-msg.user .ai-chat-bubble {
  background: #e8f5e9;
  color: #333;
  border: 1px solid #b9f6ca;
}
.ai-chat-msg.user .ai-chat-bubble::after {
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px 0 5px 5px;
  border-color: transparent transparent transparent #e8f5e9;
}
.ai-chat-msg.ai .ai-chat-bubble {
  background: #f1f8e9;
  color: #333;
  border: 1px solid #b9f6ca;
}
.ai-chat-msg.ai .ai-chat-bubble::after {
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px 5px 5px 0;
  border-color: transparent #f1f8e9 transparent transparent;
}
.ai-chat-input-area {
  display: flex;
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.ai-chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #b9f6ca;
  border-radius: 18px;
  outline: none;
  font-size: 1em;
  margin-right: 8px;
  transition: border 0.2s;
}
.ai-chat-input:focus {
  border: 1.5px solid var(--primary-color);
}
.ai-chat-send-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}
.ai-chat-send-btn:hover {
  background: var(--primary-color-dark);
}
/* 其它控件简化风格 */
.file-input-label, .file-input {
  background: #f1f8e9;
  border: 1px solid #b9f6ca;
  border-radius: 6px;
  padding: 8px 16px;
  color: #333;
  font-size: 1em;
  cursor: pointer;
  margin-right: 8px;
  transition: border 0.2s;
}
.file-input-label:hover {
  border: 1.5px solid var(--primary-color);
}
.file-name {
  color: var(--primary-color-dark);
  font-size: 0.98em;
  margin-left: 8px;
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f8e9;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1em;
  border: 1px solid #b9f6ca;
  transition: background 0.2s;
}
.file-item:hover {
  background: #e8f5e9;
}
.file-icon {
  color: var(--primary-color);
  font-size: 1.1em;
}
.styled-select {
  border: 1px solid #b9f6ca;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 1em;
  outline: none;
  background: #f1f8e9;
  color: #333;
  transition: border 0.2s;
}
.styled-select:focus {
  border: 1.5px solid var(--primary-color);
}
.status-message {
  margin-top: 10px;
  font-size: 1em;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f1f8e9;
  color: var(--primary-color-dark);
  border: 1px solid #b9f6ca;
  display: inline-block;
}
.status-message.error {
  color: #c62828;
  background: #ffebee;
  border: 1px solid #ffcdd2;
}
.status-message.success {
  color: var(--primary-color);
  background: #e8f5e9;
  border: 1px solid #b9f6ca;
}
.status-message.progress {
  color: #888;
  background: #f1f8e9;
  border: 1px solid #b9f6ca;
}
#importExcelBtn {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  transition: background 0.2s;
}
#importExcelBtn:hover {
  background: var(--primary-color-dark);
}
#importExcelStatus {
  margin-left: 16px;
  color: var(--primary-color);
  font-weight: 500;
}
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-color-dark);
  text-decoration: underline;
}
.preview-btn, .delete-btn {
  border: none;
  background: #e8f5e9;
  color: var(--primary-color-dark);
  border-radius: 6px;
  padding: 6px 12px;
  margin-left: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.preview-btn::before {
  content: '\1F50D'; /* Unicode for magnifying glass */
  font-size: 1.1em;
  margin-right: 2px;
}
.preview-btn:hover {
  background: #b9f6ca;
  color: #2e7031;
}
.delete-btn {
  background: #ffebee;
  color: #c62828;
}
.delete-btn:hover {
  background: #ffcdd2;
  color: #b71c1c;
}
/* ========== 迁移自 index.html 的内联样式 ========== */
.flex-col-gap28 {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
}
.mt-24 {
  margin-top: 24px;
}
.section-title-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-1-2em {
  font-size: 1.2em;
}
.ml-auto {
  margin-left: auto;
}
.inline-flex {
  display: inline-flex;
  align-items: center;
}
.no-decoration {
  text-decoration: none;
}
.primary-link {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1em;
  padding: 6px 16px;
  border-radius: 6px;
  background: rgba(67,160,71,0.08);
  transition: background 0.2s;
}
.icon-1-1em {
  font-size: 1.1em;
  margin-right: 6px;
}
.w-100 {
  width: 100%;
}
.status-hidden {
  display: none;
}
.pt-18 {
  padding-top: 18px;
}
.pb-0 {
  padding-bottom: 0;
}
.ptb-18-0 {
  padding: 18px 0 0 0;
}
.bt-dashed-green {
  border-top: 1px dashed #b9f6ca;
}
.mb-12 {
  margin-bottom: 12px;
}