* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: #4a5568;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.header {
    background: linear-gradient(135deg, #a8b5c4 0%, #b8c6d6 50%, #c8d4e0 100%);
    color: #4a5568;
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.company-name {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.page-title {
    font-size: 13px;
    opacity: 0.7;
    font-weight: 400;
}

.content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
}

.date-nav {
    display: flex;
    overflow-x: auto;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    -webkit-overflow-scrolling: touch;
}

.date-nav::-webkit-scrollbar {
    display: none;
}

.date-item {
    flex-shrink: 0;
    padding: 10px 22px;
    margin: 0 6px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background-color: rgba(168, 181, 196, 0.15);
    color: #6b7280;
    font-weight: 500;
}

.date-item.active {
    background: linear-gradient(135deg, #a8b5c4 0%, #b8c6d6 100%);
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(168, 181, 196, 0.3);
}

.period-nav {
    display: flex;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    gap: 12px;
}

.period-item {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: rgba(168, 181, 196, 0.15);
    color: #6b7280;
    font-weight: 500;
}

.period-item.active {
    background: linear-gradient(135deg, #a8b5c4 0%, #b8c6d6 100%);
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(168, 181, 196, 0.3);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    overflow-y: auto;
}

.collection-item {
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.collection-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.collection-item:active {
    transform: scale(0.97);
}

.collection-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background-color: #f8f9fa;
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    background: rgba(168, 181, 196, 0.85);
    backdrop-filter: blur(8px);
    color: #4a5568;
    font-size: 11px;
    border-radius: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.collection-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(74, 85, 104, 0.85));
    backdrop-filter: blur(4px);
    color: white;
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    grid-column: 1 / -1;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.modal-overlay {
    width: 100%;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(74, 85, 104, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #6b7280;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    color: #4a5568;
}

.modal-image-container {
    width: 100%;
    position: relative;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 20px 0 0;
}

.modal-info {
    padding: 24px;
}

.modal-name {
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 16px;
}

.image-indicator {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 500;
}

.image-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(168, 181, 196, 0.2);
    backdrop-filter: blur(8px);
    color: #6b7280;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(168, 181, 196, 0.4);
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}