/* ====================== */
/* 🧱 全局重置与基础变量 */
/* ====================== */

:root {
    /* 主题色 */
    --primary: #1976d2;
    --primary-light: #1e88e5;
    --primary-dark: #1565c0;
    --primary-contrast: white;

    /* 状态色 */
    --success: #4CAF50;
    --success-dark: #45a049;
    --warning: #ff9800;
    --error: #f44336;
    --error-dark: #d32f2f;
    --info: #2196f3;

    /* 中性色 */
    --background: #f8f9fa;
    --surface: white;
    --text-primary: #2c3e50; /* 深灰蓝，比纯黑更柔和 */
    --text-secondary: #6c757d; /* 中灰 */
    --border: #e9ecef; /* 浅灰蓝，更柔和 */
    --divider: #f1f3f5; /* 极浅灰 */

    /* 购物车主题 */
    --cart-primary: #e91e63;
    --cart-primary-dark: #d81b60;

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 50px;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.12);
    --shadow-modal: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* 动画 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    --easing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px; /* 基础字号提升至 15px，更易读 */
}

/* ====================== */
/* 🎨 通用组件 */
/* ====================== */

/* 按钮 */
.submit-btn,
.apply-btn,
.auth-actions .btn,
.login-prompt-btn,
.logout-btn,
.cart-remove-btn,
.action-btn,
.mobile-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 15px; /* 按钮字号统一为 15px */
    transition: all var(--transition-fast) ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 42px;
    line-height: 1.4;
    white-space: nowrap;
}

.submit-btn,
.login-prompt-btn,
.login-btn {
    background: var(--primary);
    color: var(--primary-contrast);
}

.submit-btn:hover,
.login-prompt-btn:hover,
.login-btn:hover {
    background: var(--primary-dark);
}

.apply-btn {
    background: var(--success);
    color: white;
}

.apply-btn:hover {
    background: var(--success-dark);
}

.logout-btn {
    background: var(--error);
    color: white;
}

.logout-btn:hover {
    background: var(--error-dark);
}

.auth-actions .btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

/* 表单组 */
.form-group {
    margin-bottom: 20px; /* 表单间距加大 */
}

.form-group label {
    display: block;
    margin-bottom: 10px; /* 标签与输入框间距加大 */
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px; /* 输入框内边距加大 */
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px; /* 输入框字号 15px */
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: var(--surface);
    color: var(--text-primary);
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

/* 错误提示 */
.error {
    color: var(--error-dark);
    margin: 15px 0;
    padding: 12px 16px;
    background: #fff5f5;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: none;
    border-left: 4px solid var(--error);
}

.error.show {
    display: block;
}

/* 加载 & 空状态 */
.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.4rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ====================== */
/* 🖥️ 布局与容器 */
/* ====================== */

.navbar {
    background: var(--surface);
    padding: 16px 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: "🔬";
}

.user-welcome {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
}

.main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-bottom: 32px;
}

/* ====================== */
/* 📊 无图表时的 Dashboard 布局 */
/* ====================== */

.dashboard--no-chart {
    grid-template-columns: 1fr !important;
}

/* 可选：进一步优化无图表时的内边距 */
@media (min-width: 769px) {
    .dashboard--no-chart > div:first-child {
        padding-right: 0;
    }
}

.chart-container {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    height: 320px;
    display: flex;
    flex-direction: column;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    font-size: 1.3rem;
}

.filters {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
}

.filters h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.3rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-toggle-btn {
    background: #f8f9fa;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: background var(--transition-fast);
    font-weight: 500;
}

.filter-toggle-btn:hover {
    background: #e9ecef;
}

/* ====================== */
/* 🃏 卡片与列表 */
/* ====================== */

.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

.sample-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sample-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.sample-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f8f9fa;
}

.sample-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sample-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag,
.status-badge {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
}

.category-tag {
    background: #e3f2fd;
    color: #0d47a1;
}

.status-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-loaned {
    background: #fff8e1;
    color: #ef6c00;
}

.status-expired {
    background: #ffebee;
    color: #c62828;
}

.created-time {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
    margin-top: 16px;
    line-height: 1.5;
}

