/* 玄晶引擎 XgenCore - 成本评估页面样式 */

/* ===== Hero区域 ===== */
.cost-hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.05) 0%, transparent 100%);
}

.cost-hero-content {
  text-align: center;
}

.cost-hero .section-header {
  margin-bottom: 64px;
}

.cost-hero .section-header h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cost-hero .section-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* 定价卡片 */
.cost-pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s var(--ease-expo);
}

.pricing-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-4px);
}

.pricing-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.pricing-value {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.pricing-unit {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ===== 场景选择 ===== */
.scene-selection {
  padding: 40px 0;
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scene-selection .section-header {
  margin-bottom: 32px;
}

.scene-selection .section-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.scene-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.scene-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease-expo);
}

.scene-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 102, 255, 0.3);
}

.scene-tab.active {
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--primary);
}

.tab-icon {
  font-size: 32px;
}

.tab-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white) !important;
}

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

/* ===== 场景内容 ===== */
.scene-content {
  display: none;
  padding: 64px 0;
}

.scene-content.active {
  display: block;
  animation: fadeIn 0.4s var(--ease-expo);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 场景信息卡片 */
.scene-info-card {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05));
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 48px;
}

.scene-info-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.scene-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.scene-info-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ===== 成本网格 ===== */
.cost-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

@media (max-width: 1024px) {
  .cost-grid {
    grid-template-columns: 1fr;
  }
}

/* 成本明细面板 */
.cost-detail-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(0, 102, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header h4 {
  font-size: 16px;
  font-weight: 600;
}

.panel-total {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.panel-body {
  padding: 16px 24px;
  max-height: 500px;
  overflow-y: auto;
}

/* 成本分类 */
.cost-category {
  margin-bottom: 16px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-name {
  font-size: 15px;
  font-weight: 600;
}

.category-value {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.category-items {
  padding-left: 16px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.category-item:last-child {
  border-bottom: none;
}

/* 成本汇总面板 */
.cost-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.summary-card.primary {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.1));
  border-color: rgba(0, 102, 255, 0.3);
}

.summary-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.summary-card.primary .summary-value {
  font-size: 32px;
}

/* 对比面板 */
.compare-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.compare-header {
  padding: 16px 20px;
  background: rgba(16, 185, 129, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

.compare-body {
  padding: 16px 20px;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row span:first-child {
  color: var(--text-secondary);
}

.highlight-red {
  color: #EF4444;
  font-weight: 600;
}

.highlight-green {
  color: var(--success);
  font-weight: 600;
}

.highlight-blue {
  color: var(--accent);
  font-weight: 600;
}

/* ===== 自定义配置 ===== */
.custom-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .custom-config {
    grid-template-columns: 1fr;
  }
}

.config-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.config-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(0, 102, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.config-icon {
  font-size: 24px;
}

.config-header h4 {
  font-size: 16px;
  font-weight: 600;
}

.config-body {
  padding: 24px;
}

/* 表单样式 */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.checkbox-group {
  margin-top: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* 获客配置 */
.acquisition-config {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.acquisition-type label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

.acquisition-row {
  display: flex;
  gap: 12px;
}

.acquisition-row select {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.acquisition-row input {
  width: 80px;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
}

/* ===== 自定义结果 ===== */
.custom-result {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 212, 255, 0.02));
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
}

.result-header {
  text-align: center;
  margin-bottom: 32px;
}

.result-header h4 {
  font-size: 20px;
  font-weight: 700;
}

/* 业务预测 */
.business-prediction {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
}

.business-prediction h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.prediction-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.prediction-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.prediction-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

/* ===== CTA区域 ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(0, 102, 255, 0.05));
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== 页脚 ===== */
.footer {
  padding: 64px 0 32px;
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

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