/* 移动端样式 - 适用于屏幕宽度小于等于600px的设备 */
@media screen and (max-width: 600px) {
    .stock-quote-container {
        flex-direction: column;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background-color: #fff;
    }
    
    .stock-column {
        width: 100%;
        padding: 10px 0;
    }
    
    .stock-left h2[id^="stock-symbol-"] {
        font-size: 22px;
        text-align: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .stock-price {
        font-size: 28px;
        text-align: center;
        margin: 10px 0;
    }
    
    .stock-time {
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
        color: #666;
    }
    
    /* 移动端两个表格纵向排列 */
    .stock-details-left,
    .stock-details-right {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .stock-details-left {
        margin-bottom: 20px;
    }
}

/* PC端样式 - 适用于屏幕宽度大于600px的设备 */
@media screen and (min-width: 601px) {
    .stock-details-left {
        width: 48%;
        float: left;
        margin-right: 4%;
    }
    
    .stock-details-right {
        width: 48%;
        float: right;
    }
    
    .stock-column.stock-right::after {
        content: "";
        display: table;
        clear: both;
    }
}

/* 针对不支持媒体查询的旧浏览器的兼容性处理 */
.stock-details-desktop {
    display: table;
}

.stock-details-mobile {
    display: none;
}