@charset "utf-8";
/* ===== 绿翊合规 - 化妆品原料法规数据库统一样式 ===== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    margin: 0; padding: 0;
    background: #f8f9fc;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 仅供 SEO/AIGEO 抓取的视觉隐藏文本 */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== Main Layout ===== */
main {
    max-width: 1200px;
    margin: 90px auto 0;
    padding: 0 20px;
}

/* ===== 详情页左右分栏（参考 qa/detail.php） ===== */
.yuanliao-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 20px;
}
.yuanliao-main {
    flex: 1;
    min-width: 0;
}
.yuanliao-main .breadcrumb { margin-top: 0; }
.yuanliao-sidebar {
    width: 320px;
    flex-shrink: 0;
}
.yuanliao-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.yuanliao-sidebar-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #1c499e;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef0f5;
}
.yuanliao-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.yuanliao-sidebar-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f6;
}
.yuanliao-sidebar-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.yuanliao-sidebar-list a {
    display: block;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}
.yuanliao-sidebar-list a:hover { color: #1c499e; }

/* 带序号的原料列表 */
.yuanliao-sidebar-list--numbered {
    counter-reset: ingredient;
}
.yuanliao-sidebar-list--numbered li {
    position: relative;
    padding-left: 26px;
}
.yuanliao-sidebar-list--numbered li::before {
    counter-increment: ingredient;
    content: counter(ingredient);
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #1c499e, #0a2463);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 4px;
}
.yuanliao-sidebar-list--numbered a {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.55;
}

/* 最近发布（参考 lvyi/article.php 侧边栏） */
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
    transition: background 0.2s;
}
.recent-list li:last-child { border-bottom: none; }
.recent-list li:hover { background: #fafbfc; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.recent-date {
    flex-shrink: 0;
    color: #1c499e;
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
    background: #e8eaf6;
    padding: 2px 8px;
    border-radius: 4px;
}
.recent-list a {
    color: #555;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}
.recent-list a:hover { color: #1c499e; }

.yuanliao-sidebar-cta {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1c499e, #0a2463);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.yuanliao-sidebar-cta:hover { opacity: 0.9; }

/* ===== 侧边栏：原料安评咨询服务卡片 ===== */
.consult-promo {
    background: #fff;
    border: 1px solid #e0e5ef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(10,36,99,0.06);
    text-align: center;
}
.consult-promo__title {
    font-size: 17px;
    font-weight: 700;
    color: #1c499e;
    margin: 0 0 8px;
    line-height: 1.4;
}
.consult-promo__desc {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 14px;
}
.consult-promo__list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.consult-promo__list li {
    font-size: 13px;
    color: #333;
    line-height: 1.8;
}
.consult-promo__btn {
    display: inline-block;
    padding: 10px 36px;
    background: linear-gradient(135deg, #1c499e, #0a2463);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.consult-promo__btn:hover { opacity: 0.9; }

/* ===== 妆企易推广卡片 ===== */
.zqy-promo {
    background: linear-gradient(135deg, #0a2463 0%, #1c499e 100%);
    color: #fff;
    border-radius: 12px;
    padding: 22px 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(10,36,99,0.18);
}
.zqy-promo__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.4;
}
.zqy-promo__subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 12px;
}
.zqy-promo__desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    margin: 0 0 18px;
}
.zqy-promo__stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.zqy-promo__stat {
    text-align: center;
    flex: 1;
}
.zqy-promo__stat strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #ffd166;
    line-height: 1.2;
}
.zqy-promo__stat span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}
.zqy-promo__features {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.zqy-promo__features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    line-height: 1.5;
}
.zqy-promo__features li::before {
    content: '✓';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
    color: #ffd166;
}
.zqy-promo__btn {
    display: block;
    text-align: center;
    padding: 12px 16px;
    background: #ffd166;
    color: #0a2463;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}
.zqy-promo__btn:hover {
    background: #ffdf8a;
    transform: translateY(-2px);
}

/* ===== 安全评估报告服务内容 ===== */
.service-detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.service-detail-section .section-h2 {
    font-size: 16px;
    color: #1c499e;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef0f5;
}
.content-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.content-item:last-child { margin-bottom: 0; }
.content-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #1c499e, #0a2463);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-top: 2px;
}
.content-item-info h3 {
    font-size: 14px;
    color: #333;
    margin: 0 0 4px;
    font-weight: 600;
}
.content-item-info p {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

/* ===== FAQ 常见问题 ===== */
.faq-section { margin: 28px 0; }
.faq-item {
    border: 1px solid #eef0f5;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item:hover { border-color: #d8deec; }
.faq-item.is-open { border-color: #1c499e; box-shadow: 0 4px 16px rgba(28,73,158,0.08); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.faq-question:hover { color: #1c499e; background: #fafbff; }
.faq-item.is-open .faq-question { color: #1c499e; }
.faq-question span:first-child { flex: 1; }
.faq-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1c499e, #0a2463);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.3s ease, background 0.2s;
}
.faq-item.is-open .faq-toggle { transform: rotate(45deg); background: #e74c3c; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 18px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}
.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding: 0 18px 16px;
}

/* ===== 顶部导航 ===== */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.top-bar-inner .logo {
    font-size: 22px;
    font-weight: 700;
    color: #1c499e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
}
.nav-menu { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 0 16px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    line-height: 64px;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-menu > li > a:hover { color: #1c499e; }
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    min-width: 180px;
    z-index: 100;
    padding: 8px 0;
}
.submenu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
}
.submenu a:hover {
    background: #f0f4ff;
    color: #1c499e;
    padding-left: 24px;
}
.has-submenu:hover .submenu { display: block; }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero 横幅 ===== */
.hero {
    background:
        linear-gradient(135deg, rgba(10,36,99,0.88) 0%, rgba(28,73,158,0.88) 50%, rgba(42,107,193,0.88) 100%),
        url("/images/lvyi.jpg") center/cover no-repeat;
    width: 100%;
    min-height: 380px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}
.hero h1 {
    text-align: center;
    margin: 0 0 12px;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
}
.hero h2, .hero p { color: #fff; position: relative; margin: 0 0 24px; }
.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-bottom: 24px;
    position: relative;
}

/* ===== 搜索框 ===== */
.hero-search {
    position: relative;
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}
.hero-search input[type="text"] {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px 0 0 50px;
    outline: none;
    background: rgba(255,255,255,0.95);
    transition: border-color 0.3s;
}
.hero-search input[type="text"]:focus { border-color: #fff; }
.hero-search button[type="submit"] {
    width: 100px;
    font-size: 15px;
    font-weight: 600;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background 0.3s;
}
.hero-search button[type="submit"]:hover { background: #e55a2b; }

/* ===== 热门标签 ===== */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    position: relative;
}
.hero-tags a {
    padding: 6px 14px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    transition: all 0.25s;
    backdrop-filter: blur(4px);
}
.hero-tags a:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ===== 内容卡片 ===== */
.section-card {
    max-width: 1200px;
    margin: 28px auto;
    background: #fff;
    padding: 28px 24px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.section-card h2 {
    text-align: center;
    margin: 0 0 24px;
    font-size: 22px;
    color: #1c499e;
    font-weight: 700;
}
.section-intro {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: -12px 0 24px;
}

/* ===== 统计行 ===== */
.stats-row {
    display: flex;
    gap: 16px;
    margin: 28px 0;
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.stat-item {
    flex: 1;
    text-align: center;
    padding: 10px;
}
.stat-item h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}
.stat-item div {
    font-size: 36px;
    font-weight: 800;
    color: #1c499e;
    line-height: 1.2;
}

/* 每行6个统计项 */
.stats-row--6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 22px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}
.stats-row--6 .stat-item {
    flex: none;
    position: relative;
    padding: 18px 10px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef0f5;
    box-shadow: 0 2px 10px rgba(28,73,158,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
/* 顶部彩色装饰条 */
.stats-row--6 .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1c499e, #2a6bc1);
    border-radius: 14px 14px 0 0;
}
/* 右下角圆形装饰 */
.stats-row--6 .stat-item::after {
    content: '';
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(28,73,158,0.08), rgba(42,107,193,0.02));
    z-index: 0;
}
.stats-row--6 .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(28,73,158,0.12);
    border-color: #d8deec;
}
/* 每行6个卡片使用不同主题色 */
.stats-row--6 .stat-item:nth-child(6n+1)::before { background: linear-gradient(90deg, #1c499e, #2a6bc1); }
.stats-row--6 .stat-item:nth-child(6n+1)::after { background: linear-gradient(135deg, rgba(28,73,158,0.10), rgba(42,107,193,0.02)); }
.stats-row--6 .stat-item:nth-child(6n+2)::before { background: linear-gradient(90deg, #00a86b, #00d68a); }
.stats-row--6 .stat-item:nth-child(6n+2)::after { background: linear-gradient(135deg, rgba(0,168,107,0.10), rgba(0,214,138,0.02)); }
.stats-row--6 .stat-item:nth-child(6n+3)::before { background: linear-gradient(90deg, #e67e22, #f5b041); }
.stats-row--6 .stat-item:nth-child(6n+3)::after { background: linear-gradient(135deg, rgba(230,126,34,0.10), rgba(245,176,65,0.02)); }
.stats-row--6 .stat-item:nth-child(6n+4)::before { background: linear-gradient(90deg, #9b59b6, #c39bd3); }
.stats-row--6 .stat-item:nth-child(6n+4)::after { background: linear-gradient(135deg, rgba(155,89,182,0.10), rgba(195,155,211,0.02)); }
.stats-row--6 .stat-item:nth-child(6n+5)::before { background: linear-gradient(90deg, #e74c3c, #ec7063); }
.stats-row--6 .stat-item:nth-child(6n+5)::after { background: linear-gradient(135deg, rgba(231,76,60,0.10), rgba(236,112,99,0.02)); }
.stats-row--6 .stat-item:nth-child(6n+6)::before { background: linear-gradient(90deg, #16a085, #48c9b0); }
.stats-row--6 .stat-item:nth-child(6n+6)::after { background: linear-gradient(135deg, rgba(22,160,133,0.10), rgba(72,201,176,0.02)); }
.stats-row--6 .stat-item h3 {
    position: relative;
    z-index: 1;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}
.stats-row--6 .stat-item div {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #1c499e 0%, #2a6bc1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* ===== 原料目录列表 ===== */
.yl-list-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eef0f5;
    margin-top: 8px;
}
.yl-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}
.yl-list-table th,
.yl-list-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f3f6;
    text-align: left;
    vertical-align: top;
}
.yl-list-table thead th {
    background: #f0f4ff;
    color: #1c499e;
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}
.yl-list-table tbody tr:last-child td { border-bottom: none; }
.yl-list-table tbody tr:hover { background: #fafbff; }
.yl-list-table tbody tr:hover .yl-col-name a { color: #0a2463; }
.yl-col-no {
    width: 56px;
    text-align: center;
    color: #8899aa;
    font-size: 13px;
    white-space: nowrap;
}
.yl-col-name a {
    color: #1c499e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.yl-col-name a:hover { text-decoration: underline; }
.yl-col-ini {
    color: #666;
    word-break: break-all;
    min-width: 160px;
}
.yl-col-cas {
    width: 120px;
    color: #555;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    white-space: nowrap;
}
.yl-col-use {
    color: #666;
    min-width: 180px;
}
.yl-col-action {
    width: 80px;
    text-align: center;
    white-space: nowrap;
}
.yl-detail-link {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #1c499e, #2a6bc1);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    transition: opacity 0.2s, transform 0.2s;
}
.yl-detail-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.yl-empty-cell {
    text-align: center;
    color: #888;
    padding: 48px 20px;
}

/* ===== 分页 ===== */
.yl-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}
.yl-page-link,
.yl-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: #555;
    background: #fff;
    border: 1px solid #e2e6ee;
    transition: all 0.2s;
}
.yl-page-link:hover {
    border-color: #1c499e;
    color: #1c499e;
    background: #f6f9ff;
}
.yl-page-link.yl-page-active {
    background: linear-gradient(135deg, #1c499e, #0a2463);
    color: #fff;
    border-color: #1c499e;
    font-weight: 600;
}
.yl-page-ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    color: #aab;
}

/* ===== 原料热门卡片 ===== */
.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ingredient-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ingredient-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(28,73,158,0.10);
    border-color: #1c499e;
}
.ingredient-card__name {
    font-size: 15px;
    font-weight: 600;
    color: #1c499e;
}
.ingredient-card__inci {
    font-size: 12px;
    color: #888;
    word-break: break-all;
}

/* ===== 工具箱按钮 ===== */
.tool-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.tool-grid__btn {
    display: inline-block;
    background: linear-gradient(135deg, #1c499e, #2a6bc1);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(28,73,158,0.15);
}
.tool-grid__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28,73,158,0.3);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    font-size: 13px;
    color: #555;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after {
    display: inline-block;
    margin: 0 .5rem;
    content: '>';
    color: #aab;
    font-size: 12px;
}
.breadcrumb a {
    color: #1c499e;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: #0a2463; text-decoration: underline; }
.breadcrumb span[aria-current="page"] { color: #333; font-weight: 500; }

/* ===== 原料详情页 ===== */
.detail-table-header {
    padding: 4px 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eef0f5;
}
.detail-table-header h1 {
    margin: 0 0 12px;
    font-size: 26px;
    color: #1c499e;
    font-weight: 700;
}
.detail-table-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #666;
}
.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #1c499e;
}
.badge--red { background: #D40003; }
.badge--green { background: #00c152; }
.badge--blue { background: #1c499e; }
.badge--gray { background: #8899aa; }

/* ===== 详情表格 ===== */
.detail-table-wrap {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow-x: auto;
}
.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.detail-table th, .detail-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f5;
    text-align: left;
    vertical-align: top;
}
.detail-table th {
    width: 280px;
    background: #f0f4ff;
    color: #1c499e;
    font-weight: 600;
    white-space: nowrap;
}
.detail-table td {
    color: #333;
    line-height: 1.7;
}
.detail-table tr:last-child th,
.detail-table tr:last-child td { border-bottom: none; }
.detail-table td strong { color: #1c499e; }

/* ===== 详情文章区（位于 detail-table-wrap 内部） ===== */
.detail-article {
    padding-top: 28px;
    margin-top: 24px;
    border-top: 1px solid #eef0f5;
}
.detail-article h2 {
    font-size: 20px;
    color: #1c499e;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef0f5;
}
.detail-article h3 {
    font-size: 16px;
    color: #333;
    margin: 24px 0 10px;
}
.detail-article p {
    font-size: 14px;
    color: #555;
    line-height: 1.85;
    margin: 0 0 14px;
}
.detail-article a { color: #1c499e; text-decoration: none; }
.detail-article a:hover { text-decoration: underline; }
.detail-article strong { color: #1c499e; }

.detail-article-section {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #eef0f5;
}
.detail-article-section h3 {
    margin: 0 0 16px;
    color: #1c499e;
    font-size: 16px;
}
.ttc-example {
    background: #eff6ff;
    padding: 20px;
    border-radius: 12px;
    margin: 16px 0;
}

/* ===== 相关附件 ===== */
.attach-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.attach-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.attach-list img {
    width: 16px;
    height: 16px;
}
.attach-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.attach-list a:hover { color: #1c499e; text-decoration: underline; }

/* ===== 标签云 ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud a {
    color: #555;
    text-decoration: none;
    padding: 4px 14px;
    font-size: 13px;
    line-height: 26px;
    border: 1px solid #dce1e8;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.2s;
}
.tag-cloud a:hover {
    border-color: #1c499e;
    color: #1c499e;
    background: #f6f9ff;
}

/* ===== 404 / 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.empty-state h2 {
    color: #1c499e;
    margin-bottom: 12px;
}
.empty-state a {
    color: #1c499e;
    text-decoration: none;
}
.empty-state a:hover { text-decoration: underline; }

/* ===== 咨询 CTA ===== */
.consult-cta {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 44px 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a2463 0%, #1c499e 50%, #2a6bc1 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 32px rgba(28,73,158,0.18);
}
.consult-cta h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
}
.consult-cta p {
    margin: 0 auto 24px;
    max-width: 720px;
    font-size: 15px;
    color: rgba(255,255,255,0.88);
    line-height: 1.75;
}
.consult-cta__btn {
    display: inline-block;
    padding: 13px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    background: #ff6b35;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.consult-cta__btn:hover { background: #e55a2b; transform: translateY(-2px); }

/* ===== 咨询模态框（参考 lvyi/footer.php 共享模态框设计，结构/样式类复用其中类名） ===== */
/* 表单补充样式：模态框骨架样式(.consult-modal/.consult-dialog/.consult-header-bar 等)
   已由 lvyi/footer.php 提供，此处仅补充表单控件样式 */
.consult-service-title { margin-bottom: 16px; }
.consult-form-group { margin-bottom: 14px; }
.consult-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.consult-form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #d5dbe5;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.consult-form-input:focus {
    border-color: #1c499e;
    box-shadow: 0 0 0 2px rgba(28,73,158,0.12);
}
.consult-form-input--small { width: 140px; }
.consult-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.consult-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.consult-radio input[type="radio"] {
    width: 15px;
    height: 15px;
    accent-color: #1c499e;
    cursor: pointer;
    margin: 0;
}
.consult-form-note {
    margin-top: 16px;
    padding: 10px 12px;
    background: #f0f4ff;
    border-left: 3px solid #1c499e;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #1c499e;
    line-height: 1.6;
}
.consult-form-note span { color: #e67e22; font-weight: 600; }

/* 原料名称模糊搜索自动补全下拉 */
.consult-autocomplete { position: relative; }
.consult-autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 3000;
    background: #fff;
    border: 1px solid #e0e5ef;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    max-height: 260px;
    overflow-y: auto;
    text-align: left;
}
.consult-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f2f4f9;
    transition: background 0.15s;
}
.consult-autocomplete-item:last-child { border-bottom: none; }
.consult-autocomplete-item:hover,
.consult-autocomplete-item--active { background: #f0f4ff; }
.consult-autocomplete-name {
    font-size: 14px;
    color: #222;
    font-weight: 500;
}
.consult-autocomplete-sub {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    word-break: break-all;
}
.consult-autocomplete-item mark {
    background: #fff3bf;
    color: #d97706;
    padding: 0 1px;
    border-radius: 2px;
    font-weight: 600;
}
.consult-autocomplete-empty {
    padding: 14px 12px;
    font-size: 13px;
    color: #999;
    text-align: center;
}

/* 模态框左侧：已选原料序号卡片 */
.consult-result {
    margin-top: 14px;
    background: #f0f4ff;
    border: 1px solid #dbe4f7;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.consult-result-title {
    font-size: 13px;
    font-weight: 600;
    color: #1c499e;
    margin-bottom: 10px;
}
.consult-result-num {
    font-size: 40px;
    font-weight: 700;
    color: #1c499e;
    line-height: 1.2;
    word-break: break-all;
}

/* ===== Footer (配合 footer.php) ===== */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 60px 20px 0;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}
.footer-info {
    font-size: 13px;
    line-height: 2;
    color: #8899aa;
}
.footer-highlight {
    display: inline-block;
    background: rgba(28,73,158,0.3);
    padding: 2px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
}
.footer-title {
    font-size: 15px;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    letter-spacing: 1px;
}
.footer-links-col { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a {
    color: #8899aa;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links-col a::before {
    content: '\203A';
    color: #1c499e;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}
.footer-links-col a:hover { color: #fff; padding-left: 4px; }
.footer-links-col a:hover::before { opacity: 1; }
.footer-contact { font-size: 13px; line-height: 2.2; color: #8899aa; }
.footer-qrcode {
    margin-bottom: 14px;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    border: 4px solid #fff;
    background: #fff;
    display: block;
}
.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-copy { font-size: 12px; color: #667788; }
.footer-bottom-links { display: flex; gap: 20px; font-size: 12px; }
.footer-bottom-links a { color: #667788; text-decoration: none; transition: color 0.3s; }
.footer-bottom-links a:hover { color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
    main { margin-top: 70px; }
    .hero h1 { font-size: 24px; }
    .hero { min-height: 320px; padding: 30px 16px; }
    .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { flex-wrap: wrap; }
    .stat-item { min-width: 45%; }
    .stats-row--6 { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 14px; }
    .stats-row--6 .stat-item { padding: 14px 8px 12px; }
    .stats-row--6 .stat-item div { font-size: 20px; }
    .detail-table-header h1 { font-size: 22px; }
    .detail-table th { width: 160px; }
    .yl-list-table th,
    .yl-list-table td { padding: 10px 12px; font-size: 13px; }
    .yl-col-cas,
    .yl-col-use { display: none; }
    .yl-col-action { width: 70px; }
    .yl-detail-link { padding: 4px 10px; font-size: 11px; }
}
@media (max-width: 960px) {
    .yuanliao-container { flex-direction: column; }
    .yuanliao-sidebar { width: 100%; }
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .nav-menu.open { max-height: 80vh; overflow-y: auto; }
    .nav-menu > li { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .nav-menu > li > a { line-height: 48px; padding: 0 20px; }
    .submenu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: #f8f9fb;
    }
    .submenu a { padding-left: 40px; font-size: 13px; line-height: 40px; }
    .has-submenu.sub-open > .submenu { display: block; }
}
@media (max-width: 768px) {
    .footer { padding: 40px 16px 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
    .footer-bottom-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .detail-table th, .detail-table td { display: block; width: 100%; }
    .detail-table th { border-bottom: none; padding-bottom: 4px; }
    .detail-table td { padding-top: 4px; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 20px; }
    .hero { min-height: 280px; }
    .hero-search input[type="text"] { font-size: 14px; padding: 12px 16px; }
    .hero-search button[type="submit"] { width: 70px; font-size: 13px; }
    .ingredient-grid { grid-template-columns: 1fr; }
    .stat-item { min-width: 100%; }
    .stats-row--6 { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px 12px; }
    .stats-row--6 .stat-item { padding: 12px 6px 10px; border-radius: 12px; }
    .stats-row--6 .stat-item::after { width: 44px; height: 44px; right: -12px; bottom: -12px; }
    .stats-row--6 .stat-item h3 { font-size: 12px; min-height: 32px; }
    .stats-row--6 .stat-item div { font-size: 18px; }
    .consult-cta { padding: 32px 18px; }
    .consult-cta h2 { font-size: 21px; }
}
