/* ===== 基础设置 ===== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent: #7c5cbc;
  --accent-light: #f3f0f9;
  --accent-glow: rgba(124, 92, 188, 0.2);
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', 'Noto Sans SC', -apple-system, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== 背景效果 ===== */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 188, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(124, 92, 188, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== 容器 ===== */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== 语言选择器 ===== */
.lang-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.lang-selector select {
  padding: 8px 32px 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.lang-selector select:hover {
  border-color: var(--accent);
}

.lang-selector select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===== 头部 ===== */
header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.6s ease-out;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  height: 80px;
}

.logo-img {
  height: 180px;
  width: auto;
  object-fit: cover;
  object-position: center 35%;
  /* 白色背景自动透明 */
  mix-blend-mode: multiply;
  filter: brightness(1.02);
}

header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ===== 玻璃卡片 ===== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ===== 输入区域 ===== */
.input-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* ===== 文本框 ===== */
.textarea-wrapper {
  position: relative;
}

#painPointInput {
  width: 100%;
  padding: 20px;
  background: var(--bg-card);
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  resize: none;
  transition: all 0.3s ease;
}


#painPointInput::placeholder {
  color: var(--text-muted);
}

#painPointInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.textarea-glow {
  display: none;
}

/* ===== 按钮 ===== */
.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  background: var(--accent);
  border: none;
  border-radius: 14px;
  color: white;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.primary-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.primary-btn:hover::before {
  opacity: 1;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.primary-btn:active {
  transform: translateY(0);
}

.primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text, .btn-icon {
  position: relative;
  z-index: 1;
}

.btn-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.primary-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ===== 加载动画 ===== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.loader {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--bg-secondary);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.loader-ring:nth-child(2) {
  inset: 8px;
  border-top-color: var(--accent);
  animation-delay: 0.15s;
  animation-duration: 1s;
}

.loader-ring:nth-child(3) {
  inset: 16px;
  border-top-color: var(--accent);
  animation-delay: 0.3s;
  animation-duration: 0.8s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 15px;
}

.dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ===== 结果区域 ===== */
.results-section {
  margin-top: 30px;
}

.results-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* ===== 方案卡片 ===== */
.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
  box-shadow: var(--shadow-md);
}

.solution-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.solution-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.solution-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.industry-tag {
  padding: 8px 18px;
  background: var(--accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.pain-point {
  padding: 20px;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.pain-point strong {
  color: var(--text-primary);
}

.description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
  font-size: 15px;
}

.features h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.features li {
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.features li:hover {
  background: var(--accent-light);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--text-primary);
}

.features li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 28px 0;
}

/* ===== 开发/维护区块 ===== */
.development-section,
.maintenance-section {
  margin: 24px 0;
}

.development-section h4,
.maintenance-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-item {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.value.price {
  font-size: 1.8rem;
  color: var(--accent);
}

.tech-stack {
  margin: 20px 0;
}

.tech-stack strong {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.tech-tag {
  display: inline-block;
  padding: 10px 18px;
  background: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin: 4px 8px 4px 0;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.resources strong,
.human-resources strong {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.resources ul,
.human-resources ul {
  list-style: none;
}

.resources li,
.human-resources li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.resources li:hover,
.human-resources li:hover {
  background: var(--accent-light);
  border-color: rgba(99, 102, 241, 0.2);
}

.resource-type {
  padding: 5px 12px;
  background: var(--accent);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  margin-right: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== 空结果 ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results h3 {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ===== 页脚 ===== */
footer {
  text-align: center;
  margin-top: 48px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-tags span {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.footer-tags span:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }
  
  .glass-card {
    padding: 24px;
    border-radius: 20px;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  .solution-header {
    flex-direction: column;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .features ul {
    grid-template-columns: 1fr;
  }
}


/* ===== 标签样式 ===== */
.result-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.model-tag {
  padding: 8px 16px;
  background: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.ai-tag {
  padding: 8px 16px;
  background: var(--success);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.keyword-tag {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ===== Contact Modal ===== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}
.contact-modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 40px;
  max-width: 520px;
  width: 92%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: contactModalIn 0.35s ease-out;
}
@keyframes contactModalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.contact-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1;
}
.contact-close-btn:hover {
  background: var(--glass-border);
  color: var(--text-primary);
  transform: scale(1.1);
}
.contact-modal-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.contact-modal-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.contact-qr-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.contact-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.contact-qr-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.contact-qr-img {
  width: 150px;
  height: 150px;
  display: block;
  border-radius: 8px;
}
.contact-qr-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}
.wechat-label {
  color: #07c160;
  background: rgba(7, 193, 96, 0.1);
}
.whatsapp-label {
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}
.contact-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-confirm-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #5b3d99);
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}
.contact-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.contact-skip-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
}
.contact-skip-btn:hover {
  color: var(--text-primary);
}
@media (max-width: 480px) {
  .contact-qr-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .contact-modal-content {
    padding: 28px 20px;
  }
}
