/* ========== 基础 ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== 顶部标题 ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eef0f5;
}
.header-inner { display: flex; align-items: center; justify-content: center; height: 72px; }

/* ========== 顶部用户栏 ========== */
.user-bar {
  display: flex; align-items: center; gap: 10px;
  color: #4b5563; font-size: 14px;
}
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  transition: all .2s ease;
}
.user-chip:hover {
  background: #e0e7ff;
  border-color: #c7d2fe;
}
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a8cff, #6a5cff);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(74, 140, 255, .35);
}
.user-bar .user-name {
  white-space: nowrap;
  font-weight: 500; color: #334155;
  max-width: 140px; overflow: hidden; text-overflow: ellipsis;
}
.logout-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.logout-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, .15);
}
.logout-btn:active { transform: translateY(0); }
.logout-btn svg { width: 15px; height: 15px; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.brand-title-main {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #4a8cff, #6a5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

/* ========== 行业筛选 ========== */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid #eef0f5;
  padding: 18px 0;
}
.filter-list {
  display: flex; gap: 10px; overflow-x: auto;
  scrollbar-width: thin;
}
.filter-item {
  flex-shrink: 0;
  padding: 6px 18px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.filter-item:hover { background: #e0e7ff; color: #2563eb; }
.filter-item.active {
  background: linear-gradient(135deg, #4a8cff, #6a5cff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(74, 140, 255, .3);
}

/* ========== 卡片网格 ========== */
.main-wrap { padding: 28px 24px 60px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 22px 18px;
  border: 1px solid #eef0f5;
  transition: all .25s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(31, 41, 55, .08);
  border-color: #c7d2fe;
}

.card-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.card-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-title {
  font-size: 15px; font-weight: 600; color: #1f2937; line-height: 1.5;
}

.card-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: #2563eb; background: #eff6ff;
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: 8px;
}
.card-section-title {
  font-size: 12px; color: #6b7280; margin-bottom: 4px;
}
.card-text {
  color: #4b5563; font-size: 13px; line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 64px;
}

.card-actions { margin-top: auto; }
.card-actions-row {
  display: flex; gap: 10px;
}
.btn {
  flex: 1; padding: 8px 0; border-radius: 8px; border: none;
  font-size: 13px; cursor: pointer; transition: all .25s;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  position: relative;
  overflow: hidden;
}
.btn-outline {
  background: #fff; color: #2563eb; border: 1px solid #bfdbfe;
}
.btn-outline:hover { background: #eff6ff; }
.btn-primary {
  background: linear-gradient(135deg, #4a8cff, #6a5cff, #8b5cf6);
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(74, 140, 255, .35);
  border: none;
}
.btn-primary:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74, 140, 255, .45);
  filter: brightness(1.05);
}
.btn-primary:active:not([disabled]) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 140, 255, .3);
}
.btn-primary[disabled] {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db) !important;
  color: #9ca3af !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}
.btn-ghost {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #4a8cff;
  border: 1.5px solid #e2e8f0;
  font-weight: 500;
}
.btn-ghost:hover:not([disabled]) {
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  border-color: #bfdbfe;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 140, 255, .15);
}
.btn-ghost:active:not([disabled]) {
  transform: translateY(0);
}
.btn-ghost[disabled] {
  background: #fafafa !important;
  color: #d1d5db !important;
  border-color: #f0f0f0 !important;
  cursor: not-allowed;
  transform: none !important;
}
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: not-allowed; }

.empty-tip {
  text-align: center; padding: 80px 0; color: #9ca3af;
}

