# yyscha home.bundle.css - generated 2026-06-05

/* === news-carousel-v2.css === */

/* ============================================
   新闻轮播模块 V2 CSS 样式 - 3行布局
   news-carousel-v2.css
   ============================================ */

/* 新闻轮播容器 - 使用card样式使其与文章区域一致 */
.news-carousel-wrapper {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 0 0 0px 0;  /* 改为与文章区域一致的margin */
}

/* 如果新闻区域需要card样式，可以使用以下样式 */
.content-width-left .news-carousel-wrapper {
    /* 确保与card样式一致 */
    border: 1px solid #e6ecff;
}

/* 新闻轮播内容区域 */
.news-carousel-content {
    padding: 8px 12px;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 第1行：分类导航 + 更多资讯（同一行） */
.news-category-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.news-category-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    flex-wrap: wrap;
    min-width: 0;
}

.news-carousel-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #2a8cff;
    background: #f0f7ff;
    border: 1px solid #d6e8ff;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.news-carousel-more .fa {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.news-carousel-more:hover {
    color: #1976d2;
    background: #e3f2fd;
    border-color: #90caf9;
    text-decoration: none;
}

.news-carousel-more:hover .fa {
    transform: translateX(2px);
}

.category-item {
    padding: 4px 12px;
    font-size: 13px;
    color: #666;
    background: #f5f7fa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.category-item:hover {
    background: #e8f2ff;
    color: #2a8cff;
}

.category-item.active {
    background: #2a8cff;
    color: #fff;
    font-weight: 600;
}

