/* ===== 全局隐藏规则（必须放在最前面，且不使用.ai-reply前缀） ===== */
think, hidden {
    display: none !important;
}

/* ===== 最外层容器 ===== */
.ai-reply {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== 顶部状态栏 ===== */
.ai-reply hd {
    display: block;
    background: #111827;
    color: #f3f4f6;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-left: 4px solid #3b82f6;
}
.ai-reply hd l {
    display: block;
    padding: 4px 0;
    font-size: 0.9em;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.ai-reply hd l:last-child {
    border-bottom: none;
}

/* ===== 折叠档案卡片 ===== */
.ai-reply details {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* ===== 折叠块标题 ===== */
.ai-reply summary {
    display: block;
    background: #f8fafc;
    padding: 12px 16px;
    font-size: 1.05em;
    font-weight: bold;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
}
.ai-reply summary::-webkit-details-marker {
    display: none; 
}
.ai-reply details[open] summary {
    border-bottom: 1px solid #e5e7eb;
}

/* ===== 单列条目 ===== */
.ai-reply t {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.9em;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.ai-reply t:last-child {
    border-bottom: none;
}

/* ===== 属性标签 ===== */
.ai-reply t b {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    margin-right: 12px;
    min-width: 60px;
    text-align: center;
}

/* ===== 数值温度计 ===== */
.ai-reply v {
    display: block;
    padding: 12px 16px;
    font-weight: bold;
    border-bottom: 1px solid #f1f5f9;
}
.ai-reply v.w {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
.ai-reply v.b {
    background: #fdf4ff;
    color: #86198f;
    border-left: 4px solid #d946ef;
}
.ai-reply v n {
    font-size: 1.2em;
    font-weight: 900;
    text-decoration: underline;
}

/* ===== 行动推荐条目 ===== */
.ai-reply details i {
    display: block;
    padding: 10px 16px;
    margin: 8px 16px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-style: normal;
    cursor: pointer;
}