* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

.container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 20px;
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 15px;
    color: #666;
}

.main {
    flex: 1;
    width: 100%;
    max-width: 960px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.page-card {
    max-width: none;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 24px;
}

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

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

.form-group input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.15);
}

.form-group input[readonly] {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.readonly-text {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    line-height: 42px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #f5f5f5;
    color: #555;
    font-size: 15px;
    box-sizing: border-box;
}

.readonly-text.empty {
    color: #999;
}

.captcha-row,
.sms-row {
    display: flex;
    gap: 10px;
}

.captcha-row input,
.sms-row input {
    flex: 1;
}

.captcha-box {
    width: 110px;
    height: 42px;
    border-radius: 6px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #2c3e50;
    border: 1px solid #d9d9d9;
    transition: opacity 0.2s;
}

.captcha-box:hover {
    opacity: 0.85;
}

.btn {
    height: 42px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: #40a9ff;
}

.btn-secondary {
    background: #f0f2f5;
    color: #555;
}

.btn-secondary:hover:not(:disabled) {
    background: #e4e6e9;
}

.btn-sms {
    width: 110px;
    padding: 0 10px;
    background: #52c41a;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}

.btn-sms:hover:not(:disabled) {
    background: #73d13d;
}

.btn-sms.counting {
    background: #bfbfbf;
}

.btn-default {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #d9d9d9;
}

.btn-default:hover:not(:disabled) {
    background: #e8e8e8;
}

.btn-text {
    height: auto;
    padding: 0;
    background: transparent;
    color: #1890ff;
    font-size: 13px;
    border-radius: 0;
}

.btn-text:hover:not(:disabled) {
    text-decoration: underline;
    background: transparent;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-row .btn {
    flex: 1;
}

.extra-links {
    margin-top: 20px;
    text-align: center;
}

.link {
    font-size: 14px;
    color: #1890ff;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.user-card {
    text-align: center;
}

.welcome-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.hint-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}

.footer {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.footer a {
    color: #888;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 auto 8px;
    max-width: 480px;
}

.qualification-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qualification-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    text-align: center;
}

.qualification-upload {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.qualification-upload:hover {
    border-color: #1890ff;
    background: #f0f9ff;
}

.qualification-upload.has-image {
    border-style: solid;
    border-color: #1890ff;
}

.qualification-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    pointer-events: none;
}

.upload-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 6px;
    color: #bfbfbf;
}

.upload-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.upload-preview.hidden,
.delete-img.hidden {
    display: none;
}

.image-link {
    margin-top: 6px;
    font-size: 13px;
    color: #1890ff;
    text-decoration: none;
    text-align: center;
}

.image-link:hover {
    text-decoration: underline;
}

.image-link.hidden {
    display: none;
}

.delete-img {
    margin-top: 2px;
    padding: 4px 10px;
    font-size: 13px;
    color: #ff4d4f;
    background: transparent;
    border: none;
    cursor: pointer;
}

.delete-img:hover {
    background: #fff1f0;
    border-radius: 4px;
}

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

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

@media (max-width: 480px) {
    .qualification-grid {
        grid-template-columns: 1fr;
    }
}

.user-body {
    background: #f7f8fa;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.top-header h1 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

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

.layout {
    display: flex;
    min-height: calc(100vh - 64px - 60px);
}

.sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    padding: 16px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    margin: 0 12px;
    border-radius: 8px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #f5f5f5;
    color: #333;
}

.nav-item.active {
    background: #1890ff;
    color: #fff;
}

.nav-icon {
    font-size: 18px;
}

.main-content {
    flex: 1;
    padding: 24px 32px;
    min-width: 0;
}

.page-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 24px 32px;
}

