body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    margin: 0;
    box-sizing: border-box;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
    padding: 16px;
    padding-bottom: calc(70px + 16px); /* 底部导航栏高度 + 底部内边距 */
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 24px;
    border: none;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    box-sizing: border-box;
    margin: 0 auto;
    margin-bottom: 16px; /* 确保内容不会被底部导航栏遮挡 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.form-group {
    display: flex;
    align-items: center;
    margin: 12px 0;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.form-group label {
    min-width: 5em;
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    flex: 1;
    min-width: 0;
    margin: 0;
}

/* 确保输入组在form-group内部也能正确对齐 */
.form-group .input-group {
    flex: 1;
    margin: 0;
    min-width: 0;
    width: calc(100% - 5em - 12px); /* 减去label宽度和gap */
}

/* 确保开关组在form-group内部也能正确对齐 */
.form-group .switch-container {
    flex: 1;
    margin: 0;
    padding: 0;
}

/* 适配移动设备 */
@media (max-width: 480px) {
    .form-group {
        gap: 8px;
    }

    .form-group label {
        min-width: 4em;
        font-size: 13px;
    }

    .form-group .input-group {
        width: calc(100% - 4em - 8px); /* 移动端下减去label宽度和更小的gap */
    }

    .input-group {
        gap: 4px;
    }

    .input-group input[type="text"],
    .input-group input[type="number"],
    .input-group input[type="password"],
    .input-group input[type="datetime-local"] {
        font-size: 13px;
        padding: 8px;
    }

    .input-group select {
        min-width: 60px;
        max-width: 80px;
        padding: 8px 24px 8px 8px;
        font-size: 13px;
    }
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group input[type="password"],
.input-group input[type="datetime-local"] {
    flex: 1;
    min-width: 0;
    width: 0; /* 确保input可以被压缩 */
}

.input-group select {
    flex: 0 0 auto;
    width: auto;
    min-width: 80px;
    max-width: 120px;
}

.input-group span {
    flex: 1 0 auto;
    text-align: left;
}

/* 粘贴按钮样式 */
.input-group button {
    margin-left: auto; /* 自动靠右对齐 */
    max-width: 4em;
}

.query-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.query-group input[type="text"] {
    flex: 1;
    min-width: 0;
}

.query-group button {
    width: auto;
    white-space: nowrap;
}

.value-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-group button {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 8px 12px;
    font-weight: normal;
    min-width: auto;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

button:hover {
    background-color: #45a049;
}

.button-group {
    display: flex;
    gap: 10px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 8px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-button i {
    font-size: 16px;
}

.header-button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .header-button {
        background-color: #4CAF50;
        color: white;
    }

    .header-button:hover {
        background-color: #45a049;
    }
}

.announcement-bar {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.announcement-bar::before,
.announcement-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 32px;
    height: 100%;
    z-index: 1;
}

.announcement-bar::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
}

.announcement-bar::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 0%, transparent 100%);
}

.announcement-bar i {
    color: #4CAF50;
    font-size: 16px;
    flex-shrink: 0;
    z-index: 2;
    margin-right: 8px;
}

#announcement-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
    margin-left: 24px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (prefers-color-scheme: dark) {
    .announcement-bar {
        background-color: rgba(255, 255, 255, 0.05);
        color: #e5e7eb;
    }

    .announcement-bar::before {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    }

    .announcement-bar::after {
        background: linear-gradient(to left, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    }
}

#latency {
    cursor: pointer;
    white-space: nowrap;
}

.generated-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: #4CAF50;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: transparent;
}

.generated-link:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -1px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-nav a i {
    font-size: 20px;
    margin-bottom: 2px;
}

