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

:root {
    --primary: #e91e63;
    --primary-light: #f8bbd0;
    --primary-dark: #c2185b;
    --secondary: #9c27b0;
    --secondary-light: #ce93d8;
    --bg: #fdf2f8;
    --bg-light: #fff5f8;
    --card-bg: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #eeeeee;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

button:active {
    transform: scale(0.98);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    width: 20px;
    height: 20px;
}

.store-container {
    max-width: 100%;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
}

.store-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 20px 16px;
    padding-top: calc(20px + env(safe-area-inset-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.btn-back:hover,
.btn-back:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.back-icon {
    width: 22px;
    height: 22px;
}

.header-title {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.header-title h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.header-title p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.btn-contact {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.btn-contact:hover,
.btn-contact:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.contact-icon {
    width: 22px;
    height: 22px;
}

.store-info {
    padding: 24px 16px;
    background: var(--card-bg);
    text-align: center;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-info p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-preview {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-lg);
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wechat-icon {
    font-size: 1.2rem;
}

.category-tabs {
    display: flex;
    padding: 16px;
    gap: 12px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    background: var(--bg);
    border: none;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-normal);
    font-size: 0.85rem;
}

.tab-icon {
    font-size: 1.4rem;
    transition: transform var(--transition-fast);
}

.tab-text {
    font-weight: 500;
    color: var(--text-light);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.tab-btn.active .tab-text {
    color: white;
}

.tab-btn.active .tab-icon {
    transform: scale(1.1);
}

.works-count {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.works-gallery {
    padding: 0 16px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.work-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    cursor: pointer;
    animation: cardFadeIn 0.4s ease backwards;
}

.work-card:nth-child(1) { animation-delay: 0.1s; }
.work-card:nth-child(2) { animation-delay: 0.2s; }
.work-card:nth-child(3) { animation-delay: 0.3s; }
.work-card:nth-child(4) { animation-delay: 0.4s; }
.work-card:nth-child(5) { animation-delay: 0.5s; }
.work-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-card.active {
    box-shadow: var(--shadow-xl);
    transform: scale(1.03);
    border: 2px solid var(--primary);
}

.work-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.work-card:hover .work-image,
.work-card:active .work-image {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(2px);
}

.work-card:hover .work-overlay,
.work-card:active .work-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2.2rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.work-card-info {
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 75%;
}

.work-card-category {
    font-size: 1.1rem;
}

.works-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 16px;
}

.indicator-dots {
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.indicator-dot.active {
    width: 24px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
}

.works-counter {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 500;
}

.counter-separator {
    opacity: 0.5;
}

.work-details {
    margin: 0 16px;
    padding: 24px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    animation: slideUp 0.4s ease;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.work-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.work-category-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.work-category-badge.nail {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #e65c00;
}

.work-category-badge.eyelash {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: #6b21a8;
}

.work-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-md);
}

.meta-icon {
    width: 18px;
    height: 18px;
}

.meta-item.artist {
    color: var(--secondary);
    background: rgba(156, 39, 176, 0.08);
}

.meta-item.complexity {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.08);
}

.work-description-container {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.work-description-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.work-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.bottom-nav {
    display: flex;
    gap: 14px;
    padding: 20px 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.nav-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.nav-btn:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-xl);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.nav-icon {
    width: 20px;
    height: 20px;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 0px;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 2001;
    backdrop-filter: blur(10px);
}

.image-modal-close:hover,
.image-modal-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.image-modal-close svg {
    width: 24px;
    height: 24px;
}

.image-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-fast);
    touch-action: pan-x pan-y;
    cursor: grab;
}

#modalImage:active {
    cursor: grabbing;
}

.zoom-controls {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.zoom-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.zoom-btn:hover,
.zoom-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.zoom-btn svg {
    width: 22px;
    height: 22px;
}

.swipe-hint {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    animation: hintPulse 2s infinite;
}

@keyframes hintPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: modalFadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    background: var(--bg);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.modal-close:hover,
.modal-close:active {
    background: var(--border);
    transform: scale(1.1);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.contact-modal {
    padding: 40px 30px;
}

.contact-header {
    margin-bottom: 28px;
}

.contact-icon-large {
    font-size: 3.5rem;
    margin-bottom: 14px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.contact-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.wechat-display {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.15);
}

.wechat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.wechat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    word-break: break-all;
    letter-spacing: 2px;
}

.no-contact {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-tip {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--primary);
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(2) {
    border-right-color: var(--secondary);
    animation-duration: 1.5s;
    animation-delay: 0.2s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: var(--primary-light);
    animation-duration: 1.5s;
    animation-delay: 0.4s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (min-width: 769px) {
    .store-container {
        max-width: 600px;
        margin: 0 auto;
        box-shadow: var(--shadow-xl);
        min-height: 100vh;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius-xl);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
}

.main-content {
    padding: 20px 0;
}

.entry-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.entry-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.entry-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.entry-card h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.entry-card p {
    color: var(--text-light);
}

.store-list-section {
    margin-top: 30px;
}

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

.section-header h2 {
    font-size: 1.5rem;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.store-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.store-card:hover {
    transform: scale(1.02);
}

.store-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.store-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.store-qr-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
}

.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
}

#qrCodeDisplay {
    display: inline-block;
    margin: 20px auto;
}

#qrCodeDisplay canvas {
    max-width: 100%;
}

.qr-tip {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 15px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius-lg);
}

.admin-header h1 {
    font-size: 1.5rem;
}

.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.nav-tab {
    background: var(--card-bg);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.nav-tab.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.admin-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
}

.admin-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.admin-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.admin-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-edit, .btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-edit {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-delete {
    background: #ffebee;
    color: #f44336;
}

.btn-show-qr {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 10px;
    width: 100%;
}

.work-admin-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.work-admin-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-admin-card-content {
    padding: 15px;
}

.work-admin-card-content h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.modal-form {
    text-align: left;
    max-width: 500px;
}

/* 绑定门店列表 */
.bind-store-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bind-store-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .9rem;
    transition: background var(--transition-fast);
}
.bind-store-row:hover { background: var(--bg-light); }
.bind-store-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

.modal-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.modal-large {
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-bar select {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.image-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

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

.upload-placeholder {
    color: var(--text-light);
}

.upload-placeholder span {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.upload-placeholder small {
    font-size: 0.85rem;
}

#workImagePreview {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
}

.qr-code-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.qr-code-section h4 {
    margin-bottom: 15px;
    color: var(--text);
}

.qr-link {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-light);
    word-break: break-all;
}

.artist-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.artist-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.artist-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.artist-info h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.artist-info p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.artist-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.artist-bio {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-export,
.btn-import {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-export:hover,
.btn-import:hover {
    background: rgba(76, 175, 80, 0.5);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.4rem;
    }

    .entry-card {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-list {
        grid-template-columns: 1fr;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }
}

.store-header.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.store-info-bar {
    display: none;
}

.store-info-bar.hidden {
    display: none;
}

.store-info-bar p {
    display: none;
}

.works-counter-bar {
    display: none;
}

.works-counter-bar .counter-separator {
    display: none;
}

.works-main-view {
    display: none;
}

.category-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: white;
}

.tab-btn .tab-icon {
    font-size: 1rem;
}

.tab-btn .tab-text {
    font-weight: 500;
}

.works-grid-container {
    flex: 1;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.work-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:active {
    transform: scale(0.98);
}

.work-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.work-card-content {
    padding: 12px;
}

.work-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.work-card-tag {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.work-card-tag.artist {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.work-card-tag.complexity {
    background: rgba(255, 107, 157, 0.15);
    color: #ff6b9d;
}

.work-card-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.works-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.works-empty.show {
    display: flex;
}

.work-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.work-image-area {
    flex: 1;
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.main-work-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.image-expand-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10;
}

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

.work-info-panel {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 14px;
    flex-shrink: 0;
}

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

.work-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.work-category-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.work-category-badge.nail {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
}

.work-category-badge.eyelash {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.work-meta-row {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

.work-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.work-meta-row .meta-icon {
    font-size: 0.9rem;
}

.work-description-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 10px;
}

.desc-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.desc-content {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

.works-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.indicator-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

.indicator-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.works-thumbnail-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.works-thumbnail-strip::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.thumbnail-item.active {
    transform: scale(1.1);
}

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

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    gap: 12px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

.empty-state small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 1000;
    flex-direction: column;
}

.image-modal.active {
    display: flex;
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
    background: var(--card-bg);
    gap: 12px;
}

.modal-back-btn {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

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

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.modal-title-row h3 {
    font-size: 1rem;
    margin: 0;
}

.image-zoom-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    min-height: 0;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    touch-action: none;
}

.modal-work-info {
    background: var(--card-bg);
    padding: 14px 16px;
    border-top: 1px solid var(--border);
}

.modal-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.modal-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text);
}

.modal-meta-row .meta-icon {
    font-size: 1rem;
    position: relative;
    top: -4px;
}

.modal-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    max-height: 60px;
    overflow-y: auto;
}

.modal-nav-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 10px;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.hint-nav-btn {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hint-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.zoom-controls {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
}

.zoom-btn {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.zoom-btn svg {
    width: 22px;
    height: 22px;
}

.zoom-btn:active {
    transform: scale(0.9);
}

.store-info-footer {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(255,255,255,0.95) 100%);
    border-top: 1px solid var(--border);
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
}

.store-info-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.store-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.contact-icon-small {
    font-size: 0.9rem;
}

.store-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.works-main-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px;
    gap: 12px;
}

.work-showcase-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.work-image-area {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45vh;
    overflow: hidden;
}

.main-work-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-expand-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.image-expand-btn svg {
    width: 22px;
    height: 22px;
}

.work-info-panel {
    padding: 16px;
    background: var(--card-bg);
}

.work-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.work-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.work-category-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.work-category-badge.nail {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
}

.work-category-badge.eyelash {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.work-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.work-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text);
}

.work-meta-row .meta-icon {
    font-size: 1rem;
}

.work-description-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px;
}

.desc-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
}

.desc-content {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.thumbnail-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.thumbnail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.thumbnail-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.thumbnail-expand-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
    cursor: pointer;
}

.expand-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.thumbnail-wrapper {
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.thumbnail-wrapper.expanded {
    max-height: 300px;
}

.works-thumbnail-strip {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.works-thumbnail-strip::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: visible;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.thumbnail-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 10px;
    background: linear-gradient(45deg,
        #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b);
    background-size: 400% 400%;
    animation: rainbowGlow 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.thumbnail-item.active .thumbnail-glow {
    opacity: 1;
}

.thumbnail-item.active {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes rainbowGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.indicator-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 8px 0;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.indicator-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 12px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

.empty-state small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    flex-direction: column;
}

.image-modal.active {
    display: flex;
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
    background: rgba(30, 30, 30, 0.95);
    gap: 12px;
    border-radius: 15px;
}

.modal-close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.modal-close-btn svg {
    width: 22px;
    height: 22px;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.modal-title-row h3 {
    font-size: 1rem;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.modal-nav-btn svg {
    width: 18px;
    height: 18px;
}

.modal-counter {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    min-width: 40px;
    text-align: center;
}

.image-zoom-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    touch-action: none;
}

.modal-work-info {
    background: rgba(30, 30, 30, 0.95);
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.modal-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: black;
}

.modal-meta-row .meta-icon {
    font-size: 1rem;
}

.modal-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.modal-zoom-controls {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.zoom-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn svg {
    width: 24px;
    height: 24px;
}

.zoom-level {
    font-size: 0.9rem;
    color: white;
    min-width: 50px;
    text-align: center;
}

@media (max-width: 768px) {
    .store-container {
        height: 100vh;
        height: 100dvh;
        overflow-y: scroll;
    }

    .works-main-view {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .work-showcase-card {
        flex: 1;
        min-height: 0;
        max-height: 55vh;
    }

    .work-image-area {
        min-height: 0;
        flex: 1;
    }

    .thumbnail-section {
        flex-shrink: 0;
    }
}

/* ---- 顶部登录信息 ---- */
.admin-login-info {
    font-size: .82rem;
    color: var(--text-light);
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* ---- 账号管理卡片 ---- */
.account-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

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

.account-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.account-role-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 600;
}

.account-meta {
    font-size: .82rem;
    color: var(--text-light);
    line-height: 1.6;
}
   ============================================================ */

.booking-sub-nav {
    display: flex;
    gap: 8px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sub-tab {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--bg-light);
    font-size: .85rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sub-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.sub-panel { width: 100%; }

/* 预约卡片 */
.appt-admin-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.appt-admin-card-info { flex: 1; min-width: 0; }
.appt-admin-card-info h4 { font-size: .95rem; margin-bottom: 6px; }
.appt-admin-card-info p  { font-size: .83rem; color: var(--text-light); line-height: 1.7; }

.appt-admin-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.appt-admin-actions select {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    cursor: pointer;
}

/* 时间段卡片 */
.schedule-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.schedule-card-info { flex: 1; min-width: 0; }
.schedule-card-info h4 { font-size: .9rem; margin-bottom: 4px; }
.schedule-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.schedule-slot-tag {
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: .78rem;
}

/* 艺人排班卡片 */
.artist-sched-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.artist-sched-info { flex: 1; min-width: 0; font-size: .9rem; }
.artist-sched-info h4 { margin-bottom: 4px; }

.artist-sched-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.artist-sched-controls select {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    cursor: pointer;
}

.sched-status-working { color: #388e3c; }
.sched-status-off     { color: #c62828; }
.sched-status-leave   { color: #e65100; }