/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* 容器 */
.container {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    margin: 0;
}

/* Header 部分 */
.header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.header h1 {
    color: #333;
    font-size: 24px;
    margin: 0;
    text-align: center;
}

.home-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.home-icon:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    transform: translateY(-50%) scale(1.1);
}

/* Content 部分 */
.content {
    display: grid;
    grid-template-columns: calc(25% - 2.5px) calc(75% - 2.5px);
    gap: 5px;
    padding: 5px 5px 5px;
    height: calc(100vh - 80px);
}

/* 左侧卖出指令 */
.left-column {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}

.left-column h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.instruction-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.instruction-card h3 {
    color: #555;
    margin-bottom: 10px;
    font-size: 16px;
}

.instruction-card ul {
    list-style-type: disc;
    margin-left: 20px;
}

.instruction-card li {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

/* 右侧列 */
.right-column {
    display: grid;
    grid-template-rows: 250px 1fr;
    gap: 10px;
    padding: 10px;
    height: 100%;
}

/* 上部分：卖出结果列表 */
.right-upper {
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    height: 250px;
    overflow-y: auto;
}

.right-upper h2 {
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.stock-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    background-color: #f8f9fa;
    border-radius: 4px;
    width: calc(25% - 4.5px);
    box-sizing: border-box;
    line-height: 1.2;
}

.stock-name {
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.stock-status {
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

/* 下部分：卖出操作指令 */
.right-lower {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}

.right-lower h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.operation-instruction {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
