/* =========================================================
   国标查询 list.css  - 仅叠加页面特定补充样式
   设计系统主规范见 ../css/common.css
   ========================================================= */

/* 国标筛选区的 filter-chip (common chip 规范的别名) */
.filter-section .filter-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--bg-chip);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    border: 1px solid transparent;
}
.filter-section .filter-chip:hover { color: var(--primary); }
.filter-section .filter-chip.active {
    color: #fff;
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(14,165,233,0.28);
}
.filter-section .filter-chip.status-chip.active {
    background: linear-gradient(135deg,#34d399,#059669);
    box-shadow: 0 6px 14px rgba(5,150,105,0.25);
}

/* 国标搜索框 (页面用的是 .search-box 结构，映射到胶囊) */
.filter-section .search-box {
    display: flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 8px 0 14px;
    background: #fff;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    margin: 6px 14px 12px;
    box-shadow: inset 0 1px 2px rgba(15,23,42,0.03);
    transition: all .2s;
}
.filter-section .search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-sm);
}
.filter-section .search-box .search-icon {
    width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0;
}
.filter-section .search-box .search-input {
    flex: 1; height: 100%; border: 0; background: transparent; outline: 0;
    font-size: 14px; color: var(--text-1);
}
.filter-section .search-box .search-input::placeholder { color: var(--text-3); }
.filter-section .search-box .search-btn {
    height: 32px; padding: 0 14px;
    font-size: 13px; font-weight: 600;
    border-radius: var(--radius-pill); border: 0; cursor: pointer;
    color: #fff; background: var(--primary-gradient);
    box-shadow: 0 4px 10px rgba(14,165,233,0.28);
    transition: transform .15s;
}
.filter-section .search-box .search-btn:active { transform: scale(0.96); }

/* 列表 padding (覆盖 common 的默认避免重复) */
.card-list { padding-top: 6px; }

/* =========================================================
   国标查询 - 简约清爽卡片重写
   ========================================================= */
.card-list .standard-card {
    position: relative;
    padding: 14px 14px 13px 16px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 1px 0 rgba(15,23,42,0.04),
        0 4px 14px rgba(15,23,42,0.05);
    border: 1px solid rgba(148,163,184,0.12);
    margin-bottom: 12px;
    transition: all .18s ease;
}
.card-list .standard-card::before {
    /* 左侧色条简化为小方块色标 */
    content: '';
    position: absolute;
    left: 0; top: 14px;
    width: 3px; height: 36px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #0ea5e9, #2563eb);
}
.card-list .standard-card:hover {
    border-color: rgba(14,165,233,0.35);
    box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 10px 22px rgba(14,165,233,0.10);
    transform: translateY(-1px);
}
.card-list .standard-card:active { transform: scale(0.992); }

.card-list .standard-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}
/* 标准编号：简约胶囊，浅色渐变底 */
.card-list .standard-card .card-code {
    font-family: 'SF Mono','JetBrains Mono',Menlo,Consolas,monospace;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(37,99,235,0.10));
    color: #1d4ed8;
    border: 1px solid rgba(37,99,235,0.14);
}
/* 类型 chip: GB / HB 扁平简约 */
.card-list .standard-card .card-type {
    font-size: 11px; font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
.card-list .standard-card .card-type.gb {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid rgba(37,99,235,0.18);
}
.card-list .standard-card .card-type.hb {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(5,150,105,0.18);
}

.card-list .standard-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.6;
    margin: 4px 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* footer 合并日期和状态, 简约分割线 */
.card-list .standard-card .card-footer {
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px dashed rgba(148,163,184,0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.card-list .standard-card .card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-3);
}
.card-list .standard-card .card-date::before {
    content: ''; display: inline-block;
    width: 13px; height: 13px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>") center / contain no-repeat;
    opacity: 0.85;
}
.card-list .standard-card .card-status {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.card-list .standard-card .card-status.current {
    background: #ecfdf5;
    color: #059669;
    border-color: rgba(16,185,129,0.25);
}
.card-list .standard-card .card-status.obsolete {
    background: #fef2f2;
    color: #dc2626;
    border-color: rgba(239,68,68,0.25);
}

/* Extracted inline style attributes from mobile/standards/list.html. */
.u-style-224b51a7 { display: none; }
