ai {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f4f7f6;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
}

/* 顶部时间与地点 - 黑板风格 */
ai hd {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), inset 0 0 10px rgba(255,255,255,0.05);
    border: 4px solid #8e44ad;
    border-image: repeating-linear-gradient(45deg, #8e44ad, #8e44ad 10px, #9b59b6 10px, #9b59b6 20px) 4;
}
ai hd t { font-weight: bold; font-size: 13px; }
ai hd c { text-align: center; font-family: monospace; font-size: 16px; color: #f1c40f; text-shadow: 0 0 5px rgba(241, 196, 15, 0.5); }
ai hd p { text-align: right; margin: 0; font-size: 12px; opacity: 0.9; }

/* 折叠面板通用样式 - 课本/笔记本质感 */
ai details {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}
ai details::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ff7675; /* 笔记本红线 */
    opacity: 0.3;
    z-index: 0;
}
ai summary {
    padding: 10px 15px 10px 35px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(to right, #f8f9fa, #fff);
    border-bottom: 1px dashed #dcdde1;
    color: #2f3640;
    list-style: none;
    position: relative;
    z-index: 1;
}
ai summary::-webkit-details-marker { display: none; }
ai summary::after {
    content: '▼';
    position: absolute;
    right: 15px;
    font-size: 12px;
    color: #7f8fa6;
    transition: transform 0.3s;
}
ai details[open] summary::after { transform: rotate(180deg); }

/* 微信面板 */
ai wx { display: flex; padding: 15px 15px 15px 35px; background: #ededed; gap: 10px; align-items: flex-start; z-index: 1; position: relative; }
ai wx ava { background: #07c160; color: white; width: 36px; height: 36px; border-radius: 4px; display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: bold; flex-shrink: 0; }
ai wx msg { background: #fff; padding: 8px 12px; border-radius: 4px; position: relative; font-size: 13px; max-width: 80%; }
ai wx msg::before { content: ''; position: absolute; left: -6px; top: 12px; border-style: solid; border-width: 5px 6px 5px 0; border-color: transparent #fff transparent transparent; }
ai wx msg b { color: #576b95; display: block; margin-bottom: 2px; font-size: 12px; }

/* 成绩榜 */
ai rk { display: grid; gap: 5px; padding: 15px 15px 15px 35px; z-index: 1; position: relative; }
ai rk r { padding: 8px 12px; background: #f1f2f6; border-radius: 4px; font-size: 13px; font-weight: bold; display: flex; align-items: center; border-left: 4px solid #a4b0be; }
ai rk r.g { background: #fff9e6; border-left-color: #f1c40f; color: #d35400; }
ai rk r.s { background: #f8f9fa; border-left-color: #bdc3c7; color: #7f8c8d; }
ai rk r.b { background: #fdf5e6; border-left-color: #cd6133; color: #a0522d; }

/* 状态卡片 (主角/NPC) */
ai pl { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; padding: 15px 15px 5px 35px; z-index: 1; position: relative; }
ai stc { background: #f8f9fa; border: 1px solid #dcdde1; border-radius: 6px; padding: 6px; text-align: center; }
ai sl { display: block; font-size: 11px; color: #7f8fa6; margin-bottom: 2px; }
ai sv { display: block; font-size: 13px; font-weight: bold; color: #2f3640; }

/* 详细信息区块 */
ai sec, ai fm { display: block; padding: 5px 15px 15px 35px; z-index: 1; position: relative; }
ai st { display: block; font-weight: bold; font-size: 13px; color: #353b48; margin: 10px 0 5px 0; border-bottom: 2px solid #7bed9f; display: inline-block; padding-bottom: 2px; }
ai info { display: block; font-size: 13px; color: #576574; margin-bottom: 4px; line-height: 1.4; }

/* 身体监控网格 */
ai bd { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; background: #fff0f5; padding: 10px; border-radius: 6px; border: 1px dashed #ffb8b8; }
ai bi { font-size: 12px; color: #2d3436; }
ai bi b { color: #d63031; }

/* 心理侧写 */
ai th { display: block; font-style: italic; color: #6c5ce7; background: #f3f0ff; padding: 10px; border-radius: 6px; border-left: 3px solid #a29bfe; font-size: 13px; margin-top: 5px; }

/* 答题卡选项区 */
ai act { background: #fff; padding: 15px; border-radius: 8px; border: 2px solid #74b9ff; margin-top: 15px; box-shadow: 0 4px 0 #0984e3; }
ai ah { display: block; text-align: center; font-weight: bold; color: #0984e3; margin-bottom: 12px; font-size: 15px; letter-spacing: 1px; }
ai ab { display: flex; align-items: center; background: #f8f9fa; padding: 10px; margin-bottom: 8px; border-radius: 6px; cursor: pointer; transition: all 0.2s; border: 1px solid #dfe6e9; font-size: 14px; }
ai ab:hover { background: #e3f2fd; border-color: #74b9ff; transform: translateX(5px); }
ai ab span { display: inline-flex; justify-content: center; align-items: center; width: 24px; height: 24px; background: #0984e3; color: white; border-radius: 50%; margin-right: 10px; font-weight: bold; font-size: 12px; flex-shrink: 0; }

/* 移动端优化 */
@media (max-width: 600px) {
    ai hd { grid-template-columns: 1fr; gap: 5px; text-align: center; }
    ai hd p { text-align: center; }
    ai pl { grid-template-columns: repeat(2, 1fr); }
    ai bd { grid-template-columns: 1fr; }
}