:root {
    --primary-color: #0a2d5c;
    --secondary-color: #1a4a8a;
    --accent-color: #c9a84c;
    --bg-light: #f0f4f8;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-light);
    color: #1a1a2e;
}
.bg-primary { background-color: var(--primary-color); }
.text-primary { color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-accent { background-color: var(--accent-color); }
.text-accent { color: var(--accent-color); }
.border-accent { border-color: var(--accent-color); }

/* 隐藏滚动条但保留滚动功能 */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 页面切换动画 */
.page-content { display: none; }
.page-content.active { display: block; animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 轮播图渐变 */
.banner-gradient {
    background: linear-gradient(90deg, rgba(10,45,92,0.9) 0%, rgba(10,45,92,0.4) 50%, rgba(10,45,92,0) 100%);
}

/* 跑马灯动画 */
@keyframes marquee {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.animate-marquee {
    animation: marquee 20s linear infinite;
}
.animate-marquee:hover {
    animation-play-state: paused;
}
/* 商品卡片hover */
.product-card:hover .favorite-btn {
    opacity: 1;
}
.favorite-btn {
    opacity: 0.8;
}

/* 产品详情页Tab切换 */
.detail-tab {
    cursor: pointer;
    transition: all 0.2s ease;
}
.detail-tab.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    font-weight: 700;
}
.detail-tab-content { display: none; }
.detail-tab-content.active { display: block; }

/* 流程步骤条 */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.step-line {
    width: 2px;
    flex-shrink: 0;
}

/* 产品缩略图选择 */
.thumb-img {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.thumb-img.active {
    border-color: var(--accent-color);
}

/* 成果发布 - 步骤进度条 */
.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.step-dot.step-completed {
    background-color: #0a2d5c;
    color: #fff;
}
.step-dot.step-current {
    background-color: #c9a84c;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}
.step-dot.step-pending {
    background-color: #e5e7eb;
    color: #9ca3af;
}
.step-connector {
    height: 3px;
    flex: 1;
    background-color: #e5e7eb;
    margin: 0 4px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}
.step-connector.step-connector-done {
    background-color: #0a2d5c;
}
.step-label { color: #9ca3af; }
.step-label-active { color: #0a2d5c; font-weight: 700; }
.upload-zone { cursor: pointer; transition: all 0.2s ease; }
.upload-zone:hover { border-color: #c9a84c; background-color: #fefcf5; }
.has-checked:has(input:checked) { border-color: #c9a84c; background-color: #fef6e0; }

/* ========== AI助手全新动效样式 ========== */

/* AI助手浮动按钮容器 */
#ai-assistant {
  z-index: 60;
}

/* AI主力按钮 - 更醒目的渐变 + 动效 */
.ai-main-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5), 0 0 0 4px rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: ai-float 3s ease-in-out infinite;
  border: none;
  outline: none;
}

.ai-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.7), 0 0 0 6px rgba(201, 168, 76, 0.25);
  animation: none;
}

/* 金色外环旋转 */
.ai-main-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background: linear-gradient(135deg, #c9a84c, #f0d060, #c9a84c) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ai-ring-spin 3s linear infinite;
}

.ai-main-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.2);
  animation: ai-pulse-ring 2s ease-out infinite;
}

/* 按钮内的图标 */
.ai-main-btn iconify-icon,
.ai-main-btn .ai-icon {
  font-size: 26px;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
  animation: ai-icon-glow 2s ease-in-out infinite;
}

/* 悬浮提示标签 */
.ai-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.ai-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid rgba(15, 23, 42, 0.9);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.ai-main-btn:hover .ai-tooltip {
  opacity: 1;
  right: 75px;
}

/* 动效关键帧 */
@keyframes ai-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes ai-ring-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ai-pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes ai-icon-glow {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(255,255,255,0.3)); }
  50% { opacity: 0.9; filter: drop-shadow(0 0 10px rgba(255,255,255,0.7)); }
}

/* AI助手打开时按钮停止浮动动画 */
#ai-assistant.open .ai-main-btn {
  animation: none;
}

