/* 碳核算页面专用样式 */

.page-header {
  text-align: center;
  padding: 40px 60px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
  animation: slideIn 0.6s ease-out;
  max-width: 100%;
}

.page-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
  margin: 8px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.carbon-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.carbon-comparison-card {
  grid-column: 1 / -1;
}

.comparison-content {
  display: grid;
  gap: 20px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table thead {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.comparison-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  border-bottom: 2px solid var(--border);
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.comparison-table tbody tr {
  transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
  background: linear-gradient(90deg, #f0f7ff 0%, #f8fafc 100%);
  transform: scale(1.01);
}

.reduction-positive {
  color: var(--ok);
  font-weight: 700;
  font-size: 15px;
}

.reduction-increase {
  color: var(--ok);
  font-weight: 700;
  font-size: 15px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.summary-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.summary-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.summary-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 6px;
}

.summary-value.primary {
  background: linear-gradient(135deg, var(--ok), #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-value.success {
  background: linear-gradient(135deg, var(--ok), #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-desc {
  font-size: 12px;
  color: var(--muted);
}

/* 技术卡片 */
.tech-card {
  display: flex;
  flex-direction: column;
}

.tech-visual {
  height: 180px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.plant-visual {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.energy-visual {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* 微生物动画 */
.bio-animation {
  width: 100%;
  height: 100%;
  position: relative;
}

.microbe {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.6),
    rgba(16, 185, 129, 0.2)
  );
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

.microbe:nth-child(2) {
  animation-delay: 1s;
}

.microbe:nth-child(3) {
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.1);
  }
}

/* 植物动画 */
.plant-animation {
  width: 100%;
  height: 100%;
  position: relative;
}

.leaf {
  position: absolute;
  width: 30px;
  height: 20px;
  background: #059669;
  border-radius: 50% 0;
  transform: rotate(-45deg);
  animation: sway 2s ease-in-out infinite;
}

.leaf:nth-child(2) {
  animation-delay: 0.5s;
}

.leaf:nth-child(3) {
  animation-delay: 1s;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-45deg);
  }
  50% {
    transform: rotate(-35deg);
  }
}

.arrow {
  position: absolute;
  width: 8px;
  height: 60px;
  background: linear-gradient(180deg, transparent, #059669);
  border-radius: 4px;
  animation: grow 2s ease-in-out infinite;
}

.arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #059669;
}

.arrow:nth-child(4) {
  animation-delay: 0.2s;
}

.arrow:nth-child(5) {
  animation-delay: 0.4s;
}

.arrow:nth-child(6) {
  animation-delay: 0.6s;
}

.arrow:nth-child(7) {
  animation-delay: 0.8s;
}

@keyframes grow {
  0%,
  100% {
    transform: scaleY(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* 能源动画 */
.energy-animation {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.solar-panel {
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  animation: shine 2s ease-in-out infinite;
}

.solar-panel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
}

.solar-panel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 80%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
}

@keyframes shine {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
  }
}

.battery {
  width: 60px;
  height: 90px;
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.battery::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 8px;
  background: #64748b;
  border-radius: 4px 4px 0 0;
}

.battery::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 60%;
  background: linear-gradient(180deg, #10b981, #059669);
  border-radius: 4px;
  animation: charge 3s ease-in-out infinite;
}

@keyframes charge {
  0%,
  100% {
    height: 60%;
  }
  50% {
    height: 80%;
  }
}

/* 技术项目列表 */
.tech-items {
  display: grid;
  gap: 12px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.tech-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  flex-shrink: 0;
}

.tech-icon.cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.tech-icon.teal {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.tech-icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tech-icon.green-light {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.tech-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tech-icon.blue-light {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.tech-info {
  flex: 1;
}

.tech-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.tech-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.tech-metric {
  font-size: 12px;
  color: var(--muted);
}

.tech-metric .success {
  color: var(--ok);
  font-weight: 700;
}

/* 响应式 */
@media (max-width: 1200px) {
  .carbon-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .carbon-grid {
    grid-template-columns: 1fr;
  }

  .summary-cards {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 24px;
  }

  .page-subtitle {
    font-size: 14px;
  }
}