/* ====================== */
/* 🔢 分页 */
/* ====================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 48px 0;
    gap: 12px;
}

.pagination button {
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 44px;
    font-size: 15px;
    font-weight: 500;
}

.pagination button:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
}

.pagination button.active {
    background: var(--primary);
    color: var(--primary-contrast);
    border-color: var(--primary);
}

/* ====================== */
/* 🪟 模态框（Modal） */
/* ====================== */

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--surface);
    margin: 8% auto;
    padding: 32px;
    width: 90%;
    max-width: 480px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-modal);
    animation: modalFadeIn var(--transition-normal) ease;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.form-container {
    max-height: 65vh;
    overflow-y: auto;
    padding: 0 0 24px;
    flex: 1;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal h3 {
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.modal-actions .submit-btn {
    flex: 1;
    padding: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    min-height: auto;
    font-size: 16px;
}

.modal-actions .primary {
    background: var(--success);
    color: white;
}

.modal-actions .primary:hover {
    background: var(--success-dark);
}

.modal-actions .cancel {
    background: #f1f3f5;
    color: var(--text-primary);
}

.modal-actions .cancel:hover {
    background: #e9ecef;
}

.duration-input {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.duration-input input[type="number"],
.duration-input select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--surface);
    color: var(--text-primary);
    min-width: 90px;
}

.duration-input input[type="number"] {
    width: 96px;
}

.duration-input select {
    width: 110px;
}

/* ====================== */
/* 📑 模块导航：侧边栏（半隐藏图标） */
/* ====================== */

.module-sidebar {
    position: fixed;
    left: 0;
    top: 72px;
    height: calc(100vh - 72px);
    width: 64px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
    box-sizing: border-box;
    z-index: 1000;
}

.sidebar-tab {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-sm);
}

.sidebar-tab:hover {
    background: rgba(25, 118, 210, 0.12);
    transform: scale(1.12);
    color: var(--primary);
}

.sidebar-tab.active {
    background: rgba(25, 118, 210, 0.2);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
}

.tab-icon {
    font-size: 22px;
    z-index: 2;
}

.tab-label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 1;
}

.sidebar-tab:hover .tab-label {
    opacity: 1;
    visibility: visible;
}

#module-content {
    margin-left: 64px;
    transition: margin-left var(--transition-normal) ease;
}

/* ====================== */
/* 🔗 操作链接 */
/* ====================== */

.action-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.action-link:hover {
    color: var(--primary-dark);
    background-color: #e3f2fd;
    text-decoration: none;
}

.apply-link {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='%231976d2'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 28px;
    background-size: 18px;
}

/* ====================== */
/* 📋 表格样式 - 重点优化！ */
/* ====================== */

.table-container {
    width: 100%;
    margin-top: 20px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--surface);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    min-width: 700px;
}

.data-table th,
.data-table td {
    padding: 16px 18px; /* 行高大幅增加 */
    text-align: left;
    font-size: 15px; /* 字号统一 15px */
    line-height: 1.5; /* 行高 1.5 倍 */
    color: var(--text-primary);
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    padding-top: 18px;
    padding-bottom: 18px;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--divider);
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: #fafbfc;
}

.data-table .status-badge {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.table-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

.action-btn {
    margin-right: 8px;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: var(--radius-md);
    min-width: auto;
    height: auto;
    font-weight: 500;
    white-space: nowrap;
}

/* ====================== */
/* 🛒 购物栏：触发按钮（固定右上角） */
/* ====================== */

#cart-trigger-container {
    position: fixed;
    top: 72px;
    right: 24px;
    z-index: 1001;
    display: none;
}

