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

html {
    scroll-behavior: smooth;
}

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: #007bff;
    border-color: #007bff;
    transform: translateY(-50%) scale(1.1);
}

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

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

/* 左侧列自定义滚动条 */
.left-column::-webkit-scrollbar {
    width: 6px;
}

.left-column::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.left-column::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.left-column::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

/* 时间标签列表 */
.time-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.time-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 6px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    white-space: nowrap;
}

.time-tag:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.15);
}

.time-tag .tag-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.time-tag h3 {
    color: #333;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

.time-tag .tag-time {
    color: #007bff;
    font-size: 12px;
    margin: 0;
    font-weight: 500;
}

/* 警告标签样式 */
.time-tag-warning {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 2px solid #dc3545 !important;
}

.time-tag-warning:hover {
    border-color: #dc3545 !important;
    background: linear-gradient(135deg, #ffe5e5 0%, #ffcccc 100%);
    box-shadow: 0 4px 8px rgba(220,53,69,0.25);
}

.time-tag-warning h3 {
    color: #dc3545;
}

.time-tag-warning .tag-time {
    color: #dc3545;
}

/* 右侧列 */
.right-column {
    display: grid;
    grid-template-columns: calc(46.67% - 5px) calc(53.33% - 5px);
    gap: 10px;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* 上部分：持币持股列表（现在在右边） */
.right-upper {
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 右侧持币持股自定义滚动条 */
.right-upper::-webkit-scrollbar {
    width: 6px;
}

.right-upper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.right-upper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.right-upper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

.stock-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.2;
    margin-bottom: 6px;
}

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

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

.stock-status:contains('持股') {
    background-color: #d4edda;
    color: #155724;
}

.stock-status:contains('持币') {
    background-color: #f8d7da;
    color: #721c24;
}

/* 为持币金额设置样式 */
.stock-item:has(.stock-name:contains('持币')) .stock-status {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 下部分：分时操作指令（现在是详细内容区域） */
.right-lower {
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 内容区域 */
.time-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 自定义滚动条 */
.time-content::-webkit-scrollbar {
    width: 8px;
}

.time-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.time-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.time-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 时间段章节 */
.time-section {
    margin-bottom: 40px;
    scroll-margin-top: 20px;
}

.time-section h3 {
    color: #007bff;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 内容框 */
.content-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.content-box h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 12px;
    margin-top: 20px;
}

.content-box h4:first-child {
    margin-top: 0;
}

.content-box ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-box li {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.content-box p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-box p:last-child {
    margin-bottom: 0;
}

/* 核心纪律章节样式 */
.core-rules-section h3 {
    color: #dc3545;
    font-size: 22px;
}

.warning-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 4px solid #dc3545;
}

.warning-box h4 {
    color: #dc3545;
    font-size: 17px;
}

.rules-list {
    list-style: none;
    padding-left: 0;
}

.rules-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

.rules-list li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
    font-size: 20px;
    line-height: 1.4;
}

.rules-list li strong {
    color: #dc3545;
    font-weight: 600;
}

.emphasis-text {
    background-color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    border: 2px solid #dc3545;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 12px;
}

.emphasis-text .highlight {
    color: #dc3545;
    font-weight: bold;
    font-size: 15px;
}

/* 尾盘原则警告样式 */
.warning-principle {
    color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 2px solid #dc3545;
    border-radius: 6px;
    padding: 12px 15px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 保留旧的样式以防兼容性问题 */
.operation-instruction {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instruction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.time {
    font-weight: bold;
    color: #333;
    min-width: 60px;
}

.action {
    color: #666;
}