/* 第2-3行：新闻列表 - PC端横向2行 */
.news-list-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3列布局 - 可在此修改列数 */
    gap: 5px 10px;  /* 行间距5px，列间距10px */
    min-height: 42px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 20px;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.news-number {
    flex: 0 0 20px;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* 前3名使用特殊颜色 */
.news-item:nth-child(1) .news-number {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.news-item:nth-child(2) .news-number {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.news-item:nth-child(3) .news-number {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.news-link {
    flex: 1;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.3;
}

.news-link:hover {
    color: #2a8cff;
    text-decoration: underline;
    margin-left: 4px;
}

.news-link:visited {
    color: #666;
}

.news-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 140, 255, 0.2);
}

/* 空状态 */
.news-empty {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 12px;
}

/* ============================================
   响应式设计
   ============================================ */

/* 平板和小屏幕 */
@media (max-width: 1024px) and (min-width: 768px) {
    .news-list-container {
        grid-template-columns: repeat(2, 1fr);  /* 平板2列 */
        gap: 4px 8px;
    }
}

/* 手机端：竖向显示，固定3行 */
@media (max-width: 767px) {
    .news-carousel-wrapper {
        margin: 4px;
        margin-bottom: 6px;
    }
    
    .news-carousel-content {
        padding: 8px 10px;
        min-height: 74px;
        gap: 5px;
    }
    
    .news-category-row {
        gap: 5px 8px;
        padding-bottom: 4px;
    }

    .news-category-nav {
        gap: 6px;
    }

    .news-carousel-more {
        margin-left: auto;
        padding: 3px 8px;
        font-size: 12px;
    }
    
    .category-item {
        padding: 3px 10px;
        font-size: 12px;
    }
    
    /* 手机端：单列布局，固定显示3行 */
    .news-list-container {
        grid-template-columns: 1fr;  /* 单列 */
        gap: 4px;
        min-height: 58px;
    }
    
    .news-item {
        height: 18px;
        gap: 5px;
    }
    
    .news-number {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .news-link {
        font-size: 12px;
    }
}

/* 小手机屏幕 */
@media (max-width: 480px) {
    .news-carousel-content {
        padding: 6px 8px;
        min-height: 68px;
        gap: 4px;
    }
    
    .news-category-row {
        gap: 5px 8px;
    }

    .news-category-nav {
        gap: 5px;
    }

    .news-carousel-more {
        font-size: 11px;
        padding: 2px 7px;
    }
    
    .category-item {
        padding: 2px 8px;
        font-size: 11px;
    }
    
    /* 保持单列，固定3行 */
    .news-list-container {
        grid-template-columns: 1fr;  /* 单列 */
        gap: 3px;
        min-height: 54px;
    }
    
    .news-item {
        height: 17px;
        gap: 4px;
    }
    
    .news-number {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .news-link {
        font-size: 11px;
    }
}

/* ============================================
   特殊效果
   ============================================ */

/* 悬停整个容器时暂停动画 */
.news-carousel-wrapper:hover .news-item {
    animation-play-state: paused;
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.news-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   股市占位容器
   ============================================ */
.stock-market-card {
    border: 1px solid #e6ecff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stock-market-card .card-head.stock-market-head {
    display: none;
}

.stock-market-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8a92b5;
}

.stock-market-quote-time-row,
.stock-mover-head {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
    padding: 0;
    min-height: 24px;
}

.stock-market-quote-meta,
.stock-mover-head-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 6px;
}

.stock-market-quote-meta {
    font-size: 12px;
    font-weight: 500;
    color: #8a92b5;
}

.stock-market-quote-meta .stock-market-refresh-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.stock-market-quote-link {
    font-size: 12px;
    font-weight: 500;
    color: #8a92b5;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 4px;
    padding: 2px 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.stock-market-quote-link:hover,
.stock-market-quote-link:focus-visible {
    color: #4a63d8;
    background-color: rgba(74, 99, 216, 0.08);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.stock-market-cn-time-value,
.stock-market-us-time-value {
    font-variant-numeric: tabular-nums;
}

.stock-market-refresh-btn {
    border: none;
    background: #f3f6ff;
    color: #4a63d8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.stock-market-refresh-btn:hover {
    background: #e1e8ff;
    transform: rotate(20deg);
}

.stock-market-refresh-btn.is-rotating i {
    animation: spin 0.8s linear infinite;
}

.stock-market-refresh-btn i {
    transition: transform 0.2s ease;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stock-market-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(58,118,255,0.05), rgba(58,118,255,0.02));
    text-align: center;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.stock-market-body.has-data {
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    gap: 0;
    padding: 3px 8px 6px;
    background: #fff;
}

.stock-market-body.has-data > .stock-market-section {
    margin-top: 4px;
    padding-top: 0;
}

.stock-market-body.has-data > .stock-mover-section {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.stock-market-body.has-data > .stock-market-stock-section,
.stock-market-body.has-data > .stock-market-sector-bottom {
    flex-shrink: 0;
}

.stock-market-body.has-data > .stock-market-sector-bottom {
    margin-top: auto;
}

.stock-market-status {
    font-size: 13px;
    color: #98a1c0;
}

.stock-market-status.stock-market-error {
    color: #e05055;
}

.stock-market-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stock-market-grid > .stock-market-item:last-child {
    margin-bottom: 0;
}

.stock-market-us-block {
    width: 100%;
    margin-top: 2px;
    padding-top: 2px;
    border-top: 1px solid rgba(230, 236, 255, 0.9);
}

.stock-market-grid-us {
    gap: 2px;
}

/* 指数行：字号/行距与领涨板块一致 */
.stock-market-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(4.2em, 1fr));
    column-gap: 10px;
    align-items: center;
    padding: 1px 4px;
    border-radius: 6px;
    background: rgba(244, 246, 255, 0.6);
    font-size: 12px;
    line-height: 1.2;
    min-height: 0;
}

.stock-market-title {
    font-size: 12px;
    font-weight: 600;
    color: #2c365e;
    white-space: nowrap;
}

.stock-market-price {
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.stock-market-change {
    display: contents;
    font-size: 11px;
    color: inherit;
    font-variant-numeric: tabular-nums;
}

.stock-market-change span {
    min-width: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.stock-market-change span:first-child {
    font-size: 11px;
    opacity: 0.85;
}

.stock-market-change span:last-child {
    font-size: 12px;
    font-weight: 600;
}

.stock-market-item.stock-up .stock-market-price,
.stock-market-item.stock-up .stock-market-change {
    color: #e34f4f;
}

.stock-market-item.stock-down .stock-market-price,
.stock-market-item.stock-down .stock-market-change {
    color: #1ba784;
}

.stock-market-item.stock-flat .stock-market-price,
.stock-market-item.stock-flat .stock-market-change {
    color: #7a86a4;
}

.stock-market-item.stock-flat .stock-market-change span:last-child {
    opacity: 0.8;
}

.stock-market-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid rgba(230, 236, 255, 0.9);
}

.stock-market-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    color: #5b6189;
    margin-bottom: 4px;
    margin-top: 4px;
}

.stock-market-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.stock-market-section-title i {
    color: #4a63d8;
}

.stock-market-section-head .stock-market-refresh-btn {
    flex-shrink: 0;
}

.stock-market-sector-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stock-market-sector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(244, 246, 255, 0.6);
    font-size: 12px;
    line-height: 1.25;
}

.stock-market-sector-item .sector-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.sector-name {
    font-weight: 600;
    color: #2c365e;
}

.sector-amount {
    color: #8a92b5;
    font-size: 11px;
    white-space: nowrap;
}

.sector-values {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-variant-numeric: tabular-nums;
}

.sector-percent {
    font-size: 12px;
    font-weight: 600;
}

.sector-change {
    font-size: 11px;
    opacity: 0.85;
}

.stock-market-sector-item.sector-up .sector-percent,
.stock-market-sector-item.sector-up .sector-change {
    color: #e34f4f;
}

.stock-market-sector-item.sector-down .sector-percent,
.stock-market-sector-item.sector-down .sector-change {
    color: #1ba784;
}

.stock-market-sector-item.sector-flat .sector-percent,
.stock-market-sector-item.sector-flat .sector-change {
    color: #7a86a4;
}

.mobile-stock-wrapper {
    display: none;
}

/* 桌面端：股票侧栏高度由 JS 对齐文章推荐区，内容超出时内部滚动 */
@media (min-width: 1201px) {
    .news-stock-layout .desktop-stock-wrapper > .stock-market-card {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    .news-stock-layout .desktop-stock-wrapper .stock-market-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .news-stock-layout .desktop-stock-wrapper .stock-market-body.has-data {
        overflow: hidden;
    }

    /* 仅略减底部留白，避免末行被裁切（其余保持默认间距） */
    .news-stock-layout .desktop-stock-wrapper .stock-market-body.has-data {
        padding-bottom: 2px;
    }

    .news-stock-layout .desktop-stock-wrapper .stock-market-stock-header {
        margin-bottom: 6px;
    }

    .news-stock-layout .desktop-stock-wrapper .stock-search-input {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .news-stock-layout .desktop-stock-wrapper .stock-mover-section {
        margin-top: 0;
    }

    .news-stock-layout .desktop-stock-wrapper .stock-mover-list {
        max-height: none;
    }

    .news-stock-layout .desktop-stock-wrapper .stock-market-body.has-data {
        padding-bottom: 0;
    }

    .news-stock-layout .desktop-stock-wrapper .stock-market-sector-bottom {
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 991px) {
    .desktop-stock-wrapper {
        display: none;
    }
    .mobile-stock-wrapper {
        display: block;
        margin-top: 12px;
    }
    .mobile-stock-wrapper .stock-mover-list {
        /* 移动端默认可见 9 条（指数 +1 行后保持侧栏总高度不变），其余在列表内滚动查看 */
        --mover-item-height: 22px;
        --mover-item-gap: 1px;
        --mover-visible-rows: 9;
        max-height: calc(
            var(--mover-visible-rows) * var(--mover-item-height) +
            (var(--mover-visible-rows) - 1) * var(--mover-item-gap)
        );
        min-height: calc(4 * var(--mover-item-height));
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        overflow-anchor: none;
    }
    .mobile-stock-wrapper .stock-market-body {
        min-height: auto;
        padding: 12px;
        background: #fff;
    }
    .mobile-stock-wrapper .stock-market-grid,
    .mobile-stock-wrapper .stock-market-grid-us {
        gap: 2px;
    }
}

/* ============================================
   股票查询区域样式
   ============================================ */
.stock-market-stock-section {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(230, 236, 255, 0.9);
}

.stock-market-stock-header {
    margin-bottom: 8px;
}

.stock-search-form {
    width: 100%;
    margin: 0;
}

.stock-market-stock-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.stock-market-stock-search.has-candidates {
    z-index: 10061;
}

.stock-search-input {
    flex: 1;
    padding: 6px 10px;
    padding-right: 64px; /* 为删除按钮和搜索按钮预留空间 */
    border: 1px solid #e6ecff;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stock-search-input:focus {
    outline: none;
    border-color: #2a8cff;
    box-shadow: 0 0 0 2px rgba(42, 140, 255, 0.1);
}

.stock-search-input::placeholder {
    color: #999;
}

/* 搜索结果：显示在输入框内部 */
.stock-search-result {
    position: absolute;
    left: 12px;
    right: 64px; /* 与 padding-right 对齐，避免被按钮遮挡 */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

/* 有结果时显示结果，并隐藏输入文字 */
.stock-market-stock-search.has-result .stock-search-result {
    display: flex;
}

.stock-market-stock-search.has-result .stock-search-input {
    color: transparent;
}

/* 输入框获得焦点时，优先显示输入内容，隐藏结果，避免重叠 */
.stock-market-stock-search.has-result .stock-search-input:focus {
    color: #333;
}

.stock-market-stock-search.has-result:not(.has-candidates) .stock-search-input:focus ~ .stock-search-result {
    display: none;
}

/* 多选候选：fixed 浮层（坐标由 stock-market.js 同步），不撑开侧栏布局 */
.stock-market-stock-search.has-candidates .stock-search-result {
    position: fixed;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    transform: none;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 10110;
    background: #fff;
    border: 1px solid #e6ecff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(42, 58, 120, 0.16);
    padding: 6px 8px;
    max-height: 200px;
    overflow-y: auto;
}

.stock-market-stock-search.has-candidates .stock-search-input {
    color: #333;
}

.stock-market-stock-search.has-candidates .stock-delete-btn {
    display: flex;
    z-index: 10063;
}

.stock-search-btn,
.stock-delete-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: #f3f6ff;
    color: #4a63d8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    font-size: 12px;
}

.stock-search-btn:hover {
    background: #e1e8ff;
    transform: scale(1.05);
}

.stock-delete-btn {
    position: absolute;
    right: 36px; /* 在搜索按钮左侧，位于输入框内部 */
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(227, 79, 79, 0.1);
    color: #e34f4f;
    display: none; /* 默认隐藏，有结果时显示 */
    font-size: 10px;
    z-index: 1;
}

.stock-market-stock-search.has-result .stock-delete-btn {
    display: inline-flex;
}

.stock-delete-btn:hover {
    background: rgba(227, 79, 79, 0.2);
    transform: translateY(-50%) scale(1.08);
}

/* 查询结果中的单行样式（嵌入输入框内） */
.stock-search-result .stock-item {
    padding: 0;
    background: transparent;
    border-radius: 0;
    gap: 8px;
    font-size: 12px;
}

.stock-search-result .stock-item-name {
    font-size: 12px;
    min-width: auto;
    flex: 0 0 auto;
}

.stock-search-result .stock-price-value {
    font-size: 13px;
    min-width: auto;
    flex: 0 0 auto;
}

.stock-search-result .stock-price-change {
    font-size: 11px;
    min-width: auto;
    flex: 0 0 auto;
    gap: 6px;
}

.stock-search-candidates {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.stock-search-candidate-hint {
    font-size: 11px;
    color: #8a92b5;
    padding: 0 2px 4px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.stock-search-candidate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    background: rgba(244, 246, 255, 0.85);
    color: #2c365e;
    font-size: 12px;
    line-height: 1.3;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.stock-search-candidate-btn:hover,
.stock-search-candidate-btn:focus-visible {
    background: rgba(74, 99, 216, 0.1);
    color: #4a63d8;
}

.stock-search-candidate-btn .candidate-code {
    font-size: 11px;
    color: #8a92b5;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.stock-mover-section {
    width: 100%;
    margin-top: 1px;
    padding-top: 2px;
    border-top: 1px solid rgba(230, 236, 255, 0.9);
    overflow: visible;
    position: relative;
    z-index: 2;
}

.stock-mover-head {
    margin-bottom: 2px;
}

.stock-mover-head-inner {
    gap: 12px;
}

.stock-mover-title {
    font-size: 12px;
    font-weight: 500;
    color: #8a92b5;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 2px 4px;
    line-height: 1.2;
}

.stock-mover-filters {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.stock-mover-dropdown {
    position: relative;
}

.stock-mover-filter-btn {
    border: 1px solid #f0b27a;
    background: #fff7ef;
    color: #d35400;
    font-size: 11px;
    line-height: 1;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.stock-mover-filter-btn-cancel {
    border-color: #b8c0d8;
    background: #f7f8fc;
    color: #5b6189;
}

.stock-mover-filter-btn::after {
    content: '▾';
    margin-left: 3px;
    font-size: 10px;
}

.stock-mover-dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 30;
    min-width: 148px;
    max-width: 220px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e6ecff;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(42, 58, 120, 0.12);
    padding: 6px;
}

.stock-mover-panel-up {
    background: #fff6f6;
}

.stock-mover-panel-down {
    background: #f3fbf6;
}

.stock-mover-panel-action {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #d35400;
    padding: 2px 4px 6px;
    cursor: pointer;
}

.stock-mover-panel-down .stock-mover-panel-action {
    color: #1ba784;
}

.stock-mover-type-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stock-mover-type-option {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #2c365e;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.stock-mover-type-option:hover {
    background: rgba(74, 99, 216, 0.06);
}

.stock-mover-type-option input {
    margin: 0;
    flex-shrink: 0;
}

.stock-mover-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 68px 72px;
    align-items: center;
    column-gap: 4px;
}

.stock-mover-item .mover-info {
    text-align: right;
}

.stock-mover-list {
    width: 100%;
    flex: 1 1 auto;
    min-height: 72px;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 99, 216, 0.35) transparent;
}

.stock-mover-list::-webkit-scrollbar {
    width: 4px;
}

.stock-mover-list::-webkit-scrollbar-thumb {
    background: rgba(74, 99, 216, 0.35);
    border-radius: 4px;
}

.stock-mover-item {
    font-size: 11px;
    color: #2c365e;
    min-height: 20px;
    line-height: 1.25;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 1px 2px;
}

.stock-mover-item.stock-mover-placeholder {
    display: block;
    text-align: center;
    color: #8a92b5;
    font-size: 12px;
    padding: 8px 4px;
}

.stock-market-sector-bottom {
    width: 100%;
    margin-top: 2px;
    padding-top: 2px;
    padding-bottom: 0;
    border-top: 1px solid rgba(230, 236, 255, 0.9);
}

.stock-market-sector-bottom .stock-market-sector-grid {
    gap: 0;
}

.stock-market-sector-bottom .stock-market-sector-item {
    padding: 2px 4px;
}

.stock-mover-item .mover-time {
    font-variant-numeric: tabular-nums;
    color: #5b6189;
}

.stock-mover-item .mover-name {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4a63d8;
    font-weight: 500;
}

.stock-mover-item .mover-type,
.stock-mover-item .mover-info {
    overflow: hidden;
    text-overflow: ellipsis;
}

.stock-mover-item .mover-type.mover-up,
.stock-mover-item .mover-info.mover-up {
    color: #e34f4f;
}

.stock-mover-item .mover-type.mover-down,
.stock-mover-item .mover-info.mover-down {
    color: #1ba784;
}

.stock-mover-item .mover-type.mover-flat,
.stock-mover-item .mover-info.mover-flat {
    color: #7a86a4;
}

.stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(247, 249, 255, 0.6);
    font-size: 13px;
    gap: 12px;
}

.stock-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c365e;
    flex: 0 0 auto;
    min-width: 80px;
}

.stock-price-value {
    font-size: 16px;
    font-weight: 700;
    flex: 0 0 auto;
    min-width: 70px;
    text-align: right;
}

.stock-price-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    flex: 0 0 auto;
    min-width: 100px;
    justify-content: flex-end;
}

.stock-price-change span {
    white-space: nowrap;
}

.stock-price-change span:first-child {
    font-weight: 600;
}

.stock-item.stock-up .stock-price-value,
.stock-item.stock-up .stock-price-change {
    color: #e34f4f;
}

.stock-item.stock-down .stock-price-value,
.stock-item.stock-down .stock-price-change {
    color: #1ba784;
}

.stock-item.stock-flat .stock-price-value,
.stock-item.stock-flat .stock-price-change {
    color: #7a86a4;
}

/* 移动端样式调整 */
@media (max-width: 991px) {
    .stock-item {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .stock-item-name {
        font-size: 14px;
        min-width: 90px;
    }
    
    .stock-price-value {
        font-size: 18px;
        min-width: 80px;
    }
    
    .stock-price-change {
        font-size: 13px;
        min-width: 110px;
    }
}

/* 移动端股票查询区域样式调整 */
@media (max-width: 991px) {
    .desktop-stock-wrapper .stock-market-stock-section {
        display: none !important;
    }
    
    .mobile-stock-wrapper .stock-market-stock-section {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid rgba(230, 236, 255, 0.9);
    }

    .mobile-stock-wrapper .stock-mover-item {
        grid-template-columns: 48px minmax(0, 1fr) 62px 64px;
        min-height: var(--mover-item-height, 22px);
    }

    .mobile-stock-wrapper .stock-mover-list::-webkit-scrollbar {
        width: 3px;
    }

    /* 小屏手机：保持 9 条可见高度，略收紧行高以留出下方空间 */
    @media (max-width: 480px) {
        .mobile-stock-wrapper .stock-mover-list {
            --mover-item-height: 21px;
        }
    }

    /* 横屏 / 较宽移动设备：同样 9 条，行高恢复默认 */
    @media (min-width: 481px) and (max-width: 991px) {
        .mobile-stock-wrapper .stock-mover-list {
            --mover-item-height: 22px;
        }
    }
    
    .mobile-stock-wrapper .stock-market-stock-search {
        gap: 8px;
    }
    
    .mobile-stock-wrapper .stock-search-input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .mobile-stock-wrapper .stock-search-btn,
    .mobile-stock-wrapper .stock-delete-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}


