/* 通用样式和科技感背景 */
body {
    background: #080C16; /* 极深蓝/近黑背景 */
    color: #C0D0E0; /* 柔和的亮灰色文本 */
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 16px; /* 基础字体大小 */
    line-height: 1.6;
}

/* 动态网格背景 */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(0, 200, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 200, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
    z-index: -1;
    animation: gridFlow 30s linear infinite;
}

@keyframes gridFlow {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

.container {
    flex-grow: 1;
    max-width: 1300px; /* 稍微宽一点 */
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem;
    position: relative; /* 确保内容在背景之上 */
    z-index: 1;
}

/* 标题 */
.app-title {
    font-family: 'Electrolize', sans-serif; /* 假设有科技感字体，或使用替代 */
    color: #00E0FF; /* 亮青色 */
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.6), 0 0 30px rgba(0, 224, 255, 0.3);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 2.5rem !important;
    position: relative;
    padding-bottom: 15px;
    font-size: 2.8rem;
}
.app-title .app-subtitle {
    display: block;
    font-size: 1.2rem;
    color: #8AEFFB; /* 亮一点的青色 */
    letter-spacing: 2px;
    margin-top: 5px;
    text-shadow: none;
    opacity: 0.8;
}
.app-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00E0FF, transparent);
    box-shadow: 0 0 10px #00E0FF;
    border-radius: 5px;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    position: relative;
    padding: 10px;
    background: rgba(0, 150, 200, 0.05); /* 轻微背景 */
    border-radius: 15px;
    border: 1px solid rgba(0, 150, 200, 0.2);
    box-shadow: 0 0 20px rgba(0, 150, 200, 0.2);
    transition: all 0.4s ease;
}
.search-bar:hover {
    border-color: rgba(0, 200, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.4);
}

.search-input-group {
    max-width: 500px;
    width: 100%;
}

.tech-input {
    background: rgba(10, 20, 30, 0.7); /* 更深的透明背景 */
    border: 1px solid #00BFFF; /* 深蓝色边框 */
    color: #E0F7FA; /* 亮蓝色文字 */
    padding: 0.9rem 1.4rem;
    border-radius: 10px;
    box-shadow: inset 0 0 8px rgba(0, 191, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.tech-input::placeholder {
    color: #8AEFFB;
    opacity: 0.7;
}
.tech-input:focus {
    background: rgba(10, 20, 30, 0.9);
    border-color: #00E0FF;
    box-shadow: inset 0 0 15px rgba(0, 224, 255, 0.6), 0 0 20px rgba(0, 224, 255, 0.4);
    outline: none;
    transform: translateY(-2px);
}

.tech-btn {
    background: linear-gradient(45deg, #00BFFF, #00E0FF); /* 科技感蓝色渐变 */
    border: none;
    color: #FFFFFF;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.1rem;
    cursor: pointer;
}
.tech-btn:hover {
    background: linear-gradient(45deg, #00E0FF, #00BFFF);
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.8), 0 0 40px rgba(0, 224, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
}
.tech-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.tech-link {
    color: #00E0FF !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    padding: 0 8px;
    border-radius: 5px;
}
.tech-link:hover {
    color: #8AEFFB !important;
    text-decoration: underline;
    background: rgba(0, 224, 255, 0.1);
    transform: translateY(-1px);
}

/* 模态框内的关闭按钮图标颜色 */
.tech-close-btn {
    /* 移除之前的 filter 效果，直接设置为白色 */
    color: #FFFFFF !important; /* 白色 */
    opacity: 1 !important; /* 确保完全不透明 */
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tech-close-btn:hover {
    opacity: 0.8 !important; /* 悬停时略微降低透明度 */
    transform: rotate(90deg);
}


/* 股票卡片容器 */
.stock-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式卡片网格 */
    gap: 2rem; /* 卡片间距 */
    padding: 1rem;
    justify-content: center; /* 居中卡片 */
}

/* 单个股票卡片 */
.stock-card {
    background: linear-gradient(135deg, rgba(10, 20, 30, 0.85), rgba(5, 10, 15, 0.85)); /* 深色渐变背景 */
    border: 1px solid rgba(0, 191, 255, 0.3); /* 蓝色边框 */
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.15), inset 0 0 5px rgba(0, 191, 255, 0.1); /* 内外发光 */
    backdrop-filter: blur(8px); /* 模糊背景 */
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* 隐藏溢出的边框动画 */
}
.stock-card::before { /* 顶部装饰线 */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00E0FF, transparent);
    opacity: 0.6;
    animation: slideIn 2s forwards; /* 入场动画 */
}
.stock-card:hover {
    transform: translateY(-8px) scale(1.02); /* 明显上浮和放大 */
    border-color: #00E0FF;
    box-shadow: 0 0 40px rgba(0, 224, 255, 0.4), inset 0 0 10px rgba(0, 224, 255, 0.3);
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.95), rgba(8, 13, 20, 0.95));
}
.stock-card:hover::before { /* 悬停时顶部装饰线更亮 */
    opacity: 1;
    box-shadow: 0 0 15px #00E0FF;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

.stock-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed rgba(0, 191, 255, 0.2);
}
.stock-card .stock-symbol {
    font-size: 1.8rem;
    font-weight: bold;
    color: #8AEFFB;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(138, 239, 251, 0.6);
}
.stock-card .stock-name {
    font-size: 0.9rem;
    color: #A0B0C0;
    margin-left: 10px;
    opacity: 0.8;
}

