/* --- 核心变量与基础定义 --- */
:root {
    --brand-green: #27ae60;
    --brand-green-hover: #219150;
    --brand-green-light: #e8f5e9;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-body: #f4f7fa;
    --card-bg: #ffffff;
    --border: #f1f2f6;
    --error-red: #e53e3e;
    --error-bg: #fff5f5;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a {text-decoration: none;}
a:hover {text-decoration: none;}

body {
    font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

/* 应用主体布局 */
.main-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 20vh; /* 初始居中感 */
    transition: var(--transition);
}

/* 搜索后的上移状态 */
.main-app.has-results { padding-top: 30px; }

.container { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* --- 1. 头部区域 (Logo & Search) --- */
#logo { text-align: center; margin-bottom: 30px; transition: var(--transition); }
img.logo{width: 20%}
#xxyh-name-row { font-size: 28px; font-weight: 800; letter-spacing: 1px; }

.search-wrapper { width: 100%; position: relative; margin: 25px auto; }
#chexiname {
    width: 100%; height: 60px; padding: 0 120px 0 30px;
    border-radius: 30px; border: 1px solid var(--border);
    background: white; font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition); outline: none;
}
#chexiname:focus { border-color: var(--brand-green); box-shadow: 0 10px 40px rgba(0,0,0,0.08); }

#send-btn {
    position: absolute; right: 8px; top: 8px; height: 44px; padding: 0 24px;
    border-radius: 22px; background: var(--brand-green); color: white;
    font-weight: 700; border: none; cursor: pointer; transition: var(--transition);
}
#send-btn:hover { background: var(--brand-green-hover); }

/* 快速指南 */
#hint { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* --- 2. 结果显示区域 (Result Area) --- */
#resultrow { display: none; margin-top: 20px; }

/* 结果头部标题 */
#chexi-report-title-row {
    padding: 10px 10px 15px; border-bottom: 2px solid var(--text-dark);
    display: flex; justify-content: space-between; align-items: baseline;
}
#chexi-report-title-link { font-size: 20px; font-weight: 800; color: var(--text-dark); text-decoration: none; }
#chexi-report-title-sample { font-size: 13px; color: var(--text-muted); }

/* 列表容器 */
#section-chexing-report-list { background: white; border-radius: 0 0 12px 12px; margin-bottom: 50px; }

/* 列表头 */
.list-head {
    display: flex; padding: 12px 15px; border-bottom: 1px solid var(--border);
    font-size: 12px; font-weight: bold; color: var(--text-muted); background: #fafafa;
}
/* 列表项 */
.list-row {
    display: flex; align-items: center; padding: 18px 15px;
    border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: 0.2s;
}
.list-row:hover { background: var(--brand-green-light); }

/* 三列极简分布 */
.col-name { flex: 1; font-weight: 600; font-size: 15px; padding-right: 15px; color: var(--text-dark); }
.col-samples { width: 90px; text-align: center; color: var(--text-muted); font-size: 14px; }
.col-fuel { width: 100px; text-align: right; color: var(--brand-green); font-size: 18px; font-weight: 800; }

/* 异常/提示信息 */
#result-msg-chexing-toomany, #errorrow {
    padding: 15px; background: #fff5f5; color: #e53e3e; border-radius: 8px;
    margin-bottom: 15px; font-size: 13px; display: none;
}

/* --- 提示与错误 (重点优化) --- */
#hint {
    text-align: left;
    font-size: 13px;
    color: var(--text-muted);
    background: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    border-left: 4px solid var(--brand-green);
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

#errorrow {
    display: none; /* 初始隐藏 */
    background: var(--error-bg);
    color: var(--error-red);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 14px;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}
#errorrow i { font-size: 16px; }
/* --- 5. 热搜车系 (重点优化) --- */
.hot-search-view { margin-top: 40px; }
.ligroup {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid var(--border);
}
.lit {
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-bottom: none;
}
.aouter {
    padding-top: 15px;
    border-top: 1px dashed #d1d5db; /* 分割虚线 */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 5px;
}
.aouter a {
    text-decoration: none;
    color: var(--brand-green);
    font-size: 13px;
    padding: 0 8px;
    white-space: nowrap;
}
.aouter a:not(:last-child)::after {
    content: "|";
    margin-left: 13px;
    color: #e2e8f0;
}
.aouter a:hover { text-decoration: underline; }
.aouter a span { color: var(--brand-green); }

/* 自动补全 UI 样式微调 */
.ui-autocomplete { border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border: none; padding: 10px 0; }
.ui-menu-item-wrapper { padding: 10px 20px !important; }
/* 动画 */
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
/* --- 响应式处理 --- */
@media (max-width: 600px) {
    .main-app { padding-top: 12vh; }
    .has-results { padding-top: 20px; }
    #chexiname { height: 54px; padding-right: 90px; font-size: 15px; }
    #send-btn { height: 40px; padding: 0 16px; }
    .col-name { font-size: 14px; }
    .col-samples { width: 70px; font-size: 13px; }
    .col-fuel { width: 85px; font-size: 16px; }
    .aouter a:not(:last-child)::after { margin-left: 8px; }
    #chexi-report-title-link { font-size: 17px; }
}