 @charset "UTF-8";

:root {
    --scac-blue: #4f75c2;       /* 品牌标准蓝 */
    --scac-blue-hover: #3b5a9d; 
    --top-bg: #1e293b;          /* 科技深岩灰 */
    --top-text: #cbd5e1;        
    --footer-bg: #0f172a;       
    --bg-page: #f4f7f9;         /* 整体背景略微加深，突显白色卡片 */
    --border-light: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-danger: #8a3b3b;     /* 护眼警示红 */
    --safe-color: #10b981;      /* 安全绿 */
    --accent-orange: #f59e0b;   /* 活力橙 */
    --accent-purple: #8b5cf6;   /* 科技紫 */
    --tag-bg: #f1f5f9;          /* 字块浅灰底色 */
    --line-weight: 2px;         /* 统一定义线条粗细 */
    --star-color: #f59e0b;      /* 评分金星 */
}

/* 评分星级系统 (Star Rating System) */
.scac-star-group {
    display: inline-flex;
    position: relative;
    font-size: 16px;
    letter-spacing: 2px;
    color: #cbd5e1; /* 空星颜色 */
    line-height: 1 !important;
    white-space: nowrap;
    vertical-align: middle;
    align-items: center;
    height: 1em;
}
.scac-star-group::before {
    content: "★★★★★";
    line-height: 1 !important;
    display: block;
}
.scac-star-group .star-inner {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: var(--star-color); /* 默认实星颜色 */
    white-space: nowrap;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}
.scac-star-group .star-inner::before {
    content: "★★★★★";
    line-height: 1 !important;
    display: block;
}