.stock-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stock-card p {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #C0D0E0;
}
.stock-card p strong {
    color: #A0B0C0;
    margin-right: 5px;
}
.stock-card .price-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00E0FF;
    text-shadow: 0 0 8px rgba(0, 224, 255, 0.5);
}

.divination-section {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(0, 191, 255, 0.1);
}

.card-main-auspiciousness {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 0.8rem;
}

/* 各个占卜来源的网格布局 */
.all-divinations-grid {
    display: grid;
    grid-template-columns: 1fr; /* 默认一行一个 */
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.source-divination-item {
    display: flex;
    align-items: center;
    background: rgba(0, 191, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(0, 191, 255, 0.1);
    transition: background 0.2s ease;
}
.source-divination-item:hover {
    background: rgba(0, 191, 255, 0.1);
}
.source-divination-item .source-name {
    font-weight: 500;
    color: #8AEFFB;
    margin-right: 8px;
    flex-shrink: 0;
    min-width: 55px; /* 确保名称对齐 */
    text-align: right;
}
.source-divination-item .result-glow {
    flex-grow: 1;
    text-align: left;
}
.source-divination-item .detail-btn {
    margin-left: auto; /* 推到最右边 */
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
}

/* 占卜结果发光颜色 - 科技感霓虹色 */
.good-glow, .very-good-glow, .excellent-glow {
    color: #39FF14; /* 霓虹绿 */
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.9), 0 0 15px rgba(57, 255, 20, 0.6);
    font-weight: bold;
}
.caution-glow, .average-glow {
    color: #FFFF00; /* 霓虹黄 */
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.9), 0 0 15px rgba(255, 255, 0, 0.6);
    font-weight: bold;
}
.bad-glow, .poor-glow {
    color: #FF0055; /* 霓虹红 */
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.9), 0 0 15px rgba(255, 0, 85, 0.6);
    font-weight: bold;
}
.unknown-glow {
    color: #808080; /* 柔和灰色 */
    text-shadow: 0 0 5px rgba(128, 128, 128, 0.5);
    font-weight: bold;
}

/* 搜索结果标题 */
.search-result-title {
    color: #00E0FF;
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.7);
    margin-bottom: 3rem !important;
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}
.search-result-title .symbol-highlight {
    color: #8AEFFB;
    text-shadow: 0 0 10px rgba(138, 239, 251, 0.8);
}

/* 分页样式 */
.tech-pagination .page-item .page-link {
    background-color: rgba(0, 191, 255, 0.08);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: #00E0FF;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 5px;
    padding: 0.7rem 1.2rem;
    font-weight: 500;
}

.tech-pagination .page-item .page-link:hover {
    background-color: rgba(0, 191, 255, 0.2);
    border-color: #00E0FF;
    color: #8AEFFB;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    transform: translateY(-2px);
}

.tech-pagination .page-item.active .page-link {
    background: linear-gradient(45deg, #00BFFF, #00E0FF);
    border-color: #00E0FF;
    color: white;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.8);
    transform: translateY(-2px);
}

/* 模态框样式 */
/* 强制覆盖 Bootstrap 默认模态框背景层 */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7) !important; /* 更深的半透明背景 */
    opacity: 0.8 !important; /* 确保它足够暗 */
}

/* 针对模态框容器 */
.modal.tech-modal {
    background: transparent !important; /* 确保 modal 本身没有白色背景 */
}
.modal-dialog.tech-modal-dialog { /* 如果你在 HTML 中给 modal-dialog 添加了 tech-modal-dialog 类 */
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem); /* 确保内容可以居中或有足够的空间 */
}