.cart-trigger-btn {
    position: relative;
    background: var(--cart-primary);
    color: white;
    border: none;
    padding: 20px 20px 20px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.45);
    transition: all 0.25s var(--easing);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.cart-trigger-btn:hover {
    background: var(--cart-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(233, 30, 99, 0.55);
}

.cart-trigger-btn::before {
    content: ""; //📋
    position: absolute;
    left: 14px;
    font-size: 1.3rem;
}

/* 徽标 🛒*/
.cart-badge {
    position: absolute;
    top: 10%;
    right: -5px;
    transform: translateY(-50%);
    background: #ff5252;
    color: white;
    font-size: 0.8rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    /*display: none;*/
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.cart-badge.show {
    display: flex;
}

/* ====================== */
/* 🛒 购物栏面板（抽屉式） */
/* ====================== */

.cart-panel-wrapper {
    position: fixed;
    top: 72px;
    right: 24px;
    width: 400px;
    max-height: calc(100vh - 110px);
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-modal);
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.cart-panel-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-panel {
    padding: 28px;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 600;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    max-height: 320px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--divider);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-module-label {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-module-icon {
    font-size: 1.2rem;
}

.cart-remove-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ff6b6b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    padding: 0;
    min-height: auto;
}

.cart-remove-btn:hover {
    background: #fff5f5;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: 36px 0;
    font-size: 1.1rem;
}

.cart-footer {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

.cart-footer .submit-btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
}

/* ====================== */
/* 📱 移动端列表卡片（替代表格） */
/* ====================== */

.mobile-list-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.mobile-list-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
}

.mobile-list-row:last-child {
    border-bottom: none;
}

.mobile-list-label {
    font-weight: 600;
    color: var(--text-primary);
    flex: 0 0 auto;
    margin-right: 16px;
    font-size: 15px;
}

.mobile-list-value {
    color: var(--text-primary);
    flex: 1;
    text-align: right;
    word-break: break-word;
    min-width: 0;
    font-size: 15px;
    line-height: 1.5;
}

.mobile-list-value .status-badge {
    display: inline-block;
    margin-left: 10px;
}

.mobile-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mobile-action-btn {
    flex: 1;
    min-width: 110px;
    padding: 10px;
    font-size: 15px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
}

/* ====================== */
/* 📱 响应式：移动端完美适配 */
/* ====================== */

@media (max-width: 768px) {
    .module-sidebar {
        display: none !important;
    }

    #module-content {
        margin-left: 0 !important;
    }

    .module-switcher {
        background: var(--surface);
        padding: 16px 20px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .module-switcher label {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 16px;
        white-space: nowrap;
    }

    .module-switcher select {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        font-size: 16px;
        background: var(--surface);
        min-width: 0;
    }

    .navbar {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
        text-align: center;
    }

    .samples-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .apply-btn {
        width: 100%;
        margin-top: 16px;
    }

    .modal-content {
        margin: 5% auto;
        padding: 28px;
        max-width: 95%;
    }

    /* 移动端购物栏按钮位置 */
    #cart-trigger-container {
        top: 84px;
        right: 16px;
    }

    .cart-trigger-btn {
        padding: 10px 18px 10px 36px;
        font-size: 15px;
        border-radius: 22px;
    }

    .cart-badge {
        top: 50%;
        right: -6px;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }

    .cart-panel-wrapper {
        width: calc(100% - 32px);
        right: 16px;
        top: 100px;
        max-height: calc(100vh - 140px);
    }

    .mobile-list-value {
        text-align: left;
    }

    .mobile-list-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-list-label {
        margin-bottom: 6px;
    }

    .logo::before {
        font-size: 1.3rem;
    }

    .main {
        margin: 30px auto;
        padding: 0 16px;
    }
}

/* ====================== */
/* 🖨️ 打印优化 */
/* ====================== */

@media print {
    .navbar,
    .pagination,
    .cart-trigger-btn,
    .sidebar-tab,
    .apply-link,
    .action-btn,
    .mobile-action-btn,
    .modal,
    #cart-trigger-container,
    #cart-panel-container {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 14pt;
    }

    .sample-card,
    .chart-container,
    .filters,
    .empty-state,
    .table-wrapper {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }

    .main {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .data-table th,
    .data-table td {
        padding: 12px;
        font-size: 12pt;
    }
}
@media (max-width: 768px) {
    .select2-container {
        width: 100% !important;
    }

    .select2-container--default .select2-selection--single {
        min-height: 48px !important;
        padding: 12px 14px !important;
    }

    .select2-dropdown {
        width: 100% !important;
    }
}