.footer-nav a::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-nav a:hover {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.footer-nav a:hover::before {
    width: 24px;
}

.footer-nav a.active {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.footer-nav a.active::before {
    width: 24px;
}

/* 适配深色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e5e5e5;
    }

    .footer-nav {
        background: rgba(30, 41, 59, 0.85);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-nav a {
        color: #94a3b8;
    }

    .footer-nav a:hover,
    .footer-nav a.active {
        color: #4CAF50;
        background-color: rgba(76, 175, 80, 0.15);
    }
}

/* 适配移动设备 */
@media (max-width: 768px) {
    body {
        padding: 12px;
        padding-bottom: calc(60px + 12px); /* 移动端底部导航栏高度 + 底部内边距 */
    }

    .footer-nav {
        padding: 8px 0;
    }

    .footer-nav a {
        font-size: 13px;
        padding: 6px 12px;
    }

    .container {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
}

/* 开关区域布局 */
.horizontal-switches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin: 12px 0;
}

/* 开关容器样式 */
.horizontal-switches .switch-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.horizontal-switches .switch-container label:first-child {
    flex: 1;
    white-space: nowrap;
    color: #4b5563;
}

/* 开关按钮容器 */
.horizontal-switches .switch {
    position: relative;
    display: inline-block;
    width: 44px !important;
    height: 22px !important;
    flex: 0 0 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    margin-right: 18px;
}

/* 隐藏原始复选框 */
.horizontal-switches .switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* 开关滑块样式 */
.horizontal-switches .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .3s;
    border-radius: 22px;
}

.horizontal-switches .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.horizontal-switches input:checked + .slider {
    background-color: #4CAF50;
}

.horizontal-switches input:checked + .slider:before {
    transform: translateX(22px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .horizontal-switches {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .horizontal-switches .switch {
        width: 40px !important;
        height: 20px !important;
        flex: 0 0 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        margin-right: 8px;
    }

    .horizontal-switches .slider:before {
        height: 16px;
        width: 16px;
    }

    .horizontal-switches input:checked + .slider:before {
        transform: translateX(20px);
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .horizontal-switches .switch-container label:first-child {
        color: #e2e8f0;
    }

    .horizontal-switches .slider {
        background-color: #4b5563;
    }

    .horizontal-switches .slider:before {
        background-color: #e2e8f0;
    }
}

.form-group input.invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.form-group input.invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* 移除输入框和选择框的默认样式 */
input,
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* 移除输入框在获得焦点时的默认样式 */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    -webkit-tap-highlight-color: transparent;
}

/* 移除点击时的高亮效果 */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 移除输入框自动填充时的背景色 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* 保持按钮的默认外观 */
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.result-item {
    padding: 12px;
    background-color: white;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.result-item:hover {
    background-color: #f5f7fa;
}

.item-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-index {
    background-color: #e2e8f0;
    color: #64748b;
    padding: 0;
    border-radius: 6px;
    font-size: 13px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.info:last-child {
    margin-bottom: 0;
}

.telephone-nickName {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
}

.type-info {
    color: #64748b;
    font-size: 12px;
}

.end-time {
    color: #94a3b8;
    font-size: 12px;
    text-align: right;
}

.status-indicator {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.user-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.user-welcome h2 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
}

#logout-button {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    margin: 0;
}

#logout-button:hover {
    background-color: #c82333;
}

.stats-filter {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-filter select,
.stats-filter input[type="datetime-local"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 8px;
    background-color: white;
    color: #4a5568;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-table th,
.stats-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.stats-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2d3748;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table .text-right {
    text-align: right;
}

.chart-container {
    width: 100%;
    max-width: 100%;
    margin: 32px auto;
    position: relative;
    height: 300px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* 图表标题样式 */
.chart-title {
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 16px;
    text-align: center;
}

/* 图表分隔线 */
.chart-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 32px 0;
}

.time-range-display {
    color: #718096;
    font-size: 14px;
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

/* 适配深色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e5e5e5;
    }

    .user-welcome {
        background: #2d3748;
    }

    .user-welcome h2 {
        color: #e2e8f0;
    }

    .stats-filter,
    .stats-table,
    .chart-container {
        background: #1a202c;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .stats-table th {
        background-color: #2d3748;
        color: #e2e8f0;
    }

    .stats-table td {
        border-bottom: 1px solid #2d3748;
    }

    .stats-filter select,
    .stats-filter input[type="datetime-local"] {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .time-range-display {
        background: #2d3748;
        color: #a0aec0;
    }

    .chart-title {
        color: #e2e8f0;
    }

    .chart-divider {
        background: linear-gradient(to right, transparent, #2d3748, transparent);
    }
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .user-welcome {
        padding: 12px 16px;
    }

    .stats-filter,
    .chart-container {
        padding: 16px;
    }

    .stats-table th,
    .stats-table td {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* 表单控件基础样式 */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="datetime-local"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    color: #4a5568;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* 下拉框特殊样式 */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    width: 120px;
    flex-shrink: 0;
}

/* 聚焦状态 */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* 开关按钮容器样式优化 */
.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

/* 开关按钮样式优化 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* 按钮样式优化 */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.button-group button {
    flex: 1;
    min-width: 120px;
}

/* 粘贴按钮样式 */
.paste-button {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 8px 12px;
    min-width: auto;
    font-weight: normal;
}

.paste-button:hover {
    background-color: #e5e7eb;
    transform: none;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="datetime-local"],
    input[type="password"],
    input[type="file"],
    select,
    textarea {
        background-color: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }

    select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e5e7eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    }

    .slider {
        background-color: #4b5563;
    }

    .paste-button {
        background-color: #374151;
        color: #e5e7eb;
    }

    .paste-button:hover {
        background-color: #4b5563;
    }
}

/* 输入组样式优化 */
.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group span {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

.channel-select {
    min-width: 100px;
    max-width: 120px;
}

/* 生成链接按钮样式 */
.generated-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: #4CAF50;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.generated-link:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

/* 统一的选择框样式 */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    width: 120px;
    flex-shrink: 0;
}

/* 深色模式下的选择框样式 */
@media (prefers-color-scheme: dark) {
    select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e5e7eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    }
}

/* 输入组内的选择框样式 */
.input-group select {
    margin-left: 8px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .header-button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .header-button i {
        font-size: 15px;
    }
}

/* 商品卡片样式 */
.product-card {
    display: flex;
    gap: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.product-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-details h3 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.4;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.price {
    color: #f43f5e;
    font-size: 18px;
    font-weight: 600;
}

.stock {
    color: #64748b;
    font-size: 14px;
}

.item-id {
    color: #94a3b8;
    font-size: 13px;
}


.sku-info h3, .selected-skus h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #1a1a1a;
}

.sku-item, .selected-sku-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.sku-info .sku-action,
.selected-sku-item .quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sku-action input,
.quantity-control input {
    width: 60px;
    text-align: center;
}

.delete-button {
    background-color: transparent;
    color: #ef4444;
    padding: 6px;
    border-radius: 6px;
}

.delete-button:hover {
    background-color: #fee2e2;
}

/* 生成链接区域样式 */
.generated-link-container {
    margin-top: 24px;
}

.generated-link-container h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #1a1a1a;
}

.link-container {
    display: flex;
    gap: 8px;
}

.link-container input {
    flex: 1;
    background-color: #f8fafc;
}

.link-container button {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.generate-button {
    width: 100%;
    margin-top: 16px;
    background-color: #4CAF50;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .product-card {
        background: #1e293b;
    }

    .product-details h3 {
        color: #e2e8f0;
    }

    .price {
        color: #f87171;
    }

    .stock {
        color: #94a3b8;
    }

    .item-id {
        color: #64748b;
    }

    .sku-item, .selected-sku-item {
        background: #1e293b;
        border-color: #2d3748;
    }

    .delete-button {
        color: #f87171;
    }

    .delete-button:hover {
        background-color: rgba(248, 113, 113, 0.1);
    }

    .link-container input {
        background-color: #1e293b;
    }
}

/* 移动端适配 */
@media (max-width: 640px) {
    .product-card {
        flex-direction: column;
        gap: 16px;
    }

    .product-card img {
        width: 100%;
        height: auto;
    }

    .sku-item, .selected-sku-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sku-action, .quantity-control {
        justify-content: space-between;
    }

    .link-container {
        flex-direction: column;
    }

    .link-container button {
        width: 100%;
    }
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.image-preview-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.form-group input[type="file"] {
    margin-bottom: 8px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .input-group {
        gap: 4px;
    }

    .input-group input[type="text"],
    .input-group input[type="number"],
    .input-group input[type="password"],
    .input-group input[type="datetime-local"] {
        font-size: 13px;
    }

    .input-group select {
        min-width: 60px;
        max-width: 90px;
        padding-right: 24px;
        font-size: 13px;
    }
}

/* 返回信息模态框样式 */
.response-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.response-icon.success {
    background-color: #4CAF50;
}

.response-icon.error {
    background-color: #ef4444;
}

.response-icon.success::before {
    content: "✓";
}

.response-icon.error::before {
    content: "✕";
}

.response-status {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
}

.response-details {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

#responseModal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .response-details {
        background-color: #1e293b;
    }
}

.input-group input[type="number"] {
    width: 100%;
    padding-right: 3em; /* 为单位留出空间 */
}

.input-unit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 14px;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .input-unit {
        color: #999;
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .input-unit {
        font-size: 13px;
        right: 6px;
    }

    .input-group input[type="number"] {
        padding-right: 2.5em;
    }
}

/* 带单位的数字输入框样式 */
.input-group.with-unit {
    width: 150px; /* 设置固定宽度 */
    min-width: 150px;
    flex: 0 0 auto; /* 防止被拉伸 */
}

.input-group.with-unit input[type="number"] {
    width: 100%;
    padding-right: 3em;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .input-group.with-unit {
        width: 120px;
        min-width: 120px;
    }
}

.input-group.with-unit-and-switch {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* 紧凑型开关容器 */
.switch-container.compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.switch-container.compact label:first-child {
    font-size: 14px;
    color: #4b5563;
    min-width: auto;
}

.switch-container.compact .switch {
    width: 36px;
    height: 20px;
    min-width: 36px;
    margin: 0;
}

.switch-container.compact .slider:before {
    height: 16px;
    width: 16px;
}

.switch-container.compact input:checked + .slider:before {
    transform: translateX(16px);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .input-group.with-unit-and-switch {
        gap: 12px;
    }

    .switch-container.compact label:first-child {
        font-size: 13px;
    }

    .switch-container.compact .switch {
        width: 32px;
        height: 18px;
        min-width: 32px;
    }

    .switch-container.compact .slider:before {
        height: 14px;
        width: 14px;
    }

    .switch-container.compact input:checked + .slider:before {
        transform: translateX(14px);
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .switch-container.compact label:first-child {
        color: #e2e8f0;
    }
}

