/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 系统字体 */
body { 
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff; 
    color: #333333;
    line-height: 1.5;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 应用布局 */
.app { 
    display: flex; 
    flex: 1;
}

/* 侧边栏 - 极简 */
.sidebar {
    width: 200px;
    background: #ffffff;
    border-right: 1px solid #f0f0f0;
    padding: 24px 16px;
    position: fixed;
    height: 100vh;
}

.sidebar-brand {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.brand-logo {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto 12px auto;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.brand-text {
    font-size: 16px;
    font-weight: 500;
    color: #666666;
    margin-top: 8px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #666666;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
}

.menu-item:hover {
    background: #f8f9fa;
    color: #333333;
}

.menu-item.active {
    background: #f0f7ff;
    color: #007bff;
    font-weight: 600;
}

.menu-icon {
    width: 20px;
    height: 20px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* 顶部标题 */
.page-header {
    padding: 80px 40px 10px;
    text-align: center;
    flex-shrink: 0;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    color: #333333;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

/* 核心决策区 - 垂直居中，适配高度 */
.decision-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 40px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

/* 状态区 */
.status-section {
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.status-red {
    color: #dc2626;
}

.status-yellow {
    color: #f59e0b;
}

.status-green {
    color: #10b981;
}

.loading-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-green {
    color: #10b981;
}

.position-info {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 1px;
}

/* 行动按钮 */
.action-button {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.action-red {
    background: #dc2626;
    color: white;
}

.action-yellow {
    background: #d97706;
    color: white;
}

.action-green {
    background: #10b981;
    color: white;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 原因列表 */
.reasons-section {
    width: 100%;
    max-width: 400px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.reason-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 16px;
}

.reason-bullet {
    color: #666;
    margin-right: 12px;
    font-weight: 600;
}

/* 操作指令 */
.instructions-section {
    width: 100%;
    max-width: 400px;
    margin-bottom: 40px;
}

.instruction-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f0f7ff;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    color: #007bff;
    font-weight: 600;
}

.instruction-bullet {
    margin-right: 12px;
}

/* 决策依据 */
.decision-basis {
    width: 100%;
    max-width: 400px;
    margin-top: 8px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px;
    flex-shrink: 0;
}

.basis-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}

.basis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}

.basis-item:last-child {
    border-bottom: none;
}

.basis-label {
    color: #666;
    font-weight: 500;
}

.basis-value {
    color: #333;
    font-weight: 600;
}

.basis-true {
    color: #10b981;
}

.basis-false {
    color: #dc2626;
}

/* 底部固定文案 */
.footer-text {
    text-align: center;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    padding: 24px 40px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .page-header {
        padding: 30px 20px 6px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .decision-container {
        padding: 0 20px;
        max-height: calc(100vh - 120px);
    }
    
    .action-button {
        font-size: 17px;
        padding: 14px;
        margin-top: 3px;
        margin-bottom: 14px;
    }
    
    .decision-basis {
        padding: 10px;
        margin-top: 4px;
    }
    
    .basis-title {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .basis-item {
        font-size: 11px;
        padding: 4px 0;
    }
}