body {
    background: linear-gradient(135deg, #0a1929, #142850); /* 深蓝色渐变背景 */
    font-family: 'Open Sans', sans-serif; /* 字体 */
    color: #e6f4ff; /* 默认文字颜色为浅色 */
    margin: 0;
    padding: 0;
    line-height: 1.6; /* 默认行高 */
}

.container {
    background: rgba(255, 255, 255, 0.05); /* 半透明白色背景 */
    border-radius: 15px; /* 圆角 */
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.2); /* 蓝色阴影 */
    padding: 20px;
    backdrop-filter: blur(20px); /* 背景模糊效果 */
    margin: 20px auto;
    max-width: 1200px;
    border: 1px solid rgba(96, 165, 250, 0.2); /* 蓝色边框 */
    animation: fadeIn 1s ease; /* 渐入动画 */
}

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

.search-bar {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-bar .form-control {
    border-radius: 25px 0 0 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #e6f4ff;
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.search-bar .form-control::placeholder {
    color: #a7b8cd;
}

.search-bar .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.25rem rgba(147, 197, 253, 0.25);
}

.search-bar .btn-primary {
    border-radius: 0 25px 25px 0;
    background-color: #60a5fa;
    border-color: #60a5fa;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.search-bar .btn-primary:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.table-responsive {
    margin-top: 20px;
}

.table {
    background: rgba(255, 255, 255, 0.05);
    color: #e6f4ff;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: rgba(96, 165, 250, 0.1);
}

/* 表头字体颜色加深 */
.table th {
    color: #000000; /* 纯黑色，确保足够深 */
    font-weight: bold; /* 加粗 */
    padding: 12px 15px;
    text-align: center;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(96, 165, 250, 0.05);
}

.table td {
    padding: 10px 15px;
    vertical-align: middle;
    text-align: center;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-link {
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.8rem;
}

.btn-link:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.modal-content {
    background: #1a2a3a; /* 与您提供版本中的模态框背景色一致 */
    border-radius: 10px;
    border: 2px solid #60a5fa;
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.2);
    color: #e6f4ff;
}

.modal-header, .modal-footer {
    border: none;
    padding: 15px;
    background-color: #2c3e50; /* 模态框头部和底部背景 */
    color: #ffffff;
}

.modal-title {
    color: #e6f4ff;
}

.btn-close {
    filter: invert(1);
    opacity: 0.7;
}

#modalDivinationContent {
    background-color: #1a2a3a; /* 确保生成图片时背景色正确 */
    color: #e6f4ff;
    padding: 20px;
}

#modalDivinationContent p {
    color: #e6f4ff;
}

#modalDivinationContent strong {
    color: #93c5fd;
}

#modalBible {
    background-color: rgba(30, 41, 59, 0.8);
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

/* 模态框底部网址和X账号的样式，确保在深色背景上可见 */
.modal-footer-branding {
    border-color: rgba(96, 165, 250, 0.2) !important; /* 确保边框颜色 */
    margin-top: 15px;
    padding-top: 10px;
    text-align: center;
    border-top: 1px dashed rgba(96, 165, 250, 0.2); /* 虚线 */
}

.modal-footer-branding p {
    color: #e6f4ff !important; /* 确保文字颜色 */
    font-size: 0.8rem;
    margin-top: 5px;
    margin-bottom: 5px;
}


/* 隐藏的 Div，用于生成整合图片 - 样式保持一致性 */
.divination-card-combined {
    background: #1a2a3a; /* 与模态框背景色保持一致 */
    border-radius: 10px;
    border: 2px solid #60a5fa;
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.2);
    color: #e6f4ff; /* 确保文字颜色为浅色 */
    padding: 25px; /* 增加内边距 */
    width: 600px; /* 固定宽度，您可以根据需要调整 */
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7; /* 增加行高 */
    font-size: 1rem; /* 基础字号 */
}

.divination-card-combined h4 {
    color: #e6f4ff; /* 标题颜色 */
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem; /* 标题字号 */
    font-weight: 700;
}

.divination-card-combined h4 small {
    color: #cbd5e1; /* 小字颜色 */
    font-size: 0.8em;
    display: block; /* 确保时间单独一行 */
    margin-top: 5px;
}

.divination-card-combined p {
    color: #e6f4ff;
    margin-bottom: 10px;
}

.divination-card-combined strong {
    color: #93c5fd;
}

.divination-card-combined em {
    color: #cbd5e1;
    font-style: italic;
    font-size: 0.9em;
}

.combined-footer-branding {
    border-color: rgba(96, 165, 250, 0.2) !important;
    margin-top: 15px;
    padding-top: 10px;
    text-align: center;
    border-top: 1px dashed rgba(96, 165, 250, 0.2);
}

.combined-footer-branding p {
    color: #e6f4ff !important;
    font-size: 0.8rem;
    margin-top: 5px;
    margin-bottom: 5px;
}

footer {
    background: rgba(10, 25, 41, 0.8);
    border-radius: 0 0 15px 15px;
    padding: 15px;
    margin-top: 30px;
}

.text-muted {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.symbol-link {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.symbol-link:hover {
    color: #dbeafe;
    text-shadow: 0 0 5px rgba(147, 197, 253, 0.5);
}

/* 表格列宽调整 */
.table th:nth-child(1), /* 排名 */
.table td:nth-child(1) {
    width: 5%; /* 保持不变 */
    text-align: center;
}

.table th:nth-child(2), /* 币种 */
.table td:nth-child(2) {
    width: 8%; /* 缩短宽度 */
    white-space: nowrap; /* 强制不换行 */
    text-align: center;
}

/* 综合占卜列的容器，使其内容垂直排列 */
.divination-summary-group {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    align-items: flex-start; /* 左对齐 */
    gap: 5px; /* 各个占卜项之间的垂直间距 */
    padding-left: 10px; /* 稍微向左对齐 */
}

/* 综合占卜内的每一项，强制不换行 */
.divination-summary-item {
    display: inline-block; /* 允许设置宽度和内边距，但保持在行内 */
    white-space: nowrap; /* 强制不换行 */
    /* background-color: rgba(96, 165, 250, 0.05); /* 可选：给每个小项加个背景 */
    /* padding: 2px 5px; */
    /* border-radius: 3px; */
    font-size: 0.95rem; /* 调整字体大小 */
}

.divination-summary-item strong {
    color: #93c5fd; /* 强调文字颜色 */
    margin-right: 5px;
}

/* 调整综合占卜列的宽度 */
.table th:nth-child(3), /* 综合占卜 */
.table td:nth-child(3) {
    width: 40%; /* 适当调整宽度 */
    text-align: left; /* 左对齐 */
    padding-left: 10px; /* 增加左侧内边距 */
}


.table th:nth-child(4), /* 价格 (USD) */
.table td:nth-child(4) {
    width: 12%;
    text-align: right;
}

.table th:nth-child(5), /* 结果 */
.table td:nth-child(5) {
    width: 10%;
    text-align: center;
}

.table th:nth-child(6), /* 建议 */
.table td:nth-child(6) {
    width: 12%;
    text-align: center;
}

.table th:nth-child(7), /* 时机 */
.table td:nth-child(7) {
    width: 8%;
    text-align: center;
}