/* 动态评分颜色分级 */
.scac-star-group.rate-high .star-inner { color: #10b981 !important; } /* 4分以上绿色 */
.scac-star-group.rate-mid .star-inner { color: #facc15 !important; }  /* 2.5~4分黄金色/黄色 */
.scac-star-group.rate-low .star-inner { color: #ef4444 !important; }  /* 2.5分以下红色 */

/* 启用系统级抗锯齿字体 */
html {
    overflow-y: scroll;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; 
    margin: 0; 
    background: var(--bg-page); 
    color: var(--text-main); 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* 页面主体容器 */
.page-container {
    max-width: 1280px; 
    margin: 40px auto 80px;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
    min-height: max(600px, calc(100vh - 330px));
}

/* 面包屑导航 */
.breadcrumb { font-size: 13px; color: #64748b; margin-bottom: 25px; }
.breadcrumb a { color: var(--scac-blue); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* 统一头部 (Topbar) */
.top-bar {
    background: var(--top-bg); 
    color: var(--top-text); 
    padding: 18px 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 14px;    
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    white-space: nowrap;
    min-width: max-content;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.top-brand { font-weight: 600; color: #f8fafc; font-size: 16px; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0;} 

.user-nav { display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.user-nav span.user-phone { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; font-weight: 600; color: #ffffff;} 
.user-nav .divider { margin: 0 20px; color: #475569; }
.user-nav a { color: var(--top-text); text-decoration: none; transition: all 0.3s ease; font-weight: 500;}
.user-nav a:hover { color: #ffffff; } 

/* 统一底部 (Footer) */
.scac-footer {
    background: var(--footer-bg); 
    color: #64748b; 
    padding: 50px 20px;
    text-align: center; 
    font-size: 13px; 
    line-height: 2.2; 
    width: 100%; 
    box-sizing: border-box;
}
.scac-footer-company { 
    color: #f8fafc; 
    font-weight: 600; 
    display: block; 
    margin-bottom: 8px; 
    font-size: 15px; 
    letter-spacing: 0.5px; 
}

/* 通用分页组件 (Pagination) */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0 5px;
}
.page-info {
    font-size: 13px;
    color: #64748b;
}
.page-info b {
    color: #334155;
    font-weight: 600;
}
.pages .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pages .pagination li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.pages .pagination li a,
.pages .pagination li span {
    display: inline-block;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.pages .pagination li a:hover {
    color: var(--scac-blue);
    border-color: var(--scac-blue);
    background: #f8fafc;
}
.pages .pagination li.active span {
    background: var(--scac-blue);
    color: #ffffff;
    border-color: var(--scac-blue);
    font-weight: bold;
}
.pages .pagination li.disabled span,
.pages .pagination li.disableds span {
    color: #94a3b8;
    background: #f1f5f9;
    cursor: not-allowed;
    border-color: #e2e8f0;
}
.pages .pagination li form {
    display: flex !important;
    align-items: center;
    margin: 0;
}
.pages .pagination li form input[type='number'] {
    width: 50px !important;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    height: 32px !important;
    font-size: 13px;
}
.pages .pagination li form input[type='submit'] {
    background: var(--scac-blue) !important;
    color: white !important;
    border: none;
    border-radius: 4px;
    padding: 0 12px !important;
    height: 32px !important;
    line-height: 32px !important;
    cursor: pointer;
    font-size: 13px;
    margin-top: 0 !important;
    margin-left: 6px !important;
    transition: background 0.2s;
}
.pages .pagination li form input[type='submit']:hover {
    background: var(--scac-blue-hover) !important;
}

/* 独立检索舱 */
.search-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 30px;
    margin-bottom: 25px;
    border-top: 4px solid var(--scac-blue);
    display: flex;
    gap: 15px;
    align-items: center;
}
.search-card form {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
}
.search-card input,
.search-card input[type='text'] {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}
.search-card input:focus,
.search-card input[type='text']:focus {
    background: #ffffff;
    border-color: var(--scac-blue);
    box-shadow: 0 0 0 3px rgba(79, 117, 194, 0.1);
}
.search-card input::placeholder,
.search-card input[type='text']::placeholder {
    color: #94a3b8;
}
.search-card button {
    background: var(--scac-blue);
    color: #ffffff;
    border: none;
    padding: 0 35px;
    height: 52px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    white-space: nowrap;
}
.search-card button:hover {
    background: var(--scac-blue-hover);
}

/* 核心数据列表舱与表格 */
.list-card,
.table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th {
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    padding: 16px 25px;
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
}
td {
    padding: 18px 25px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}
tbody tr {
    transition: background 0.2s ease;
}
tbody tr:hover {
    background: #f8fafc;
}
tbody tr:last-child td {
    border-bottom: none;
}

.scac-footer a { color: #64748b; text-decoration: none; transition: color 0.3s; }
.scac-footer a:hover { color: var(--scac-blue); }

/* 标签系统 (Badges) */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 4px;
    border: 1px solid transparent;
}
.badge-chem {
    background: #eff6ff;
    color: #3b82f6;
    border-color: #dbeafe;
}
.badge-func {
    background: #f0fdf4;
    color: #22c55e;
    border-color: #dcfce7;
}
.badge-source {
    background: #fff7ed;
    color: #f59e0b;
    border-color: #ffedd5;
}

/* 操作按钮 */
.btn-outline {
    background: transparent;
    border: 1px solid var(--scac-blue);
    color: var(--scac-blue);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover {
    background: var(--scac-blue);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 117, 194, 0.2);
}

/* 提示框与列样式 (从原料库提取) */
.info-notice {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--scac-blue);
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notice-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}
.notice-text b {
    color: #1e293b;
    font-size: 14px;
    margin-right: 8px;
}
.col-name {
    width: 460px;
}
.mat-cn {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.mat-en {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
    font-family: -apple-system, sans-serif;
    line-height: 1.3;
    text-transform: uppercase;
}
.col-ids {
    width: 180px;
}
.id-item {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
    font-family: ui-monospace, monospace;
}
.id-item span {
    color: #94a3b8;
    display: inline-block;
    width: 65px;
    font-family: -apple-system, sans-serif;
    font-size: 12px;
}
.col-chem {
    width: 200px;
}
.col-func {
    width: 220px;
}
.col-action {
    width: 120px;
    text-align: right;
}

/* 核心数据表格 (响应式宽表) */
.table-scroll-container {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow-x: auto;
    margin-bottom: 20px;
}

.table-scroll-container table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    text-align: left;
}

.table-scroll-container th,
.table-scroll-container td {
    padding: 14px 20px;
    border-right: 1px solid #f1f5f9;
    word-break: break-word;
}

.table-scroll-container th:last-child,
.table-scroll-container td:last-child {
    border-right: none;
}

.table-scroll-container th {
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid var(--border-light);
    vertical-align: middle;
    text-align: center;
    white-space: normal;
}

.table-scroll-container th.group-head {
    border-bottom: 1px solid var(--border-light);
}

.table-scroll-container td {
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
    line-height: 1.6;
}

.table-scroll-container tbody tr:hover {
    background: #f8fafc;
}

.table-scroll-container tbody tr:last-child td {
    border-bottom: none;
}
