.recommendations-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.recommendations-header h2 {
  margin: 0;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn-generate,
.btn-refresh {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-generate {
  background-color: #4CAF50;
  color: white;
}

.btn-generate:hover:not(:disabled) {
  background-color: #45a049;
}

.btn-generate:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.btn-refresh {
  background-color: #2196F3;
  color: white;
}

.btn-refresh:hover:not(:disabled) {
  background-color: #0b7dda;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
}

.error-message {
  padding: 12px;
  background-color: #ffebee;
  color: #c62828;
  border-radius: 4px;
  margin-bottom: 20px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state p {
  margin-bottom: 20px;
  font-size: 16px;
}

.recommendations-list {
  display: grid;
  gap: 20px;
}

.recommendation-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.recommendation-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.symbol {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.direction {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.direction.buy {
  background-color: #00ff6c;
  color: white;
}

.direction.sell {
  background-color: #f51b0c;
  color: white;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.status-active {
  background-color: #4CAF50;
  color: white;
}

.status-executed {
  background-color: #2196F3;
  color: white;
}

.status-expired {
  background-color: #9E9E9E;
  color: white;
}

.status-cancelled {
  background-color: #FF9800;
  color: white;
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.signal-strength {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.signal-strong {
  background-color: #4CAF50;
  color: white;
}

.signal-medium {
  background-color: #FF9800;
  color: white;
}

.signal-weak {
  background-color: #9E9E9E;
  color: white;
}

.time {
  font-size: 12px;
  color: #666;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.price-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.price-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-item.price-meta {
  font-size: 12px;
  color: #666;
}

.price-updated-badge {
  margin-left: 6px;
  font-size: 12px;
  vertical-align: middle;
}

.price-item label {
  font-weight: bold;
  color: #666;
}

.price-item .positive {
  color: #4CAF50;
}

.price-item .negative {
  color: #f44336;
}

.recommendation-reason {
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
}

.recommendation-reason strong {
  display: block;
  margin-bottom: 8px;
  color: #333;
}

.recommendation-reason p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* 推荐分类和风险标签 */
.recommendation-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.category-tag,
.risk-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.category-tag {
  background-color: #2196F3;
  color: white;
}

.category-tag.category-逆势反弹高风险 {
  background-color: #f44336;
}

.category-tag.category-震荡区间操作 {
  background-color: #FF9800;
}

.risk-tag {
  background-color: #9E9E9E;
  color: white;
}

.risk-tag.risk-高 {
  background-color: #f44336;
}

.risk-tag.risk-中高 {
  background-color: #FF5722;
}

.risk-tag.risk-中等 {
  background-color: #FF9800;
}

.risk-tag.risk-低中 {
  background-color: #4CAF50;
}

/* 用户指南 */
.user-guide {
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
}


.user-guide.buy-bg{
  background: linear-gradient(135deg, #05e567 0%, #795f94 100%);
}

.user-guide.sell-bg{
  background: linear-gradient(135deg, #e72215 0%, #891810 100%);
}


.user-guide-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.user-guide strong {
  display: block;
  font-size: 16px;
}

.user-guide-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ug-direction-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
}

.ug-direction-badge.buy {
  background: rgba(46, 204, 113, 0.22);
}

.ug-direction-badge.sell {
  background: rgba(231, 76, 60, 0.22);
}

.ug-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  line-height: 1.2;
}

.ug-direction-icon {
  flex: 0 0 auto;
  opacity: 0.95;
}

.ug-direction-icon {
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.ug-entry-status {
  margin-left: 6px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ug-entry-status.hit {
  background: rgba(255, 255, 255, 0.18);
}

.ug-entry-status.wait {
  opacity: 0.9;
}

.ug-pill.entry {
  background: rgba(46, 204, 113, 0.22);
  border-color: rgba(46, 204, 113, 0.35);
  font-size: 18px;
  font-weight: bold;
}

.ug-pill.stop {
  background: rgba(231, 76, 60, 0.22);
  border-color: rgba(231, 76, 60, 0.35);
  font-size: 18px;
  font-weight: bold;
}

.ug-pill.tp1 {
  background: rgba(241, 196, 15, 0.22);
  border-color: rgba(241, 196, 15, 0.35);
}

.ug-pill.tp2 {
  background: rgba(52, 152, 219, 0.22);
  border-color: rgba(52, 152, 219, 0.35);
}

.collapsible-user-guide .cug-body {
  position: relative;
}

.collapsible-user-guide .cug-body.collapsed {
  overflow: hidden;
}

.collapsible-user-guide .cug-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: linear-gradient(to bottom, rgba(102, 126, 234, 0), rgba(118, 75, 162, 0.9));
  pointer-events: none;
}

.collapsible-user-guide .cug-toggle {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}

.collapsible-user-guide .cug-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.user-guide-content {
  margin: 0;
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
}

/* 交易教程 */
.trading-tutorial {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 12px 15px;
  border-radius: 4px;
  margin: 10px 0;
}

.trading-tutorial strong {
  display: block;
  margin-bottom: 8px;
  color: #856404;
}

.trading-tutorial p {
  margin: 0;
  color: #856404;
  line-height: 1.6;
}

/* 预期持仓时间和退出提醒 */
.expected-hold-time,
.max-hold-warning {
  background-color: #e3f2fd;
  border-left: 4px solid #2196F3;
  padding: 10px 15px;
  border-radius: 4px;
  margin: 10px 0;
}

.expected-hold-time strong,
.max-hold-warning strong {
  display: inline-block;
  margin-right: 8px;
  color: #1976d2;
}

.expected-hold-time span,
.max-hold-warning span {
  color: #1976d2;
  line-height: 1.6;
}

.max-hold-warning {
  background-color: #fff3e0;
  border-left-color: #ff9800;
}

.max-hold-warning strong,
.max-hold-warning span {
  color: #e65100;
}

.suggested-params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.param-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.param-item label {
  font-size: 12px;
  color: #666;
  font-weight: bold;
  width: 100px;
}

.param-item span {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.param-item.order-type {
  grid-column: span 2;
}

.order-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.order-type-badge.limit {
  background-color: #2196F3;
  color: white;
}

.order-type-badge.market {
  background-color: #FF9800;
  color: white;
}

.param-item.limit-price {
  grid-column: span 2;
}

.param-item.limit-price.highlight {
  background-color: #e3f2fd;
  border: 2px solid #2196F3;
  border-radius: 6px;
  padding: 10px;
  margin: 5px 0;
}

.param-item.limit-price.highlight label {
  color: #1976d2;
  font-weight: bold;
  font-size: 13px;
}

.limit-price-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.limit-price-value.highlight-price {
  font-size: 18px;
  font-weight: bold;
  color: #1976d2;
}

.price-diff {
  font-size: 11px;
  color: #666;
  font-weight: normal;
  font-style: italic;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-bookmark {
  padding: 8px 16px;
  background-color: #FF9800;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-bookmark:hover:not(:disabled) {
  background-color: #F57C00;
}

.btn-bookmark:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.btn-toggle-details {
  padding: 8px 16px;
  background-color: #e0e0e0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-toggle-details:hover {
  background-color: #d0d0d0;
}

.details-panel {
  margin-top: 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.details-section {
  margin-bottom: 20px;
}

.details-section:last-child {
  margin-bottom: 0;
}

.details-section h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 14px;
}

.indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.indicator-item {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background-color: white;
  border-radius: 4px;
}

.indicator-item label {
  font-size: 12px;
  color: #666;
}

.indicator-item span {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

.market-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background-color: white;
  border-radius: 4px;
}

.info-item label {
  font-size: 12px;
  color: #666;
}

.info-item span {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

.bollinger-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bollinger-item {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background-color: white;
  border-radius: 4px;
}

.bollinger-item label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.bollinger-item span {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.btn-execute,
.btn-cancel {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-execute {
  background-color: #2196F3;
  color: white;
}

.btn-execute:hover {
  background-color: #0b7dda;
}

.btn-cancel {
  background-color: #9E9E9E;
  color: white;
}

.btn-cancel:hover {
  background-color: #757575;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .recommendations-container {
    padding: 10px;
  }

  .recommendations-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .card-header {
    flex-direction: column;
    gap: 10px;
  }

  .card-meta {
    align-items: flex-start;
  }

  .suggested-params {
    /* grid-template-columns: 1fr; */
    display: flex;
    flex-wrap: wrap;
  }

  .indicators-grid {
    grid-template-columns: 1fr;
  }

  .bollinger-info {
    grid-template-columns: 1fr;
  }

  .card-actions {
    flex-direction: column;
  }

  .btn-execute,
  .btn-cancel {
    width: 100%;
  }
}