/* 对话框样式微调 */
.ai-chat-window {
  box-shadow: 0 10px 50px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(201, 168, 76, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .ai-main-btn {
    width: 52px;
    height: 52px;
  }
  .ai-main-btn iconify-icon,
  .ai-main-btn .ai-icon {
    font-size: 22px;
  }
  .ai-tooltip {
    display: none;
  }
}

/* 登录/注册/认证样式 */
.auth-card { background: #fff; border-radius: 1.5rem; box-shadow: 0 8px 32px rgba(10,45,92,0.08); overflow: hidden; }
.auth-tab { cursor: pointer; transition: all 0.3s ease; position: relative; }
.auth-tab.active { color: #c9a84c; font-weight: 700; }
.auth-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 60%; height: 3px; background: #c9a84c; border-radius: 3px; }
.auth-input { width: 100%; padding: 0.875rem 1rem 0.875rem 2.75rem; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 1rem; font-size: 0.875rem; outline: none; transition: all 0.2s; }
.auth-input:focus { border-color: #c9a84c; box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.auth-input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.125rem; }
.auth-btn { width: 100%; padding: 0.875rem; border-radius: 1rem; font-weight: 700; font-size: 0.95rem; transition: all 0.3s; background: linear-gradient(135deg, #c9a84c, #e8c85a); color: #0a2d5c; border: none; cursor: pointer; }
.auth-btn:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(201,168,76,0.3); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.verify-btn { padding: 0.625rem 1rem; border-radius: 0.75rem; font-size: 0.75rem; font-weight: 700; background: #f0f4f8; color: #0a2d5c; border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.verify-btn:hover { border-color: #c9a84c; background: #fef6e0; }
.verify-btn:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; border-color: #e2e8f0; }

/* 密码强度指示器 */
.strength-bar { height: 4px; border-radius: 4px; transition: all 0.3s; }
.strength-weak { background: #ef4444; width: 33%; }
.strength-medium { background: #f59e0b; width: 66%; }
.strength-strong { background: #22c55e; width: 100%; }

/* 身份选择卡片 */
.identity-card { cursor: pointer; border: 2px solid #e2e8f0; border-radius: 1.25rem; padding: 1.5rem; transition: all 0.3s; background: #fff; }
.identity-card:hover { border-color: #c9a84c; box-shadow: 0 4px 20px rgba(201,168,76,0.1); }
.identity-card.selected { border-color: #c9a84c; background: #fefcf5; box-shadow: 0 4px 20px rgba(201,168,76,0.15); }

/* 认证步骤条 */
.auth-step-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; transition: all 0.3s; }
.auth-step-circle.completed { background: #0a2d5c; color: #fff; }
.auth-step-circle.current { background: #c9a84c; color: #fff; box-shadow: 0 0 0 4px rgba(201,168,76,0.2); }
.auth-step-circle.pending { background: #e5e7eb; color: #9ca3af; }
.auth-step-line { height: 3px; flex: 1; background: #e5e7eb; margin: 0 4px; border-radius: 2px; transition: background 0.3s; }
.auth-step-line.done { background: #0a2d5c; }

/* 认证状态标签 */
.auth-badge-pending { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.75rem; background: #fef3c7; color: #d97706; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.auth-badge-verified { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.75rem; background: #dcfce7; color: #16a34a; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.auth-badge-none { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.75rem; background: #f3f4f6; color: #9ca3af; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }

/* 其他登录方式分隔线 */
.or-divider { display: flex; align-items: center; gap: 1rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

/* 滚动条隐藏 */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* 上传进度动画 */
@keyframes upload-pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }
.uploading-anim { animation: upload-pulse 0.8s ease-in-out infinite; }

/* 工作台样式 */
.stat-card { background: #fff; border-radius: 1rem; padding: 1.25rem; box-shadow: 0 2px 8px rgba(10,45,92,0.06); border-left: 4px solid #c9a84c; transition: all 0.2s; }
.stat-card:hover { box-shadow: 0 4px 16px rgba(10,45,92,0.1); transform: translateY(-2px); }
.quick-action-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border-radius: 1rem; padding: 1rem; box-shadow: 0 2px 8px rgba(10,45,92,0.04); cursor: pointer; transition: all 0.2s; border: 1px solid #f0f4f8; }
.quick-action-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(10,45,92,0.1); border-color: #c9a84c; }
.quick-action-icon { width: 48px; height: 48px; background: #0a2d5c; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; margin-bottom: 0.5rem; transition: all 0.2s; }
.quick-action-btn:hover .quick-action-icon { background: #c9a84c; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.recommend-card { background: #f8fafc; border-radius: 0.75rem; padding: 1rem; cursor: pointer; transition: all 0.2s; border: 1px solid #e2e8f0; }
.recommend-card:hover { border-color: #c9a84c; background: #fefcf5; }

/* ========== 产品详情页优化样式 ========== */

/* Tab切换 - 金色下划线动效 */
.detail-tab {
  position: relative;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}
.detail-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #c9a84c;
  border-radius: 3px 3px 0 0;
  transition: all 0.3s ease;
}
.detail-tab:hover {
  color: #0a2d5c;
}
.detail-tab.active {
  color: #0a2d5c;
  font-weight: 700;
}
.detail-tab.active::after {
  width: 60%;
}
.detail-tab-content {
  display: none;
  animation: detailFadeIn 0.4s ease;
}
.detail-tab-content.active {
  display: block;
}
@keyframes detailFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 对接流程步骤条 */
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.step-line {
  width: 2px;
  min-height: 30px;
  flex-shrink: 0;
}

/* 缩略图悬停效果增强 */
.thumb-wrapper {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}
.thumb-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Toast 消息弹窗 */
.toast-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: toastFadeIn 0.3s ease;
}
.toast-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: toastSlideUp 0.3s ease;
}
.toast-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.toast-icon iconify-icon {
  font-size: 32px;
  color: #2e7d32;
}
.toast-card h5 {
  font-size: 18px;
  font-weight: 700;
  color: #0a2d5c;
  margin-bottom: 8px;
}
.toast-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}
.toast-btn {
  padding: 10px 32px;
  background: linear-gradient(135deg, #c9a84c, #e8c85a);
  color: #0a2d5c;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.toast-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}
@keyframes toastFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 参数表格增强 */
.param-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.param-table tr {
  transition: background 0.2s ease;
}
.param-table tr:hover td {
  background: #f8fafc;
}
.param-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.param-table td:first-child {
  background: #f8fafc;
  font-weight: 600;
  color: #4a5568;
  width: 35%;
}
.param-table td:last-child {
  color: #1a1a2e;
}
.param-table tr:last-child td {
  border-bottom: none;
}

/* 移动端适配增强 */
@media (max-width: 768px) {
  .detail-tab {
    padding: 10px 14px;
    font-size: 13px;
  }
  .toast-card {
    padding: 28px 24px 24px;
    width: 92%;
  }
}