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

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 40px 30px;
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-text {
  flex: 1;
  text-align: left;
}

.header-text h1 {
  margin: 0 0 15px 0;
  text-align: left;
}

.header-text p {
  margin: 0;
  text-align: left;
  line-height: 1.6;
}

.hospital-logo {
  flex-shrink: 0;
  margin-left: 20px;
}

.hospital-logo img {
  height: 160px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
}
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="70" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  pointer-events: none;
}

.header h1 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  text-align: left;
}

.header p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 0 20px 0;
    text-align: left;
  position: relative;
  z-index: 1;
}

.navigation-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.home-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-switch {
  position: relative;
  z-index: 1;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 20px;
  margin: 0 5px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.lang-btn.active {
  background: white;
  color: #2c3e50;
  border-color: white;
}

.content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px 40px;
}

.form-section,
.results-section {
  background: #f8f9fa;
  padding: 35px;
  border-radius: 15px;
  border: 1px solid #e9ecef;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.form-section:hover,
.results-section:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.form-section h2,
.results-section h2 {
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 24px;
  border-bottom: 3px solid #3498db;
  padding-bottom: 12px;
  font-weight: 600;
}

.instruction {
  color: #7f8c8d;
  margin-bottom: 30px;
  font-style: italic;
  background: #ecf0f1;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.form-group {
  margin-bottom: 25px;
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
  font-size: 15px;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  background: white;
  padding: 12px 18px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  position: relative;
  overflow: hidden;
}

.radio-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.5s ease;
}

.radio-option:hover::before {
  left: 100%;
}

.radio-option:hover {
  border-color: #3498db;
  background: #f1f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.radio-option input[type="radio"] {
  margin-right: 10px;
  accent-color: #3498db;
  scale: 1.2;
}

.radio-option:has(input:checked) {
  border-color: #3498db;
  background: #f1f8ff;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.radio-option:has(input:checked) span {
  color: #3498db;
  font-weight: 600;
}

.calculate-btn {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.calculate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.calculate-btn:hover::before {
  left: 100%;
}

.calculate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
}

.calculate-btn:active {
  transform: translateY(-1px);
}

.results-section h2 {
  border-bottom-color: #e74c3c;
}

.result-item {
  background: white;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  border-left: 5px solid #3498db;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.result-item h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.result-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.with-tace {
  color: #27ae60;
  border-left-color: #27ae60;
}

.without-tace {
  color: #e74c3c;
  border-left-color: #e74c3c;
}

.net-benefit-item {
  border-left-color: #f39c12;
  background: linear-gradient(135deg, #fff 0%, #fef9e7 100%);
}

.net-benefit {
  color: #f39c12;
}

.result-unit {
  font-size: 16px;
  color: #7f8c8d;
  font-weight: 400;
}

/* 风险评估样式 */
.risk-score {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.risk-level {
  font-size: 16px;
  color: #7f8c8d;
}

.risk-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 10px;
}

.risk-badge.low-risk {
  background: linear-gradient(135deg, #d5f4e6 0%, #c8e6c9 100%);
  color: #27ae60;
  border: 2px solid #27ae60;
}

.risk-badge.intermediate-risk {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #f39c12;
  border: 2px solid #f39c12;
}

.risk-badge.high-risk {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #e74c3c;
  border: 2px solid #e74c3c;
}

.survival-rates {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #7f8c8d;
}

.survival-rates strong {
  color: #2c3e50;
}

.hidden {
  display: none;
}

.no-results {
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  border: 2px dashed #bdc3c7;
}

.disclaimer {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffeaa7;
  padding: 30px;
  margin: 0 40px 30px;
  border-radius: 12px;
  color: #856404;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* 占位页面样式 */
.coming-soon-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 60px 40px;
  border-radius: 15px;
  text-align: center;
  margin: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 30px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.coming-soon-section h2 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.coming-soon-section>p {
  color: #7f8c8d;
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-preview {
  background: #ecf0f1;
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-preview h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.features-preview ul {
  list-style: none;
  padding: 0;
}

.features-preview li {
  color: #34495e;
  padding: 8px 0;
  border-bottom: 1px solid #bdc3c7;
  position: relative;
  padding-left: 25px;
}

.features-preview li:last-child {
  border-bottom: none;
}

.features-preview li::before {
  content: "✓";
  color: #27ae60;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 8px;
}

.back-home-btn {
  display: inline-block;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
  margin-top: 20px;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.disclaimer h3 {
  margin-bottom: 15px;
  color: #d68910;
  font-size: 18px;
}

.footer {
  background: #2c3e50;
  color: #bdc3c7;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }

  .header h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .content {
    padding: 20px;
  }

  .form-section,
  .results-section {
    padding: 25px;
  }

  .header {
    padding: 30px 20px;
  }

    .header-content {
      flex-direction: column;
      align-items: center;
    }
  
    .header-text {
      text-align: center;
      margin-bottom: 20px;
    }
  
    .hospital-logo {
      margin-left: 0;
    }
  
    .hospital-logo img {
      height: 120px;
    }

  .header h1 {
    font-size: 24px;
  }

  .radio-group {
    flex-direction: column;
  }

  .radio-option {
    justify-content: center;
  }

  .survival-rates {
    flex-direction: column;
    gap: 10px;
  }

  .disclaimer {
    margin: 0 20px 20px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 20px;
  }

  .header p {
    font-size: 14px;
  }

  .form-section h2,
  .results-section h2 {
    font-size: 20px;
  }

  .result-value {
    font-size: 24px;
  }
}

/* 打印样式 */
@media print {
  body {
    background: white;
  }

  .container {
    box-shadow: none;
  }

  .header {
    background: #2c3e50 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .calculate-btn {
    display: none;
  }
}