.page-section.hidden {
    display: none;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.welcome-card {
    padding: 24px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
}

.welcome-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.user-body .hint-text {
    font-size: 14px;
    color: #888;
}

.form-hint {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.settlement-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.settlement-form .form-row .form-group {
    flex: 1 1 280px;
    min-width: 0;
    margin-bottom: 0;
}

.settlement-form .form-row .form-group.full {
    flex: 1 1 100%;
}

.settlement-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
}

.settlement-form select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn input {
    flex: 1 1 0;
    min-width: 0;
}

.input-with-btn .btn-sms {
    white-space: nowrap;
    padding: 0 12px;
    height: 42px;
    min-width: 100px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.user-footer {
    text-align: center;
    padding: 16px;
    font-size: 13px;
    color: #888;
    background: #f7f8fa;
}

.user-footer a {
    color: #888;
    text-decoration: none;
}

.user-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px 16px;
    }

    .header h1 {
        font-size: 22px;
    }

    .card {
        padding: 24px;
    }

    .btn-sms {
        width: 100px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 0 16px;
    }

    .top-header h1 {
        font-size: 16px;
    }

    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 8px 0;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 12px;
    }

    .nav-item {
        flex: 1;
        min-width: 120px;
        margin: 0;
        justify-content: center;
    }

    .main-content {
        padding: 16px;
    }

    .page-section {
        padding: 20px;
    }

    .settlement-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* 商品管理 */
.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.product-header .section-title {
    margin-bottom: 0;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.product-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #d9d9d9;
}

.product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f5f5f5;
}

