/* === 全域 CSS 變數與核心設計系統 START === */
:root {
  --bg-color: #0b0f19;
  --panel-bg: rgba(20, 26, 42, 0.6);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(0, 242, 254, 0.3);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --gradient-main: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
  
  --accent-alert: #ff416c;
  --accent-alert-orange: #ff4b2b;
  --gradient-alert: linear-gradient(135deg, var(--accent-alert) 0%, var(--accent-alert-orange) 100%);
  
  --accent-green: #00b09b;
  --accent-green-teal: #96c93d;
  --gradient-green: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-teal) 100%);

  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow-cyan: 0 0 20px rgba(0, 242, 254, 0.2);
  --shadow-glow-alert: 0 0 20px rgba(255, 65, 108, 0.2);
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* 網頁自訂滾動條 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-cyan);
}
/* === 全域 CSS 變數與核心設計系統 END === */

/* === 背景流光裝飾 START === */
.glow-bg {
  position: fixed;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}
.glow-1 {
  background: var(--primary-cyan);
  top: -10vw;
  right: -10vw;
  animation: float-slow 20s infinite alternate;
}
.glow-2 {
  background: var(--primary-blue);
  bottom: -15vw;
  left: -10vw;
  animation: float-slow 25s infinite alternate-reverse;
}
@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3vw, 5vw) scale(1.1); }
}
/* === 背景流光裝飾 END === */

/* === 核心版面佈局與容器 START === */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 24px;
}

.header {
  margin-bottom: 12px;
  text-align: center;
  position: relative;
}

/* === 語言切換按鈕功能 START === */
.lang-switch-container {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 100;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.lang-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-1px);
}

.lang-btn span.material-icons {
  font-size: 16px;
}

/* 手機版適配 */
@media (max-width: 768px) {
  .lang-switch-container {
    position: static;
    margin-top: 10px;
    display: flex;
    justify-content: center;
  }
}
/* === 語言切換按鈕功能 END === */

.badge-tag {
  display: inline-block;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--primary-cyan);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #8ab4f8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
}
/* === 核心版面佈局與容器 END === */

/* === 統計數據儀表板 START === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.stat-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.stat-icon span {
  font-size: 20px;
}

.stat-icon.alert {
  background: rgba(255, 65, 108, 0.1);
  color: var(--accent-alert);
  box-shadow: var(--shadow-glow-alert);
}

.stat-icon.highlight {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.15) 100%);
  color: #fff;
}

.stat-info h3 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2px;
}

.stat-info p {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stat-info .subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}
/* === 統計數據儀表板 END === */

/* === 控制面板 (搜尋與篩選) START === */
.control-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-glow);
}

@media(min-width: 768px) {
  .control-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 600px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 18px;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 12px 8px 36px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.search-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

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

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filters select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 8px 24px 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  min-width: 180px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.3s;
}
.filters select:focus {
  border-color: var(--primary-cyan);
  background-color: rgba(11, 15, 25, 0.95);
}
/* === 控制面板 (搜尋與篩選) END === */

/* === 合約列表與卡片設計 START === */
.opportunities-section {
  margin-bottom: 50px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  height: calc(100vh - 165px); /* 扣除 Header 和 stats/control 面板的高度 */
  min-height: 550px;
}

/* === 雙欄對照佈局功能 START === */
/* 左側欄位 - 清單欄 */
.opportunities-list-column {
  flex: 0 0 38%;
  width: 38%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 8px; /* 保留滾動條間距 */
}

/* 為了讓左側清單緊湊，我們覆蓋 opportunities-grid */
.opportunities-list-column .opportunities-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 緊湊型卡片 */
.opportunities-list-column .opp-card {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: none;
}

.opportunities-list-column .opp-card:hover {
  border-color: var(--panel-border-hover);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.1);
  transform: translateY(-2px);
}

