.search-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius-lg); padding: 40px; text-align: center; color: white; margin-bottom: 20px; }
        .search-section h1 { font-size: 26px; font-weight: 600; margin-bottom: 10px; }
        .search-section .subtitle { font-size: 14px; opacity: 0.9; margin-bottom: 24px; }
        .search-box { display: flex; max-width: 600px; margin: 0 auto; }
        .search-box input { flex: 1; border: none; outline: none; padding: 14px 20px; font-size: 16px; border-radius: var(--radius) 0 0 var(--radius); }
        .search-box input::placeholder { color: var(--text-light); }
        .search-box button { background: var(--accent); color: white; border: none; padding: 14px 28px; font-size: 16px; cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; transition: background 0.2s; }
        .search-box button:hover { background: #a82616; }
        .search-tips { margin-top: 14px; font-size: 12px; opacity: 0.8; }
        .search-tips code { background: rgba(255,255,255,0.2); padding: 2px 6px; border-radius: 3px; }

        .quick-links { background: var(--bg-white); border-radius: var(--radius); padding: 12px 24px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow: hidden; }
        .quick-links .label { font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
        .quick-links a { color: var(--primary); text-decoration: none; font-size: 13px; padding: 4px 12px; border-radius: 20px; transition: all 0.2s; flex-shrink: 0; }
        .quick-links a:hover { background: var(--primary-light); }

        .result-section { display: <?= $searched ? 'block' : 'none' ?>; }

        .error-box { background: var(--accent-light); border: 1px solid #ffcdd2; border-radius: var(--radius); padding: 16px 24px; margin-bottom: 24px; color: var(--accent); }
        .warning-box { background: #fff8e1; border: 1px solid #ffcc02; border-radius: var(--radius); padding: 16px 24px; margin-bottom: 24px; color: #e65100; }

        .result-list { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 30px; }
        .result-list-header { background: linear-gradient(135deg, var(--primary) 0%, #2563a8 100%); padding: 20px 24px; color: white; display: flex; justify-content: space-between; align-items: center; }
        .result-list-header h3 { font-size: 16px; margin: 0; }
        .result-list-header .result-count { font-size: 14px; opacity: 0.95; }
        .result-list-body { padding: 16px 24px; }
        .result-list-item { display: flex; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background 0.2s; text-decoration: none; color: inherit; }
        .result-list-item:last-child { border-bottom: none; }
        .result-list-item:hover { background: transparent; }
        .result-list-item:hover .item-name { color: var(--primary); }
        .result-list-item .item-num { width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; margin-right: 16px; }
        .result-list-item .item-info { flex: 1; }
        .result-list-item .item-row1 { display: flex; align-items: center; margin-bottom: 4px; gap: 10px; }
        .result-list-item .item-name { font-size: 16px; color: var(--text); font-weight: 600; }
        .result-list-item .item-approval { background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 4px; padding: 2px 8px; font-size: 12px; color: #666; font-family: 'Consolas', 'Monaco', monospace; white-space: nowrap; }
        .result-list-item .item-row2 { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
        .result-list-item .arrow { color: #ccc; font-size: 20px; margin-left: 12px; align-self: center; }

        .result-card { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 30px; }
        .result-header { background: linear-gradient(135deg, var(--primary) 0%, #2563a8 100%); padding: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
        .result-header .product-name { font-size: 20px; color: white; font-weight: 600; }
        .update-link { font-size: 13px; color: #fff; text-decoration: none; font-weight: normal; background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 16px; white-space: nowrap; }
        .update-link:hover { background: rgba(255,255,255,0.35); }
        .result-status { padding: 14px 24px; background: #e8f5e9; border-bottom: 1px solid #c8e6c9; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
        .result-status.expired { background: #ffebee; border-bottom-color: #ffcdd2; color: #c62828; font-weight: 600; }
        .result-status .approval-num { font-size: 13px; padding: 4px 12px; border-radius: 16px; white-space: nowrap; }
        .result-status:not(.expired) .approval-num { background: rgba(0,0,0,0.05); }
        .result-status.expired .approval-num { background: rgba(198,40,40,0.1); }
        .result-body { padding: 24px; }
        .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
        .info-item { padding: 12px 0; border-bottom: 1px solid var(--border-light); display: flex; }
        .info-item:last-child { border-bottom: none; }
        .info-label { width: 110px; font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
        .info-value { flex: 1; font-size: 14px; color: var(--text); }
        .info-value.highlight { color: var(--primary); font-weight: 600; }
        .notes-box { margin-top: 16px; padding: 12px 16px; background: #fff8e1; border-radius: var(--radius); font-size: 13px; color: #f57c00; }

        .help-section { background: var(--bg-white); border-radius: var(--radius); padding: 30px; margin-top: 0; }
        .help-section h2 { font-size: 17px; color: var(--text); margin-bottom: 20px; }
        .help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
        .help-card { border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; }
        .help-card h3 { font-size: 14px; color: var(--primary); margin-bottom: 10px; }
        .help-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
        .help-card code { background: var(--bg); padding: 2px 6px; border-radius: 3px; font-size: 12px; }

        .footer { background: var(--bg-white); border-top: 1px solid var(--border-light); padding: 20px 0; margin-top: 10px; }
        .footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }
        .page-title { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
        .card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 20px; box-shadow: var(--shadow); }
        .card-title { font-size: 17px; font-weight: 600; color: var(--primary); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); }
        .about-list { list-style: none; padding: 0; }
        .about-list li { padding: 8px 0; font-size: 14px; color: var(--text); line-height: 1.7; position: relative; padding-left: 18px; }
        .about-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
        .timeline { display: flex; flex-direction: column; gap: 0; }
        .timeline-item { display: flex; gap: 20px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
        .timeline-item:last-child { border-bottom: none; }
        .timeline-year { font-size: 15px; font-weight: 700; color: var(--primary); min-width: 120px; padding-top: 2px; }
        .timeline-content { font-size: 14px; color: var(--text); line-height: 1.7; flex: 1; }
        .link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
        .link-card { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--primary-light); border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: 13px; font-weight: 500; transition: background 0.2s; }
        .link-card:hover { background: #d6e8f7; }
        .feedback-box { background: var(--accent-light); border: 1px solid #f5c6cb; border-radius: var(--radius); padding: 16px 20px; font-size: 14px; color: var(--accent); }
        .feedback-box a { color: var(--primary); text-decoration: none; font-weight: 600; }
        .feedback-box a:hover { text-decoration: underline; }
        .author-text { font-size: 14px; color: var(--text); line-height: 1.8; }
        .footer p { font-size: 12px; color: var(--text-light); }
        .footer a { color: var(--primary); text-decoration: none; }
        .footer a:hover { text-decoration: underline; }

        /* ===== 首页头部（2026-09-14：由 index.php 内联样式迁入，避免内联覆盖响应式规则）===== */
        .header .header-inner { height: 100px; }
        .header .logo { align-self: flex-start; margin-top: 20px; }
        .header .logo-img { height: 70px; width: auto; max-width: none; border: none; background: none; padding: 0; object-fit: contain; }
        .header .header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; align-self: flex-end; margin-bottom: 4px; }

        /* 平板档 */
        @media (max-width: 1024px) and (min-width: 769px) {
            .search-section { padding: 32px 24px; }
            .search-section h1 { font-size: 24px; }
            .result-body { padding: 20px; }
            .info-grid { grid-template-columns: 1fr 1fr; gap: 6px 20px; }
            .home-announce { width: 320px; }
        }

        @media (max-width: 768px) {
            /* 手机端头部（微信 X5 内置浏览器同样适用）：
               index.php 里遗留的内联 height 会盖掉普通规则，故这里用 !important 压过它，
               让 header 恢复自适应高度、logo 真正缩小，避免吸顶后遮挡正文。 */
            .header .header-inner { height: auto !important; min-height: 56px; padding: 8px 14px; flex-wrap: wrap; gap: 6px 10px; }
            .header .logo { align-self: center; margin-top: 0; }
            .header .logo-img { height: 40px !important; width: auto !important; max-width: 132px; }
            .header .logo-text { font-size: 15px; }
            .header .header-right { align-self: center; margin-bottom: 0; }
            .search-section { padding: 28px 20px; }
            .search-section h1 { font-size: 20px; }
            .search-box { flex-direction: column; }
            .quick-links { padding: 10px 16px; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
            .quick-links a { font-size: 12px; padding: 3px 10px; }
            .quick-links .label { font-size: 12px; }
            .search-box button { width: 100%; padding: 12px; border-radius: 0 0 var(--radius) var(--radius); justify-content: center; }
            .result-header { flex-direction: column; align-items: flex-start; gap: 10px; }
            .info-grid { grid-template-columns: 1fr; }
            .info-label { width: 88px; }
            .result-list-item .item-row1 { flex-wrap: wrap; }
            .result-list-header { flex-direction: column; align-items: flex-start; gap: 6px; }
            .home-announce { width: 100%; }
            .footer-inner { padding: 0 12px; }
            .page-title { font-size: 20px; margin-bottom: 16px; }
            .card { padding: 20px 16px; }
            .timeline-item { flex-direction: column; gap: 4px; }
            .timeline-year { min-width: auto; }
            .link-grid { grid-template-columns: 1fr; }
            /* 触控可用性（2026-09-16 实测：导航链接仅 20px 高，手指难点中） */
            .header .nav-links a { display: inline-flex; align-items: center; min-height: 36px; }
            .search-box input, .search-box button { min-height: 44px; font-size: 16px; }
            .quick-links a { min-height: 32px; display: inline-flex; align-items: center; }
        }

        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .result-card { animation: fadeIn 0.3s ease-out; }


/* About page styles (scoped) */
.about-page .card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.about-page h1 { font-size: 22px; color: var(--primary); margin-bottom: 20px; border-bottom: 2px solid var(--border-light); padding-bottom: 12px; }
.about-page h2 { font-size: 16px; color: #333; margin: 20px 0 8px; }
.about-page p { color: var(--text-secondary); margin-bottom: 12px; }
.about-page ul { color: var(--text-secondary); padding-left: 20px; }
.about-page ul li { margin-bottom: 6px; }

        .result-status.renewal-pending { background: #fff7e6; border-bottom-color: #e6a23c; color: #e6a23c; font-weight: 600; }
        .result-status.renewal-pending .approval-num { background: rgba(230,162,60,0.1); }

/* 搜索结果分组展示 */
.result-group {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.group-header {
    background: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.group-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
}

.result-group .result-list-item:first-child {
    padding-top: 12px;
}

.result-group .result-list-item:last-child {
    border-bottom: none;
    padding-bottom: 12px;
}

/* 首页滚动公告条（2026-08-15，header 下方右侧，宽度减半） */
.home-announce { width: 400px; max-width: 100%; }
.home-announce-scroll { flex: 1; overflow: hidden; white-space: nowrap; }
.home-announce-track { display: inline-block; white-space: nowrap; animation: homeScroll 24s linear infinite; }
.home-announce-track:hover { animation-play-state: paused; }
.home-announce-item { font-size: 11.5px; color: #1890ff; margin-right: 40px; }
@keyframes homeScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* header 第二行用户栏 */
.home-userbar { display: flex; gap: 16px; align-items: center; font-size: 13px; }
.home-userbar a { color: #1e3a5f; text-decoration: none; }
.home-userbar a:hover { color: #1890ff; }

/* ===== 首页/搜索页 图表卡片网格（2026-09-16：由 index.php 与 charts/*.js 的内联样式迁入）=====
   背景：原来在 index.php 内联 grid-template-columns:repeat(4,1fr)，
   内联优先级高于媒体查询，导致手机上卡片被压成 4 列、每张仅 75~89px 宽。
   现改为：桌面 4 列 / 平板 2 列 / 手机 1 列。 */
.chart-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chart-card { background: #fff; border: 1px solid #d0d0d0; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); cursor: pointer; overflow: hidden; transition: box-shadow 0.2s; }
.chart-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.chart-card .chart-title { font-size: 13px; font-weight: bold; color: #333; padding: 8px 10px 4px; line-height: 1.4; }
.chart-card .chart-desc { font-size: 11px; color: #888; padding: 0 10px 4px; line-height: 1.4; }
.chart-card .chart-body { height: 140px; overflow: hidden; }
.chart-empty { grid-column: 1 / -1; text-align: center; font-size: 13px; padding: 20px 0; color: #999; }
.chart-empty.is-error { color: #f66; }

/* 平板：2 列 */
@media (max-width: 1024px) {
    .chart-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 手机：1 列（手机端不受桌面列数规定约束，优先可读性） */
@media (max-width: 768px) {
    .chart-grid { grid-template-columns: 1fr; gap: 10px; }
    .chart-card .chart-body { height: 170px; }
}

/* 「批准日期 / 有效期至」官方缺失的一侧按 5 年有效期互推时，在数值右上角加「?」圈，
   提示这是推算值而非官方数据（悬停显示来源）。首页/前台公共。 */
.df-est {
    display: inline-block;
    width: 14px; height: 14px; line-height: 13px;
    margin-left: 3px;
    vertical-align: super;
    font-size: 11px; font-weight: 700; text-align: center;
    color: #fa8c16; background: #fff7e6;
    border: 1px solid #ffd591; border-radius: 50%;
    cursor: help;
}