.product-info {
    padding: 14px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    word-break: break-all;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    color: #ff4d4f;
    font-weight: 600;
    font-size: 15px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.product-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.product-tag.on {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.product-tag.off {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

.product-tag.promotion {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.product-tag.discount {
    background: #e6fffb;
    color: #08979c;
    border: 1px solid #87e8de;
}

.product-tag.share {
    background: #f0f5ff;
    color: #1d39c4;
    border: 1px solid #adc6ff;
}

.product-description {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-actions .btn {
    flex: 1;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.pagination-total {
    font-size: 14px;
    color: #666;
}

.pagination-page {
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #1890ff;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.btn-sm {
    height: 34px;
    padding: 0 14px;
    font-size: 14px;
}

/* 模态框 */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.product-form {
    padding: 20px;
    overflow-y: auto;
}

.product-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.product-form .form-row .form-group {
    flex: 1 1 200px;
    min-width: 0;
    margin-bottom: 0;
}

.product-form .form-row .form-group.full {
    flex: 1 1 100%;
}

.product-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
}

.required {
    color: #ff4d4f;
    margin-left: 2px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 商品图片上传网格 */
.product-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.product-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.product-image-upload {
    border: 2px dashed #d9d9d9;
    cursor: pointer;
    transition: all 0.2s;
}

.product-image-upload:hover {
    border-color: #1890ff;
    background: #f0f9ff;
}

.product-image-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.product-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-remove:hover {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .product-header,
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        width: 96%;
        max-height: 96vh;
    }

    .product-form .form-row,
    .service-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* 服务管理（复用商品样式并补充服务特定样式） */
.product-header,
.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.product-header .section-title,
.service-header .section-title {
    margin-bottom: 0;
}

.product-list,
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.product-empty,
.service-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #d9d9d9;
}

.product-card,
.service-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover,
.service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-image,
.service-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f5f5f5;
}

.product-info,
.service-info {
    padding: 14px;
}

.product-name,
.service-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    word-break: break-all;
}

.product-meta,
.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.product-price,
.service-price {
    color: #ff4d4f;
    font-weight: 600;
    font-size: 15px;
}

.product-tags,
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.product-tag,
.service-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.product-tag.on,
.service-tag.on {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.product-tag.off,
.service-tag.off {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

.product-tag.promotion,
.service-tag.promotion {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.product-tag.discount,
.service-tag.discount {
    background: #e6fffb;
    color: #08979c;
    border: 1px solid #87e8de;
}

.product-tag.share,
.service-tag.share {
    background: #f0f5ff;
    color: #1d39c4;
    border: 1px solid #adc6ff;
}

.product-description,
.service-description {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions,
.service-actions {
    display: flex;
    gap: 8px;
}

.product-actions .btn,
.service-actions .btn {
    flex: 1;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.product-form,
.service-form {
    padding: 20px;
    overflow-y: auto;
}

.product-form .form-row,
.service-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.product-form .form-row .form-group,
.service-form .form-row .form-group {
    flex: 1 1 200px;
    min-width: 0;
    margin-bottom: 0;
}

.product-form .form-row .form-group.full,
.service-form .form-row .form-group.full {
    flex: 1 1 100%;
}

.product-form textarea,
.service-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
}

/* 服务图片上传网格 */
.product-image-grid,
.service-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.product-image-item,
.service-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.product-image-upload,
.service-image-upload {
    border: 2px dashed #d9d9d9;
    cursor: pointer;
    transition: all 0.2s;
}

.product-image-upload:hover,
.service-image-upload:hover {
    border-color: #1890ff;
    background: #f0f9ff;
}

.product-image-upload input[type="file"],
.service-image-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.product-image-preview,
.service-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-remove,
.service-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-remove:hover,
.service-image-remove:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* 上门地址显隐 */
.home-address-row {
    transition: all 0.2s;
}

.home-address-row.hidden {
    display: none;
}

/* 店员管理（复用商品/服务样式并补充店员特定样式） */
.product-header,
.service-header,
.waiter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.product-header .section-title,
.service-header .section-title,
.waiter-header .section-title {
    margin-bottom: 0;
}

.product-list,
.service-list,
.waiter-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.product-empty,
.service-empty,
.waiter-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #d9d9d9;
}

.product-card,
.service-card,
.waiter-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover,
.service-card:hover,
.waiter-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-image,
.service-image,
.waiter-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f5f5f5;
}

.waiter-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
}

.waiter-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
}

.waiter-card .waiter-info {
    flex: 1;
    min-width: 0;
}

.product-info,
.service-info,
.waiter-info {
    padding: 14px;
}

.waiter-card .waiter-info {
    padding: 0;
}

.product-name,
.service-name,
.waiter-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    word-break: break-all;
}

.product-meta,
.service-meta,
.waiter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.product-price,
.service-price {
    color: #ff4d4f;
    font-weight: 600;
    font-size: 15px;
}

.waiter-role {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    background: #f0f5ff;
    color: #1d39c4;
    border: 1px solid #adc6ff;
}

.waiter-role.manager {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.product-tags,
.service-tags,
.waiter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.product-tag,
.service-tag,
.waiter-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.product-tag.on,
.service-tag.on,
.waiter-tag.on {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.product-tag.off,
.service-tag.off,
.waiter-tag.off {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

.product-tag.promotion,
.service-tag.promotion,
.waiter-tag.promotion {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.product-tag.discount,
.service-tag.discount,
.waiter-tag.discount {
    background: #e6fffb;
    color: #08979c;
    border: 1px solid #87e8de;
}

.product-tag.share,
.service-tag.share,
.waiter-tag.share {
    background: #f0f5ff;
    color: #1d39c4;
    border: 1px solid #adc6ff;
}

.product-description,
.service-description,
.waiter-description {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions,
.service-actions,
.waiter-actions {
    display: flex;
    gap: 8px;
}

.product-actions .btn,
.service-actions .btn,
.waiter-actions .btn {
    flex: 1;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.product-form,
.service-form,
.waiter-form {
    padding: 20px;
    overflow-y: auto;
}

.product-form .form-row,
.service-form .form-row,
.waiter-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.product-form .form-row .form-group,
.service-form .form-row .form-group,
.waiter-form .form-row .form-group {
    flex: 1 1 200px;
    min-width: 0;
    margin-bottom: 0;
}

.product-form .form-row .form-group.full,
.service-form .form-row .form-group.full,
.waiter-form .form-row .form-group.full {
    flex: 1 1 100%;
}

.product-form textarea,
.service-form textarea,
.waiter-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
}

.waiter-form select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

/* 店员肖像上传 */
.waiter-portrait-wrap {
    display: flex;
}

.waiter-portrait-upload {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px dashed #d9d9d9;
    border-radius: 50%;
    background: #fafafa;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.waiter-portrait-upload:hover {
    border-color: #1890ff;
    background: #f0f9ff;
}

.waiter-portrait-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.waiter-portrait-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.waiter-portrait-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waiter-portrait-remove:hover {
    background: rgba(0, 0, 0, 0.7);
}

.waiter-portrait-remove.hidden {
    display: none;
}

/* 店员证书图片上传网格 */
.product-image-grid,
.service-image-grid,
.waiter-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.product-image-item,
.service-image-item,
.waiter-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.product-image-upload,
.service-image-upload,
.waiter-image-upload {
    border: 2px dashed #d9d9d9;
    cursor: pointer;
    transition: all 0.2s;
}

.product-image-upload:hover,
.service-image-upload:hover,
.waiter-image-upload:hover {
    border-color: #1890ff;
    background: #f0f9ff;
}

.product-image-upload input[type="file"],
.service-image-upload input[type="file"],
.waiter-image-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.product-image-preview,
.service-image-preview,
.waiter-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-remove,
.service-image-remove,
.waiter-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-remove:hover,
.service-image-remove:hover,
.waiter-image-remove:hover {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .product-header,
    .service-header,
    .waiter-header,
    .shared-product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        width: 96%;
        max-height: 96vh;
    }

    .product-form .form-row,
    .service-form .form-row,
    .waiter-form .form-row,
    .shared-product-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .waiter-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* 共享商品管理（复用商品样式并补充共享商品特定样式） */
.product-header,
.service-header,
.waiter-header,
.shared-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.product-header .section-title,
.service-header .section-title,
.waiter-header .section-title,
.shared-product-header .section-title {
    margin-bottom: 0;
}

.product-list,
.service-list,
.waiter-list,
.shared-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.product-empty,
.service-empty,
.waiter-empty,
.shared-product-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #d9d9d9;
}

.product-card,
.service-card,
.waiter-card,
.shared-product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover,
.service-card:hover,
.waiter-card:hover,
.shared-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-image,
.service-image,
.waiter-image,
.shared-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f5f5f5;
}

.product-info,
.service-info,
.waiter-info,
.shared-product-info {
    padding: 14px;
}

.product-name,
.service-name,
.waiter-name,
.shared-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    word-break: break-all;
}

.product-meta,
.service-meta,
.waiter-meta,
.shared-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.product-price,
.service-price,
.shared-product-price {
    color: #ff4d4f;
    font-weight: 600;
    font-size: 15px;
}

.product-tags,
.service-tags,
.waiter-tags,
.shared-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.product-tag,
.service-tag,
.waiter-tag,
.shared-product-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.product-tag.on,
.service-tag.on,
.waiter-tag.on,
.shared-product-tag.on {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.product-tag.off,
.service-tag.off,
.waiter-tag.off,
.shared-product-tag.off {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

.product-tag.promotion,
.service-tag.promotion,
.waiter-tag.promotion,
.shared-product-tag.promotion {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.product-tag.discount,
.service-tag.discount,
.waiter-tag.discount,
.shared-product-tag.discount {
    background: #e6fffb;
    color: #08979c;
    border: 1px solid #87e8de;
}

.product-tag.share,
.service-tag.share,
.waiter-tag.share,
.shared-product-tag.share {
    background: #f0f5ff;
    color: #1d39c4;
    border: 1px solid #adc6ff;
}

.product-description,
.service-description,
.waiter-description,
.shared-product-description {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions,
.service-actions,
.waiter-actions,
.shared-product-actions {
    display: flex;
    gap: 8px;
}

.product-actions .btn,
.service-actions .btn,
.waiter-actions .btn,
.shared-product-actions .btn {
    flex: 1;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.shared-product-consigned-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    color: #999;
    background: #f5f5f5;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
}

/* 代售商品 */.product-form,
.service-form,
.waiter-form,
.shared-product-form {
    padding: 20px;
    overflow-y: auto;
}

.product-form .form-row,
.service-form .form-row,
.waiter-form .form-row,
.shared-product-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.product-form .form-row .form-group,
.service-form .form-row .form-group,
.waiter-form .form-row .form-group,
.shared-product-form .form-row .form-group {
    flex: 1 1 200px;
    min-width: 0;
    margin-bottom: 0;
}

.product-form .form-row .form-group.full,
.service-form .form-row .form-group.full,
.waiter-form .form-row .form-group.full,
.shared-product-form .form-row .form-group.full {
    flex: 1 1 100%;
}

.product-form textarea,
.service-form textarea,
.waiter-form textarea,
.shared-product-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
}

/* 共享商品图片上传网格 */
.product-image-grid,
.service-image-grid,
.waiter-image-grid,
.shared-product-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.product-image-item,
.service-image-item,
.waiter-image-item,
.shared-product-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.product-image-upload,
.service-image-upload,
.waiter-image-upload,
.shared-product-image-upload {
    border: 2px dashed #d9d9d9;
    cursor: pointer;
    transition: all 0.2s;
}

.product-image-upload:hover,
.service-image-upload:hover,
.waiter-image-upload:hover,
.shared-product-image-upload:hover {
    border-color: #1890ff;
    background: #f0f9ff;
}

.product-image-upload input[type="file"],
.service-image-upload input[type="file"],
.waiter-image-upload input[type="file"],
.shared-product-image-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.product-image-preview,
.service-image-preview,
.waiter-image-preview,
.shared-product-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-remove,
.service-image-remove,
.waiter-image-remove,
.shared-product-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-remove:hover,
.service-image-remove:hover,
.waiter-image-remove:hover,
.shared-product-image-remove:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* 代售商品 */
.consignment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.consignment-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #d9d9d9;
}

.consignment-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.consignment-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.consignment-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f5f5f5;
}

.consignment-info {
    padding: 16px;
}

.consignment-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.consignment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.consignment-price {
    color: #ff4d4f;
    font-weight: 600;
}

.consignment-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.consignment-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.consignment-status-tag.on {
    color: #52c41a;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
}

.consignment-status-tag.off {
    color: #999;
    background: #f5f5f5;
    border: 1px solid #d9d9d9;
}

.consignment-status-tag.warning {
    color: #faad14;
    background: #fffbe6;
    border: 1px solid #ffe58f;
}

.consignment-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.consignment-actions .btn {
    flex: 1;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

/* 电子协议号与签署按钮 */
.readonly-text-with-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.readonly-text-with-btn .readonly-text {
    flex: 1;
    min-width: 0;
}

.readonly-text-with-btn .btn {
    height: 42px;
    padding: 0 16px;
    white-space: nowrap;
    font-size: 14px;
}

/* 协议弹窗与支付弹窗 */
.agreement-modal-content,
.payment-modal-content {
    max-width: 640px;
}

.agreement-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.agreement-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 14px 16px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    margin-bottom: 16px;
}

.agreement-field {
    font-size: 14px;
    color: #333;
}

.field-label {
    color: #666;
}

.agreement-text {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.agreement-text pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.agreement-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.agreement-actions .btn {
    min-width: 120px;
}

.payment-body {
    flex: 1;
    padding: 24px 20px;
    text-align: center;
    overflow-y: auto;
}

.qr-code-container {
    width: 240px;
    height: 240px;
    margin: 0 auto 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.payment-status {
    font-size: 14px;
    color: #1890ff;
    min-height: 20px;
}

@media (max-width: 768px) {
    .readonly-text-with-btn {
        flex-direction: column;
        align-items: stretch;
    }

    .readonly-text-with-btn .btn {
        width: 100%;
    }

    .agreement-info {
        flex-direction: column;
        gap: 8px;
    }

    .agreement-actions {
        flex-direction: column;
    }

    .agreement-actions .btn {
        width: 100%;
    }

    .qr-code-container {
        width: 200px;
        height: 200px;
    }
}

/* 店铺位置选择 */
.store-location-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.store-location-text {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    line-height: 42px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #f5f5f5;
    color: #555;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-location-text.empty {
    color: #999;
}

.store-location-bar .btn {
    height: 42px;
    white-space: nowrap;
}

.store-location-modal-content {
    max-width: 760px;
    width: 92%;
}

.store-location-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    max-height: 70vh;
    padding: 16px 20px;
    overflow: hidden;
}

.store-location-search {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.store-location-search input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}

.store-location-search input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.15);
}

.store-location-search .btn {
    height: 40px;
}

.store-location-search-results {
    max-height: 140px;
    overflow-y: auto;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
}

.store-location-search-results:empty {
    display: none;
}

.store-location-result-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.store-location-result-item:last-child {
    border-bottom: none;
}

.store-location-result-item:hover {
    background: #f0f9ff;
}

.store-location-result-item .result-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.store-location-result-item .result-address {
    font-size: 12px;
    color: #888;
}

.store-location-map {
    flex: 1;
    min-height: 280px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.store-location-selected {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.store-location-selected span:first-child {
    color: #666;
}

/* 店铺小程序码 */
.qrcode-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.qrcode-image-wrap {
    margin: 24px 0;
}

.qrcode-image-wrap img {
    width: 280px;
    height: 280px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.qrcode-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff1f0;
    border: 1px solid #ffa39e;
    border-radius: 6px;
    color: #cf1322;
    font-size: 14px;
    line-height: 1.6;
}

.qrcode-actions {
    margin-top: 16px;
}

.time-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-range-inputs input[type="time"] {
    flex: 1;
    min-width: 0;
}

.time-range-separator {
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
}

.banner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.banner-upload {
    position: relative;
    width: 160px;
    height: 120px;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.banner-upload:hover {
    border-color: #1890ff;
}

.banner-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.banner-upload .upload-placeholder {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    z-index: 1;
}

.banner-upload .upload-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.banner-item {
    position: relative;
    width: 160px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-item .delete-banner {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 3;
}

@media (max-width: 768px) {
    .store-location-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .store-location-text {
        width: 100%;
    }

    .store-location-bar .btn {
        width: 100%;
    }

    .store-location-modal-content {
        width: 96%;
        max-height: 96vh;
    }

    .store-location-body {
        min-height: 360px;
        max-height: none;
        padding: 12px 16px;
    }

    .store-location-search {
        flex-direction: column;
    }

    .store-location-search .btn {
        width: 100%;
    }

    .store-location-map {
        min-height: 240px;
    }
}

/* 实体订单管理 */
.product-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.product-order-header .section-title {
    margin-bottom: 0;
}

.product-order-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.product-order-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #d9d9d9;
}

.product-order-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.product-order-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-order-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.product-order-item-status {
    font-size: 14px;
    font-weight: 600;
    color: #1890ff;
}

.product-order-item-time {
    font-size: 13px;
    color: #999;
}

.product-order-item-body {
    padding: 14px 16px;
}

.product-order-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    word-break: break-all;
}

.product-order-item-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.product-order-modal-content {
    max-width: 640px;
}

.product-order-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.product-order-detail {
    margin-bottom: 20px;
}

.product-order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.product-order-detail-row .label {
    color: #666;
    flex-shrink: 0;
    margin-right: 16px;
}

.product-order-detail-row .value {
    color: #333;
    text-align: right;
    word-break: break-all;
}

.product-order-ship {
    padding: 16px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
}

.product-order-ship h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #333;
}

.product-order-loading,
.product-order-error {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.product-order-error {
    color: #cf1322;
}

@media (max-width: 768px) {
    .product-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .product-order-detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .product-order-detail-row .value {
        text-align: left;
    }
}

.service-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.service-order-header .section-title {
    margin-bottom: 0;
}

.service-order-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.service-order-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #d9d9d9;
}

.service-order-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.service-order-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.service-order-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.service-order-item-status {
    font-size: 14px;
    font-weight: 600;
    color: #1890ff;
}

.service-order-item-time {
    font-size: 13px;
    color: #999;
}

.service-order-item-body {
    padding: 14px 16px;
}

.service-order-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    word-break: break-all;
}

.service-order-item-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.service-order-modal-content {
    max-width: 640px;
}

.service-order-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.service-order-detail {
    margin-bottom: 20px;
}

.service-order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.service-order-detail-row .label {
    color: #666;
    flex-shrink: 0;
    margin-right: 16px;
}

.service-order-detail-row .value {
    color: #333;
    text-align: right;
    word-break: break-all;
}

.service-order-loading,
.service-order-error {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.service-order-error {
    color: #cf1322;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
    border: 1px solid #ff4d4f;
}

.btn-danger:hover {
    background: #ff7875;
    border-color: #ff7875;
}

@media (max-width: 768px) {
    .service-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .service-order-detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .service-order-detail-row .value {
        text-align: left;
    }
}

/* 敏感信息脱敏字段 */
.mask-field {
    /* 复用表单输入框样式，由 .form-group input 统一控制 */
}

/* 证书上传 */
.cert-upload-row {
    align-items: flex-end;
}

.cert-upload-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
}

.cert-filename {
    flex: 1;
    font-size: 14px;
    color: #555;
    word-break: break-all;
}

.cert-upload-btn {
    height: 30px;
    padding: 0 12px;
    font-size: 13px;
}

.cert-upload-modal-content {
    max-width: 560px;
}

.cert-upload-body {
    padding: 20px 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.cert-upload-info {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.cert-upload-info-row {
    display: flex;
    font-size: 14px;
    line-height: 1.8;
}

.cert-upload-info-label {
    color: #555;
    white-space: nowrap;
}

.cert-upload-sms,
.cert-upload-files {
    margin-bottom: 16px;
}

.cert-upload-sms h4,
.cert-upload-files h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.sms-verify-row {
    display: flex;
    gap: 10px;
}

.sms-verify-row input {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 15px;
}

.cert-upload-file-row {
    margin-bottom: 12px;
}

.cert-upload-file-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.cert-upload-file-row input[type="file"] {
    width: 100%;
    font-size: 14px;
    padding: 8px 0;
}