/* 選中狀態卡片 */
.opportunities-list-column .opp-card.active {
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

/* 隱藏左側卡片的情報分析按鈕，因為右側面板是持久的，不需要 Hover 滑出字樣 */
.opportunities-list-column .opp-card .card-action {
  display: none !important;
}

/* 右側欄位 - 詳情欄 */
.opportunity-detail-column {
  flex: 1;
  height: 100%;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: var(--shadow-glow);
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

/* 右側詳情引導語 (Placeholder) */
.detail-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.detail-placeholder span.material-icons {
  font-size: 64px;
  color: var(--text-muted);
  margin-bottom: 20px;
  animation: pulse-slow 3s infinite ease-in-out;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.detail-placeholder h3 {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-placeholder p {
  font-size: 0.95rem;
  max-width: 450px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 手機版 / 窄螢幕 RWD 適配 (1024px 以下改回單欄) */
@media (max-width: 1024px) {
  .opportunities-section {
    flex-direction: column;
    height: auto;
  }
  .opportunities-list-column {
    width: 100%;
    flex: none;
    height: auto;
    overflow-y: visible;
  }
  .opportunity-detail-column {
    width: 100%;
    flex: none;
    height: auto;
    margin-top: 24px;
    min-height: 400px;
  }
}
/* === 雙欄對照佈局功能 END === */
.section-header {
  margin-bottom: 24px;
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
}
.section-header h2 span {
  color: var(--primary-cyan);
}

.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.opp-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.opp-card:hover {
  transform: translateY(-5px);
  border-color: var(--panel-border-hover);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.15);
}
/* 卡片頂部標籤與編號 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.sol-number {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.type-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.type-tag.solicitation {
  background: rgba(255, 75, 43, 0.1);
  color: #ff6a00;
  border: 1px solid rgba(255, 75, 43, 0.2);
}
.type-tag.combined {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}
.type-tag.award {
  background: rgba(0, 176, 155, 0.1);
  color: #00ffcc;
  border: 1px solid rgba(0, 176, 155, 0.2);
}
.type-tag.other {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 卡片內文 */
.card-body {
  margin-bottom: 20px;
  flex-grow: 1;
}
.card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.card-agency {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-agency span {
  font-size: 16px;
  color: var(--text-muted);
}

/* 卡片底部日期與動作 */
.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-deadline {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-deadline.urgent {
  color: var(--accent-alert);
}
.card-deadline.normal {
  color: var(--primary-cyan);
}
.card-deadline.none {
  color: var(--text-muted);
}
.card-action {
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s;
}
.opp-card:hover .card-action {
  opacity: 1;
  transform: translateX(0);
}
/* === 合約列表與卡片設計 END === */

/* === 查無結果與加載更多設計 START === */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
}
.no-results span {
  font-size: 64px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.no-results p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.hidden {
  display: none !important;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.btn {
  font-family: var(--font-main);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  outline: none;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: #fff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
/* === 查無結果與加載更多設計 END === */

/* === 詳情彈窗 (Modal) 設計 START === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 17, 0.7);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s;
}
.modal-content {
  background: rgba(15, 22, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modal-zoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-zoom {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}
.modal-close-btn:hover {
  background: rgba(255, 65, 108, 0.1);
  color: var(--accent-alert);
  border-color: rgba(255, 65, 108, 0.2);
}

.modal-body {
  padding: 40px;
}

.modal-type-tag {
  display: inline-block;
  margin-bottom: 16px;
}

.modal-body h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
@media(min-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-item .icon {
  color: var(--primary-cyan);
  font-size: 20px;
  margin-top: 2px;
}
.info-item.urgent .icon {
  color: var(--accent-alert);
}
.info-desc h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}
.info-desc p {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.modal-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  margin-top: 24px;
}
.modal-section h3 {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
}
.modal-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.poc-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.poc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.poc-row span {
  font-size: 18px;
  color: var(--text-muted);
}
.poc-row a {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: opacity 0.3s;
}
.poc-row a:hover {
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}
.modal-actions .btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* === 詳情彈窗 (Modal) 設計 END === */

/* === 合約詳細內文 (Description) 排版 START === */
.description-content {
  max-height: none;
  overflow-y: visible;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.description-content p {
  margin-bottom: 12px;
}

.description-content ul, 
.description-content ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

.description-content li {
  margin-bottom: 6px;
}

.description-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.01);
}

.description-content th, 
.description-content td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  text-align: left;
}

.description-content th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
}

.description-content a {
  color: var(--primary-cyan);
  text-decoration: none;
}
.description-content a:hover {
  text-decoration: underline;
}
/* === END === */

/* === Tab 按鈕與樣式 START === */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  gap: 16px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--primary-cyan);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-main);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.tab-panel {
  animation: fade-in 0.3s ease-in-out;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
/* === Tab 按鈕與樣式 END === */

/* === AI 分析報告排版美化 START === */
.ai-analysis-report {
  color: rgba(243, 244, 246, 0.82); /* 柔和白，降低長時間閱讀的刺眼感 */
  line-height: 1.8;
  font-size: 0.92rem;
  padding: 28px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  max-height: none;
  overflow-y: visible;
}

.ai-analysis-report h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.5px;
}

.ai-analysis-report h2 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--primary-cyan);
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-analysis-report h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.ai-analysis-report p {
  margin-bottom: 16px;
  text-align: justify;
}

.ai-analysis-report strong {
  color: #ffffff;
  font-weight: 600;
}

.ai-analysis-report ul, 
.ai-analysis-report ol {
  margin-left: 20px;
  margin-bottom: 18px;
  padding-left: 4px;
}

.ai-analysis-report li {
  margin-bottom: 8px;
  color: rgba(243, 244, 246, 0.78);
}

.ai-analysis-report li strong {
  color: var(--primary-cyan); /* 使清單的粗體字有主色調高亮，提升層次感 */
  font-weight: 600;
}

.ai-analysis-report hr {
  height: 1px;
  border: none;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.06), rgba(255,255,255,0));
  margin: 28px 0;
}

.ai-analysis-report blockquote {
  border-left: 3px solid var(--primary-cyan);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 18px;
  margin-bottom: 16px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
/* === AI 分析報告排版美化 END === */
