﻿/* 产品信息查询平台 - 政务风格样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部菜单 - 白色 */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #1a5fb4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: auto;
    max-height: 40px;
    border-radius: 6px;
    object-fit: contain;
    display: inline-block;
}

/* 兼容旧 emoji 写法（已弃用） */
div.logo-icon {
    background: linear-gradient(135deg, #1a5fb4, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: #555;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #1a5fb4;
    background: #e8f0fe;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

/* 中间区域 - 蓝色渐变背景 */
.main {
    flex: 1;
    background: linear-gradient(180deg, #1a5fb4 0%, #2980b9 50%, #3498db 100%);
    padding: 60px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 64px - 80px);
}

.main-content {
    width: 100%;
    max-width: 900px;
}

.search-section {
    text-align: center;
    color: #fff;
}

.search-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 4px;
}

.search-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* 圆角白色查询框 */
.search-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    height: 52px;
    padding: 0 60px 0 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #1a5fb4;
}

.scan-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: #e8f0fe;
    color: #1a5fb4;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.scan-btn:hover {
    background: #d4e4fc;
}

.scan-btn svg {
    width: 20px;
    height: 20px;
}

.search-btn {
    height: 52px;
    padding: 0 40px;
    background: linear-gradient(135deg, #1a5fb4, #2980b9);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 95, 180, 0.4);
}

.search-tip {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}

/* 结果区域 */
.result-section {
    margin-top: 10px;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
}

.result-status {
    position: absolute;
    top: 20px;
    right: 24px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 2;
}

.status-valid { background: #e8f5e9; color: #2e7d32; }
.status-expired { background: #ffebee; color: #c62828; }
.status-pending { background: #fff3e0; color: #e65100; }

.result-expired-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 14px;
}

/* === 第一行：产品名称（居中大）=== */
.result-main-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

/* === 第二行：公司名称（居中灰色小）=== */
.result-company {
    text-align: center;
    font-size: 16px;
    color: #999;
    margin-bottom: 28px;
}

/* === 中间两列 === */
.result-middle {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
}

/* 左侧图片列 */
.result-img-col {
    flex: 0 0 auto;
    width: 250px;
    height: 250px;
}
.result-img-col img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    background: #f8f8f8;
    display: block;
}
.result-img-col .no-img {
    width: 250px;
    height: 250px;
    background: #e8e8e8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

/* 右侧信息列 */
.result-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4px;
}
.info-item {
    padding: 6px 0;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    color: #222;
    line-height: 1.5;
}
.info-item:last-child { border-bottom: none; }
.info-item .info-label {
    color: #222;
    font-weight: 500;
}
.info-item .info-value {
    color: #222;
}

/* === 底部执行标准 === */
.result-standard {
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}
.standard-label {
    font-size: 16px;
    color: #222;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 6px;
}
.standard-content {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    word-break: break-all;
}

/* 底部灰色页脚 */
.footer {
    background: #333;
    color: #999;
    padding: 24px 20px;
    text-align: center;
    font-size: 13px;
}

/* 滑动验证码弹窗 */
.slider-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.slider-modal.show {
    display: flex;
}

.slider-box {
    background: white;
    border-radius: 12px;
    width: 340px;
    padding: 16px 16px 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.slider-header .modal-btn + .modal-btn {
    margin-left: 8px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 15px;
    width: 340px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 14px;
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 8px;
}

.modal-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-box {
    width: 310px;
    height: 180px;
    background: #f5f5f5;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.captcha-image {
    width: 310px;
    height: 140px;
    object-fit: cover;
    pointer-events: none;
}

.captcha-gap {
    position: absolute;
    top: 25px;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.captcha-piece {
    position: absolute;
    top: 25px;
    left: 20px;
    width: 60px;
    height: 60px;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.shape-right { clip-path: polygon(0 0, 45px 0, 52px 7px, 52px 18px, 45px 18px, 45px 42px, 52px 42px, 52px 53px, 45px 60px, 0 60px, 0 53px, 7px 53px, 7px 42px, 0 42px, 0 18px, 7px 18px, 7px 7px, 0 0); }
.shape-top { clip-path: polygon(0 15px, 7px 15px, 7px 7px, 18px 0, 42px 0, 53px 7px, 53px 15px, 60px 15px, 60px 53px, 53px 53px, 53px 42px, 42px 42px, 42px 18px, 18px 18px, 18px 42px, 7px 42px, 7px 53px, 0 53px); }
.shape-left { clip-path: polygon(15px 0, 15px 7px, 7px 7px, 0 18px, 0 42px, 7px 53px, 15px 53px, 15px 60px, 60px 60px, 60px 53px, 53px 53px, 53px 42px, 60px 42px, 60px 18px, 53px 18px, 53px 7px, 60px 7px, 60px 0); }
.shape-bottom { clip-path: polygon(0 7px, 7px 7px, 7px 18px, 18px 18px, 18px 42px, 42px 42px, 42px 18px, 53px 18px, 53px 7px, 60px 7px, 60px 45px, 53px 45px, 53px 52px, 42px 60px, 18px 60px, 7px 52px, 7px 45px, 0 45px); }

.captcha-bar {
    position: absolute;
    bottom: 5px;
    left: 10px;
    width: 290px;
    height: 30px;
    background: #e8e8e8;
    border-radius: 15px;
    cursor: pointer;
    overflow: hidden;
}

.captcha-thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 56px;
    height: 24px;
    background: linear-gradient(180deg, #1a5fb4 0%, #2980b9 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(26, 95, 180, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.captcha-text {
    position: absolute;
    bottom: 42px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    z-index: 10;
}

.captcha-text.success { color: #fef3c7; }
.captcha-text.fail { color: #ef4444; }

/* 扫码弹窗 */
.scanner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
}

.scanner-modal.show {
    display: flex;
    flex-direction: column;
}

.scanner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    background: rgba(0,0,0,0.6);
}

.scanner-area {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.scanner-tip {
    padding: 20px;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

/* 加载动画 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a5fb4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 登录/注册页面 */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a5fb4 0%, #3498db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    border-color: #1a5fb4;
}

.auth-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #1a5fb4, #2980b9);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 95, 180, 0.4);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: #1a5fb4;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* 会员中心 */
.member-container {
    width: 100%;
    margin: 0;
    padding: 24px 32px;
    flex: 1;
    background: #f5f7fa;
}

.member-layout {
    display: flex;
    gap: 24px;
    max-width: 100%;
}

.member-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    align-self: flex-start;
}

.member-nav {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.member-nav-item {
    display: block;
    padding: 14px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.member-nav-item:hover, .member-nav-item.active {
    background: #f8f9fa;
    color: #1a5fb4;
    border-left-color: #1a5fb4;
}

.member-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.member-welcome {
    background: linear-gradient(135deg, #1a5fb4, #3498db);
    color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.member-welcome h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.member-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.member-stat {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.member-stat-value {
    font-size: 24px;
    font-weight: bold;
}

.member-stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

/* 产品列表 */
.product-list {
    margin-top: 16px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th,
.product-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.product-table th {
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
}

.product-table tr:hover {
    background: #fafbfc;
}

.btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #1a5fb4;
    color: #fff;
}

.btn-primary:hover {
    background: #154d96;
}

.btn-success {
    background: #2e7d32;
    color: #fff;
}

.btn-danger {
    background: #c62828;
    color: #fff;
}

.btn-default {
    background: #f5f5f5;
    color: #666;
}

.btn-default:hover {
    background: #e8e8e8;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* 表单 */
.form-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group textarea {
    height: auto;
    min-height: 100px;
    padding: 12px 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a5fb4;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.form-grid-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 20px;
}

.form-grid-cols .form-group {
    margin-bottom: 18px;
}

.form-col-full {
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .form-grid-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-grid-cols {
        grid-template-columns: 1fr;
    }
}

/* 管理后台 */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: #2c3e50;
    color: #fff;
    flex-shrink: 0;
}

.admin-logo {
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-nav-item {
    display: block;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-main {
    flex: 1;
    background: #f5f7fa;
}

.admin-header {
    background: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #666;
}

.admin-content {
    padding: 24px;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.admin-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* 数据统计卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stat-card-value {
    font-size: 32px;
    font-weight: bold;
    color: #1a5fb4;
}

.stat-card-label {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

/* 搜索/筛选栏 */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.filter-bar input {
    min-width: 200px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}

.pagination a {
    color: #1a5fb4;
    background: #f5f5f5;
}

.pagination a:hover {
    background: #e8f0fe;
}

.pagination .current {
    background: #1a5fb4;
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .nav.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main {
        padding: 30px 16px;
    }
    
    .search-title {
        font-size: 30px;
        font-weight: 800;
    }
    
    .search-box {
        padding: 20px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    /* === 会员中心移动端 === */
    .member-container { padding: 12px; }
    .member-layout { flex-direction: column; gap: 12px; }

    .member-sidebar { width: 100%; position: static; }
    .member-nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .member-nav::-webkit-scrollbar { display: none; }
    .member-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 14px;
        font-size: 13px;
        flex-shrink: 0;
    }
    .member-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #1a5fb4;
    }

    .member-content { padding: 14px; border-radius: 10px; }

    .member-welcome { padding: 16px; border-radius: 10px; margin-bottom: 16px; }
    .member-welcome h2 { font-size: 17px; margin-bottom: 6px; }
    .member-welcome p { font-size: 13px; margin-bottom: 4px; }

    .member-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 14px;
    }
    .member-stat { padding: 10px 8px; }
    .member-stat-value { font-size: 20px; }
    .member-stat-label { font-size: 12px; }

    /* 快捷操作按钮竖排 */
    .form-box { padding: 14px; border-radius: 10px; }
    .form-box h3 { font-size: 15px; }
    .form-box .btn { width: 100%; margin-bottom: 8px; display: block; text-align: center; }

    /* 产品列表表格变卡片 */
    .member-content .product-table { display: block; }
    .member-content .product-table thead { display: none; }
    .member-content .product-table tbody { display: block; }
    .member-content .product-table tr {
        display: block;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 14px;
    }
    .member-content .product-table td {
        display: flex;
        padding: 4px 0;
        border: none;
        font-size: 13px;
        line-height: 1.6;
    }
    .member-content .product-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #888;
        min-width: 70px;
        flex-shrink: 0;
        padding-right: 10px;
    }
    .member-content .product-table td.action-col {
        flex-wrap: wrap;
        gap: 8px;
    }
    .member-content .product-table td.action-col::before { display: none; }
    .member-content .product-table td.action-col .btn { margin-right: 0; }
    
    .product-table {
        font-size: 12px;
    }
    
    .product-table th,
    .product-table td {
        padding: 8px 6px;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-bar input,
    .filter-bar select {
        width: 100%;
    }
    
    .product-image-box {
        width: 100px;
        height: 100px;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .auth-box {
        padding: 24px 20px;
    }
    
    .captcha-box {
        width: 280px;
    }
    
    .captcha-bar {
        width: 260px;
    }
    
    /* === 移动端查询结果卡片 === */
    .result-card {
        padding: 20px 16px;
        border-radius: 10px;
    }
    .result-main-title {
        font-size: 22px;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }
    .result-company {
        font-size: 14px;
        margin-bottom: 18px;
    }
    .result-middle {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }
    .result-img-col {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    .result-img-col img {
        width: 250px;
        height: 250px;
        object-fit: cover;
        display: block;
        margin: 0 auto;
    }
    .result-img-col .no-img {
        width: 250px;
        height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    .result-info-col {
        width: 100%;
    }
    .info-item {
        padding: 8px 0;
        font-size: 15px;
        line-height: 1.5;
    }
    .result-status {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
    .result-standard {
        flex-direction: column;
    }
    .standard-label {
        margin-bottom: 4px;
    }
    .standard-content {
        font-size: 15px;
        line-height: 1.7;
    }
}
/* === 扫码弹窗（最小化，靠 html5-qrcode 库自动管尺寸） === */
#scannerModal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
#scannerModal.show { display: flex; }

#scannerModal .scanner-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 95%;
    max-width: 450px;
    overflow: hidden;
}

#scannerModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

#scannerModal .modal-title { font-weight: 600; font-size: 16px; }
#scannerModal .modal-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #333; padding: 0 4px; }

/* 关键：给 html5-qrcode 一个固定高度容器 */
#scanner {
    width: 100%;
    height: 350px;
    position: relative;
    background: #000;
    overflow: hidden;
}

/* 装饰覆盖层 */
#scanner .scanner-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 10;
    display: flex; align-items: center; justify-content: center;
}
#scanner .scanner-frame {
    width: 300px; height: 100px;
    border: 2px solid rgba(255,255,255,0.6);
    position: relative;
}