/* M2 Top Header Custom Styles */
.top-header {
    background: linear-gradient(90deg, #2b8dfc 0%, #1e83f7 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 0.55rem;
    box-sizing: border-box;
    box-shadow: 0 0.02rem 0.06rem rgba(0, 0, 0, 0.15);
}

.top-header .logo-img {
    height: 100%;
    object-fit: contain;
}

.top-header .tj-img {
    height: 0.62rem;
    width: 0.62rem;
    object-fit: contain;
    animation: m2-tj-spin 4s linear infinite;
    filter: drop-shadow(0 0 0.08rem rgba(0, 0, 0, 0.6));
}

.top-header .youce-img {
    height: 0.42rem;
    object-fit: contain;
}

@keyframes m2-tj-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* M2 Notice Marquee Bar */
.m2-notice-bar {
    background-color: #ebf3fe;
    border-radius: 0.08rem;
    padding: 0.08rem 0.12rem;
    margin-bottom: 0.1rem;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 0.02rem 0.06rem rgba(0, 0, 0, 0.08);
}

.m2-notice-icon {
    font-size: 0.18rem;
    color: #9cb1d6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.08rem;
    flex-shrink: 0;
}

.m2-notice-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.15rem;
    font-weight: bold;
    color: #1a286b;
    line-height: 1.2;
}

.m2-notice-content marquee {
    display: block;
    vertical-align: middle;
}

/* M2 Icon Grid Styles */
.icon-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0.12rem 0;
    padding: 0 0.02rem;
}

.icon-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.icon-cell img {
    width: 0.82rem;
    object-fit: contain;
    margin-bottom: 0.04rem;
}

    .icon-cell .icon-label {
        font-size: 0.14rem;
        font-weight: bold;
        color: #555;
        text-shadow: 2px 2px 4px #ffd700, -1px -1px 2px #ffd700, 1px -1px 2px #ffd700, -1px 1px 2px #ffd700;
        white-space: nowrap;
    }

/* External Links Box Styles */
.external-links-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.12rem;
    padding: 0.16rem 0.2rem;
}

.external-link-item {
    background: #f8f9fa;
    color: #333;
    border: 1.5px solid #e9ecef;
    border-radius: 0.06rem;
    padding: 0.12rem 0.16rem;
    text-align: center;
    font-size: 0.15rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.02rem 0.04rem rgba(43, 141, 252, 0.12);
    transition: all 0.2s ease;
}

.external-link-item:active,
.external-link-item:hover {
    background-color: #ecf5ff;
    color: #1e83f7;
}

/* 内幕十码 弹窗 样式 */
.ten-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 0 0.1rem;
    box-sizing: border-box;
    cursor: pointer;
}

.ten-modal-card {
    background-color: #389eef;
    border-radius: 0.12rem;
    padding: 0.15rem 0.08rem;
    width: 100%;
    max-width: 4.8rem;
    margin: 0 auto;
    box-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    cursor: default;
}

.ten-modal-title {
    text-align: center;
    font-size: 0.17rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 0.12rem;
    letter-spacing: 0.01rem;
}

.ten-modal-period {
    color: #e53935;
    font-weight: bold;
    margin: 0 0.02rem;
}

.ten-modal-numbers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.03rem;
    width: 100%;
    box-sizing: border-box;
}

.ten-modal-num-pill {
    background-color: #ffffff;
    color: #2b7bc6;
    font-size: 0.15rem;
    font-weight: bold;
    height: 0.34rem;
    line-height: 0.34rem;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0.06rem;
    box-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    box-sizing: border-box;
}