/* 模态框内容卡片本身 */
.modal-content.tech-modal-content { /* 假设你的 modal-content 也有 tech-modal-content 类 */
    background: linear-gradient(135deg, rgba(10, 20, 30, 0.98), rgba(5, 10, 15, 0.98)) !important; /* 深色渐变背景，使用 !important 提高优先级 */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(0, 224, 255, 0.5) !important; /* 更粗的边框，使用 !important */
    box-shadow: 0 0 50px rgba(0, 224, 255, 0.4) !important; /* 更亮的发光，使用 !important */
    color: #E0F7FA;
    position: relative;
    overflow: hidden;
    animation: modalPopIn 0.5s ease-out;
}

/* 如果你的模态框 HTML 是标准的 Bootstrap 结构，并且你没有在这些元素上额外添加 tech-modal 的类名，
   那么下面的选择器可能会更有效，因为它直接覆盖了 Bootstrap 的默认 `.modal-content` 等。
   建议保留上面的 `.modal-content.tech-modal-content` 以保持特异性，
   但为了确保万无一失，我们也可以直接覆盖 `.modal-content`： */
.modal-content {
    background: linear-gradient(135deg, rgba(10, 20, 30, 0.98), rgba(5, 10, 15, 0.98)) !important;
    border: 2px solid rgba(0, 224, 255, 0.5) !important;
    box-shadow: 0 0 50px rgba(0, 224, 255, 0.4) !important;
    color: #E0F7FA !important; /* 确保内容文字颜色也正确 */
}
.modal-header {
    border-bottom: 1px solid rgba(0, 224, 255, 0.3) !important;
    color: #00E0FF !important;
}
.modal-title {
    color: #00E0FF !important;
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.8) !important;
}
.modal-body {
    color: #C0D0E0 !important;
}
.modal-footer { /* 确保底部样式也一致 */
    background: linear-gradient(90deg, #050A10, #080C16) !important;
    border-top: 1px solid rgba(0, 224, 255, 0.1) !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}


@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.tech-modal .modal-header {
    border-bottom: 1px solid rgba(0, 224, 255, 0.3); /* 已经通过 .modal-header 覆盖，这里可选保留 */
    color: #00E0FF;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.tech-modal .modal-header::before { /* 顶部光线效果 */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #00E0FF, transparent);
    opacity: 0.7; /* 增强光线效果 */
    animation: glowScan 4s linear infinite;
}

@keyframes glowScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tech-modal .modal-title {
    color: #00E0FF;
    font-weight: bold;
    letter-spacing: 1.5px;
    font-size: 1.6rem;
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.8); /* 标题发光更强 */
}

.tech-modal .modal-body {
    padding: 1.5rem 2rem;
}

.tech-modal .modal-body p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #C0D0E0; /* 保持与主体内容一致的颜色 */
}
.tech-modal .modal-body p strong {
    color: #8AEFFB; /* 强调色 */
    margin-right: 10px;
    font-weight: bold;
}
.tech-modal .modal-auspiciousness-p .result-glow {
    font-size: 1.25rem; /* 稍大一点 */
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.7); /* 添加发光效果 */
}

.modal-details-section {
    background: rgba(0, 191, 255, 0.1); /* 更明显的背景色 */
    border-left: 4px solid #00E0FF; /* 更粗的强调线 */
    padding: 1.2rem 1.8rem; /* 增大内边距 */
    border-radius: 10px; /* 更圆润的边角 */
    margin-top: 1.8rem; /* 增加上边距 */
    box-shadow: inset 0 0 15px rgba(0, 191, 255, 0.3); /* 更强的内发光 */
}
.modal-details-section p {
    margin-bottom: 0.6rem;
    font-size: 1.05rem; /* 稍大一点 */
    color: #D0E8FF; /* 亮一点的颜色 */
}

