/* 臺灣金融機構專業配色：皇家深海藍與尊榮金 */
:root {
  --primary-bg: #0b192e;
  --panel-bg-1: #102a45;
  --panel-bg-2: #091727;
  --accent-gold: #f5a623;
  --accent-gold-hover: #ffb838;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --border-color: rgba(245, 166, 35, 0.25);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --max-width: 480px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 50% 20%, #153459 0%, #0b192e 100%);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
}

.stock-diagnosis-container {
  width: 100%;
  max-width: var(--max-width);
  position: relative;
  z-index: 1;
}

.stock-card {
  background: linear-gradient(180deg, var(--panel-bg-1) 0%, var(--panel-bg-2) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 24px 20px;
}

.card-header {
  text-align: center;
  margin-bottom: 20px;
}

.card-header h1 {
  font-size: 22px;
  color: var(--accent-gold);
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.card-icon {
  font-size: 32px;
  color: var(--accent-gold);
  margin-top: 12px;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon {
  color: var(--accent-gold);
  font-size: 18px;
}

.feature-text {
  font-size: 15px;
  font-weight: 500;
}

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

.action-box {
  text-align: center;
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.action-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.action-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-section {
  text-align: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, #ffc857 0%, var(--accent-gold) 100%);
  color: #0b192e;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.contact-btn:hover {
  background: linear-gradient(180deg, #ffd36e 0%, var(--accent-gold-hover) 100%);
  box-shadow: 0 10px 25px rgba(245, 166, 35, 0.4);
}

.contact-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.card-footer {
  margin-top: 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.footer-tag {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent-gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-white);
}

.footer-link.warning {
  color: #ff6b6b;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: #102a45;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  color: var(--text-white);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-header {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.modal-body p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.warning-highlight {
  color: #ff6b6b !important;
  font-weight: bold;
}
