* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 150px;
    height: 65px;
    padding: 7px;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.logo-text {
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

.header-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.time-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: -35px;
}

.time {
    font-size: 15px;
    color: #ff0000;
    margin-bottom: 2px;
}

.open {
    font-size: 17px;
    color: #ff0000;
}

.announcement {
    background-color: #252525;
    padding: 8px 0;
    border-bottom: 1px solid #333;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-content {
    display: inline-block;
    font-size: 12px;
    color: #d3b65b;
    text-align: left;
    animation: scroll-left 30s linear infinite;
}

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

.footer {
    background-color: #000;
    border-top: 1px solid #333;
    padding: 10px 0;
    margin-top: auto;
}

.footer-content {
    padding: 0 20px;
}

.footer-item {
        font-size: 13px;
        color: #fafafa;
        text-align: left;
        margin: 2px 0;
}

.table-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    background-color: #000;
    -webkit-overflow-scrolling: touch;
}

.table-wrapper {
    min-width: 600px;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #1a1a1a;
    color: #fff;
    padding: 6px 3px;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid #333;
}

td {
    padding: 6px 3px;
    font-size: 18px;
    text-align: center;
    color: #fff;
    border: 1px solid #333;
    white-space: normal;
}

.high-low {
    white-space: normal;
    line-height: 1.2;
}

.category-cell {
    font-weight: bold;
    position: relative;
    width: 45px;
    min-width: 45px;
    text-align: center;
    vertical-align: middle;
}

/* 分类单元格样式 */
.category-cell {
    background-color: #0a0a0a!important;
}

.vertical-text {
    /* 修改为从左到右的垂直文本以确保中文方向正确 */
    writing-mode: vertical-lr;
    -webkit-writing-mode: vertical-lr;
    text-orientation: upright;
    -webkit-text-orientation: upright;
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 8px;
    white-space: nowrap;
    line-height: 30px;
}

.price-red {
    color: #ff0000;
    font-weight: bold;
}

.price-green {
    color: #00ff00;
    font-weight: bold;
}

.price-yellow {
    color: #ffff00;
    font-weight: bold;
}

/* 优化表格行样式 */
tr:nth-child(even) {
    background-color: #0a0a0a;
}

tr:nth-child(odd) {
    background-color: #252525;
}

tr:hover {
    background-color: #1a1a1a;
}

/* 响应式设计 - 保持与PC端一致的样式 */
@media (max-width: 768px) {
    .header {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 6px 10px;
    }
}

/* 滚动条样式美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.product-name {
    color: #d3b65b;
}

.high-low {
    line-height: 1.2;
}

.high-low::first-line {
    color: #ff2617;
}

.high-low {
    color: #83f159;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 20px;
    color: #d3b65b;
}

.error {
    text-align: center;
    padding: 20px;
    color: #ff0000;
}