.modal-footer-branding, .download-card-footer {
    background: linear-gradient(90deg, #050A10, #080C16);
    padding: 15px 2rem;
    margin: 1.5rem -2rem -2rem; /* 扩展到模态框边缘 */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 224, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.modal-footer-branding p, .download-card-footer p {
    font-size: 0.85rem;
    opacity: 0.8;
    color: #A0B0C0;
    margin: 0;
}

/* 模态框下载图片样式，匹配综合神谕卡片 */
.download-modal-content {
    width: 600px; /* 与 combinedDivinationCard 一致 */
    padding: 2rem; /* 与 combinedDivinationCard 一致 */
    background: linear-gradient(135deg, rgba(10, 20, 30, 0.95), rgba(5, 10, 15, 0.95)); /* 与 combinedDivinationCard 一致 */
    border: 2px solid rgba(0, 224, 255, 0.5); /* 与 combinedDivinationCard 一致 */
    border-radius: 20px; /* 与 combinedDivinationCard 一致 */
    box-shadow: 0 0 50px rgba(0, 224, 255, 0.4); /* 与 combinedDivinationCard 一致 */
    color: #E0F7FA; /* 与 combinedDivinationCard 一致 */
    font-family: 'Segoe UI', 'Roboto', sans-serif; /* 与 combinedDivinationCard 一致 */
    line-height: 1.6; /* 与 combinedDivinationCard 一致 */
    overflow: hidden; /* 与 combinedDivinationCard 一致 */
    position: absolute; /* 确保下载时正确渲染 */
    left: -9999px; /* 隐藏在屏幕外 */
    top: -9999px; /* 隐藏在屏幕外 */
    z-index: -1; /* 确保不影响页面布局 */
}

/* 调整模态框内容的子元素样式 */
.download-modal-content p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem; /* 与 combinedDivinationCard 的 card-body-download p 一致 */
}

.download-modal-content strong {
    color: #8AEFFB; /* 与 combinedDivinationCard 的 strong 一致 */
    margin-right: 8px; /* 与 combinedDivinationCard 一致 */
}

.download-modal-content .modal-auspiciousness-p .result-glow {
    font-size: 1.15rem; /* 与 combinedDivinationCard 的 result-glow 一致 */
}

.download-modal-content .modal-details-section {
    background: rgba(0, 191, 255, 0.07); /* 保持原样 */
    border-left: 3px solid #00BFFF; /* 保持原样 */
    padding: 1rem 1.5rem; /* 保持原样 */
    border-radius: 8px; /* 保持原样 */
    margin-top: 1.5rem; /* 保持原样 */
    box-shadow: inset 0 0 10px rgba(0, 191, 255, 0.2); /* 保持原样 */
}

.download-modal-content .modal-details-section p {
    margin-bottom: 0.5rem; /* 保持原样 */
    font-size: 1rem; /* 保持原样 */
    color: #D0E8FF; /* 保持原样 */
}

/* 隐藏用于下载的卡片 */
.hidden-card-for-download {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 600px; /* 固定宽度以确保图片质量 */
    padding: 2rem;
    background: linear-gradient(135deg, rgba(10, 20, 30, 0.95), rgba(5, 10, 15, 0.95));
    border: 2px solid rgba(0, 224, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 224, 255, 0.4);
    color: #E0F7FA;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    overflow: hidden;
    z-index: -1; /* 确保不影响页面布局 */
}
.hidden-card-for-download .card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(0, 224, 255, 0.3);
}
.hidden-card-for-download h4 {
    font-size: 2.2rem;
    color: #00E0FF;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.7);
    margin-bottom: 0.5rem;
}
.hidden-card-for-download .card-time {
    display: block;
    font-size: 0.9rem;
    color: #A0B0C0;
    opacity: 0.8;
}
.hidden-card-for-download .card-body-download p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}
.hidden-card-for-download .card-body-download strong {
    color: #8AEFFB;
    margin-right: 8px;
}
.hidden-card-for-download .result-glow {
    font-size: 1.15rem;
}
.hidden-card-for-download .individual-divinations-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(0, 224, 255, 0.2);
}
.hidden-card-for-download .individual-divinations-section h5 {
    color: #00E0FF;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 224, 255, 0.5);
}
.hidden-card-for-download .combined-divination-item {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    text-align: left;
    background: rgba(0, 191, 255, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
}
.hidden-card-for-download .combined-divination-item em {
    display: block;
    font-style: normal;
    font-size: 0.9em;
    color: #C0D0E0;
    opacity: 0.9;
    margin-top: 5px;
}
.download-card-footer {
    margin-top: 2rem; /* 增加底部间距 */
    border-top: 1px solid rgba(0, 224, 255, 0.15);
}

/* 底部 */
footer {
    padding: 1.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
    text-align: center;
}
footer p {
    font-size: 0.9rem;
    color: #FFFFFF !important; /* 确保颜色为白色 */
    opacity: 1 !important;     /* 将透明度设置为完全不透明 */
}

/* 错误消息 */
.tech-error-message {
    color: #FF0055 !important;
    font-weight: bold;
    font-size: 1.3rem;
    padding: 2rem;
    background: rgba(255, 0, 85, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 85, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
    margin: 2rem auto;
    max-width: 600px;
}
.tech-error-message.full-width {
    max-width: 90%; /* 允许更宽 */
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        padding: 1.5rem 0.8rem;
    }
    .stock-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    .app-title {
        font-size: 2.2rem;
    }
    .app-title .app-subtitle {
        font-size: 1rem;
    }
    .tech-modal .modal-dialog {
        max-width: 90%;
    }
    .tech-modal .modal-body {
        padding: 1rem 1.5rem;
    }
    .tech-modal .modal-body p {
        font-size: 0.95rem;
    }
    .tech-modal .modal-auspiciousness-p .result-glow {
        font-size: 1.1rem;
    }
    .hidden-card-for-download {
        width: 450px;
        padding: 1.5rem;
    }
    .hidden-card-for-download h4 {
        font-size: 1.8rem;
    }
    .hidden-card-for-download .card-body-download p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .app-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    .app-title .app-subtitle {
        font-size: 0.9rem;
    }
    .tech-input, .tech-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
    .stock-card {
        padding: 1.2rem;
        border-radius: 12px;
    }
    .stock-card .card-header {
        margin-bottom: 0.8rem; /* 减小间距 */
        padding-bottom: 0.5rem; /* 减小间距 */
    }
    .stock-card .stock-symbol {
        font-size: 1.5rem;
    }
    .stock-card .stock-name {
        font-size: 0.8rem;
    }
    .stock-card p {
        font-size: 0.9rem;
    }
    .stock-card .price-value {
        font-size: 1.1rem;
    }
    .stock-card .card-main-auspiciousness {
        font-size: 1rem;
    }
    .source-divination-item .source-name {
        min-width: 50px;
        font-size: 0.85rem;
    }
    .source-divination-item .result-glow {
        font-size: 0.95rem; /* 略小一点 */
    }
    .source-divination-item .detail-btn {
        font-size: 0.75rem;
    }
    .tech-pagination .page-item .page-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .search-result-title {
        font-size: 1.8rem;
    }
    .hidden-card-for-download {
        width: 350px;
        padding: 1.2rem;
    }
    .hidden-card-for-download h4 {
        font-size: 1.5rem;
    }
    .hidden-card-for-download .card-body-download p {
        font-size: 0.9rem;
    }
    .hidden-card-for-download .individual-divinations-section h5 {
        font-size: 1.1rem;
    }
    .hidden-card-for-download .combined-divination-item {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1rem 0.5rem;
    }
    .app-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    .app-title .app-subtitle {
        font-size: 0.8rem;
    }
    .search-bar {
        padding: 5px;
    }
    .tech-input, .tech-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    .stock-cards-container {
        grid-template-columns: 1fr; /* 单列布局 */
        gap: 1rem;
    }
    .stock-card {
        padding: 1rem;
        border-radius: 10px;
    }
    .stock-card .stock-symbol {
        font-size: 1.3rem;
    }
    .stock-card .stock-name {
        font-size: 0.75rem;
    }
    .stock-card .price-value {
        font-size: 1.0rem;
    }
    .source-divination-item {
        flex-wrap: wrap; /* 小屏幕下允许换行 */
        padding: 0.4rem 0.6rem;
    }
    .source-divination-item .source-name {
        min-width: unset;
        width: 100%;
        text-align: left;
        margin-bottom: 3px;
    }
    .source-divination-item .result-glow {
        flex-grow: unset;
        width: 100%;
        text-align: left;
    }
    .source-divination-item .detail-btn {
        margin-left: 0;
        width: 100%;
        text-align: left;
        padding: 0.2rem 0;
    }
    .tech-modal .modal-header, .tech-modal .modal-footer {
        padding: 0.8rem 1rem;
    }
    .tech-modal .modal-title {
        font-size: 1.1rem;
    }
    .tech-modal .modal-body {
        padding: 1rem;
    }
    .modal-footer-branding, .download-card-footer {
        margin: 1rem -1rem -1rem;
        padding: 10px 1rem;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .hidden-card-for-download {
        width: 100%; /* 适应移动设备 */
        padding: 1rem;
        border-radius: 10px;
    }
    .hidden-card-for-download h4 {
        font-size: 1.3rem;
    }
    .hidden-card-for-download .card-body-download p {
        font-size: 0.85rem;
    }
    .hidden-card-for-download .individual-divinations-section h5 {
        font-size: 1.1rem;
    }
    .hidden-card-for-download .combined-divination-item {
        font-size: 0.85rem;
    }
    .tech-error-message {
        padding: 1rem;
        font-size: 1rem;
    }
    .search-result-title {
        font-size: 1.6rem;
    }
}