/* ========== 弹窗（飞书风格） ========== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: #fff; border-radius: 20px;
  width: 620px; max-width: 90vw; max-height: 80vh; overflow: hidden;
  display: flex; flex-direction: column;
  animation: pop .25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 40px rgba(0,0,0,.15);
}
.modal-panel-sm { width: 460px; }
@keyframes pop { from { transform: translateY(20px) scale(.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #f0f0f0;
  font-size: 17px; font-weight: 600;
  background: #fff;
}
.modal-close {
  cursor: pointer; font-size: 20px; color: #999;
  width: 32px; height: 32px; line-height: 32px; text-align: center;
  border-radius: 8px;
  transition: all .2s;
}
.modal-close:hover { background: #f5f5f5; color: #666; }
.modal-body { padding: 12px 16px; overflow-y: auto; flex: 1; }

/* ========== 飞书风格录音列表 ========== */
.audio-list-container {
  padding: 8px;
}
.audio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  transition: all .25s ease;
}
.audio-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  border-color: #d0d7de;
}
.audio-card:active {
  transform: scale(.99);
}
.audio-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.audio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 48px;
  height: 32px;
  padding: 8px;
  background: linear-gradient(135deg, #f7f8fa, #f0f1f5);
  border-radius: 8px;
}
.audio-wave span {
  display: inline-block;
  width: 4px;
  height: 10px;
  background: #c0c4cc;
  border-radius: 2px;
  animation: wave .8s ease-in-out infinite;
}
.audio-card:hover .audio-wave span {
  background: #4a8cff;
}
@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 20px; }
}
.audio-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.audio-name {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}
.audio-duration {
  font-size: 13px;
  color: #9ca3af;
}
.audio-card-right {
  flex-shrink: 0;
}
.audio-card-right audio {
  height: 32px;
  min-width: 200px;
}

/* Demo 表单 */
.demo-tip {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  color: #1e40af; padding: 12px 16px; border-radius: 10px;
  font-size: 15px; margin-bottom: 20px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: 14px; color: #4b5563; margin-bottom: 8px; font-weight: 500;
}
.form-row input {
  width: 100%; padding: 14px 16px; font-size: 16px;
  border: 1.5px solid #e5e7eb; border-radius: 10px; outline: none;
  transition: border .2s;
}
.form-row input:focus { border-color: #4a8cff; }
.code-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.code-row input {
  flex: 1;
  font-size: 18px;
  letter-spacing: 8px;
  text-align: center;
  padding: 16px;
}
.code-row .btn {
  width: 100%;
  padding: 13px 0;
  font-size: 15px;
  border-radius: 12px !important;
}
#btnSendCode {
  border-radius: 12px !important;
  font-weight: 500;
}
#btnSendCode:not([disabled]) {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #4a8cff;
  border: 1.5px solid #e2e8f0;
}
#btnSendCode:hover:not([disabled]) {
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  border-color: #93c5fd;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 140, 255, .15);
}
#btnSendCode[disabled] {
  background: #fafafa !important;
  color: #d1d5db !important;
  border-color: #f0f0f0 !important;
  cursor: not-allowed;
}
.demo-msg { min-height: 24px; font-size: 14px; margin: 6px 0 16px; }
.demo-msg.ok { color: #059669; }
.demo-msg.err { color: #dc2626; }
.demo-foot { font-size: 13px; color: #9ca3af; margin-top: 16px; text-align: center; }
#btnSubmitDemo {
  padding: 15px 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #4a8cff, #6a5cff, #8b5cf6) !important;
  box-shadow: 0 6px 20px rgba(74, 140, 255, .4), 0 2px 4px rgba(74, 140, 255, .2) !important;
  letter-spacing: 1px;
}
#btnSubmitDemo:hover:not([disabled]) {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(74, 140, 255, .5), 0 4px 8px rgba(74, 140, 255, .3) !important;
  filter: brightness(1.05);
}
#btnSubmitDemo:active:not([disabled]) {
  transform: translateY(0) !important;
  box-shadow: 0 4px 12px rgba(74, 140, 255, .3) !important;
}
#btnSubmitDemo[disabled] {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb) !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ========== 页脚 ========== */
.site-footer {
  text-align: center;
  padding: 30px 0;
  color: transparent;
  font-size: 0;
}



